/* ============================================================
   TokenAnon — calm wellness clinic parody
   ============================================================ */

:root {
  /* warm neutral surfaces */
  --bg:        oklch(0.984 0.006 95);
  --surface:   oklch(0.995 0.004 95);
  --surface-2: oklch(0.965 0.008 95);
  --surface-3: oklch(0.945 0.010 90);

  /* ink */
  --ink:    oklch(0.30 0.012 75);
  --muted:  oklch(0.50 0.012 75);
  --faint:  oklch(0.66 0.010 80);
  --line:   oklch(0.90 0.008 90);
  --line-2: oklch(0.84 0.010 90);

  /* sage — primary calm accent */
  --sage:       oklch(0.58 0.045 155);
  --sage-deep:  oklch(0.44 0.045 155);
  --sage-soft:  oklch(0.93 0.020 155);
  --sage-tint:  oklch(0.965 0.013 155);

  /* clay — gentle warning / crisis */
  --clay:      oklch(0.60 0.075 45);
  --clay-deep: oklch(0.48 0.075 45);
  --clay-soft: oklch(0.94 0.022 55);

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px oklch(0.4 0.02 75 / 0.05), 0 2px 6px oklch(0.4 0.02 75 / 0.04);
  --shadow-md: 0 2px 6px oklch(0.4 0.02 75 / 0.06), 0 12px 30px oklch(0.4 0.02 75 / 0.07);
  --shadow-lg: 0 4px 12px oklch(0.4 0.02 75 / 0.07), 0 30px 60px oklch(0.4 0.02 75 / 0.10);

  --serif: "Newsreader", Georgia, serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "Newsreader", ui-monospace, monospace;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 460;
  letter-spacing: -0.011em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--sage-soft); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

.screen { animation: fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
}

/* ---------- shared atoms ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--sage);
  display: inline-block;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans);
  font-size: 15.5px; font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--sage-deep); color: oklch(0.99 0.01 155);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--sage); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--sage); color: var(--sage-deep); }
.btn-clay { background: var(--clay-deep); color: oklch(0.99 0.01 55); box-shadow: var(--shadow-sm); }
.btn-clay:hover { background: var(--clay); box-shadow: var(--shadow-md); }
.btn-lg { font-size: 16.5px; padding: 16px 30px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px;
  background: var(--sage-tint); color: var(--sage-deep);
  border: 1px solid var(--sage-soft);
}

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.984 0.006 95 / 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  height: 70px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--sage-deep);
  display: grid; place-items: center;
  color: oklch(0.99 0.01 155);
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  position: relative; overflow: hidden;
}
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.brand-name b { font-weight: 600; }

.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-link {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.active { color: var(--sage-deep); background: var(--sage-tint); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.token-meter {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  cursor: pointer; transition: border-color 0.2s ease;
}
.token-meter:hover { border-color: var(--clay); }
.token-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
.token-dot.low { background: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); animation-duration: 1.1s; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }
.token-meter .tm-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.token-meter .tm-num { font-family: var(--mono); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
.token-meter .tm-num.low { color: var(--clay-deep); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 96px; background: var(--surface-2); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 32px 40px; }
.footer-disclaimer {
  font-size: 13px; line-height: 1.7; color: var(--faint);
  border-top: 1px solid var(--line); margin-top: 36px; padding-top: 24px;
  max-width: 720px;
}

/* ---------- hero ---------- */
.hero { padding: 90px 0 70px; position: relative; }
.hero h1 {
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 1.02; letter-spacing: -0.025em; font-weight: 420;
  margin: 22px 0 0;
}
.hero h1 em { font-style: italic; color: var(--sage-deep); }
.hero-sub { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 560px; margin: 26px 0 0; }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-note { font-size: 13.5px; color: var(--faint); margin-top: 20px; display: flex; align-items: center; gap: 8px; }

/* stat band */
.statband { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.statband .stat { background: var(--surface); padding: 30px 28px; }
.stat-num { font-family: var(--serif); font-size: 42px; line-height: 1; font-weight: 460; color: var(--sage-deep); letter-spacing: -0.02em; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* section heading */
.sec { padding: 84px 0 0; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; margin-top: 16px; }
.sec-head p { font-size: 18px; color: var(--muted); margin-top: 18px; }

/* symptom list */
.symptoms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.symptom {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.symptom:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.symptom-check {
  flex: none; width: 26px; height: 26px; border-radius: 7px;
  border: 1.5px solid var(--line-2); margin-top: 2px;
  display: grid; place-items: center; transition: all 0.2s ease;
  color: transparent; font-size: 15px;
}
.symptom.on .symptom-check { background: var(--sage-deep); border-color: var(--sage-deep); color: white; }
.symptom-text { font-size: 16px; line-height: 1.5; color: var(--ink); }
.symptom-tag { font-size: 12px; color: var(--faint); margin-top: 6px; font-family: var(--mono); font-style: italic; }

/* quiz */
.quiz-card { padding: 0; overflow: hidden; }
.quiz-progress { height: 4px; background: var(--surface-3); }
.quiz-progress-bar { height: 100%; background: var(--sage); transition: width 0.4s cubic-bezier(0.22,1,0.36,1); }
.quiz-body { padding: 48px 56px 40px; }
.quiz-step-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-deep); }
.quiz-q { font-family: var(--serif); font-size: 30px; line-height: 1.18; margin: 14px 0 32px; font-weight: 460; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-opt {
  text-align: left; display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 16.5px; color: var(--ink); transition: all 0.16s ease;
}
.quiz-opt:hover { border-color: var(--sage); background: var(--sage-tint); }
.quiz-opt.sel { border-color: var(--sage-deep); background: var(--sage-tint); box-shadow: inset 0 0 0 1px var(--sage-deep); }
.quiz-opt-key {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  display: grid; place-items: center; font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--muted);
  transition: all 0.16s ease;
}
.quiz-opt.sel .quiz-opt-key { background: var(--sage-deep); border-color: var(--sage-deep); color: white; }
.quiz-foot { display: flex; align-items: center; justify-content: space-between; padding: 22px 56px; border-top: 1px solid var(--line); background: var(--surface-2); }

/* result */
.result-meter { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 8px 0 0; }
.result-meter-fill { height: 100%; border-radius: 999px; transition: width 1s cubic-bezier(0.22,1,0.36,1); }
.result-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 8px; font-family: var(--mono); }

/* tools */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tool-card { padding: 30px 30px 28px; display: flex; flex-direction: column; }
.tool-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--sage-tint); border: 1px solid var(--sage-soft); display: grid; place-items: center; color: var(--sage-deep); margin-bottom: 18px; }
.tool-card h3 { font-size: 22px; margin-bottom: 8px; }
.tool-card p { font-size: 15px; color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--faint); font-weight: 400; }
.input, .select, .textarea {
  font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

.range { width: 100%; accent-color: var(--sage-deep); }

.readout {
  background: var(--sage-tint); border: 1px solid var(--sage-soft);
  border-radius: var(--radius); padding: 22px 24px; margin-top: 6px;
}
.readout-num { font-family: var(--serif); font-size: 38px; color: var(--sage-deep); line-height: 1; }
.readout-advice { font-size: 15px; color: var(--ink); margin-top: 14px; line-height: 1.6; font-style: italic; }

/* testimonials */
.testi-grid { columns: 3; column-gap: 20px; }
.testi {
  break-inside: avoid; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 24px;
}
.testi-quote { font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--ink); }
.testi-who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-family: var(--serif); font-size: 16px; color: var(--muted); flex: none; }
.testi-name { font-size: 14px; font-weight: 600; }
.testi-meta { font-size: 12.5px; color: var(--faint); }

/* counseling */
.counsel-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.counselor { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: all 0.16s ease; }
.counselor:hover { border-color: var(--sage); }
.counselor.sel { border-color: var(--sage-deep); background: var(--sage-tint); box-shadow: inset 0 0 0 1px var(--sage-deep); }
.counselor-avatar { width: 54px; height: 54px; border-radius: 13px; background: var(--surface-3); flex: none; display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: var(--muted); }
.counselor h4 { font-family: var(--sans); font-size: 15.5px; font-weight: 700; }
.counselor .role { font-size: 12.5px; color: var(--sage-deep); font-weight: 600; margin-top: 1px; }
.counselor .bio { font-size: 13.5px; color: var(--muted); margin-top: 7px; line-height: 1.5; }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-opt { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--muted); transition: all 0.16s ease; }
.seg-opt:hover { border-color: var(--sage); }
.seg-opt.sel { border-color: var(--sage-deep); background: var(--sage-deep); color: white; }

/* crisis */
.crisis { min-height: calc(100vh - 70px); background: linear-gradient(180deg, var(--clay-soft), var(--bg) 55%); }
.crisis-inner { max-width: 720px; margin: 0 auto; padding: 70px 32px 90px; text-align: center; }
.crisis h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.05; }
.crisis-counter { font-family: var(--mono); font-size: 92px; line-height: 1; color: var(--clay-deep); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin: 10px 0; }
.breath {
  width: 200px; height: 200px; border-radius: 50%; margin: 30px auto;
  background: radial-gradient(circle, var(--sage-soft), var(--sage-tint));
  border: 2px solid var(--sage);
  display: grid; place-items: center;
  font-size: 16px; font-weight: 600; color: var(--sage-deep);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.78); }
  45%, 55% { transform: scale(1.12); }
}
.crisis-steps { text-align: left; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.crisis-step { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.crisis-step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--clay-soft); color: var(--clay-deep); display: grid; place-items: center; font-weight: 700; font-size: 14px; font-family: var(--mono); }

/* generic grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  .symptoms, .tool-grid, .grid-2, .counsel-grid { grid-template-columns: 1fr; }
  .statband { grid-template-columns: 1fr; }
  .testi-grid { columns: 1; }
  .quiz-body { padding: 36px 28px 32px; }
  .quiz-foot { padding: 20px 28px; }
}
