/* ============================================================
   OffRamp — blog / editorial stylesheet
   Extends the app's DESIGN.md tokens exactly (mirrors index.html).
   Display: Fraunces (self-hosted variable woff2). Body: system SF Pro.
   Loaded by /blog/ index and every article page.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
}

:root {
  /* light — DESIGN.md */
  --bg:#FAFAF9; --surface:#FFFFFF; --surface-alt:#F4F4F2; --border:#E7E7E4;
  --text:#1A1A1D; --text-2:#6F6F73; --text-3:#A0A0A4;
  --accent:#0F6B45; --on-accent:#FFFFFF; --warn:#B45309; --danger:#B3261E;
  --mint-bg:#EDF3EF; --mint-fg:#0F6B45;
  --sand-bg:#F5EFE6; --sand-fg:#8A6A3B;
  --teal-bg:#E9F1F2; --teal-fg:#14586B;
  --clay-bg:#F5ECE8; --clay-fg:#A8503C;
  --shadow: 0 1px 2px rgba(26,26,29,.04), 0 4px 12px rgba(26,26,29,.06);
  --shadow-lg: 0 2px 4px rgba(26,26,29,.04), 0 18px 48px rgba(26,26,29,.10);
  --hairline: rgba(26,26,29,.07);

  --maxw:1120px; --readw:720px;
  --r-card:16px; --r-ctl:12px; --r-chip:999px;
  --ff-serif:"Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --ff-sans:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#0E0E10; --surface:#161618; --surface-alt:#1D1D20; --border:#2A2A2E;
    --text:#E9E9EC; --text-2:#9A9AA0; --text-3:#6B6B70;
    --accent:#34A77A; --on-accent:#0E0E10; --warn:#D97706; --danger:#E5484D;
    --mint-bg:#182019; --mint-fg:#34A77A;
    --sand-bg:#201D16; --sand-fg:#C6A579;
    --teal-bg:#152021; --teal-fg:#5FA7AE;
    --clay-bg:#201815; --clay-fg:#D08A77;
    --shadow:none; --shadow-lg:none;
    --hairline: rgba(255,255,255,.08);
  }
}
:root[data-theme="light"] {
  --bg:#FAFAF9; --surface:#FFFFFF; --surface-alt:#F4F4F2; --border:#E7E7E4;
  --text:#1A1A1D; --text-2:#6F6F73; --text-3:#A0A0A4;
  --accent:#0F6B45; --on-accent:#FFFFFF; --warn:#B45309; --danger:#B3261E;
  --mint-bg:#EDF3EF; --mint-fg:#0F6B45; --sand-bg:#F5EFE6; --sand-fg:#8A6A3B;
  --teal-bg:#E9F1F2; --teal-fg:#14586B; --clay-bg:#F5ECE8; --clay-fg:#A8503C;
  --shadow: 0 1px 2px rgba(26,26,29,.04), 0 4px 12px rgba(26,26,29,.06);
  --shadow-lg: 0 2px 4px rgba(26,26,29,.04), 0 18px 48px rgba(26,26,29,.10);
  --hairline: rgba(26,26,29,.07);
}
:root[data-theme="dark"] {
  --bg:#0E0E10; --surface:#161618; --surface-alt:#1D1D20; --border:#2A2A2E;
  --text:#E9E9EC; --text-2:#9A9AA0; --text-3:#6B6B70;
  --accent:#34A77A; --on-accent:#0E0E10; --warn:#D97706; --danger:#E5484D;
  --mint-bg:#182019; --mint-fg:#34A77A; --sand-bg:#201D16; --sand-fg:#C6A579;
  --teal-bg:#152021; --teal-fg:#5FA7AE; --clay-bg:#201815; --clay-fg:#D08A77;
  --shadow:none; --shadow-lg:none; --hairline: rgba(255,255,255,.08);
}

*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body {
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--ff-sans); font-size:17px; line-height:1.6;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--accent); color:var(--on-accent); }
:focus-visible{ outline:2.5px solid var(--accent); outline-offset:3px; border-radius:4px; }

.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:24px; }
.serif{ font-family:var(--ff-serif); font-variation-settings:"opsz" 40,"SOFT" 0,"WONK" 0; }
.tnum{ font-variant-numeric: tabular-nums; }

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--accent); color:var(--on-accent); padding:10px 16px; border-radius:0 0 var(--r-ctl) 0;
  font-weight:600;
}
.skip-link:focus{ left:0; }

.eyebrow{
  font-size:.8125rem; font-weight:600; letter-spacing:.09em; text-transform:uppercase;
  color:var(--accent); margin:0 0 18px;
}
h1,h2,h3,h4{ font-family:var(--ff-serif); font-weight:560; letter-spacing:-.02em; text-wrap:balance; margin:0; }
p{ margin:0; }
.lede{ color:var(--text-2); font-size:clamp(1.05rem,1.6vw,1.22rem); line-height:1.55; }

/* ---------- buttons (mirrors index.html) ---------- */
.appstore{
  display:inline-flex; align-items:center; gap:11px;
  background:#000; color:#fff; border:1px solid rgba(255,255,255,.12);
  border-radius:var(--r-ctl); padding:9px 18px 9px 15px; min-height:56px;
  transition:transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .2s;
  box-shadow:var(--shadow);
}
.appstore:hover{ transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.appstore svg{ width:26px; height:26px; flex:none; }
.appstore .lines{ display:flex; flex-direction:column; line-height:1.05; text-align:left; }
.appstore .lines small{ font-size:.66rem; letter-spacing:.02em; opacity:.9; font-weight:400; }
.appstore .lines strong{ font-size:1.22rem; font-weight:600; letter-spacing:-.01em; }

.btn-text{
  display:inline-flex; align-items:center; gap:7px; color:var(--text);
  font-weight:560; font-size:1rem; padding:8px 4px; min-height:44px;
  border-bottom:1px solid transparent; transition:border-color .2s, gap .2s;
}
.btn-text:hover{ border-color:var(--text); gap:11px; }
.btn-text .arrow{ transition:transform .2s; }
.btn-text:hover .arrow{ transform:translateX(2px); }

.chip{
  display:inline-flex; align-items:center; gap:7px; font-size:.8125rem; font-weight:600;
  letter-spacing:.02em; padding:5px 12px; border-radius:var(--r-chip);
  background:var(--mint-bg); color:var(--mint-fg);
}
.tint-mint{ background:var(--mint-bg); color:var(--mint-fg); }
.tint-sand{ background:var(--sand-bg); color:var(--sand-fg); }
.tint-teal{ background:var(--teal-bg); color:var(--teal-fg); }
.tint-clay{ background:var(--clay-bg); color:var(--clay-fg); }

/* ---------- nav (mirrors index.html) ---------- */
header.nav{
  position:sticky; top:0; z-index:50;
  background:color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter:saturate(140%) blur(14px); -webkit-backdrop-filter:saturate(140%) blur(14px);
  border-bottom:1px solid transparent; transition:border-color .3s, background .3s;
}
header.nav.scrolled{ border-bottom-color:var(--hairline); }
.nav-inner{ display:flex; align-items:center; justify-content:space-between; height:68px; }
.brand{ display:inline-flex; align-items:center; gap:10px; font-family:var(--ff-serif); font-weight:600; font-size:1.28rem; letter-spacing:-.02em; }
.brand .mark{ width:26px; height:26px; border-radius:8px; background:var(--accent); display:grid; place-items:center; flex:none; }
.brand .mark svg{ width:17px; height:17px; }
.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a.navlink{ color:var(--text-2); font-size:.95rem; font-weight:500; transition:color .2s; }
.nav-links a.navlink:hover, .nav-links a.navlink[aria-current="page"]{ color:var(--text); }
.nav-cta{
  display:inline-flex; align-items:center; height:40px; padding:0 16px; border-radius:var(--r-ctl);
  background:var(--accent); color:var(--on-accent); font-weight:600; font-size:.9rem;
  transition:transform .2s, filter .2s;
}
.nav-cta:hover{ transform:translateY(-1px); filter:brightness(1.05); }
.theme-toggle{
  width:40px; height:40px; border-radius:var(--r-ctl); border:1px solid var(--border);
  background:var(--surface); color:var(--text-2); display:grid; place-items:center; cursor:pointer;
  transition:color .2s, border-color .2s;
}
.theme-toggle:hover{ color:var(--text); border-color:var(--text-3); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .moon{ display:none; }
:root[data-theme="dark"] .theme-toggle .sun{ display:none; }
:root[data-theme="dark"] .theme-toggle .moon{ display:block; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .theme-toggle .sun{ display:none; }
  :root:not([data-theme="light"]) .theme-toggle .moon{ display:block; }
}
@media (max-width:820px){
  .nav-links a.navlink{ display:none; }
  .nav-links a.navlink[href="/blog/"]{ display:inline-flex; }
  .nav-links{ gap:12px; }
  .nav-cta{ padding:0 13px; }
  .brand{ font-size:1.14rem; gap:8px; }
}

/* ---------- breadcrumbs ---------- */
.crumbs{ padding:22px 0 0; }
.crumbs ol{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:.86rem; color:var(--text-3); }
.crumbs a{ color:var(--text-2); transition:color .2s; }
.crumbs a:hover{ color:var(--text); }
.crumbs .sep{ color:var(--text-3); }
.crumbs [aria-current="page"]{ color:var(--text-3); }

/* ============================================================
   BLOG INDEX — magazine layout
   ============================================================ */
.blog-hero{ padding:clamp(40px,6vw,72px) 0 clamp(28px,4vw,44px); }
.blog-hero .eyebrow{ text-align:center; }
.blog-hero h1{ font-size:clamp(2.4rem,5vw,3.9rem); line-height:1.02; text-align:center; font-variation-settings:"opsz" 72; margin:0 auto; max-width:15ch; }
.blog-hero .lede{ text-align:center; max-width:56ch; margin:22px auto 0; }

/* featured lead post */
.lead{ display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(28px,4vw,56px); align-items:center; padding:clamp(28px,4vw,44px) 0 clamp(48px,6vw,72px); }
.lead a.lead-media{ display:block; border-radius:var(--r-card); overflow:hidden; box-shadow:var(--shadow-lg); border:1px solid var(--hairline); }
.lead a.lead-media img{ width:100%; height:100%; aspect-ratio:16/10; object-fit:cover; transition:transform .6s cubic-bezier(.22,.61,.36,1); background:var(--surface-alt); }
.lead a.lead-media:hover img{ transform:scale(1.03); }
.post-tag{ display:inline-flex; align-self:flex-start; align-items:center; gap:7px; font-size:.75rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; padding:5px 11px; border-radius:var(--r-chip); }
.lead h2{ font-size:clamp(1.8rem,3.4vw,2.7rem); line-height:1.08; margin:18px 0 14px; font-variation-settings:"opsz" 40; }
.lead h2 a{ transition:color .2s; }
.lead h2 a:hover{ color:var(--accent); }
.lead .dek{ color:var(--text-2); font-size:1.08rem; line-height:1.55; max-width:46ch; }
.byline{ display:flex; align-items:center; gap:10px; margin-top:22px; color:var(--text-3); font-size:.88rem; }
.byline .avatar{ width:34px; height:34px; border-radius:50%; background:var(--accent); color:var(--on-accent); display:grid; place-items:center; font-family:var(--ff-serif); font-weight:600; font-size:.95rem; flex:none; }
.byline .dot{ width:3px; height:3px; border-radius:50%; background:currentColor; }
.byline b{ color:var(--text-2); font-weight:600; }

/* card grid */
.posts-band{ border-top:1px solid var(--hairline); padding:clamp(48px,6vw,80px) 0; }
.posts-head{ display:flex; align-items:baseline; justify-content:space-between; gap:20px; margin-bottom:clamp(26px,3vw,40px); }
.posts-head h2{ font-size:clamp(1.5rem,2.6vw,2rem); font-variation-settings:"opsz" 40; }
.posts-head .count{ color:var(--text-3); font-size:.9rem; }
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(20px,2.4vw,30px); }
.card{ display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r-card); overflow:hidden; box-shadow:var(--shadow); transition:transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s; }
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.card .thumb{ display:block; overflow:hidden; }
.card .thumb img{ width:100%; aspect-ratio:3/2; object-fit:cover; transition:transform .6s cubic-bezier(.22,.61,.36,1); background:var(--surface-alt); }
.card:hover .thumb img{ transform:scale(1.04); }
.card .body{ padding:22px 22px 24px; display:flex; flex-direction:column; flex:1; }
.card h3{ font-size:1.24rem; line-height:1.2; margin:12px 0 9px; letter-spacing:-.015em; }
.card h3 a{ transition:color .2s; }
.card:hover h3 a{ color:var(--accent); }
.card p{ color:var(--text-2); font-size:.96rem; line-height:1.5; }
.card .byline{ margin-top:auto; padding-top:18px; }
@media (max-width:900px){ .card-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:900px){ .lead{ grid-template-columns:1fr; } .lead a.lead-media{ order:-1; } }
@media (max-width:560px){ .card-grid{ grid-template-columns:1fr; } }

/* newsletter / cta strip on index */
.blog-cta{ background:var(--surface-alt); border-top:1px solid var(--hairline); border-bottom:1px solid var(--hairline); }
.blog-cta .inner{ text-align:center; padding:clamp(48px,6vw,76px) 0; }
.blog-cta h2{ font-size:clamp(1.7rem,3.4vw,2.6rem); line-height:1.06; font-variation-settings:"opsz" 40; }
.blog-cta p{ color:var(--text-2); max-width:48ch; margin:16px auto 28px; }
.blog-cta .hero-cta{ display:flex; justify-content:center; gap:20px; flex-wrap:wrap; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-head{ padding:clamp(8px,2vw,20px) 0 clamp(24px,3vw,36px); }
.article-head .inner{ max-width:820px; margin-inline:auto; text-align:center; }
.article-head .kicker{ display:inline-flex; margin:20px 0 20px; }
.article-head h1{ font-size:clamp(2.1rem,4.4vw,3.5rem); line-height:1.05; font-variation-settings:"opsz" 72; margin:0 auto; max-width:20ch; }
.article-head .standfirst{ color:var(--text-2); font-size:clamp(1.12rem,1.9vw,1.32rem); line-height:1.5; max-width:60ch; margin:22px auto 0; }
.article-meta{ display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px 14px; margin-top:26px; color:var(--text-3); font-size:.9rem; }
.article-meta .avatar{ width:38px; height:38px; border-radius:50%; background:var(--accent); color:var(--on-accent); display:grid; place-items:center; font-family:var(--ff-serif); font-weight:600; flex:none; }
.article-meta b{ color:var(--text-2); font-weight:600; }
.article-meta .dot{ width:3px; height:3px; border-radius:50%; background:currentColor; }

/* hero figure */
figure.hero-fig{ margin:clamp(20px,3vw,36px) auto 0; }
figure.hero-fig .frame{ border-radius:var(--r-card); overflow:hidden; box-shadow:var(--shadow-lg); border:1px solid var(--hairline); }
figure.hero-fig img{ width:100%; aspect-ratio:16/9; object-fit:cover; background:var(--surface-alt); }
figcaption{ margin-top:10px; color:var(--text-3); font-size:.82rem; text-align:center; }
figcaption a{ color:var(--text-2); border-bottom:1px solid var(--hairline); }
figcaption a:hover{ color:var(--text); }

/* article body layout: prose + sticky rail */
.article-body{ padding:clamp(32px,4vw,56px) 0 clamp(40px,5vw,64px); }
.article-grid{ display:grid; grid-template-columns:minmax(0,1fr) 232px; gap:clamp(32px,4vw,64px); align-items:start; }
.prose{ max-width:var(--readw); font-size:1.14rem; line-height:1.72; color:var(--text); }
.prose > p{ margin:0 0 1.35em; color:var(--text); }
.prose > p:first-of-type::first-letter{
  font-family:var(--ff-serif); float:left; font-size:3.9em; line-height:.78; font-weight:600;
  padding:.02em .12em 0 0; color:var(--accent); font-variation-settings:"opsz" 72;
}
.prose h2{ font-size:clamp(1.5rem,2.7vw,2rem); line-height:1.14; margin:1.9em 0 .55em; font-variation-settings:"opsz" 40; scroll-margin-top:88px; }
.prose h3{ font-size:1.28rem; margin:1.5em 0 .4em; letter-spacing:-.015em; }
.prose a.inline-link{ color:var(--accent); border-bottom:1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); transition:border-color .2s; font-weight:500; }
.prose a.inline-link:hover{ border-bottom-color:var(--accent); }
.prose strong{ font-weight:640; color:var(--text); }
.prose ul, .prose ol{ margin:0 0 1.35em; padding-left:1.3em; color:var(--text); }
.prose li{ margin:0 0 .55em; padding-left:.25em; }
.prose li::marker{ color:var(--accent); }
.prose hr{ border:0; border-top:1px solid var(--hairline); margin:2.4em 0; }

/* pull quote */
.prose .pull{
  font-family:var(--ff-serif); font-size:clamp(1.4rem,2.6vw,1.85rem); line-height:1.28; font-weight:520;
  letter-spacing:-.02em; color:var(--text); margin:1.6em 0; padding:0 0 0 26px;
  border-left:3px solid var(--accent); font-variation-settings:"opsz" 40; text-wrap:balance;
}

/* inline figure */
.prose figure{ margin:2em 0; }
.prose figure .frame{ border-radius:var(--r-card); overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--hairline); }
.prose figure img{ width:100%; aspect-ratio:3/2; object-fit:cover; background:var(--surface-alt); }

/* callout / key-stat card */
.prose .callout{
  background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r-card);
  padding:24px 26px; margin:1.8em 0; box-shadow:var(--shadow); display:flex; gap:18px; align-items:flex-start;
}
.prose .callout .k{ font-family:var(--ff-serif); font-size:2.6rem; line-height:1; font-weight:600; color:var(--accent); font-variation-settings:"opsz" 40; letter-spacing:-.02em; flex:none; }
.prose .callout .c{ font-size:1rem; color:var(--text-2); line-height:1.5; }
.prose .callout .c b{ color:var(--text); }

/* medical disclaimer note inside prose */
.prose .disclaimer-box{
  background:var(--surface-alt); border:1px solid var(--hairline); border-radius:var(--r-ctl);
  padding:16px 18px; margin:1.8em 0; color:var(--text-2); font-size:.95rem; line-height:1.55;
}
.prose .disclaimer-box b{ color:var(--text); }

/* sticky rail: TOC */
.rail{ position:sticky; top:92px; }
.rail .toc-label{ font-size:.75rem; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--text-3); margin:0 0 14px; }
.rail nav ol{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.rail nav a{ display:block; color:var(--text-2); font-size:.9rem; line-height:1.35; padding:7px 0 7px 14px; border-left:2px solid var(--border); transition:color .2s, border-color .2s; }
.rail nav a:hover{ color:var(--text); }
.rail nav a.active{ color:var(--accent); border-left-color:var(--accent); font-weight:600; }
.rail .share{ margin-top:26px; padding-top:22px; border-top:1px solid var(--hairline); }
.rail .share .toc-label{ margin-bottom:12px; }
.rail .share a{ display:inline-flex; width:38px; height:38px; margin-right:8px; border:1px solid var(--border); border-radius:var(--r-ctl); align-items:center; justify-content:center; color:var(--text-2); transition:color .2s, border-color .2s; }
.rail .share a:hover{ color:var(--text); border-color:var(--text-3); }
.rail .share svg{ width:17px; height:17px; }
@media (max-width:940px){ .article-grid{ grid-template-columns:1fr; } .rail{ display:none; } }

/* author box */
.author-box{ max-width:var(--readw); margin:clamp(36px,4vw,52px) auto 0; display:flex; gap:20px; align-items:flex-start; background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r-card); padding:26px 26px; box-shadow:var(--shadow); }
.author-box .avatar{ width:56px; height:56px; border-radius:50%; background:var(--accent); color:var(--on-accent); display:grid; place-items:center; font-family:var(--ff-serif); font-weight:600; font-size:1.4rem; flex:none; }
.author-box h4{ font-size:1.1rem; margin:0 0 6px; }
.author-box p{ color:var(--text-2); font-size:.95rem; line-height:1.55; }

/* faq (mirrors index.html) */
.faq-section{ border-top:1px solid var(--hairline); padding:clamp(48px,6vw,80px) 0; }
.faq-wrap{ max-width:820px; margin-inline:auto; }
.faq-wrap > .eyebrow{ text-align:center; }
.faq-wrap > h2{ text-align:center; font-size:clamp(1.7rem,3vw,2.4rem); font-variation-settings:"opsz" 40; margin-bottom:clamp(24px,3vw,40px); }
details.faq{ border-top:1px solid var(--hairline); padding:6px 0; }
details.faq:last-of-type{ border-bottom:1px solid var(--hairline); }
details.faq summary{ list-style:none; cursor:pointer; padding:22px 0; display:flex; justify-content:space-between; align-items:center; gap:20px; font-family:var(--ff-serif); font-size:1.18rem; font-weight:560; letter-spacing:-.01em; font-variation-settings:"opsz" 28; }
details.faq summary::-webkit-details-marker{ display:none; }
details.faq summary .plus{ width:22px; height:22px; flex:none; position:relative; color:var(--text-3); transition:transform .3s cubic-bezier(.22,.61,.36,1); }
details.faq[open] summary .plus{ transform:rotate(45deg); color:var(--accent); }
details.faq .a{ color:var(--text-2); font-size:1.02rem; line-height:1.6; padding:0 0 24px; max-width:70ch; }
details.faq .a a{ color:var(--accent); border-bottom:1px solid color-mix(in srgb, var(--accent) 35%, transparent); }

/* related posts */
.related{ border-top:1px solid var(--hairline); padding:clamp(48px,6vw,80px) 0; background:var(--surface-alt); }
.related h2{ font-size:clamp(1.5rem,2.6vw,2rem); font-variation-settings:"opsz" 40; margin-bottom:clamp(24px,3vw,36px); }
.related .card-grid{ grid-template-columns:repeat(3,1fr); }
@media (max-width:900px){ .related .card-grid{ grid-template-columns:1fr; } }

/* final cta on article */
.article-cta{ padding:clamp(52px,7vw,96px) 0; text-align:center; }
.article-cta .inner{ max-width:640px; margin-inline:auto; }
.article-cta h2{ font-size:clamp(1.9rem,4vw,3rem); line-height:1.05; font-variation-settings:"opsz" 72; }
.article-cta p{ color:var(--text-2); margin:18px auto 30px; max-width:48ch; }
.article-cta .hero-cta{ display:flex; justify-content:center; gap:20px; flex-wrap:wrap; }
.article-cta .disclaimer-note{ margin-top:28px; color:var(--text-3); font-size:.84rem; max-width:560px; margin-inline:auto; line-height:1.55; }

/* reading progress bar */
.progress{ position:fixed; top:0; left:0; height:3px; width:0; background:var(--accent); z-index:60; transition:width .1s linear; }

/* back to top */
.to-top{ position:fixed; right:22px; bottom:22px; width:46px; height:46px; border-radius:50%; background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow-lg); display:grid; place-items:center; color:var(--text-2); opacity:0; pointer-events:none; transform:translateY(8px); transition:opacity .3s, transform .3s, color .2s; z-index:55; }
.to-top.show{ opacity:1; pointer-events:auto; transform:none; }
.to-top:hover{ color:var(--text); }
.to-top svg{ width:20px; height:20px; }

/* ---------- footer (mirrors index.html) ---------- */
footer.site{ border-top:1px solid var(--hairline); padding:64px 0 48px; background:var(--surface-alt); }
.foot-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:34px; }
.foot-brand .brand{ margin-bottom:14px; }
.foot-brand p{ color:var(--text-2); font-size:.95rem; max-width:34ch; }
.foot-col h4{ font-size:.8125rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); margin:0 0 16px; font-family:var(--ff-sans); }
.foot-col a{ display:block; color:var(--text-2); font-size:.95rem; padding:6px 0; transition:color .2s; }
.foot-col a:hover{ color:var(--text); }
.disclaimer{ margin-top:44px; padding-top:26px; border-top:1px solid var(--hairline); color:var(--text-3); font-size:.84rem; line-height:1.6; max-width:820px; }
.legal-row{ margin-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; color:var(--text-3); font-size:.82rem; }
@media (max-width:820px){ .foot-grid{ grid-template-columns:1fr 1fr; } .foot-brand{ grid-column:1 / -1; } }

/* reveal on scroll (mirrors index.html) */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in{ opacity:1; transform:none; }
.reveal[data-d="1"]{ transition-delay:.08s; }
.reveal[data-d="2"]{ transition-delay:.16s; }
.reveal[data-d="3"]{ transition-delay:.24s; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; }
  .card:hover, .lead a.lead-media:hover img, .card:hover .thumb img{ transform:none; }
  .appstore:hover,.nav-cta:hover,.btn-text:hover{ transform:none; }
}
