/* ============================================================
   WELLSPRING — Evidence-based vitality.
   Design system: porcelain & ink, hairline-ruled like a calm
   lab report, one iridescent accent. Built on the Aevum
   design language, re-tuned for a long-form health authority.
   Tokens are the single source of visual truth.
   ============================================================ */

:root {
  /* ---- palette (Aevum-derived) ---- */
  --porcelain: #F4F1EB;
  --porcelain-2: #EFEBE3;
  --ink: #10161A;
  --ink-soft: #1C252B;
  --muted: rgba(16, 22, 26, 0.62);     /* AA on porcelain */
  --muted-2: rgba(16, 22, 26, 0.60);   /* AA on porcelain (>=4.5:1) — fineprint, citations, footer */
  --hairline: rgba(16, 22, 26, 0.14);
  --hairline-strong: rgba(16, 22, 26, 0.34);
  --field-border: rgba(16, 22, 26, 0.58);   /* ~4:1 non-text contrast for form-field boundaries (headroom over 3:1) */
  --hl-light: rgba(244, 241, 235, 0.16);
  --muted-light: rgba(244, 241, 235, 0.66);
  --sage: #9DBBAD;
  --mist: #9FB6C9;
  --lilac: #C2B4D6;
  --grad: linear-gradient(90deg, #9DBBAD 0%, #9FB6C9 50%, #C2B4D6 100%);
  --grad-v: linear-gradient(180deg, #9DBBAD 0%, #9FB6C9 50%, #C2B4D6 100%);
  --whatsapp: #1FA855;

  /* ---- type ---- */
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --font-cjk-display: "Noto Serif SC", "Newsreader", serif;
  --font-cjk-body: "Noto Sans SC", "Inter", sans-serif;

  /* ---- scale ---- */
  --gutter: clamp(22px, 4.5vw, 64px);
  --nav-h: 70px;
  --maxw: 1320px;
  --readw: 660px;   /* ~74 char measure — comfortable long-form reading column */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
sup { line-height: 0; font-size: 0.7em; }
table { border-collapse: collapse; width: 100%; }
::selection { background: rgba(132, 156, 132, 0.32); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.panel :focus-visible, .footer :focus-visible { outline-color: var(--porcelain); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--ink); color: var(--porcelain); padding: 12px 18px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- base ---------- */
body {
  font-family: var(--font-body);
  font-weight: 350;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--porcelain);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='240'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.85'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%3Crect%20width='240'%20height='240'%20filter='url(%23n)'%20opacity='0.035'/%3E%3C/svg%3E");
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
:lang(zh) body, .lang-zh body, body.lang-zh { font-family: var(--font-cjk-body); }
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- type utilities ---------- */
.mono {
  font-family: var(--font-mono); font-weight: 400; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.it { font-style: italic; }
em { font-style: italic; }
/* CJK fonts have no true italic — never fake-slant Han glyphs; convey emphasis with weight instead */
body.lang-zh .it, body.lang-zh em, body.lang-zh .hero-title .it { font-style: normal; }
body.lang-zh em { font-weight: 600; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.18rem; color: var(--muted); font-weight: 400; line-height: 1.7; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.012em; line-height: 1.12; }
body.lang-zh h1, body.lang-zh h2, body.lang-zh h3, body.lang-zh h4 { font-family: var(--font-cjk-display); font-weight: 500; letter-spacing: 0; }
/* widow/orphan control: even heading line-lengths; no single-word last line in prose */
h1, h2, h3, h4, .hero-title, .cta-band h2, .topic-card h3, .faq summary { text-wrap: balance; }
.prose p, .lead, .hero-sub, .page-hero .sub, .answer p, .key-box li, .footer-disc, .cta-band p { text-wrap: pretty; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color .45s ease, backdrop-filter .45s ease, border-color .45s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(244, 241, 235, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-wordmark {
  font-family: var(--font-display); font-weight: 400; font-size: 1.32rem; letter-spacing: 0.16em;
  display: inline-flex; align-items: baseline; gap: 0.5em;
}
body.lang-zh .nav-wordmark { font-family: var(--font-cjk-display); letter-spacing: 0.08em; }
.nav-wordmark sup { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.14em; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav-links > a:not(.btn) {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink); position: relative; padding: 6px 0;
}
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: right center;
  transition: transform .4s cubic-bezier(.65,0,.35,1);
}
.nav-links > a:not(.btn):hover::after,
.nav-links > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }

/* language toggle */
.lang-toggle { display: inline-flex; align-items: center; border: 1px solid var(--hairline-strong); border-radius: 100px; overflow: hidden; }
.lang-toggle a {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; padding: 6px 11px; color: var(--muted);
  transition: background-color .3s, color .3s;
}
.lang-toggle a[aria-current="page"] { background: var(--ink); color: var(--porcelain); }

.nav-burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.nav-burger span { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); transition: transform .4s cubic-bezier(.65,0,.35,1), top .4s cubic-bezier(.65,0,.35,1); }
.nav-burger span:nth-child(1) { top: 18px; }
.nav-burger span:nth-child(2) { top: 25px; }
.nav-burger.open span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--porcelain);
  transform: translateY(-102%); visibility: hidden;
  transition: transform .6s cubic-bezier(.76,0,.24,1), visibility 0s linear .6s;
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter);
}
.mobile-menu.open { transform: translateY(0); visibility: visible; transition: transform .6s cubic-bezier(.76,0,.24,1), visibility 0s; }
.mobile-menu-links { display: flex; flex-direction: column; }
.mobile-menu-links a {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.1;
  padding: 16px 0; border-top: 1px solid var(--hairline);
}
body.lang-zh .mobile-menu-links a { font-family: var(--font-cjk-display); font-weight: 500; }
.mobile-menu-links a:last-child { border-bottom: 1px solid var(--hairline); }
.mobile-menu-foot { color: var(--muted); margin-top: 36px; font-size: 10.5px; }

/* ============================================================
   BUTTONS + WhatsApp
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 16px 28px; border: 1px solid transparent; transition: background-color .35s, color .35s, border-color .35s; white-space: nowrap;
}
body.lang-zh .btn { font-family: var(--font-cjk-body); letter-spacing: 0.04em; font-weight: 500; }
.btn-ink { background: var(--ink); color: var(--porcelain); }
.btn-ink:hover { background: var(--ink-soft); }
.btn-ghost { border-color: var(--hairline-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 19px 38px; }
.btn svg { width: 16px; height: 16px; }

/* floating WhatsApp — restrained, premium (ink pill, green glyph) */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px); z-index: 120;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--porcelain);
  padding: 13px 19px; border-radius: 100px; box-shadow: 0 12px 34px rgba(16,22,26,.28);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  transform: translateY(0); transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .35s, visibility 0s linear .35s; opacity: 0; visibility: hidden; pointer-events: none;
}
.wa-float.in { pointer-events: auto; }
body.lang-zh .wa-float { font-family: var(--font-cjk-body); letter-spacing: 0.03em; }
.wa-float.in { opacity: 1; visibility: visible; transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .35s, visibility 0s; }
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 19px; height: 19px; color: #4ade80; flex: none; }
.wa-float .wa-label { white-space: nowrap; }
@media (max-width: 540px) { .wa-float { padding: 14px 18px; } }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-rule {
  border-top: 1px solid var(--hairline); padding-top: 15px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-index { color: var(--ink); }
.section-note { color: var(--muted); font-size: 11px; }
.grad-rule { width: 72px; height: 1px; background: var(--grad); border: 0; margin: 0; }

/* ============================================================
   HERO — home (cinematic) + inner page hero
   ============================================================ */
.hero {
  position: relative; min-height: 88svh; display: flex; align-items: center; overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-grid {
  position: relative; z-index: 2; width: 100%; padding-top: 24px; padding-bottom: clamp(76px, 9vh, 120px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 64px); align-items: stretch;
}
.hero-art { position: relative; margin: 0; min-height: clamp(360px, 54vh, 540px); }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
  border-radius: 2px; display: block;
}
.hero-eyebrow { color: var(--muted); margin-bottom: 26px; display: inline-flex; align-items: center; gap: 14px; }
.hero-eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--grad); }
.hero-copy { max-width: 36rem; }
.hero-title { font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1.04; }
body.lang-zh .hero-title { line-height: 1.0; }   /* Han glyphs have no descenders — tighter lockup matches EN density */
.hero-title .line { display: block; }
.hero-sub { margin-top: clamp(24px, 3.2vw, 40px); max-width: 34em; font-size: 1.08rem; color: var(--muted); font-weight: 400; }
.hero-ctas { margin-top: clamp(28px, 3.2vw, 44px); display: flex; gap: 13px; flex-wrap: wrap; }
.hero-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; border-top: 1px solid var(--hairline); }
.hero-strip-inner { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; color: var(--muted); flex-wrap: wrap; }

/* inner page hero (lighter than home — porcelain, hairline, eyebrow) */
.page-hero { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(34px, 5vw, 56px); }
.page-hero-inner { max-width: 60rem; }
.page-eyebrow { color: var(--muted); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.page-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--grad); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
.page-hero .sub { margin-top: 22px; max-width: 38em; font-size: 1.12rem; color: var(--muted); font-weight: 400; }
.page-hero .byline { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; color: var(--muted); font-size: 13px; }
.page-hero .byline .mono { color: var(--ink); }
.page-hero .byline a { color: var(--ink); border-bottom: 1px solid var(--hairline-strong); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { padding-top: 16px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { color: var(--muted); transition: color .3s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 9px; color: var(--hairline-strong); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ============================================================
   DOC LAYOUT — sticky TOC rail + reading column
   ============================================================ */
.doc { display: grid; grid-template-columns: minmax(0,1fr) var(--readw) minmax(0,1fr); gap: 0; padding: clamp(32px,5vw,64px) 0 clamp(64px,9vw,120px); }
.doc > * { grid-column: 2; }
.toc-rail { grid-column: 1; }
.toc { position: sticky; top: calc(var(--nav-h) + 40px); padding-right: 40px; max-width: 280px; margin-left: auto; }
.toc-title { color: var(--muted); margin-bottom: 16px; }
.toc ul { display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; padding: 7px 0 7px 16px; border-left: 1px solid var(--hairline); font-size: 13.5px; line-height: 1.4; color: var(--muted); transition: color .3s, border-color .3s; }
.toc a:hover, .toc a.active { color: var(--ink); border-left-color: var(--ink); }
@media (max-width: 1080px) { .doc { display: block; max-width: var(--readw); margin: 0 auto; } .toc-rail { display: none; } }

/* ============================================================
   PROSE
   ============================================================ */
.prose { font-size: 1.075rem; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.1em; margin-bottom: .1em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.32rem; font-weight: 400; margin-top: 1.7em; margin-bottom: .1em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 0; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 9px; height: 1px; background: var(--hairline-strong); }
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 34px; counter-increment: li; }
.prose ol li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.prose a { color: var(--ink); border-bottom: 1px solid rgba(16,22,26,0.55); transition: border-color .3s; }
.prose a:hover { border-bottom-color: var(--ink); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose blockquote { border-left: 2px solid; border-image: var(--grad-v) 1; padding: 4px 0 4px 26px; margin: 1.6em 0; font-family: var(--font-display); font-style: italic; font-size: 1.28rem; line-height: 1.5; color: var(--ink); }
body.lang-zh .prose blockquote { font-family: var(--font-cjk-display); font-style: normal; }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; height: clamp(240px, 38vh, 420px); object-fit: cover; object-position: center; border-radius: 2px; display: block; }
.prose figcaption { margin-top: 12px; color: var(--muted); font-size: 10.5px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* answer-first box (the AEO lever) */
.answer {
  background: var(--porcelain-2); border: 1px solid var(--hairline);
  border-left: 2px solid; border-image: var(--grad-v) 1;
  padding: clamp(20px,2.4vw,28px) clamp(22px,2.6vw,32px); margin: 0 0 1.4em;
}
.answer .mono { color: var(--muted); display: block; margin-bottom: 10px; }
.answer p { font-size: 1.12rem; line-height: 1.62; color: var(--ink); margin: 0; }
.answer p + p { margin-top: .7em; }

/* key takeaways / TL;DR */
.key-box { border: 1px solid var(--hairline); padding: clamp(22px,2.6vw,30px); margin: 1.8em 0; background: rgba(255,255,255,.4); }
.key-box .mono { color: var(--muted); display: block; margin-bottom: 14px; }
.key-box ul { display: flex; flex-direction: column; gap: 11px; }
.key-box li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 1rem; }
.key-box li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--sage); font-family: var(--font-mono); }

/* inline stat callout */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin: 1.8em 0; }
.stat-cell { background: var(--porcelain); padding: 22px 20px; }
.stat-num { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem,3.6vw,2.8rem); line-height: 1; }
.stat-label { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.stat-cell cite { display: block; margin-top: 9px; font-style: normal; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; color: var(--muted-2); text-transform: uppercase; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq { border-top: 1px solid var(--hairline); margin-top: 1.4em; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--font-display); font-weight: 400; font-size: 1.22rem; line-height: 1.3; color: var(--ink); }
body.lang-zh .faq summary { font-family: var(--font-cjk-display); font-weight: 500; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-family: var(--font-mono); font-size: 20px; font-weight: 400; color: var(--muted); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 40px 24px 0; color: var(--ink-soft); }
.faq .faq-body > * + * { margin-top: .9em; }

/* ============================================================
   COMPARISON TABLE (most-cited format)
   ============================================================ */
.cmp-wrap { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--hairline); }
.cmp-table { min-width: 520px; font-size: 0.96rem; }
.cmp-table th, .cmp-table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.cmp-table thead th { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--porcelain-2); font-weight: 500; }
.cmp-table th[scope="row"] { font-weight: 600; color: var(--ink); white-space: normal; }
.cmp-table tbody tr:last-child td, .cmp-table tbody tr:last-child th { border-bottom: 0; }
.cmp-table td { color: var(--ink-soft); line-height: 1.55; }

/* ============================================================
   GLOSSARY
   ============================================================ */
.gloss-term { border-top: 1px solid var(--hairline); padding: 26px 0; }
.gloss-term h3 { font-size: 1.3rem; margin-bottom: 8px; }
.gloss-term .pron { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-left: 10px; }
.gloss-term p { color: var(--ink-soft); margin-bottom: 8px; }
.gloss-term .in-context { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   REFERENCES / citations
   ============================================================ */
.refs { margin-top: 2.4em; border-top: 1px solid var(--hairline); padding-top: 22px; }
.refs h2 { font-size: 1.1rem !important; font-family: var(--font-mono) !important; font-weight: 500 !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px !important; }
.refs ol { counter-reset: ref; display: flex; flex-direction: column; gap: 10px; }
.refs li { counter-increment: ref; position: relative; padding-left: 32px; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.refs li::before { content: "[" counter(ref) "]"; position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-size: 11px; color: var(--ink); }
.refs a { color: var(--ink); border-bottom: 1px solid var(--hairline); word-break: break-word; }

/* ============================================================
   CARD GRIDS — clusters / related / topic index
   ============================================================ */
/* hairline dividers are drawn as a 1px ring on each card (not a background-bleed), so a partial
   final row never leaves empty grey cells — card-less tracks simply show the page surface. */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px,1fr)); gap: 0; background: transparent; margin: clamp(28px,4vw,48px) 0; }
.topic-card { display: flex; flex-direction: column; gap: 12px; background: var(--porcelain); padding: clamp(24px,2.6vw,34px); box-shadow: 0 0 0 1px var(--hairline); transition: background-color .4s, box-shadow .4s; min-height: 200px; }
.topic-card:hover { background: var(--ink); }
.topic-card .mono { color: var(--muted); transition: color .4s; }
.topic-card h3 { font-size: 1.42rem; transition: color .4s; }
.topic-card p { color: var(--muted); font-size: 0.96rem; transition: color .4s; }
/* arrow always anchors to the card's bottom — uniform baseline whether or not a card has a description */
.topic-card .arrow { color: var(--muted); font-family: var(--font-mono); margin-top: auto; transition: color .4s, transform .4s; }
/* resources cluster label: a mono section eyebrow, not a heading — so it doesn't compete with the OVERVIEW card title below it */
.res-cluster { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: clamp(34px,4vw,58px); padding-top: 16px; border-top: 1px solid var(--hairline); }
body.lang-zh .res-cluster { font-family: var(--font-cjk-body); letter-spacing: 0.08em; }
.topic-card:hover h3, .topic-card:hover .arrow { color: var(--porcelain); }
.topic-card:hover .mono, .topic-card:hover p { color: var(--muted-light); }
.topic-card:hover .arrow { transform: translateX(5px); }

/* ============================================================
   DARK PANEL (reusable emphasis section)
   ============================================================ */
.panel { background: var(--ink); color: var(--porcelain); }
.panel .section-rule { border-top-color: var(--hl-light); }
.panel .section-index { color: var(--porcelain); }
.panel .section-note, .panel .lead { color: var(--muted-light); }
.panel h2 { color: var(--porcelain); }
.panel .topic-card { box-shadow: 0 0 0 1px var(--hl-light); }   /* light hairline dividers on dark cards */
.panel .topic-card h3 { min-height: 2.3em; }                    /* reserve 2 lines so card bodies share a top baseline */
.panel .topic-card p { margin-top: 18px; }

/* ============================================================
   DISCLOSURE / disclaimer banner
   ============================================================ */
.disclaimer { border: 1px solid var(--hairline); border-left: 2px solid var(--hairline-strong); background: rgba(255,255,255,.35); padding: 18px 22px; margin: 1.8em 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.disclaimer .mono { color: var(--ink); display: block; margin-bottom: 6px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { padding: clamp(90px,13vw,180px) 0; text-align: center; }
.cta-band .kicker { color: var(--muted); display: inline-block; padding-top: 18px; position: relative; margin-bottom: 28px; }
.cta-band .kicker::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 1px; background: var(--grad); }
.cta-band h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
.cta-band p { margin: 26px auto 0; max-width: 36em; color: var(--muted); font-weight: 400; }
.cta-band .cta-action { margin-top: 38px; display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.cta-band .fineprint { margin-top: 26px; color: var(--muted-2); font-size: 12px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-grid { display: grid; gap: 20px; max-width: 560px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field input, .field textarea, .field select { width: 100%; background: rgba(255,255,255,.55); border: 1px solid var(--field-border); padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--ink); border-radius: 0; transition: border-color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
.consent input { width: 24px; height: 24px; margin-top: 1px; flex: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--hairline); padding: clamp(48px,7vw,84px) 0 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.footer-wordmark { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem,7vw,5.4rem); line-height: 0.95; letter-spacing: 0.05em; }
body.lang-zh .footer-wordmark { font-family: var(--font-cjk-display); font-weight: 500; }
.footer-cols { display: flex; gap: clamp(28px,4vw,64px); flex-wrap: wrap; }
.footer-col h2 { font-family: var(--font-mono); font-weight: 500; font-size: 10px; line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; color: var(--ink-soft); font-size: 0.92rem; transition: color .3s; }
.footer-col a:hover { color: var(--ink); }
.footer-disc { margin-top: clamp(40px,5vw,68px); border-top: 1px solid var(--hairline); padding-top: 22px; color: var(--muted); font-size: 0.82rem; line-height: 1.6; max-width: 70ch; }
.footer-bottom { margin-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); }
.footer-bottom .mono { font-size: 8.5px; }

/* ============================================================
   REVEAL — canonical scroll-entrance (expo.out, y32, .7s, once)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
/* safety net: never leave content invisible if JS/observer fails (WhatsApp webview rule) */
.no-js .reveal, html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-art { display: none; }
  .hero-strip-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .prose { font-size: 1.02rem; }
}

/* ============================================================
   REVIEW FIXES (round 1)
   ============================================================ */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* mid-content inline CTA (calm, not a banner) */
.inline-cta { border:1px solid var(--hairline); border-left:2px solid; border-image:var(--grad-v) 1; background:var(--porcelain-2); padding:clamp(22px,2.6vw,30px); margin:2.2em 0; }
.inline-cta .mono { color:var(--muted); display:block; margin-bottom:10px; }
.inline-cta p:not(.mono) { font-size:1.05rem; color:var(--ink); margin:0 0 18px; line-height:1.6; }
.inline-cta .btn svg { width:16px; height:16px; }

/* contact form legibility if ever placed on a dark panel */
.panel .field label, .panel .consent, .panel .mono { color: var(--muted-light); }
.panel .field input, .panel .field textarea, .panel .field select { background: rgba(244,241,235,.10); border-color: var(--hl-light); color: var(--porcelain); }
.panel .field input::placeholder, .panel .field textarea::placeholder { color: rgba(244,241,235,.5); }
.panel .field input:focus, .panel .field textarea:focus { border-color: var(--porcelain); }
.panel .btn-ink { background: var(--porcelain); color: var(--ink); }

/* founders block (about page) — real people, circular avatars + short bios */
.prose .founders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 40px);
  margin: clamp(28px, 5vw, 44px) 0; padding: clamp(24px, 4vw, 34px) 0;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.prose .founder { margin: 0; display: flex; gap: 18px; align-items: flex-start; }
.prose .founder-avatar { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; box-shadow: 0 0 0 1px var(--hairline); background: var(--porcelain-2); }
.prose .founder figcaption { margin: 0; font-family: var(--font-body); text-transform: none; letter-spacing: normal; font-size: 1rem; color: var(--ink); }
.prose .founder-name { font-family: var(--font-display); font-size: 1.16rem; font-weight: 500; line-height: 1.2; margin: 2px 0 5px; }
.prose .founder-role { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 10.5px; color: var(--muted-2); margin: 0 0 9px; }
.prose .founder figcaption > p:last-child { font-size: 0.95rem; line-height: 1.6; color: var(--muted); margin: 0; }
.prose .founder figcaption a { white-space: nowrap; }
@media (max-width: 640px) { .prose .founders { grid-template-columns: 1fr; } }
.panel .btn-ink:hover { background: #fff; }

/* mobile menu: surface the CTA + language toggle (hidden on desktop) */
.mobile-menu-cta { display:none; }
.lang-toggle.mobile-lang { display:none; }
@media (max-width: 900px) {
  .mobile-menu-cta { display:inline-flex; width:fit-content; margin-top:30px; }
  .lang-toggle.mobile-lang { display:inline-flex; margin-top:22px; }
}

/* WhatsApp float keeps its label + WhatsApp-green glyph on phones (the dominant device) */
@media (max-width: 540px) {
  .wa-float .wa-label { display:inline; }
  .wa-float { padding:13px 18px; }
}

/* hero stat strip never collides with the hero CTAs on small screens */
@media (max-width: 640px) {
  .hero { min-height:auto; }
  .hero-grid { padding-top:20px; padding-bottom:92px; }
}

/* ============================================================
   REVIEW FIXES (round 2)
   ============================================================ */
/* mobile language-toggle tap targets >= WCAG 24px */
.lang-toggle.mobile-lang a { font-size:12px; padding:11px 18px; }

/* collapsible "On this page" jump-nav on phones (desktop TOC rail is hidden <=1080px) */
.toc-mobile { display:none; }
@media (max-width: 1080px) {
  .toc-mobile { display:block; border:1px solid var(--hairline); margin:0 0 30px; background:rgba(255,255,255,.4); }
  .toc-mobile summary { list-style:none; cursor:pointer; padding:14px 18px; color:var(--muted); position:relative; }
  .toc-mobile summary::-webkit-details-marker { display:none; }
  .toc-mobile summary::after { content:'+'; position:absolute; right:18px; font-family:var(--font-mono); font-size:16px; }
  .toc-mobile[open] summary::after { content:'–'; }
  .toc-mobile ul { padding:0 18px 16px; display:flex; flex-direction:column; gap:8px; }
  .toc-mobile a { color:var(--ink-soft); font-size:14px; line-height:1.4; border-left:1px solid var(--hairline); padding-left:14px; }
}

/* wide comparison tables break out of the reading column on desktop (capped to viewport, no page scroll) */
@media (min-width: 900px) {
  .prose .cmp-wrap { width: min(92vw, 960px); margin-left: 50%; transform: translateX(-50%); }
}

/* ============================================================
   PREMIUM REDESIGN ROUND (2026-06-19)
   Calmer, more confident magazine. Additive overrides only —
   later source order wins; nothing above is deleted.
   ============================================================ */

/* §01 premise: large display LEDE -> small support, breaks the text wall */
.premise-lede {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.22; letter-spacing: -.012em;
  max-width: 18ch;
}
body.lang-zh .premise-lede { font-family: var(--font-cjk-display); font-weight: 500; letter-spacing: 0; line-height: 1.4; max-width: 20ch; }
.premise-support {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; color: var(--ink-soft);
  max-width: 54ch; margin-top: clamp(20px, 2.4vw, 30px);
}
body.lang-zh .premise-support { line-height: 1.85; }

/* topic cards: warm second surface + calm lift (retire the black-flip hover) */
.topic-card {
  background: #FBF9F4; position: relative; overflow: hidden;
  transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s cubic-bezier(.16,1,.3,1), background-color .45s ease;
}
.topic-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.65,0,.35,1);
}
.topic-card:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(16,22,26,.30), 0 0 0 1px var(--hairline-strong); }
.topic-card:focus-visible { transform: translateY(-3px); }
.topic-card:hover::before, .topic-card:focus-visible::before { transform: scaleX(1); }
/* keep text legible on the now-light hover surface (overrides the old dark-flip inverts) */
.topic-card:hover h3 { color: var(--ink); }
.topic-card:hover .mono, .topic-card:hover p { color: var(--muted); }
.topic-card:hover .arrow { color: var(--ink); transform: translateX(5px); }
/* dark §03 panel cards keep their ink fill (set inline) but gain a calm lift */
.panel .topic-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.55); }

/* section rule gains a 72px iridescent lead-in tab that draws in on reveal */
.section-rule { position: relative; }
.section-rule::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 72px; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.section-rule.in::before { transform: scaleX(1); }

/* the dark §03 panel gets ONE whisper-quiet iridescent wash (the accent as material) */
.panel { position: relative; overflow: hidden; }
.panel::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw;
  background: radial-gradient(closest-side, rgba(194,180,214,.14), rgba(159,182,201,.07) 45%, transparent 72%);
  pointer-events: none;
}
.panel .container { position: relative; z-index: 1; }

/* ---- team band: "backed by healthcare professionals" credibility visual ---- */
.team-band { padding: clamp(34px, 4.5vw, 58px) 0; }
.team-band .section-rule { margin-bottom: clamp(18px, 2.4vw, 30px); }   /* compact eyebrow -> photo gap */
.team-band--prose { padding: 0; margin: clamp(30px, 4vw, 46px) 0; }
/* prose (About) variant stays within the reading column so it never overlaps the sticky TOC rail;
   height:auto shows the whole group at column width with no side-crop */
.team-band--prose .team-figure img { height: auto; object-position: center; }
.team-eyebrow { color: var(--muted); display: block; margin-bottom: 18px; }
.team-figure { margin: 0; position: relative; box-shadow: 0 0 0 1px var(--hairline); }
.team-figure img { width: 100%; height: auto; border-radius: 2px; display: block; }
.team-figure figcaption { margin-top: 14px; color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.team-claim { margin-top: clamp(18px, 2.6vw, 28px); max-width: 62ch; }
.team-claim h2, .team-headline { font-size: clamp(1.7rem, 3.4vw, 2.7rem); margin-top: 0; }
.team-headline { font-family: var(--font-display); font-weight: 300; line-height: 1.15; letter-spacing: -.012em; }
body.lang-zh .team-headline { font-family: var(--font-cjk-display); font-weight: 500; letter-spacing: 0; }
.team-claim .lead { margin-top: 18px; }
/* team photo shows in full (height:auto) at every width — no cover-crop, so the whole group is always visible */

/* couture heading tracking at the big clamps (CJK keeps 0) */
h1, .hero-title { letter-spacing: -.018em; }
.cta-band h2 { letter-spacing: -.014em; }
body.lang-zh h1, body.lang-zh .hero-title, body.lang-zh .cta-band h2 { letter-spacing: 0; }

/* gentle FAQ open animation */
@keyframes faqIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.faq details[open] .faq-body { animation: faqIn .45s cubic-bezier(.16,1,.3,1) both; }

/* floating Instagram pill: rise-and-fade entrance + icon micro-scale + visible focus ring */
.wa-float { transform: translateY(14px); }
.wa-float.in { transform: translateY(0); }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(16,22,26,.34); }
.wa-float:hover svg { transform: scale(1.08); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.wa-float:focus-visible { outline: 2px solid var(--porcelain); outline-offset: 3px; }

/* phones: show the hero image as a calm band under the copy (was display:none) */
@media (max-width: 900px) {
  .hero-art { display: block; min-height: 0; margin-top: 26px; }
  .hero-art img { height: clamp(200px, 44vw, 300px); object-position: center 58%; }
}
@media (max-width: 640px) {
  .hero-grid { padding-bottom: 104px; }   /* headroom so the hero image never collides with the strip */
}

/* reduced-motion: neutralise the JS-injected reveal stagger delays */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition-delay: 0 !important; }
}

/* §04 "The People" two-up — collapse to one column on phones (was an un-overridable inline 1fr 1fr) */
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 760px) { .people-grid { grid-template-columns: 1fr; } }

/* wide comparison tables: once the sticky "On this page" TOC rail appears (>1080px), the table must
   break out to the RIGHT only (left-aligned to the reading column) — the centered breakout used below
   1080px overlaps the TOC rail. */
@media (min-width: 1081px) {
  .prose .cmp-wrap { width: min(960px, 62vw); margin-left: 0; transform: none; }
}
