/* WalletMD, built on JVR's WalletMD design system (Nov 2, 2026): a clinic, not a casino. */
:root {
  --bg: #F7FAFA;
  --surface: #FFFFFF;
  --surface-raised: #ECF6F5;
  --midnight: #0B3B47;
  --on-midnight: #F4F6F7;
  --on-midnight-muted: #BFE0DD;
  --border: #ECEEEF;
  --border-strong: #D3D7DA;
  --text: #1F2326;
  --text-muted: #646D74;
  --text-subtle: #9AA1A6;
  --action: #020C0F;
  --action-hover: #0A1A20;
  --on-action: #F4F6F7;
  --action-text: #0B7A7A;
  --gold: #F6E2A8;
  --gold-deep: #C9953F;
  --mint: #5FD0C4;
  --mint-text: #0A6B6B;
  --spark: #2BB67A;
  --ruby: #D9533F;
  --focus: #0B7A7A;
  --shadow-card: 0 2px 12px rgba(2, 12, 15, .06);
  --shadow-hero: 0 2px 12px rgba(2, 12, 15, .06), 0 24px 60px rgba(2, 12, 15, .14);
  --shadow-coin: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 16px rgba(246, 200, 100, .5);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --body: "Gomme Sans", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --mark: "Lexend Mega", system-ui, sans-serif;
  color-scheme: light;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 400 16px/26px var(--body); -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(95, 208, 196, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(95, 208, 196, .07) 1px, transparent 1px);
  background-size: 28px 28px;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--action-text); text-underline-offset: 3px; }
a:hover { color: var(--midnight); }
h1, h2, h3 { font-family: var(--display); color: var(--text); margin: 0; }
h1 { font-weight: 800; letter-spacing: -.04em; }
h2 { font-weight: 700; letter-spacing: -.02em; }
h3 { font-weight: 600; }
p { margin: 0; }
.accent { color: var(--action-text); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--surface); padding: 8px 14px; border-radius: 999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.lede { font-size: 18px; line-height: 28px; color: var(--text-muted); max-width: 620px; }

/* Header: the dark bar */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--action); box-shadow: 0 2px 20px rgba(2, 12, 15, .25); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 42px; height: auto; }
.wordmark { font: 600 17px/1 var(--mark); color: #fff; padding-top: 3px; letter-spacing: 0; }
.wordmark b { color: var(--mint); font-weight: 800; }
.logo-footer .wordmark { color: var(--midnight); }
.logo-footer .wordmark b { color: var(--mint-text); }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a { color: var(--on-midnight); text-decoration: none; font: 600 15px var(--display); padding: 8px 14px; border-radius: 999px; }
.site-header nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-header .nav-cta { margin-left: 8px; border: 1px solid rgba(255, 255, 255, .22); padding: 10px 18px; }

/* Chips (section tags) */
.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font: 600 12px/16px var(--body); text-transform: uppercase; letter-spacing: .08em; padding: 6px 12px; margin-bottom: 16px; }
.chip-dark { background: var(--midnight); color: var(--on-midnight); }
.chip-dark::before { content: "+"; color: var(--mint); font: 800 14px/1 var(--display); }
.chip-light { background: var(--surface); color: var(--action-text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.chip-light::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--spark); }

/* Buttons: the ink pill with the gold coin */
.pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; cursor: pointer;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; text-decoration: none;
  font: 600 17px/22px var(--body); transition: transform .22s ease-out, box-shadow .22s ease-out;
}
.pill-primary {
  padding: 0 10px 0 26px; color: var(--on-action); border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 46%) border-box padding-box,
    linear-gradient(var(--action-hover), var(--action)) padding-box,
    linear-gradient(120deg, var(--gold), var(--gold-deep) 50%, var(--gold)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 6px rgba(2, 12, 15, .3), 0 18px 44px rgba(2, 12, 15, .28), 0 0 40px rgba(246, 200, 100, .18);
}
.pill-primary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 999px; box-shadow: var(--shadow-coin);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B1A06' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/17px no-repeat, linear-gradient(135deg, var(--gold), var(--gold-deep));
}
.pill-primary:hover { color: #fff; transform: translateY(-2px); }
.pill-lg { min-height: 60px; padding-left: 32px; padding-right: 12px; }
.pill-lg::after { width: 40px; height: 40px; }
.pill-small { min-height: 42px; padding: 0 8px 0 18px; font-size: 15px; gap: 10px; }
.pill-small::after { width: 28px; height: 28px; background-size: 14px, auto; }
.pill-ghost { color: var(--action-text); background: transparent; box-shadow: inset 0 0 0 1.5px var(--action-text); }
.pill-ghost:hover { color: var(--midnight); background: var(--surface-raised); }
.pill-chip {
  min-height: 48px; padding: 0 18px; font-size: 15px; color: var(--text); background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--border-strong); justify-content: flex-start; text-align: left;
}
.pill-chip:hover { color: var(--text); background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--action-text); }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: .98; margin-bottom: 22px; }
.hero h1 .accent { display: block; }
.hero .lede { margin-bottom: 30px; }
.readings { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.readings li { display: flex; flex-direction: column; padding: 10px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-card); min-width: 104px; }
.readings span { font: 600 12px/16px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle); }
.readings strong { font: 800 22px/28px var(--display); font-variant-numeric: tabular-nums; }
.hero-card {
  position: relative; aspect-ratio: 1 / .95; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-hero);
  background: radial-gradient(circle at 75% 30%, rgba(95, 208, 196, .14), transparent 55%), linear-gradient(180deg, #04161b, var(--action));
}
.waves { width: 100%; height: 100%; }
.waves polyline { fill: none; stroke: var(--mint); stroke-width: 1; opacity: .38; vector-effect: non-scaling-stroke; }
.waves polyline.hi { stroke: #7EF0E0; stroke-width: 2.2; opacity: 1; filter: drop-shadow(0 0 6px rgba(95, 208, 196, .8)); }
.waves-hero { position: absolute; inset: 14% 8% 6%; width: 84%; height: 80%; }
.hero-label { position: absolute; z-index: 1; font: 600 11px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--mint); }
.hero-label::after { content: ""; position: absolute; left: 50%; top: 18px; width: 1px; height: 52px; background: var(--mint); opacity: .7; }
.hero-label-a { top: 9%; left: 17%; }
.hero-label-b { top: 9%; right: 13%; }
.hero-label-c { top: 10%; right: 12%; }

/* Sections */
.section { padding: 72px 0 0; }
.section-alt { margin-top: 72px; padding: 72px 0; background: rgba(236, 246, 245, .6); }
.section-tight { padding-top: 8px; }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; margin-bottom: 10px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

/* Check-up section */
.checkup-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; scroll-margin-top: 90px; }
#checkup { scroll-margin-top: 80px; }
.checkup-intro h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 14px; }
.checkup-intro .lede { margin-bottom: 28px; }
.steps-inline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps-inline li { display: flex; gap: 14px; }
.step-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-raised); color: var(--mint-text); font: 800 14px var(--display); }
.steps-inline li:first-child .step-num { background: var(--spark); color: #fff; }
.steps-inline strong { font: 600 17px/24px var(--display); }
.steps-inline p { color: var(--text-muted); font-size: 15px; line-height: 22px; }

/* Check-up chat */
.frontdesk { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-hero); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border); }
.fd-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--midnight); color: var(--on-midnight); }
.fd-head img { width: 34px; height: auto; }
.fd-head strong { display: block; font: 700 16px/1.2 var(--display); }
.fd-head span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--on-midnight-muted); }
.fd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spark); }
.fd-log { position: relative; height: 380px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.fd-msg { max-width: 86%; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 22px; animation: rise .22s ease-out; }
@keyframes rise { from { transform: translateY(4px); opacity: 0; } }
.fd-bot { align-self: flex-start; background: var(--surface-raised); border-bottom-left-radius: 6px; }
.fd-user { align-self: flex-end; background: var(--midnight); color: var(--on-midnight); border-bottom-right-radius: 6px; }
.fd-typing { display: flex; gap: 4px; padding: 14px 16px; }
.fd-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--action-text); opacity: .4; animation: blink 1s infinite; }
.fd-typing span:nth-child(2) { animation-delay: .15s; }
.fd-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; } }
.fd-choices { display: flex; flex-direction: column; gap: 8px; padding: 14px 20px 6px; border-top: 1px solid var(--border); }
.fd-choice { width: 100%; min-height: 46px; }
.fd-restart { background: var(--surface-raised); justify-content: center; }
.fd-fine { padding: 8px 20px 16px; font-size: 12px; line-height: 18px; color: var(--text-subtle); }
.fd-plan { align-self: stretch; margin-top: 6px; border-radius: var(--r-md); border: 1.5px solid var(--action-text); background: var(--surface); padding: 16px; animation: rise .25s ease-out; }
.fd-plan-h { margin-bottom: 8px; font: 600 12px/16px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--action-text); display: flex; align-items: center; gap: 8px; }
.fd-plan-h::before { content: "\211E"; font: 800 18px var(--display); color: var(--midnight); text-transform: none; }
.fd-step { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.fd-step:first-of-type { border-top: 0; }
.fd-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-raised); color: var(--mint-text); font: 800 12px var(--display); }
.fd-free .fd-num { background: var(--spark); color: #fff; }
.fd-step strong { font: 600 15px/22px var(--display); }
.fd-step p { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.fd-step ul { margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; }
.fd-step li { margin: 4px 0; }
.fd-step a { font-weight: 600; text-decoration: none; }
.fd-brand .pill { margin-top: 10px; }
.fd-brand .pill-primary { color: var(--on-action); }
.fd-disclosure { font-size: 12px !important; line-height: 16px !important; margin-top: 8px !important; }

/* Tool cards */
.monitors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.monitor {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 12px 12px 22px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-card); border: 1px solid var(--border); color: var(--text); text-decoration: none;
  transition: transform .22s ease-out, box-shadow .22s ease-out;
}
.monitor:hover { transform: translateY(-2px); color: var(--text); box-shadow: var(--shadow-hero); }
.monitor-screen {
  position: relative; display: flex; align-items: flex-start; height: 116px; padding: 14px; margin-bottom: 8px;
  border-radius: var(--r-md); overflow: hidden; background: radial-gradient(circle at 80% 20%, rgba(95, 208, 196, .16), transparent 60%), linear-gradient(180deg, #04161b, var(--action));
}
.monitor-screen .waves { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; }
.monitor-screen .icon { position: relative; z-index: 1; }
.monitor-screen .icon-bg { fill: rgba(95, 208, 196, .12); }
.monitor-screen .icon-line { stroke: #7EF0E0; }
.monitor strong, .monitor .card-desc, .monitor .card-go { padding: 0 10px; }
.monitor strong { font: 700 19px/25px var(--display); }

/* Guide cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-card); border: 1px solid var(--border); color: var(--text); text-decoration: none;
  transition: transform .22s ease-out, box-shadow .22s ease-out;
}
.card:hover { transform: translateY(-2px); color: var(--text); box-shadow: var(--shadow-hero); }
.card strong { font: 700 20px/26px var(--display); }
.card-desc { color: var(--text-muted); font-size: 15px; line-height: 22px; flex: 1; }
.card-go { color: var(--action-text); font: 600 15px var(--body); }
.compact .card-desc { display: none; }

/* Icons: 1.5px outline */
.icon { width: 44px; height: 44px; flex: none; }
.icon-bg { fill: var(--surface-raised); }
.icon-line { fill: none; stroke: var(--action-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Trust and CTA */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.trust-grid h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; margin-bottom: 14px; }
.trust-grid .lede { margin-bottom: 22px; font-size: 17px; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.trust-list li { position: relative; padding: 18px 20px 18px 54px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.trust-list li::before { content: ""; position: absolute; left: 20px; top: 20px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A7A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.trust-list strong { font: 600 16px/22px var(--display); }
.trust-list p { color: var(--text-muted); font-size: 14px; line-height: 20px; margin-top: 4px; }
.cta-card { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 48px; border-radius: 28px; box-shadow: var(--shadow-hero); background: radial-gradient(circle at 80% 40%, rgba(95, 208, 196, .16), transparent 55%), linear-gradient(160deg, #0A1F26, var(--action)); color: var(--on-midnight); }
.cta-card h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin-bottom: 14px; }
.cta-card p { color: var(--on-midnight-muted); margin-bottom: 24px; }
.cta-art { position: relative; height: 240px; border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.cta-art .waves { position: absolute; inset: 20% 0 0; height: 80%; }

/* Simple pages */
.page-band, .page-head { padding: 56px 0 24px; }
.page-band h1, .page-head h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; margin-bottom: 12px; }
.narrow { max-width: 780px; }
.narrow h2 { font-size: 28px; line-height: 34px; margin: 40px 0 10px; }
.narrow p { margin-bottom: 14px; }
.notfound { padding: 96px 16px 24px; max-width: 700px; }
.notfound h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.notfound .lede { margin-bottom: 26px; }

/* Article and tool pages */
.article-hero { padding: 32px 0 8px; }
.article-wrap { max-width: 860px; }
.page-tools .article-wrap { max-width: 1080px; }
.crumbs { display: flex; gap: 8px; margin-bottom: 22px; font-size: 14px; color: var(--text-subtle); }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--action-text); }
.article-hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.02; margin-bottom: 20px; max-width: 900px; }
.byline { display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.byline strong { color: var(--text); }
.byline small { font-size: 13px; color: var(--text-subtle); }
.byline-disc { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-raised); color: var(--mint-text); display: grid; place-items: center; font: 800 13px var(--display); }
.widget-frame { margin-top: 28px; }
.toc { margin: 32px 0 8px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); border: 1px solid var(--border); max-width: 760px; }
.toc p { margin-bottom: 8px; font: 600 12px/16px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--action-text); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc li { break-inside: avoid; margin: 4px 0; }
.toc li::marker { color: var(--action-text); font-weight: 700; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--action-text); }
.prose { max-width: 760px; }
.prose .lede { color: var(--text); font-size: 19px; line-height: 30px; padding: 28px 0 4px; max-width: none; }
.prose p { margin: 14px 0; }
.prose h2 { font-size: 28px; line-height: 34px; margin: 48px 0 12px; scroll-margin-top: 100px; }
.prose h3 { font-size: 20px; line-height: 28px; margin: 28px 0 8px; }
.prose li { margin: 8px 0; }
.prose ol, .prose ul { padding-left: 24px; }
.prose li::marker { color: var(--action-text); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 22px; border-radius: var(--r-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); border: 1px solid var(--border); margin: 18px 0; }
.prose th, .prose td { text-align: left; padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--surface-raised); color: var(--action-text); font: 600 12px/16px var(--body); text-transform: uppercase; letter-spacing: .08em; }
.prose td:first-child { font-weight: 600; }
.note { margin: 28px 0; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface-raised); border-left: 3px solid var(--action-text); }

/* Rx slips: letters and embed code */
.rx-pad { margin: 24px 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-hero); overflow: hidden; border: 1.5px solid var(--action-text); }
.rx-pad figcaption { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 20px; background: var(--surface-raised); border-bottom: 1px solid var(--border); font: 600 12px/16px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--action-text); }
.rx-pad figcaption span:nth-child(2) { flex: 1; }
.rx-mark { font: 800 22px/1 var(--display); color: var(--midnight); text-transform: none; }
.rx-pad .pill { min-height: 34px; padding: 0 14px; font-size: 13px; text-transform: none; letter-spacing: 0; background: var(--surface); color: var(--action-text); box-shadow: inset 0 0 0 1.5px var(--action-text); }
.rx-pad .pill::after { display: none; }
.rx-pad .copy.done { background: var(--spark); color: #fff; box-shadow: none; }
.letter { margin: 0; padding: 22px 24px 26px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); font: 14px/24px ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.letter.code { font-size: 13px; line-height: 20px; }

/* Tools */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.tool-inputs { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); border: 1px solid var(--border); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.tool-title { font: 600 12px/16px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--action-text); margin-top: 8px; }
.tool-title:first-child { margin-top: 0; }
.tool label { display: flex; flex-direction: column; gap: 8px; font: 600 15px var(--body); color: var(--text); }
.tool input:not([type=radio]):not([type=range]), .tool select, .tool textarea {
  width: 100%; font: 400 16px/24px var(--body); color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.tool textarea { resize: vertical; }
.tool select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 6 5-6' fill='none' stroke='%230B7A7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.tool input:focus, .tool select:focus, .tool textarea:focus { outline: none; border-color: var(--action-text); box-shadow: 0 0 0 3px rgba(11, 122, 122, .14); }
.tool .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-fine { color: var(--text-subtle); font-size: 13px; line-height: 18px; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { font: 600 15px var(--body); margin-bottom: 8px; }
.seg label { flex-direction: row; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border-strong); cursor: pointer; font-weight: 600; }
.seg input:checked + span { background: var(--action); color: var(--on-action); box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.tool-output .rx-pad { margin: 0; position: sticky; top: 92px; }
.score-input input { font: 800 28px var(--display) !important; font-variant-numeric: tabular-nums; }
.range { width: 100%; accent-color: var(--action-text); height: 28px; cursor: pointer; }
.range-ends { display: flex; justify-content: space-between; color: var(--text-subtle); font-size: 13px; font-weight: 600; }

/* Result: the midnight diagnosis card */
.result-card {
  position: sticky; top: 92px; padding: 28px; border-radius: 24px; color: var(--on-midnight); box-shadow: var(--shadow-hero);
  background: radial-gradient(circle at 85% 0%, rgba(95, 208, 196, .18), transparent 50%), linear-gradient(170deg, #0F2A31, var(--action));
}
.result-card::before { content: "Your reading"; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 600 12px/16px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.result-empty { color: var(--on-midnight-muted); }
.result-kicker { font: 600 12px/16px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--on-midnight-muted); }
.result-big { margin: 6px 0 18px; font: 800 clamp(36px, 5vw, 56px)/1.02 var(--display); letter-spacing: -.035em; color: #fff; }
.progress { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--action-text), var(--mint)); transition: width .25s ease-out; }
.result-sub { margin: 10px 0 14px; font: 600 15px var(--body); color: #fff; }
.result-note { margin-top: 10px; color: var(--on-midnight-muted); font-size: 14px; line-height: 21px; }
.result-note.strong { color: #fff; font-weight: 600; }
.result-h { margin: 22px 0 10px; font: 600 12px/16px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--mint); }
.score-head { display: flex; align-items: center; gap: 14px; }
.score-num { font: 800 64px/1 var(--display); letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.band { display: inline-block; padding: 5px 12px; border-radius: 999px; color: #fff; font: 600 13px/18px var(--body); background: var(--temp, var(--action-text)); }
.scale { position: relative; display: grid; grid-template-columns: 50.7fr 16.3fr 12.8fr 10.9fr 9.3fr; gap: 3px; height: 10px; margin: 20px 0 6px; }
.scale::before { content: ""; grid-column: 1 / -1; grid-row: 1; border-radius: 999px; background: linear-gradient(90deg, #D9533F 0 50.7%, #C9953F 50.7% 67%, #2BB67A 67% 79.8%, #1E8A5C 79.8% 90.7%, #0B7A7A 90.7%); opacity: .9; }
.scale-mark { position: absolute; top: -6px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--temp, var(--mint)), 0 2px 8px rgba(0, 0, 0, .4); transition: left .25s ease-out; }
.scale-labels { display: grid; grid-template-columns: 50.7fr 16.3fr 12.8fr 10.9fr 9.3fr; font-size: 11px; color: var(--on-midnight-muted); font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.checks .mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.checks .ok .mark { background: var(--spark); color: #fff; }
.checks .no .mark { background: rgba(255, 255, 255, .1); color: var(--on-midnight-muted); }
.checks .no { opacity: .65; }
.checks strong { display: block; font: 600 15px/20px var(--display); color: #fff; }
.checks small { color: var(--on-midnight-muted); font-size: 13px; }
.tier { color: var(--on-midnight-muted); }
.pill-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(95, 208, 196, .16); color: #7EF0E0; font: 600 14px var(--body); }

/* Pick card, embed box, related */
.pick-card { margin: 48px 0 0; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--action-text); box-shadow: var(--shadow-hero); max-width: 760px; }
.pick-card h2 { font-size: 24px; line-height: 30px; margin-bottom: 8px; }
.pick-card p { color: var(--text-muted); margin-bottom: 20px; }
.pick-card .disclosure { margin: 16px 0 0; font-size: 13px; line-height: 18px; color: var(--text-subtle); }
.embed-box { margin: 56px 0 0; padding: 26px; border-radius: var(--r-lg); background: var(--surface-raised); max-width: 760px; }
.embed-box h2 { font-size: 22px; line-height: 28px; margin-bottom: 6px; }
.embed-box p { color: var(--text-muted); }
.embed-box .rx-pad { margin-top: 16px; }
.related { margin-top: 56px; }
.related h2 { font-size: 24px; margin-bottom: 16px; }

/* Footer */
.site-footer { margin-top: 96px; background: var(--surface); border-top: 1px solid var(--border); font-size: 14px; line-height: 22px; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand p { margin-top: 12px; }
.site-footer h2 { font: 600 12px/16px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--action-text); }
.footer-legal { border-top: 1px solid var(--border); padding-top: 20px; padding-bottom: 40px; font-size: 13px; line-height: 20px; }
.footer-legal p { margin-bottom: 8px; max-width: 900px; }
.footer-legal strong { color: var(--text); }

/* Embedded tools */
body.embed { background: transparent; padding: 4px; }
body.embed .tool-output .rx-pad, body.embed .result-card { position: static; }
.embed-credit { text-align: right; font-size: 13px; color: var(--text-subtle); margin: 10px 4px 0; }

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .tool-inputs, .crumbs, .prose, .toc, .embed-box, .pick-card, .related, .article-hero { display: none !important; }
  .rx-pad { box-shadow: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .checkup-grid, .trust-grid, .cta-card { grid-template-columns: 1fr; }
  .hero-card { aspect-ratio: 1 / .7; }
  .tool { grid-template-columns: 1fr; }
  .tool-output .rx-pad, .result-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { padding: 32px 24px; }
}
@media (max-width: 600px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .header-row { min-height: 64px; }
  .hero { padding-top: 40px; }
  .hero .pill-lg { width: 100%; justify-content: space-between; }
  .readings li { min-width: 0; flex: 1; padding: 10px 12px; }
  .section { padding-top: 56px; }
  .section-alt { margin-top: 56px; padding: 56px 0; }
  .toc ol { columns: 1; }
  .tool-inputs, .result-card, .pick-card { padding: 20px; }
  .tool .row { grid-template-columns: 1fr; }
  .score-num { font-size: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .fd-log { height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Email sign-up */
.signup { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; margin: 64px 0 0; padding: 32px; border-radius: 24px; background: var(--surface); border: 1.5px solid var(--action-text); box-shadow: var(--shadow-hero); }
.page-article .signup, .page-tools .signup { grid-template-columns: 1fr; max-width: 760px; margin-top: 48px; }
.signup h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; margin-bottom: 8px; }
.signup p { color: var(--text-muted); }
.sub-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sub-row input { flex: 1 1 220px; min-height: 52px; font: 400 16px var(--body); color: var(--text); background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 999px; padding: 0 20px; }
.sub-row input:focus { outline: none; border-color: var(--action-text); box-shadow: 0 0 0 3px rgba(11, 122, 122, .14); }
.sub-topics { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sub-topics legend { font: 600 12px/16px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--action-text); margin-bottom: 8px; }
.sub-topic input { position: absolute; opacity: 0; }
.sub-topic span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--border-strong); font-size: 14px; cursor: pointer; }
.sub-topic input:checked + span { background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--action-text); color: var(--mint-text); }
.sub-topic input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.sub-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 19px; color: var(--text-muted); }
.sub-consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--action-text); flex: none; }
.sub-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.sub-msg { min-height: 20px; margin-top: 10px !important; font-size: 14px; }
.sub-msg.ok { color: var(--mint-text); font-weight: 600; }
.sub-msg.err { color: var(--ruby); }
form.done .sub-row, form.done .sub-topics, form.done .sub-consent { display: none; }
@media (max-width: 960px) { .signup { grid-template-columns: 1fr; padding: 24px; } }

/* WalletMD kit */
.kit-disclosure { margin-top: 14px !important; font-size: 14px; color: var(--text-muted); background: var(--surface-raised); border-radius: 12px; padding: 10px 14px; display: inline-block; }
.kit-h { font-size: 28px; margin: 40px 0 16px; }
.kit-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.kit-item { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.kit-item strong { font: 700 19px/25px var(--display); }
.kit-item em { font-style: normal; color: var(--text-muted); font-size: 14px; margin-top: -4px; }
.kit-item p { color: var(--text-muted); font-size: 15px; line-height: 22px; flex: 1; }
.kit-item .pill { align-self: flex-start; margin-top: 8px; min-height: 42px; font-size: 15px; }
.kit-tag { font: 600 12px/16px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--action-text); }
