/* =================================================================
   Goutly — landing page styles
   No external requests. System font stack (SF Pro Rounded on Apple
   devices) for display + numerals; system-ui for body.
   Light + dark via prefers-color-scheme.
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand — matched to the app's design-system tokens */
  --teal:        #0F6E56; /* brand/primary (light) */
  --teal-strong: #085041; /* teal 800, hover/press */
  --ink:         #1C1F1E; /* text/primary */
  --paper:       #F6F4EF; /* warm page bg (marketing) */
  --surface:     #FFFFFF;
  --amber:       #EF9F27; /* caution accent */
  --amber-text:  #854F0B; /* caution text */
  --amber-bg:    #FAEEDA;
  --flare:       #A32D2D; /* flare/pain — used sparingly */
  --muted:       #6B716E; /* text/secondary */
  --hairline:    #E7E9E7;

  /* Semantic */
  --bg:            var(--paper);
  --bg-alt:        #EFEDE6;
  --card:          var(--surface);
  --text:          var(--ink);
  --text-muted:    var(--muted);
  --border:        var(--hairline);
  --brand:         var(--teal);
  --brand-strong:  var(--teal-strong);
  --brand-tint:    #E1F5EE; /* brand/primary-bg */
  --nav-bg:        rgba(246, 244, 239, 0.82);

  --shadow-sm: 0 1px 2px rgba(27, 42, 41, 0.05), 0 2px 8px rgba(27, 42, 41, 0.05);
  --shadow-md: 0 8px 24px rgba(27, 42, 41, 0.08), 0 2px 6px rgba(27, 42, 41, 0.05);
  --shadow-lg: 0 30px 60px rgba(27, 42, 41, 0.14), 0 8px 20px rgba(27, 42, 41, 0.08);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;

  --font-display: ui-rounded, "SF Pro Rounded", "Baloo 2", "Nunito", "Quicksand", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #101413; /* bg/page dark */
    --bg-alt:       #171C1A;
    --card:         #191E1C; /* bg/surface dark */
    --card-raised:  #222826;
    --text:         #ECEEEC; /* text/primary dark */
    --text-muted:   #A6ADAA; /* text/secondary dark */
    --border:       #2C322F; /* border/hairline dark */
    --brand:        #5DCAA5; /* brand/primary dark */
    --brand-strong: #7CD8BB;
    --brand-tint:   #0F3D31; /* brand/primary-bg dark */
    --amber:        #EF9F27;
    --amber-text:   #EF9F27;
    --amber-bg:     #3A2A08;
    --flare:        #F09595;
    --nav-bg:       rgba(16, 20, 19, 0.82);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
    --shadow-lg: 0 30px 60px rgba(0,0,0,0.55), 0 8px 20px rgba(0,0,0,0.4);
  }
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.01em; margin: 0; font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* Focus + skip link */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--brand); color: #fff; padding: 10px 16px;
  border-radius: 10px; z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.wordmark__dot {
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brand), var(--brand-strong));
  box-shadow: 0 0 0 4px var(--brand-tint);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  color: var(--text-muted); font-weight: 600; font-size: 0.98rem;
  padding: 6px 2px; transition: color .2s ease;
}
.nav__links a:hover { color: var(--text); }

/* ---------- App Store badge (self-drawn, no CDN) ---------- */
.btn-appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 12px;
  min-height: 48px; border: 1px solid rgba(255,255,255,0.08);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  will-change: transform;
}
.btn-appstore:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-appstore:active { transform: translateY(0); }
.btn-appstore__logo { width: 24px; height: 24px; fill: #fff; flex: none; }
.btn-appstore__text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn-appstore__text small { font-size: 0.62rem; opacity: 0.82; font-weight: 500; letter-spacing: 0.01em; }
.btn-appstore__text strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.btn-appstore--sm { padding: 8px 14px; min-height: 44px; margin-left: 4px; }
.btn-appstore--sm .btn-appstore__logo { width: 20px; height: 20px; }
.btn-appstore--sm .btn-appstore__text strong { font-size: 1rem; }
@media (prefers-color-scheme: dark) {
  .btn-appstore { background: #EAF1EF; color: #0C1615; border-color: rgba(0,0,0,0.06); }
  .btn-appstore__logo { fill: #0C1615; }
}
.nav .btn-appstore--sm { display: none; }
@media (min-width: 720px) { .nav .btn-appstore--sm { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(30px, 5vw, 56px); }
.hero__inner {
  display: grid; grid-template-columns: 1fr; gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.05fr 0.95fr; } }

.tagline {
  display: inline-block; margin: 0 0 18px;
  font-family: var(--font-display); font-weight: 700;
  color: var(--brand); background: var(--brand-tint);
  padding: 6px 14px; border-radius: 999px; font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.hero__title {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.025em;
  max-width: 15ch;
}
.hero__sub {
  margin: 20px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--text-muted); max-width: 42ch;
}
.hero__cta { margin-top: 32px; }
.reassure {
  margin: 14px 0 0; font-size: 0.92rem; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.reassure::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); flex: none;
}
.reassure--center { justify-content: center; }

/* ---------- Device frame ---------- */
.device {
  --frame: #1B2A29;
  position: relative;
  background: var(--frame);
  border-radius: 44px;
  padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,0.06);
  width: 280px; max-width: 100%;
}
.device::before { /* dynamic island */
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 26px; background: #000; border-radius: 999px; z-index: 3;
}
.device__screen {
  position: relative; overflow: hidden;
  border-radius: 34px; background: var(--bg-alt);
  aspect-ratio: 9 / 19.5;
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; }
.device--hero { width: clamp(260px, 34vw, 330px); }
.device--sm { width: 200px; }
.hero__visual { display: flex; justify-content: center; }

/* ---------- Hero live mockup (Today screen) ---------- */
.mock {
  padding: 44px 16px 18px;
  background:
    radial-gradient(120% 60% at 50% -10%, var(--brand-tint), transparent 60%),
    var(--bg-alt);
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--font-body);
}
.mock__statusbar {
  position: absolute; top: 16px; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 26px;
  font-size: 0.72rem; font-weight: 600; color: var(--text);
}
.mock__signal { width: 22px; height: 10px; border-radius: 2px; background: var(--text); opacity: .35; }
.mock__head { margin: 2px 4px 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mock__eyebrow { margin: 0; font-size: 0.7rem; color: var(--text-muted); font-weight: 600; }
.mock__title { font-size: 1.5rem; font-family: var(--font-display); font-weight: 800; margin: 0; }
.mock__streak {
  font-size: 0.62rem; font-weight: 700; color: var(--brand);
  background: var(--brand-tint); padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.mock__meta--good { color: var(--brand); }
.mock__card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px; box-shadow: var(--shadow-sm);
}
.mock__card--done { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.mock__check {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--brand); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 0.9rem;
}
.mock__pill {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  border: 2px dashed var(--amber);
}
.mock__med { margin: 0; font-weight: 700; font-size: 0.82rem; }
.mock__med em { color: var(--text-muted); font-style: normal; font-weight: 500; }
.mock__meta { margin: 1px 0 0; font-size: 0.7rem; color: var(--text-muted); }
.mock__chartcard {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px; box-shadow: var(--shadow-sm);
}
.mock__chartlabel { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.mock__chartlabel > span:first-child { font-size: 0.74rem; color: var(--text-muted); font-weight: 600; }
.mock__now { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--brand); }
.mock__now small { font-size: 0.62rem; color: var(--text-muted); font-weight: 600; }
.mock__caption { margin: 6px 0 0; font-size: 0.68rem; color: var(--text-muted); }

/* Signature animated chart */
.chart { width: 100%; height: auto; overflow: visible; }
.chart__target { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .8; }
.chart__targettext { fill: var(--amber); font-size: 8px; font-weight: 700; font-family: var(--font-display); }
.chart__area { fill: color-mix(in srgb, var(--brand) 14%, transparent); opacity: 0; }
.chart__line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 320; stroke-dashoffset: 320; }
.chart__dot { fill: var(--brand); opacity: 0; }
.chart__dot--now { fill: var(--brand); stroke: var(--card); stroke-width: 2; }

.is-ready .chart__line { animation: draw 1.6s cubic-bezier(.6,.05,.2,1) forwards; }
.is-ready .chart__area { animation: fadein .8s ease forwards .9s; }
.is-ready .chart__dot { animation: pop .3s ease forwards; }
.is-ready .chart__dot:nth-child(5)  { animation-delay: .5s; }
.is-ready .chart__dot:nth-child(6)  { animation-delay: .75s; }
.is-ready .chart__dot:nth-child(7)  { animation-delay: 1.0s; }
.is-ready .chart__dot:nth-child(8)  { animation-delay: 1.25s; }
.is-ready .chart__dot:nth-child(9)  { animation-delay: 1.5s; }
.is-ready .chart__dot:nth-child(10) { animation-delay: 1.75s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.chart__dot { transform-box: fill-box; transform-origin: center; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--ink); color: #EAF1EF;
}
@media (prefers-color-scheme: dark) { .trust { background: #08100F; } }
.trust__inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px;
  padding-block: 16px; font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.02em;
}
.trust__inner span:not([aria-hidden]) { color: #EAF1EF; }
.trust__inner [aria-hidden] { color: var(--brand); }

/* ---------- Section head ---------- */
.section-head { max-width: 34ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.eyebrow {
  margin: 0 0 12px; font-family: var(--font-display); font-weight: 700;
  color: var(--brand); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.eyebrow--flare { color: var(--flare); }

/* ---------- Features ---------- */
.features { padding-block: clamp(56px, 8vw, 100px); }
.feature {
  display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; margin-bottom: clamp(48px, 7vw, 96px);
}
.feature:last-child { margin-bottom: 0; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--reverse .feature__media { order: 2; }
}
.feature__media { display: flex; justify-content: center; }
.feature__copy h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 8px 0 12px; font-weight: 800; }
.feature__copy p { color: var(--text-muted); margin: 0; max-width: 46ch; }
.feature--flare .device { --frame: #241A18; }

/* Knowledge feature — coach card (mirrors the app's amber coach card) */
.knowledge { width: 320px; max-width: 100%; display: grid; gap: 16px; }
.knowledge__coach {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--amber-bg); border-left: 4px solid var(--amber);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.knowledge__icon { font-size: 1.4rem; line-height: 1; flex: none; }
.knowledge__kicker { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; color: var(--amber-text); font-size: 1.05rem; }
.knowledge__body { margin: 0; color: var(--amber-text); font-size: 0.98rem; }
.knowledge__src { margin: 10px 0 0; font-size: 0.78rem; color: var(--amber-text); opacity: 0.75; }
.knowledge__more { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.knowledge__more li {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 14px 18px; font-weight: 600; box-shadow: var(--shadow-sm);
  position: relative; padding-right: 40px;
}
.knowledge__more li::after {
  content: "↗"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--brand); font-weight: 700;
}

/* ---------- How it works ---------- */
.how { background: var(--bg-alt); padding-block: clamp(56px, 8vw, 100px); border-block: 1px solid var(--border); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm); position: relative;
}
.step__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 14px; background: var(--brand-tint); color: var(--brand);
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; margin: 0 0 8px; font-weight: 700; }
.step p { color: var(--text-muted); margin: 0; }

/* ---------- Privacy ---------- */
.privacy { padding-block: clamp(64px, 9vw, 120px); }
.privacy__inner { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 860px) { .privacy__inner { grid-template-columns: 1.1fr 0.9fr; } }
.shield { width: 60px; height: 60px; margin-bottom: 20px; }
.shield svg path { fill: var(--brand); }
.shield svg .shield__lock { fill: var(--card); }
.privacy h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; }
.privacy__lead { color: var(--text-muted); font-size: 1.1rem; margin: 18px 0 24px; max-width: 52ch; }
.privacy__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.privacy__list li { position: relative; padding-left: 32px; color: var(--text-muted); }
.privacy__list li strong { color: var(--text); font-weight: 700; }
.privacy__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand-tint);
  color: var(--brand); font-weight: 800; font-size: 0.75rem;
  display: grid; place-items: center;
}
.privacy__figure { position: relative; display: flex; justify-content: center; align-items: center; min-height: 260px; }
.privacy__glow {
  position: absolute; inset: 0; margin: auto; width: 78%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%);
  filter: blur(20px);
}
.privacy__badge {
  position: relative; text-align: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 36px 40px; box-shadow: var(--shadow-lg);
}
.privacy__lockmark { font-size: 2.6rem; display: block; margin-bottom: 10px; }
.privacy__badge p { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.privacy__badgesub { font-size: 1rem !important; color: var(--text-muted); font-weight: 600 !important; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg-alt); padding-block: clamp(56px, 8vw, 100px); border-block: 1px solid var(--border); }
.gallery__row {
  display: flex; gap: 24px; overflow-x: auto; padding: 8px 4px 20px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.gallery__row .device { flex: none; scroll-snap-align: center; }
@media (min-width: 1040px) { .gallery__row { justify-content: center; flex-wrap: wrap; overflow: visible; } }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(56px, 8vw, 100px); }
.faq__inner { max-width: 760px; margin-inline: auto; }
.faq .section-head { margin-inline: auto; text-align: center; max-width: none; }
.faq__list { display: grid; gap: 12px; }
.qa {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.qa summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg); transition: transform .25s ease; margin-top: -4px;
}
.qa[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.qa__body { padding: 0 24px 20px; }
.qa__body p { margin: 0; color: var(--text-muted); }

/* ---------- Final CTA ---------- */
.cta { padding-block: clamp(60px, 8vw, 110px); }
.cta__inner {
  text-align: center; max-width: 720px; margin-inline: auto;
  background: linear-gradient(160deg, var(--brand), var(--brand-strong));
  color: #fff; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
}
.cta__inner h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; color: #fff; }
.cta__inner > p { color: rgba(255,255,255,0.9); margin: 14px 0 28px; font-size: 1.1rem; }
.cta__inner .reassure { color: rgba(255,255,255,0.9); }
.cta__inner .reassure::before { background: #fff; }
.btn-appstore--light { background: #fff; color: var(--ink); border-color: transparent; }
.btn-appstore--light .btn-appstore__logo { fill: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #C7D3D1; padding-block: 48px 40px; }
@media (prefers-color-scheme: dark) { .footer { background: #08100F; } }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; }
.footer .wordmark { color: #fff; }
.footer__tag { margin: 8px 0 0; color: #8FA09D; font-size: 0.9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__links a { color: #C7D3D1; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; transition: color .2s ease; }
.footer__links a:hover { color: #fff; }
.footer__legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.disclaimer { font-size: 0.85rem; color: #8FA09D; max-width: 70ch; margin: 0 0 8px; }
.copyright { font-size: 0.85rem; color: #7A8B88; margin: 0; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .chart__line { stroke-dashoffset: 0; }
  .chart__area, .chart__dot { opacity: 1; }
}

/* =============================================================== */
/* LEGAL PAGES (privacy / terms / support)                         */
/* =============================================================== */
.legal { padding: clamp(96px, 12vh, 140px) 0 80px; }
.legal__inner { max-width: 760px; margin-inline: auto; }
.legal__head { padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.legal__head h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; margin: 8px 0 0; }
.legal__meta { margin: 18px 0 0; color: var(--text-muted); font-size: 0.92rem; }
.legal__meta strong { color: var(--text); font-weight: 600; }
.legal__lead { margin: 20px 0 0; font-size: 1.12rem; line-height: 1.6; color: var(--text); }

.legal__toc { margin: 0 0 44px; padding: 20px 22px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-md); }
.legal__toc p { margin: 0 0 10px; font-weight: 700; font-size: 0.85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.legal__toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.legal__toc li { margin: 4px 0; break-inside: avoid; }
.legal__toc a { color: var(--brand-strong); font-weight: 500; }
.legal__toc a:hover { text-decoration: underline; }

.legal__body h2 { font-size: 1.35rem; margin: 48px 0 12px; scroll-margin-top: 90px; }
.legal__body h2 .legal__num { color: var(--brand); font-variant-numeric: tabular-nums; margin-right: .5em; }
.legal__body h3 { font-size: 1.08rem; margin: 28px 0 10px; }
.legal__body p { margin: 0 0 16px; line-height: 1.7; color: var(--text); }
.legal__body ul, .legal__body ol { margin: 0 0 16px; padding-left: 1.4em; }
.legal__body li { margin: 8px 0; line-height: 1.65; }
.legal__body a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 2px; }
.legal__body strong { font-weight: 650; }

.legal__callout { margin: 24px 0; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--amber); background: var(--amber-bg); }
.legal__callout p { margin: 0; color: var(--amber-text); }
.legal__callout strong { color: var(--amber-text); }

.legal__contactcard { margin: 28px 0; padding: 22px 24px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); }
.legal__contactcard p { margin: 0 0 6px; }
.legal__contactcard a { font-weight: 650; }

.legal__backhome { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--text-muted); font-weight: 600; font-size: 0.92rem; }
.legal__backhome:hover { color: var(--brand-strong); }

@media (max-width: 560px) {
  .legal__toc ol { columns: 1; }
}
