/* Holistichand – varm, reflekterende tone
   Jordfarver, serif-overskrifter, god luft. */

:root {
  --bg: #f4f1ea;
  --bg-card: #fbf9f4;
  --ink: #3a342c;
  --ink-soft: #6b6357;
  --accent: #b06a4f;      /* terracotta */
  --accent-dark: #8f5139;
  --line: #e3ddd0;
  --gold: #c9a24b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(58, 52, 44, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: normal; line-height: 1.25; letter-spacing: 0.2px; }
h1 { font-size: 2.4rem; margin: 0 0 0.4em; }
h2 { font-size: 1.6rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 0 0 0.3em; }

p { margin: 0 0 1em; }

a { color: var(--accent-dark); }

em { color: var(--accent-dark); }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Topbjælke */
.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.brand span { color: var(--accent); }
.site-header nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--accent-dark); }

/* Hero */
.hero {
  text-align: center;
  padding: 70px 0 40px;
}
.hero .lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 1.4em;
}
.mirror-line {
  font-style: italic;
  color: var(--accent-dark);
  font-size: 1.15rem;
}

/* Knapper */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: var(--shadow);
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #cbb9ae; cursor: not-allowed; box-shadow: none; }
.btn.secondary {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  box-shadow: none;
}
.btn.secondary:hover { background: rgba(176, 106, 79, 0.08); }

/* Kort */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 40px 0;
}
.step { text-align: center; padding: 10px; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1.1rem; margin-bottom: 10px;
}
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* Upload */
.dropzone {
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: rgba(176, 106, 79, 0.04);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}
.dropzone:hover, .dropzone.drag { background: rgba(176, 106, 79, 0.10); }
.dropzone p { color: var(--ink-soft); margin: 6px 0 0; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute; top: 5px; right: 5px;
  width: 24px; height: 24px; border-radius: 50%;
  border: none; background: rgba(58,52,44,0.7); color: #fff;
  cursor: pointer; font-size: 14px; line-height: 1;
}

/* Eksempelfoto-guide */
.guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 8px 0 4px;
}
.guide figure { margin: 0; text-align: center; }
.guide .frame {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.guide figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }
.guide .good { border-color: #8ba86f; }
.guide .bad { border-color: #c98b8b; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); }

.notice {
  background: #f3efe4;
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 16px 0;
}

.error {
  background: #f7e7e3;
  border-left: 3px solid var(--accent);
  color: var(--accent-dark);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 14px 0;
}

/* Håndbillede med markerede linjer */
.handframe {
  position: relative;
  max-width: 420px;
  margin: 18px auto 6px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.handframe img { display: block; width: 100%; height: auto; }
.handframe svg,
.handframe canvas.lineoverlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.handframe canvas.lineoverlay { image-rendering: auto; pointer-events: none; }
.handframe .line {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 3 2.4;
  opacity: 0.92;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.35));
}
/* De "indtegnede" linjer (bløde, tynde streger som en håndlæser tegner dem) */
.handframe .drawn {
  fill: none;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
  filter: drop-shadow(0 0 0.5px rgba(0,0,0,0.4));
}

/* Levende "flow" der løber langs hver linje */
.handframe .flow {
  fill: none;
  stroke: #fff;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 16 84;
  stroke-dashoffset: 100;
  opacity: 0.5;
  animation: flowmove 3.4s linear infinite;
}
@keyframes flowmove { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .handframe .flow { animation: none; opacity: 0; }
}

/* Sammenligning: rent billede ved siden af det med linjer */
.compare {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  margin: 18px 0 4px;
}
.cmp-item { flex: 1 1 300px; max-width: 360px; }
.cmp-item .handframe { margin: 0; max-width: none; }
.cmp-label {
  text-align: center; font-size: 0.85rem; color: var(--ink-soft);
  margin: 7px 0 0; font-family: -apple-system, system-ui, sans-serif;
}
.linelegend {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  margin: 12px 0 4px;
  font-family: -apple-system, system-ui, sans-serif; font-size: 0.85rem;
  color: var(--ink-soft);
}
.linelegend span { display: inline-flex; align-items: center; gap: 7px; }
.linelegend i {
  width: 22px; border-top: 3px solid currentColor; display: inline-block;
}
.linecaption {
  text-align: center; font-size: 0.82rem; color: var(--ink-soft);
  margin: 4px auto 24px; max-width: 460px;
}

/* Rapport */
.insight { margin: 0 0 26px; }
.insight h3 { color: var(--accent-dark); }

.locked-area { position: relative; margin-top: 10px; }
.locked-list .insight { position: relative; }
.blurred { filter: blur(6px); user-select: none; pointer-events: none; opacity: 0.75; }

.paywall {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, rgba(251,249,244,0) 0%, var(--bg-card) 32%);
  padding: 40px 24px 10px;
  margin-top: -120px;
}
.paywall .price { font-size: 1.9rem; color: var(--accent-dark); margin: 6px 0 4px; }
.paywall .small { color: var(--ink-soft); font-size: 0.9rem; }

.signoff {
  font-style: italic;
  color: var(--accent-dark);
  text-align: right;
  font-size: 1.15rem;
  margin-top: 24px;
}

.spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 30px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }
.hidden { display: none !important; }

/* Fod */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 28px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  background: var(--bg-card);
}
.site-footer a { color: var(--ink-soft); margin: 0 10px; }

.demo-badge {
  display: inline-block;
  background: var(--gold);
  color: #4a3c14;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  font-family: -apple-system, system-ui, sans-serif;
}

@media (max-width: 560px) {
  h1 { font-size: 1.9rem; }
  .hero { padding: 44px 0 28px; }
  .card { padding: 22px; }
}
