/* NEURO – neuro.jegerlars.dk */

:root {
  --paper: #f2f3ee;
  --ink: #1e2433;
  --muted: #5f6573;
  --line: #cfd3cb;
  --focus: #3c6fd1;

  --glad: #3f9a5b;
  --rolig: #2a9d9a;
  --traet: #8a8f94;
  --ked: #3c6fd1;
  --urolig: #e0872a;
  --vred: #d4453c;
  --sleep: #5a5fc4;

  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", -apple-system, system-ui, sans-serif;
  --measure: 40em;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171a22;
    --ink: #e9ebe4;
    --muted: #9aa0ab;
    --line: #353b48;
    --focus: #7ea3f0;
    --glad: #5cb877;
    --rolig: #43b8b4;
    --traet: #9298a0;
    --ked: #6f97ea;
    --urolig: #eda04f;
    --vred: #e6605a;
    --sleep: #8489e0;
  }
}
:root[data-theme="dark"] {
  --paper: #171a22;
  --ink: #e9ebe4;
  --muted: #9aa0ab;
  --line: #353b48;
  --focus: #7ea3f0;
  --glad: #5cb877;
  --rolig: #43b8b4;
  --traet: #9298a0;
  --ked: #6f97ea;
  --urolig: #eda04f;
  --vred: #e6605a;
  --sleep: #8489e0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

svg { display: block; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Top */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .06em;
  text-decoration: none;
}
.brand svg { width: 26px; height: 26px; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
@media (max-width: 479px) { .top nav .wide { display: none; } }

/* Hero */
.hero {
  padding: 40px 0 56px;
}
.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: start;
}
h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 20px;
  max-width: 12em;
}
.lead {
  font-size: clamp(18px, 2.3vw, 21px);
  line-height: 1.5;
  max-width: 28em;
  margin: 0 0 18px;
}
.lead + p { max-width: var(--measure); color: var(--muted); margin: 0; }

.status {
  display: inline-block;
  margin-top: 28px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* Timeline illustration */
.timeline {
  width: min(100%, 420px);
  margin: 0 auto;
}
.timeline svg {
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font);
  -webkit-mask-image: linear-gradient(#000 66%, transparent 98%);
  mask-image: linear-gradient(#000 66%, transparent 98%);
}
.timeline .t { font-size: 14px; fill: var(--muted); }
.timeline .e { font-size: 15px; fill: var(--ink); }
.timeline .e.m { font-weight: 700; }
.timeline .r { font-size: 15px; font-weight: 700; fill: var(--ink); }
.timeline .rail { fill: none; stroke-width: 7; stroke-linecap: round; }
.timeline .jog { fill: none; stroke: var(--line); stroke-width: 1.5; }
.timeline .dot { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.timeline figcaption {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: -6px;
}

/* Sections */
section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
section > .wrap > * { max-width: var(--measure); }
h2 {
  font-size: clamp(24px, 3.4vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 16px;
}
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* Steps: a definition list, term bold on one line */
.steps { margin: 24px 0 0; }
.steps dt { font-weight: 700; margin-top: 18px; }
.steps dd { margin: 4px 0 0; color: var(--muted); }
.steps dt:first-child { margin-top: 0; }

/* Plain lists */
ul.plain { padding: 0; margin: 16px 0 0; list-style: none; }
ul.plain li { position: relative; padding-left: 22px; margin: 10px 0; }
ul.plain li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

/* Compass/method chips: the kinds you can log */
.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.kinds li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
}
.kinds i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c, var(--ink));
}

/* Mood scale: six colors in a row, the app's language */
.moods {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  max-width: 34em;
}
.moods li { font-size: 13px; color: var(--muted); }
.moods li::before {
  content: "";
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--c);
  margin-bottom: 6px;
}

/* Sharing flow: four short steps in the department */
.flow {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  max-width: none;
}
.flow li {
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}
.flow b { display: block; margin-bottom: 4px; }
.flow span { color: var(--muted); font-size: 16px; }

/* Price */
.price {
  display: grid;
  gap: 24px;
  margin: 24px 0 0;
  max-width: none;
}
.price > div {
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}
.price b { display: block; font-size: 15px; color: var(--muted); font-weight: 400; }
.price strong { display: block; font-size: 28px; font-weight: 700; margin: 2px 0 6px; }
.price p { color: var(--muted); font-size: 16px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 15px;
  color: var(--muted);
}
footer p { margin: 0 0 10px; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; }

/* Privacy page */
.doc { padding: 24px 0 64px; }
.doc > .wrap > * { max-width: var(--measure); }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.doc .date { color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; }
.back { display: inline-block; margin-top: 40px; }

/* Wider screens */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .hero { padding: 56px 0 72px; }
  .hero .wrap {
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
  }
  .timeline { margin: 0 0 0 auto; }
  section { padding: 64px 0; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 24px 40px; }
  .price { grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 34em; }
}

/* Klokkeslæt i illustrationen: uden fontens stregede nul. */
.hero svg .t { font-family: system-ui, -apple-system, sans-serif; }
