/* Clinic Dost — static site. No framework, no external requests. */

:root {
  --bg: #fbfaf7;
  --bg-alt: #f3f1eb;
  --surface: #ffffff;
  --text: #1c2321;
  --muted: #5b6662;
  --line: #e5e2da;
  --accent: #0f766e;
  --accent-strong: #0b5f58;
  --accent-soft: #e2f1ee;
  --on-accent: #ffffff;
  --warm: #b4690e;
  --warm-soft: #fbefdc;
  --danger: #b42318;
  --chat-bg: #efeae2;
  --bubble-in: #ffffff;
  --bubble-out: #d9f5d0;
  --alert: #fff4d6;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 28, .05);
  --shadow: 0 1px 2px rgba(20, 30, 28, .05), 0 12px 32px -8px rgba(20, 30, 28, .12);
  --shadow-lg: 0 2px 4px rgba(20, 30, 28, .04), 0 24px 60px -12px rgba(15, 80, 74, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1413;
    --bg-alt: #141b19;
    --surface: #19211f;
    --text: #e7ecea;
    --muted: #9aa7a3;
    --line: #26302d;
    --accent: #2bb3a3;
    --accent-strong: #5cc9bc;
    --accent-soft: #16302b;
    --on-accent: #06201d;
    --warm: #e0a84f;
    --warm-soft: #33291a;
    --danger: #f2877d;
    --chat-bg: #0b1210;
    --bubble-in: #1f2a27;
    --bubble-out: #11463d;
    --alert: #3a3218;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .45);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); letter-spacing: -.02em; }
h3 { font-size: 1.06rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
img { display: block; }
.muted { color: var(--muted); }

.sprite { position: absolute; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.sm { width: 16px; height: 16px; stroke-width: 2.2; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav .nav-login {
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 6px 14px;
  transition: background .15s, color .15s;
}
.nav .nav-login:hover { background: var(--accent); color: var(--on-accent); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 18px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-login { margin-top: 14px; text-align: center; padding: 10px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s var(--ease), box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-primary .icon { transition: transform .2s var(--ease); }
.btn-primary:hover .icon { transform: translateX(3px); }
.btn-ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
@media (max-width: 480px) { .hero .cta-row .btn { flex: 1 1 100%; } }

/* Hero */
.hero { position: relative; padding: 72px 0 128px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 85% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(40% 50% at 5% 90%, color-mix(in srgb, var(--warm) 10%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 35%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(60% 60% at 70% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(60% 60% at 70% 40%, #000, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600; font-size: .88rem; letter-spacing: .02em; margin-bottom: 16px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.accent { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .9rem; }
.pills li { display: inline-flex; align-items: center; gap: 6px; }
.pills .icon { color: var(--accent); }

.hero-copy > * { animation: rise .7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-visual { animation: rise .8s .15s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero { padding: 44px 0 104px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* Phone mock */
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 360px; }
.phone {
  width: 100%; max-width: 330px; margin-left: auto;
  background: var(--chat-bg); border: 1px solid var(--line); border-radius: 30px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .phone-top { background: #0f5d56; } }
.phone-top small { display: block; opacity: .85; font-size: .75rem; min-height: 1.2em; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .2);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.chat { list-style: none; margin: 0; padding: 16px 12px 96px; display: flex; flex-direction: column; gap: 8px; min-height: 540px; }
.msg {
  max-width: 86%; padding: 8px 11px; border-radius: 10px; font-size: .875rem; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}
.msg.in { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 2px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 2px; }
.msg.alert { background: var(--alert); }
.msg-buttons { display: flex; gap: 6px; margin-top: 8px; }
.msg-buttons span {
  flex: 1; text-align: center; padding: 5px; border-top: 1px solid var(--line);
  color: var(--accent); font-weight: 600; font-size: .82rem;
}
.chat.animate .msg { display: none; }
.chat.animate .msg.show { display: block; animation: pop .35s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.typing { align-self: flex-start; background: var(--bubble-in); border-radius: 10px; border-top-left-radius: 2px; padding: 11px 13px; display: flex; gap: 4px; animation: pop .25s var(--ease) both; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .5; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

/* Live status card */
.live-card {
  position: absolute; left: -36px; bottom: -64px; width: 210px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; box-shadow: var(--shadow-lg);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.live-card.waiting { opacity: 0; transform: translateY(12px); }
.live-head { display: flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.live-row { display: flex; justify-content: space-between; gap: 8px; }
.live-row small { display: block; font-size: .7rem; color: var(--muted); }
.live-row strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
#live-now.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: translateY(-3px); color: var(--accent); } }
.bar { height: 6px; border-radius: 6px; background: var(--accent-soft); margin: 10px 0 8px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .6s var(--ease); }
.live-foot { margin: 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) { .live-card { left: 0; } }
@media (max-width: 400px) { .live-card { width: 190px; } }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { text-align: center; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 48px; font-size: 1.05rem; }
@media (max-width: 600px) { .section { padding: 60px 0; } .section-lead { margin-bottom: 32px; } }

.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.features { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cards.features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .cards.three { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cards.features { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.icon-badge {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.icon-badge.warm { background: var(--warm-soft); color: var(--warm); }

/* Before / after */
.compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  margin-top: 40px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.compare h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.compare li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.compare .before h3, .compare .before .icon { color: var(--danger); }
.compare .before li { color: var(--muted); }
.compare .after h3, .compare .after .icon { color: var(--accent); }
.compare .after li { font-weight: 500; }
.compare-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
@media (max-width: 700px) {
  .compare { grid-template-columns: 1fr; padding: 22px; }
  .compare-arrow { transform: rotate(90deg); justify-self: center; }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps li { position: relative; }
.steps p { color: var(--muted); font-size: .95rem; }
.step-n {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 16px;
  box-shadow: 0 0 0 6px var(--bg-alt);
}
@media (min-width: 901px) {
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 20px; left: 52px; right: -16px; height: 2px;
    background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 45%, transparent) 0 6px, transparent 6px 12px);
  }
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Compounder split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split-copy h2 { margin-bottom: .4em; }
.ticks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--accent); margin-top: 4px; }
.try-hint { font-size: .9rem; color: var(--muted); }

.dash {
  justify-self: center; width: 100%; max-width: 360px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  padding: 18px; box-shadow: var(--shadow-lg);
}
.dash-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.dash-top small { color: var(--muted); }
.dash-banner {
  background: var(--warm-soft); color: var(--warm); font-size: .82rem; font-weight: 600;
  padding: 8px 10px; border-radius: 10px; margin-bottom: 12px; animation: pop .3s var(--ease);
}
.dash-serving { text-align: center; padding: 16px 12px; border-radius: 16px; background: var(--accent-soft); }
.dash-serving small { font-size: .78rem; }
.dash-num { font-size: 3.2rem; font-weight: 800; line-height: 1.05; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dash-num.bump { animation: numIn .4s var(--ease); }
@keyframes numIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dash-name { font-weight: 600; margin-bottom: 2px; }
.dash-next, .dash-btn {
  font: inherit; cursor: pointer; border-radius: 14px; border: 1px solid var(--line);
  transition: transform .12s var(--ease), background .15s, opacity .15s;
}
.dash-next:active, .dash-btn:active { transform: scale(.97); }
.dash-next {
  width: 100%; margin: 12px 0 10px; padding: 16px; font-size: 1.15rem; font-weight: 700;
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}
.dash-next:disabled { opacity: .45; cursor: not-allowed; }
.dash-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.dash-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; font-size: .85rem; font-weight: 600; background: var(--surface); color: var(--text); }
.dash-btn.warn { background: var(--warm-soft); color: var(--warm); border-color: transparent; }
.dash-btn.warn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.dash-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.dash-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: .88rem;
  animation: pop .3s var(--ease) both;
}
.dash-list b { font-variant-numeric: tabular-nums; margin-right: 8px; }
.dash-list small { color: var(--muted); }

/* NLU */
.nlu-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .nlu-grid { grid-template-columns: 1fr; } }

.nlu-demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.demo-label { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  font: inherit; font-size: .88rem; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); text-align: left;
  transition: border-color .15s, background .15s, transform .12s var(--ease);
}
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }

.pipeline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 0; border-top: 1px dashed var(--line); color: var(--muted); }
.stage {
  font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); transition: all .25s var(--ease);
}
.stage.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.stage.active.ai { border-color: var(--warm); color: var(--warm); background: var(--warm-soft); }
.stage.skipped { opacity: .4; text-decoration: line-through; }

.nlu-result { min-height: 190px; }
.nlu-msg { background: var(--bubble-out); padding: 10px 12px; border-radius: 10px; border-top-right-radius: 2px; display: inline-block; margin-bottom: 16px; font-size: .95rem; animation: pop .3s var(--ease); }
.nlu-fields { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .95rem; }
.nlu-fields dt { color: var(--muted); }
.nlu-fields dd { margin: 0; font-weight: 600; }
.nlu-fields > * { animation: rise .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 150ms); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.tag.rules { background: var(--accent-soft); color: var(--accent-strong); }
.tag.ai { background: var(--warm-soft); color: var(--warm); }

.layers { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.layers li { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--accent); }
.layers li + li { border-left-color: var(--warm); }
.layers span { color: var(--muted); font-size: .95rem; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 16px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stats dt { font-size: 1.7rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stats dd { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.fine { font-size: .82rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; transition: border-color .2s, box-shadow .2s; }
details[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow-sm); }
summary { cursor: pointer; padding: 17px 32px 17px 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-body { overflow: hidden; }
.faq-body p { color: var(--muted); padding-bottom: 18px; margin: 0; }
details[open] .faq-body { animation: open .3s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* CTA */
.cta { position: relative; background: linear-gradient(160deg, var(--accent-soft), var(--bg-alt)); overflow: hidden; }
.cta::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); pointer-events: none;
}
.cta .wrap { position: relative; }
.cta p { color: var(--muted); font-size: 1.05rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Scroll reveal (only when JS has marked the page ready) */
.js [data-reveal], .js [data-reveal-group] > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .25s, border-color .25s;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal-group].in > .card:hover { transform: translateY(-3px); transition-delay: 0s; }
.js [data-reveal].in, .js [data-reveal-group].in > * { opacity: 1; transform: none; }

/* Legal page */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { font-size: .9rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
