/* Shared styles for the landing (/, /da) and support (/support, /support/da)
   pages. Tend Design System tokens, same as the privacy pages. */
:root {
  --canvas: #F6F1E9;
  --surface: #FFFFFF;
  --espresso: #342E26;
  --ink: #241F19;
  --teal: #2E6F63;
  --teal-press: #245A50;
  --teal-tint: #DDEAE5;
  --muted: #8C7E6B;
  --secondary: #6B5F4F;
  --border: #E6DCCD;
  --pain: #C2772F;
  --pain-tint: #F5E6D6;
  --pain-ink: #8A4E17;
  --tingling: #8A75B0;
  --tingling-tint: #ECE7F4;
  --tingling-ink: #5C4A80;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --measure: 1080px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--espresso);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--teal); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding-inline: 24px; }

/* ---------- header ---------- */
header.top { padding-block: 22px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--espresso); }
.brand svg { width: 34px; height: 34px; display: block; }
.brand span { font-family: var(--font-serif); font-weight: 500; font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
nav.links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
nav.links a { color: var(--secondary); text-decoration: none; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--surface); }
nav.links .lang a, nav.links .lang span { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.lang span { background: var(--teal-tint); color: var(--teal-press); }

/* ---------- type ---------- */
h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(40px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -0.025em;
  color: var(--ink); margin: 0 0 24px; text-wrap: balance;
}
h1 em { font-style: italic; color: var(--teal); }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--secondary); max-width: 34ch; margin: 0 0 32px; text-wrap: pretty; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin: 0 0 12px; }
h2.sec { font-family: var(--font-serif); font-weight: 500; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 16px; max-width: 22ch; text-wrap: balance; }
.sec-lede { color: var(--secondary); max-width: 56ch; margin: 0 0 44px; }

/* ---------- landing: hero ---------- */
.hero { padding-block: 48px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.soon {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 16px; border-radius: 14px;
  background: var(--ink); color: var(--canvas); font-size: 15px; line-height: 1.25;
}
.soon svg { width: 22px; height: 22px; flex: none; }
.soon small { display: block; font-size: 12px; opacity: 0.7; letter-spacing: 0.02em; }
.soon b { font-weight: 600; font-size: 16px; }
.hero-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* the example diary day */
.diary {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 22px 22px 10px; box-shadow: 0 1px 2px rgba(38,30,20,0.05), 0 18px 40px -24px rgba(38,30,20,0.25);
}
.diary-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.diary-head h2 { font-family: var(--font-serif); font-weight: 500; font-size: 22px; margin: 0; color: var(--ink); }
.diary-head span { font-size: 13px; color: var(--muted); }
.diary ol { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-block: 14px; border-top: 1px solid var(--border); }
.entry:first-child { border-top: 0; }
.entry time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry .what { min-width: 0; }
.entry .what b { display: block; font-weight: 600; color: var(--ink); font-size: 16px; }
.entry .what span { font-size: 14px; color: var(--secondary); }
.sev { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.sev i { width: 8px; height: 8px; border-radius: 50%; }
.sev.pain { background: var(--pain-tint); color: var(--pain-ink); } .sev.pain i { background: var(--pain); }
.sev.ting { background: var(--tingling-tint); color: var(--tingling-ink); } .sev.ting i { background: var(--tingling); }
.sev.med { background: var(--teal-tint); color: var(--teal-press); } .sev.med i { background: var(--teal); }

/* ---------- landing: sections ---------- */
section.band { padding-block: 72px; border-top: 1px solid var(--border); }

/* how it works: the Thread mark stretched into a timeline */
.steps-wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.thread { position: absolute; left: 0; right: 0; top: 0; height: 64px; width: 100%; }
.step { position: relative; padding-top: 84px; }
.step::before { content: ""; position: absolute; left: 0; top: var(--y, 30px); width: 12px; height: 12px; border-radius: 50%; background: var(--dot, var(--teal)); box-shadow: 0 0 0 5px var(--canvas); }
.step h3 { font-size: 19px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.step p { margin: 0; color: var(--secondary); font-size: 16px; }
.step .n { font-family: var(--font-serif); font-style: italic; color: var(--muted); font-size: 15px; display: block; margin-bottom: 4px; }

.keep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.keep div { padding-block: 22px; border-top: 1px solid var(--border); min-width: 0; }
.keep h3 { font-family: var(--font-serif); font-weight: 500; font-size: 23px; color: var(--ink); margin: 0 0 6px; }
.keep p { margin: 0; color: var(--secondary); font-size: 16px; }

.wont { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wont li { padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 500; color: var(--secondary); text-decoration: line-through; text-decoration-color: var(--muted); text-decoration-thickness: 1px; }

/* privacy: the one teal block */
.privacy-band { background: var(--teal); color: #EAF2EF; border-top: 0; }
.privacy-band .eyebrow { color: #BFD9D1; }
.privacy-band h2.sec { color: #FFFFFF; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin: 0 0 36px; }
.facts div { min-width: 0; }
.facts dt { font-weight: 600; color: #FFFFFF; margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 16px; color: #CFE2DC; }
.privacy-band a { color: #FFFFFF; font-weight: 600; text-underline-offset: 3px; }
.privacy-band a:focus-visible { outline-color: #FFFFFF; }

/* ---------- support ---------- */
.support-hero { padding-block: 40px 24px; }
.support-hero .lede { max-width: 48ch; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; padding-block: 24px 80px; align-items: start; }
details { border-top: 1px solid var(--border); }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; list-style: none; padding-block: 18px; font-weight: 600; font-size: 18px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-serif); font-size: 24px; line-height: 1; color: var(--teal); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 20px; color: var(--secondary); max-width: 60ch; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; position: sticky; top: 24px; }
.contact-card h2 { font-family: var(--font-serif); font-weight: 500; font-size: 26px; margin: 0 0 8px; color: var(--ink); }
.contact-card p { color: var(--secondary); font-size: 16px; margin: 0 0 18px; }
.addr { display: block; padding: 12px 14px; border-radius: 12px; background: var(--canvas); font-weight: 600; color: var(--teal); text-decoration: none; overflow-wrap: anywhere; }
.addr:hover { background: var(--teal-tint); }

/* ---------- footer ---------- */
footer.bottom { padding-block: 36px 44px; font-size: 14px; color: var(--muted); }
footer.bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.bottom nav { display: flex; gap: 20px; }
footer.bottom a { color: var(--secondary); text-decoration: none; }
footer.bottom a:hover { color: var(--ink); }

/* ---------- narrow ---------- */
@media (max-width: 820px) {
  .hero .wrap, .support-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .thread { display: none; }
  .step { padding-top: 0; padding-left: 28px; padding-bottom: 26px; border-left: 2px solid var(--border); margin-left: 6px; }
  .step::before { left: -7px; top: 4px; box-shadow: none; }
  .keep, .facts { grid-template-columns: minmax(0, 1fr); }
  .contact-card { position: static; }
  nav.links { gap: 16px; }
}
@media (max-width: 460px) {
  .wrap { padding-inline: 18px; }
  nav.links .hide-sm { display: none; }
  .entry { grid-template-columns: 44px minmax(0, 1fr); }
  .entry .sev { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero .soon, .diary { animation: rise 700ms cubic-bezier(0.22,0.61,0.36,1) both; }
  .hero .lede { animation-delay: 80ms; } .hero .soon { animation-delay: 150ms; } .diary { animation-delay: 220ms; }
  @keyframes rise { from { opacity: 0.001; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
