/* =========================================================
   Dosari marketing site — design system
   Hand-written, zero-dependency. Mobile-first.
   Dose-state semantics mirror the app: green=given,
   amber=due, red=overdue. Brand = calm teal/blue.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --brand:        #0F766E;   /* calm teal */
  --brand-500:    #14B8A6;
  --brand-600:    #0D9488;
  --brand-700:    #0F766E;
  --brand-800:    #115E59;
  --brand-ink:    #042F2C;
  --brand-grad:   linear-gradient(135deg, #0D9488 0%, #0F766E 55%, #115E59 100%);
  --brand-tint:   #F0FDFA;

  /* Dose-state semantics (match the app) */
  --given:        #16A34A;   /* green  */
  --given-bg:     #DCFCE7;
  --due:          #D97706;   /* amber  */
  --due-bg:       #FEF3C7;
  --overdue:      #DC2626;   /* red    */
  --overdue-bg:   #FEE2E2;

  /* Neutrals */
  --ink:          #0F172A;   /* slate-900 */
  --body:         #334155;   /* slate-700 */
  --muted:        #64748B;   /* slate-500 */
  --line:         #E2E8F0;   /* slate-200 */
  --surface:      #F8FAFC;   /* slate-50  */
  --surface-2:    #F1F5F9;   /* slate-100 */
  --white:        #FFFFFF;

  /* Type scale (fluid) */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --h1: clamp(2.1rem, 5.2vw, 3.5rem);
  --h2: clamp(1.6rem, 3.6vw, 2.4rem);
  --h3: clamp(1.15rem, 2vw, 1.4rem);
  --lead: clamp(1.1rem, 2vw, 1.35rem);

  /* Spacing / radius / shadow */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 2px 6px rgba(15,23,42,.06);
  --shadow:    0 12px 34px -12px rgba(15,23,42,.18), 0 4px 12px -6px rgba(15,23,42,.08);
  --shadow-lg: 0 40px 80px -24px rgba(15,23,42,.30), 0 12px 32px -12px rgba(15,23,42,.18);
  --shadow-brand: 0 10px 24px -8px rgba(13,148,136,.45);
  --ring: 0 0 0 1px rgba(15,23,42,.04);

  --container: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 700; letter-spacing: -0.01em; }
p { color: var(--body); }
strong { color: var(--ink); font-weight: 700; }

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--brand-700); color: #fff; padding: 10px 16px;
  border-radius: 8px; transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tint { background: var(--surface); }
.section__head { max-width: 720px; margin: 0 auto clamp(28px, 5vw, 48px); text-align: center; }
.section__head p { font-size: var(--lead); color: var(--muted); margin-top: 14px; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--brand-700); margin-bottom: 14px;
  background: linear-gradient(135deg, #F0FDFA, #CCFBF1);
  border: 1px solid #99F6E4; border-radius: 999px; padding: 6px 14px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-600); flex: none;
}
.section__head .eyebrow { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px; border-radius: 999px;
  font-size: 1.05rem; font-weight: 700; cursor: pointer; letter-spacing: -0.01em;
  border: 2px solid transparent;
  transition: transform .18s var(--ease), background .18s ease, box-shadow .25s var(--ease), border-color .15s ease;
  text-align: center; will-change: transform;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0) scale(.99); }
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { box-shadow: 0 14px 30px -8px rgba(13,148,136,.55); transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--brand-800); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--brand-500); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--block { width: 100%; }

/* App Store badge (inline SVG-styled) */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border-radius: 12px; padding: 10px 18px;
  min-height: 56px; font-weight: 600;
}
.appstore-badge:hover { text-decoration: none; opacity: .92; }
.appstore-badge svg { fill: #fff; width: 26px; height: 26px; }
.appstore-badge .small { display: block; font-size: .7rem; font-weight: 500; opacity: .9; line-height: 1; }
.appstore-badge .big { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.1; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226,232,240,.8);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -16px rgba(15,23,42,.4); background: rgba(255,255,255,.86); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--brand-grad);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.05rem;
  box-shadow: var(--shadow-brand);
}
.nav__links { display: none; align-items: center; gap: 26px; }
.nav__links a { color: var(--body); font-weight: 600; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang-toggle { display: inline-flex; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 4px; }
.lang-toggle a { padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.lang-toggle a:hover { text-decoration: none; }
.lang-toggle a[aria-current="true"] { background: #fff; color: var(--brand-800); box-shadow: var(--shadow-sm); }
.nav__cta { display: none; }
.nav__toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav__toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.nav__menu { display: none; }
.nav__menu[data-open="true"] { display: block; border-top: 1px solid var(--line); padding-block: 12px; }
.nav__menu a { display: block; padding: 12px 4px; font-weight: 600; color: var(--ink); }

@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 7vw, 92px);
  background:
    radial-gradient(1200px 520px at 82% -12%, #D9FBF5 0%, transparent 56%),
    radial-gradient(900px 520px at -5% 0%, #ECFDF8 0%, transparent 52%),
    linear-gradient(180deg, #FBFEFE 0%, #FFFFFF 100%);
}
/* soft floating accent orbs */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
  filter: blur(60px); opacity: .55;
}
.hero::before { width: 360px; height: 360px; top: -120px; right: -80px; background: radial-gradient(circle, #5EEAD4, transparent 70%); }
.hero::after  { width: 300px; height: 300px; bottom: -120px; left: -90px; background: radial-gradient(circle, #99F6E4, transparent 70%); }
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__title { font-size: var(--h1); }
.hero__sub { font-size: var(--lead); color: var(--body); margin-top: 18px; max-width: 40ch; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__trust { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.hero__trust strong { color: var(--given); }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* ---------- Phone mockup (pure CSS/HTML, no image weight) ---------- */
.phone-wrap { position: relative; display: grid; place-items: center; }
/* ambient glow behind the device */
.phone-wrap::before {
  content: ""; position: absolute; width: 78%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,.28), transparent 70%);
  filter: blur(50px); z-index: 0;
}
.phone {
  position: relative; z-index: 1; width: min(300px, 80vw); aspect-ratio: 300 / 620;
  background: linear-gradient(160deg, #161E2E, #0B1220); border-radius: 46px; padding: 13px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.04);
  border: 1px solid #232E42;
  animation: phone-float 6s var(--ease) infinite;
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.phone__notch {
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 26px; background: #0B1220; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone__screen {
  position: relative; height: 100%; background: var(--surface); border-radius: 34px;
  overflow: hidden; display: flex; flex-direction: column;
}
/* iOS home indicator */
.phone__screen::after {
  content: ""; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 5px; border-radius: 999px; background: rgba(15,23,42,.22); z-index: 4;
}
.screen__bar { padding: 26px 18px 10px; background: #fff; }
.screen__bar .who { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.screen__bar .sub { color: var(--muted); font-size: .82rem; }
.screen__body { padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }

.dose-card {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 8px -4px rgba(15,23,42,.12);
}
.dose-card .pill { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 1.1rem; }
.dose-card .meta { flex: 1; min-width: 0; }
.dose-card .meta .name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.dose-card .meta .time { font-size: .78rem; color: var(--muted); }
.dose-card .tag { font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }

.dose-card.is-given   { border-left-color: var(--given); }
.dose-card.is-given .pill { background: var(--given-bg); }
.dose-card.is-given .tag  { background: var(--given-bg); color: #166534; }
.dose-card.is-due     { border-left-color: var(--due); }
.dose-card.is-due .pill { background: var(--due-bg); }
.dose-card.is-due .tag  { background: var(--due-bg); color: #92400E; }
.dose-card.is-overdue { border-left-color: var(--overdue); }
.dose-card.is-overdue .pill { background: var(--overdue-bg); }
.dose-card.is-overdue .tag  { background: var(--overdue-bg); color: #991B1B; }

.give-btn {
  margin: 12px 12px 20px; background: linear-gradient(135deg, #22C55E, var(--given)); color: #fff; border: none;
  border-radius: 16px; padding: 16px; font-weight: 800; font-size: 1.05rem; text-align: center;
  box-shadow: 0 10px 22px -6px rgba(22,163,74,.55);
}
/* "Already given" flipped state shown in feature section */
.give-btn.is-locked { background: #fff; color: #166534; border: 2px solid var(--given); box-shadow: none; }
.give-btn .small { display: block; font-weight: 600; font-size: .8rem; opacity: .95; margin-top: 2px; }

/* ---------- Problem section ---------- */
.problem-quote {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 700; color: var(--ink);
  line-height: 1.35; max-width: 24ch; border-left: 4px solid var(--brand-600); padding-left: 20px;
}
.pain-grid { display: grid; gap: 16px; margin-top: 36px; }
.pain {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s ease;
}
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CBD5E1; }
.pain .q { font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.pain p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
@media (min-width: 760px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }

.status-quo { margin-top: 28px; text-align: center; color: var(--muted); font-size: 1.05rem; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 22px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s ease;
}
.step::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-grad);
  opacity: 0; transition: opacity .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #99F6E4; }
.step:hover::before { opacity: 1; }
.step .num {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-grad); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
  box-shadow: var(--shadow-brand);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Feature blocks ---------- */
.features { display: grid; gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #99F6E4; }
.feature .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #F0FDFA, #CCFBF1); margin-bottom: 18px;
  border: 1px solid #99F6E4;
}
.feature .ico svg { width: 26px; height: 26px; stroke: var(--brand-700); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* The hero/centerpiece feature: no-double-dose */
.feature--hero {
  grid-column: 1 / -1; display: grid; gap: 28px; align-items: center;
  background: linear-gradient(135deg, #ECFEFF, #F0FDFA); border-color: #99F6E4;
}
.feature--hero .ico { background: #fff; }
@media (min-width: 900px) { .feature--hero { grid-template-columns: 1.1fr .9fr; padding: 36px; } }
.feature--hero h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.feature--hero .demo { display: grid; place-items: center; }

/* ---------- Trust ---------- */
.trust-grid { display: grid; gap: 18px; }
.trust {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s ease;
}
.trust:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #BBF7D0; }
.trust .check { flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--given-bg); display: grid; place-items: center; }
.trust .check svg { width: 16px; height: 16px; stroke: var(--given); }
.trust h3 { font-size: 1.05rem; margin-bottom: 4px; }
.trust p { color: var(--muted); font-size: .95rem; }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

.disclaimer {
  margin-top: 28px; text-align: center; font-size: .95rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px;
}
.disclaimer strong { color: var(--ink); }

/* ---------- Audience tabs ---------- */
.tabs { max-width: 880px; margin-inline: auto; }
.tablist { display: inline-flex; gap: 6px; background: var(--surface-2); padding: 6px; border-radius: 999px; margin: 0 auto 28px; }
.tabs__wrap { display: flex; justify-content: center; }
.tab {
  border: none; background: transparent; cursor: pointer; padding: 10px 22px; border-radius: 999px;
  font-weight: 700; color: var(--muted); font-size: 1rem; min-height: 44px;
}
.tab[aria-selected="true"] { background: #fff; color: var(--brand-800); box-shadow: var(--shadow-sm); }
.tabpanel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.tabpanel[hidden] { display: none; }
.tabpanel h3 { margin-bottom: 10px; }
.tabpanel ul { margin: 14px 0 0; padding-left: 20px; color: var(--body); }
.tabpanel li { margin-bottom: 8px; }

/* ---------- Pricing ---------- */
.price-card {
  position: relative; max-width: 560px; margin-inline: auto; background: #fff;
  border: 1px solid var(--line); border-radius: 26px; padding: 40px 36px;
  box-shadow: var(--shadow-lg); text-align: center; overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--brand-grad);
}
.price-card .badge {
  display: inline-block; background: var(--given-bg); color: #166534; font-weight: 800;
  font-size: .8rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.price-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 8px 0 4px; }
.price {
  border: 2px solid var(--line); border-radius: 16px; padding: 18px 24px; min-width: 160px;
}
.price.is-best { border-color: var(--brand-600); position: relative; }
.price.is-best::after {
  content: "Best value"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand-700); color: #fff; font-size: .7rem; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.price .amount { font-size: 2rem; font-weight: 900; color: var(--ink); }
.price .per { color: var(--muted); font-size: .9rem; }
.price .note { color: var(--brand-700); font-size: .85rem; font-weight: 700; margin-top: 4px; }
.price-points { list-style: none; padding: 0; margin: 22px 0 0; text-align: left; display: grid; gap: 10px; }
.price-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--body); }
.price-points svg { flex: none; width: 20px; height: 20px; stroke: var(--given); margin-top: 3px; }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(94,234,212,.28), transparent 60%),
    radial-gradient(700px 360px at 90% 110%, rgba(20,184,166,.35), transparent 60%),
    linear-gradient(135deg, var(--brand-700), var(--brand-800));
}
.final-cta::before, .final-cta::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .25; pointer-events: none;
}
.final-cta::before { width: 320px; height: 320px; top: -120px; right: -60px; background: #5EEAD4; }
.final-cta::after  { width: 280px; height: 280px; bottom: -120px; left: -60px; background: #2DD4BF; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #D1FAE5; font-size: var(--lead); margin-top: 12px; }
.final-cta .inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin-inline: auto; }
.final-cta .hero__cta { justify-content: center; margin-top: 28px; }
.final-cta .btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.final-cta .btn--ghost:hover { background: rgba(255,255,255,.2); }

/* ---------- Waitlist form ---------- */
.waitlist { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
.waitlist input[type="email"] {
  flex: 1; min-width: 200px; min-height: 52px; padding: 12px 18px; font-size: 1.05rem;
  border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-family: inherit;
}
.waitlist input[type="email"]:focus { border-color: var(--brand-600); outline: none; }
.final-cta .waitlist { margin-inline: auto; }
.final-cta .waitlist input[type="email"] { border-color: transparent; }
.form-msg { margin-top: 12px; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-msg.is-error { color: var(--overdue); }
.form-msg.is-ok { color: var(--given); }
.final-cta .form-msg.is-ok { color: #BBF7D0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CBD5E1; padding-block: 56px; }
.footer-grid { display: grid; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand .logo { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); }
.site-footer p { color: #94A3B8; font-size: .95rem; margin-top: 12px; max-width: 40ch; }
.footer-cols { display: grid; gap: 28px; }
.footer-col h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer-col a { display: block; color: #CBD5E1; padding: 6px 0; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid #1E293B;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  color: #94A3B8; font-size: .9rem;
}
.footer-bottom .lang-toggle { background: #1E293B; }
.footer-bottom .lang-toggle a { color: #94A3B8; }
.footer-bottom .lang-toggle a[aria-current="true"] { background: #334155; color: #fff; box-shadow: none; }
@media (min-width: 760px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 2fr; } }

/* ---------- Legal / thin pages ---------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 64px); }
.page-hero .container { max-width: 820px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero .updated { color: var(--muted); margin-top: 10px; font-size: .95rem; }
.prose { max-width: 820px; margin-inline: auto; padding-block: clamp(36px, 6vw, 64px); }
.prose h2 { font-size: 1.4rem; margin-top: 36px; margin-bottom: 12px; }
.prose h3 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 600; text-decoration: underline; }
.callout {
  background: var(--due-bg); border: 1px solid #FCD34D; border-radius: var(--radius);
  padding: 18px 20px; margin: 24px 0; color: #78350F;
}
.callout strong { color: #78350F; }

/* FAQ accordion */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brand-700); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 16px 0; color: var(--body); }
.faq .answer p { margin-bottom: 12px; }

.contact-card {
  max-width: 560px; margin: 0 auto 40px; text-align: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.contact-card a { font-size: 1.2rem; font-weight: 700; }

/* ---------- Scroll-reveal (progressive enhancement) ----------
   Hidden state only applies when JS adds .has-anim to <html>, and
   JS only does that when the user hasn't requested reduced motion.
   With JS off, or reduced motion on, everything is visible by default. */
.has-anim [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.has-anim [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .phone { animation: none !important; }
}
