/* ==========================================================================
   IfYouTakeRisk — landing design system
   Direct port of the platform skin (platform.ifyoutakerisk.com/css/risk.css,
   theme "bold"): a warm near-black canvas with a brick-red bleed, and the
   product itself sitting on it as one floating paper card with a dark rail.
   The landing is deliberately built out of the app's own chrome — a visitor
   sees the interface before they read a word about it.
   ========================================================================== */

:root {
  --canvas-bg:
    radial-gradient(900px 520px at 6% -8%,   rgba(179, 36, 28, .38) 0%, transparent 60%),
    radial-gradient(760px 620px at 96% 8%,   rgba(214, 96, 79, .16) 0%, transparent 58%),
    radial-gradient(1100px 800px at 88% 102%, rgba(88, 96, 128, .26) 0%, transparent 62%),
    linear-gradient(118deg, transparent 38%, rgba(255, 255, 255, .035) 49%, transparent 60%),
    linear-gradient(160deg, #0C0B0A 0%, #141110 46%, #0A0908 100%);

  --shell:    #FCFBFA;
  --shell-2:  #F4F2F0;
  --surface:  #fff;

  --ink:      #14110F;
  --ink-2:    #3C3632;
  --muted:    #857C74;
  --faint:    #ABA49D;
  --line:     rgba(20, 17, 15, .09);
  --line-2:   rgba(20, 17, 15, .05);

  /* Book red — sampled from the "If You Take The Risk" cover. */
  --accent:      #B3241C;
  --accent-deep: #8A1A12;
  --accent-soft: #FBE3E0;
  --accent-glow: rgba(179, 36, 28, .5);

  --done: #1E9C6B;
  --live: #2F6BEA;
  --idle: #D6D0CA;

  --grad-rail:   linear-gradient(178deg, #1B1714 0%, #3A312B 100%);
  --grad-logo:   linear-gradient(150deg, #D6604F, #B3241C);
  --grad-pitch:  linear-gradient(155deg, #1B1714 0%, #3A302A 58%, #5A3A28 100%);
  --on-warm:     #3A241B;

  --r-shell: 28px;
  --r-card:  18px;
  --r-tile:  14px;
  --r-pill:  999px;
  --frame:   28px;
  --rail-w:  78px;

  --shadow-shell:
    0 0 0 1px rgba(255, 255, 255, .07),
    0 50px 110px -30px rgba(0, 0, 0, .9),
    0 0 90px -30px rgba(179, 36, 28, .45);
  --shadow-card: 0 1px 2px rgba(20, 17, 15, .04), 0 8px 24px -16px rgba(20, 17, 15, .22);
  --shadow-lift: 0 2px 4px rgba(20, 17, 15, .05), 0 24px 48px -28px rgba(20, 17, 15, .4);

  --font-headline: "Oswald", "Manrope", system-ui, sans-serif;
  --font-display:  "Manrope", "Inter Tight", system-ui, sans-serif;
  --font-ui:       "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas-bg) fixed;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Fine fractal grain over the canvas — flat black reads cheap at this size. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

/* --- The app card -------------------------------------------------------- */
.app {
  position: relative; z-index: 1;
  display: flex;
  margin: var(--frame);
  border-radius: var(--r-shell);
  background: var(--shell);
  box-shadow: var(--shadow-shell);
  overflow: clip;
}

.main {
  flex: 1; min-width: 0;
  background: url('/assets/images/paper.jpg') top center / cover no-repeat fixed;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 34px; }
.container.narrow { max-width: 780px; }

/* --- Rail ---------------------------------------------------------------- */
.rail {
  position: sticky; top: 0; align-self: flex-start;
  width: var(--rail-w); flex: 0 0 var(--rail-w);
  height: 100vh;
  background: var(--grad-rail);
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 0 20px;
  color: rgba(255, 255, 255, .55);
}
.rail__logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad-logo);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(179, 36, 28, .8);
}
.rail__logo img { width: 26px; height: 26px; object-fit: contain; }

.rail__day {
  margin-top: 26px; text-align: center;
  font-family: var(--font-headline); line-height: 1;
}
.rail__day b {
  display: block; font-size: 30px; font-weight: 600; color: #fff;
  font-variant-numeric: tabular-nums;
}
.rail__day span {
  display: block; margin-top: 4px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255, 255, 255, .38);
}

.rail__nav { margin: 26px 0 auto; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.rail__dot {
  position: relative;
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .42);
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.rail__dot svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail__dot:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.rail__dot.is-current { color: #fff; background: rgba(179, 36, 28, .9); }
.rail__dot::after {
  content: attr(data-label);
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  padding: 5px 10px; border-radius: 8px; white-space: nowrap;
  background: #14110F; color: #fff; font-size: 12px;
  opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 5;
}
.rail__dot:hover::after, .rail__dot:focus-visible::after { opacity: 1; }

.rail__cta {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  box-shadow: 0 10px 26px -12px var(--accent-glow);
}
.rail__cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail__cta:hover { background: var(--accent-deep); }

@media (max-width: 1000px) {
  :root { --frame: 12px; --r-shell: 20px; }
  .rail { display: none; }
  .container { padding: 0 22px; }
}

/* --- Type ---------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0 0 .45em; color: var(--ink); }
h1, h2 {
  font-family: var(--font-headline);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: -.005em; line-height: 1.02;
}
h1 { font-size: clamp(38px, 5.6vw, 68px); }
h2 { font-size: clamp(28px, 3.8vw, 46px); }
h3 { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.28; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--ink-2); }
a { color: inherit; }
strong { font-weight: 700; color: var(--ink); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-soft);
  padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.hero-lead { font-size: 18px; line-height: 1.62; color: var(--ink-2); max-width: 54ch; }
.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(--accent); outline-offset: 3px; border-radius: 4px; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ember { background: var(--accent); color: #fff; box-shadow: 0 12px 30px -14px var(--accent-glow); }
.btn-ember:hover { background: var(--accent-deep); color: #fff; }
.btn-ember .btn-price {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, .17); padding: 3px 9px; border-radius: var(--r-pill);
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-onwarm { background: #fff; color: var(--ink); }
.btn-onwarm:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  padding: 16px 0;
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  background: rgba(252, 251, 250, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.brand-word {
  font-family: var(--font-headline); font-weight: 600; font-size: 15.5px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.brand-word em { color: var(--accent); font-style: normal; }
.nav-main { display: flex; align-items: center; gap: 26px; }
.nav-link { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14.5px; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: #fff; background: var(--accent); font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  font-family: var(--font-ui);
}
.nav-cta:hover { background: var(--accent-deep); }
.nav-cta b { font-family: var(--font-mono); font-weight: 500; opacity: .8; }
.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); position: relative; cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  content: ''; position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--ink); border-radius: 2px;
}
.burger span { top: 20px; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.menu-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 50; }
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.menu-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(330px, 88vw);
  background: #17130F; color: #fff; transform: translateX(100%);
  transition: transform .25s ease; z-index: 51; padding: 28px 26px;
}
.menu-panel.is-open { transform: translateX(0); }
.menu-panel .close { background: none; border: 0; color: #fff; font-size: 28px; position: absolute; top: 16px; right: 20px; cursor: pointer; line-height: 1; }
.menu-list { list-style: none; margin: 44px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.menu-list a { text-decoration: none; color: #fff; font-family: var(--font-headline); font-weight: 500; font-size: 24px; text-transform: uppercase; }
.menu-list a:hover { color: #E9857C; }

@media (max-width: 900px) {
  .nav-link, .nav-cta { display: none; }
  .burger { display: block; }
}

/* --- Sections & the day spine -------------------------------------------- */
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--paper { background: rgba(255, 255, 255, .5); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head p { font-size: 17.5px; }

/* Every research section is a day in the life of one goal. The marker is the
   section's real coordinate, not decoration — the rail counter reads from it. */
.daymark { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.daymark__num {
  font-family: var(--font-headline); font-weight: 600; font-size: 15px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}
.daymark__rule { flex: 1; height: 1px; background: var(--line); }
.daymark__label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); white-space: nowrap;
}

/* --- Reveal -------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: 54px 0 30px; }
.hero-inner { display: grid; grid-template-columns: 1.06fr .94fr; gap: 44px; align-items: center; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted);
}
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--done); }

/* --- The live "Today" demo ----------------------------------------------- */
.demo {
  background: var(--surface); border-radius: var(--r-card);
  box-shadow: var(--shadow-lift); overflow: hidden;
}
.demo__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.demo__title { font-family: var(--font-headline); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.demo__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.demo__verdict {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--shell-2); color: var(--muted);
  transition: background .3s ease, color .3s ease;
}
.demo__verdict[data-state="won"]  { background: rgba(30, 156, 107, .12); color: var(--done); }
.demo__verdict[data-state="half"] { background: rgba(179, 36, 28, .1); color: var(--accent); }
.demo__verdict[data-state="lost"] { background: rgba(20, 17, 15, .07); color: var(--ink-2); }

.demo__focus {
  position: relative; padding: 20px 20px 22px; color: #fff;
  background:
    linear-gradient(90deg, rgba(4, 8, 12, .84) 0%, rgba(4, 8, 12, .46) 58%, rgba(4, 8, 12, .12) 100%),
    url('/assets/images/focus-day.jpg') center / cover no-repeat;
}
.demo__focus::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 260px at 88% 10%, rgba(65, 160, 224, .38) 0%, transparent 62%);
}
.demo__focus > * { position: relative; z-index: 1; }
.demo__eyebrow {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: #41A0E0; margin: 0 0 8px;
}
.demo__focus h3 { color: #fff; font-size: 21px; margin: 0 0 4px; }
.demo__focus p { color: rgba(255, 255, 255, .62); font-size: 13px; margin: 0; }
/* The focus card's own action — the app puts "Mark done" here, not in the list. */
.demo__mark {
  display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 0;
  padding: 11px 20px; border-radius: var(--r-pill); cursor: pointer;
  background: transparent; border: 0; box-shadow: inset 0 0 0 1.5px #41A0E0;
  color: #41A0E0; font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  letter-spacing: .02em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.demo__mark .demo__check { border-color: currentColor; background: transparent; }
.demo__mark .demo__check svg { stroke: currentColor; }
.demo__mark[aria-pressed="true"] {
  background: linear-gradient(150deg, #1E9C6B 0%, #14724E 60%, #0B2C20 100%);
  box-shadow: none; color: #fff;
}
.demo__mark[aria-pressed="true"] .demo__check { background: rgba(255, 255, 255, .18); border-color: transparent; }
.demo__mark[aria-pressed="true"] .demo__check svg { opacity: 1; stroke: #fff; }

.demo__weight {
  display: flex; align-items: center; gap: 6px; margin-top: 14px; width: fit-content;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .25);
  padding: 4px 10px; border-radius: var(--r-pill);
}

.demo__rows { list-style: none; margin: 0; padding: 6px 8px; }
.demo__row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 12px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-ui); font-size: 14.5px; color: var(--ink); text-align: left;
  border-radius: 10px;
}
.demo__row + .demo__row { border-top: 1px solid var(--line-2); }
.demo__row:hover { background: var(--shell-2); }
.demo__check {
  flex: 0 0 21px; width: 21px; height: 21px; border-radius: 7px;
  border: 1.8px solid var(--idle); background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease, border-color .18s ease;
}
.demo__check svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .18s ease; }
.demo__row[aria-pressed="true"] .demo__check { background: var(--done); border-color: var(--done); }
.demo__row[aria-pressed="true"] .demo__check svg { opacity: 1; }
.demo__row[aria-pressed="true"] .demo__text { color: var(--muted); text-decoration: line-through; }
.demo__text { flex: 1; }
.demo__tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  background: var(--shell-2); padding: 4px 9px; border-radius: var(--r-pill);
}
.demo__tag--main { background: var(--accent-soft); color: var(--accent-deep); }

.demo__foot {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 20px; border-top: 1px solid var(--line); background: var(--shell-2);
}
.demo__ring { position: relative; width: 74px; height: 74px; flex: 0 0 74px; }
.demo__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.demo__ring-track { fill: none; stroke: var(--idle); stroke-width: 9; }
.demo__ring-fill {
  fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset .7s cubic-bezier(.4, 0, .2, 1);
}
.demo__ring b {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.demo__note { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.demo__note b { color: var(--accent); }
.demo__hint {
  display: block; margin-top: 12px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}

/* --- Figures (charts) ----------------------------------------------------- */
.fig {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px 28px 22px;
  box-shadow: var(--shadow-card);
}
.fig__title { font-family: var(--font-display); font-weight: 800; font-size: 16px; margin: 0 0 4px; letter-spacing: -.01em; }
.fig__sub { font-size: 13.5px; color: var(--muted); margin: 0 0 22px; }
.fig__source {
  margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.6; color: var(--faint);
}
.fig__legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-2); }
.fig__legend li { display: flex; align-items: center; gap: 8px; }
.fig__swatch { width: 12px; height: 12px; border-radius: 4px; background: var(--muted); }
.fig__swatch--accent { background: var(--accent); }

/* Bars: value labels sit on the bar, category under it — no axis needed. */
.bars { display: flex; flex-direction: column; gap: 20px; }
.bar__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 7px; }
.bar__label { font-size: 14px; color: var(--ink-2); }
.bar__value { font-family: var(--font-display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.bar__track { height: 14px; border-radius: 4px; background: var(--shell-2); overflow: hidden; }
.bar__fill {
  height: 100%; border-radius: 4px; background: var(--muted);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.22, 1, .36, 1);
}
.in-view .bar__fill { transform: scaleX(var(--v, 0)); }
.bar--accent .bar__fill { background: var(--accent); }
.bar--accent .bar__value { color: var(--accent); }

/* Ring pair */
.rings { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.ringstat { text-align: center; width: 136px; }
.ringstat__wrap { position: relative; width: 136px; height: 136px; }
.ringstat svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ringstat__track { fill: none; stroke: var(--shell-2); stroke-width: 13; }
.ringstat__fill {
  fill: none; stroke: var(--muted); stroke-width: 13; stroke-linecap: round;
  stroke-dasharray: var(--c); stroke-dashoffset: var(--c);
  transition: stroke-dashoffset 1.3s cubic-bezier(.22, 1, .36, 1);
}
.in-view .ringstat__fill { stroke-dashoffset: var(--o); }
.ringstat--accent .ringstat__fill { stroke: var(--accent); }
.ringstat__val {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 34px; font-variant-numeric: tabular-nums;
}
.ringstat--accent .ringstat__val { color: var(--accent); }
.ringstat__cap { display: block; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }

/* Line / curve charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line-2); stroke-width: 1; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .tick { font-family: var(--font-mono); font-size: 11px; fill: var(--faint); }
.chart .dlabel { font-family: var(--font-display); font-size: 13px; font-weight: 800; fill: var(--ink-2); }
.chart .band { fill: rgba(179, 36, 28, .08); }
.chart .series {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.6s cubic-bezier(.4, 0, .3, 1);
}
.in-view .chart .series { stroke-dashoffset: 0; }
.chart .series--muted { stroke: var(--ink-2); stroke-dasharray: 5 5; stroke-dashoffset: 0; }
.chart .marker { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.chart .guide { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 4; opacity: .55; }
.chart .dist-a { fill: rgba(60, 54, 50, .14); stroke: var(--ink-2); stroke-width: 1.6; }
.chart .dist-b { fill: rgba(179, 36, 28, .16); stroke: var(--accent); stroke-width: 2; }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile);
  padding: 22px; box-shadow: var(--shadow-card);
}
.tile b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 3.6vw, 40px); line-height: 1.05; letter-spacing: -.02em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.tile span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.tile small { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }

/* --- Finding → mechanic layout ------------------------------------------- */
.finding { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.finding--flip .finding__fig { order: -1; }
.finding__body h2 { margin-bottom: .3em; }
.mech {
  margin-top: 26px; padding: 20px 22px; border-radius: var(--r-card);
  background: var(--grad-pitch); color: #fff;
}
.mech__eyebrow {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: #E9857C; margin: 0 0 8px;
}
.mech h3 { color: #fff; margin: 0 0 6px; }
.mech p { color: rgba(255, 255, 255, .7); font-size: 14.5px; margin: 0; }

/* --- Scoring table -------------------------------------------------------- */
.score { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.wtable { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); }
.wtable th, .wtable td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-2); }
.wtable th {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); font-weight: 500; background: var(--shell-2);
}
.wtable td { font-size: 14.5px; color: var(--ink-2); }
.wtable td:last-child, .wtable th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.wtable tr:last-child td { border-bottom: 0; }
.wtable .is-main td { background: rgba(179, 36, 28, .045); color: var(--ink); font-weight: 600; }
.wtable .is-main td:first-child::before { content: ''; }
.verdicts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.verdicts li {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile);
  font-size: 14.5px; color: var(--ink-2);
}
.verdicts b {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill); background: var(--shell-2); color: var(--muted);
}
.verdicts .v-won b  { background: rgba(30, 156, 107, .12); color: var(--done); }
.verdicts .v-half b { background: rgba(179, 36, 28, .1); color: var(--accent); }
.verdicts .v-lost b { background: rgba(20, 17, 15, .07); color: var(--ink-2); }
.veto {
  margin-top: 16px; padding: 16px 18px; border-left: 3px solid var(--accent);
  background: rgba(179, 36, 28, .05); border-radius: 0 var(--r-tile) var(--r-tile) 0;
  font-size: 14.5px; color: var(--ink);
}

/* --- Feature grid --------------------------------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 24px; box-shadow: var(--shadow-card);
}
.feat-card__icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent-deep); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feat-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat-card p { font-size: 14.5px; margin: 0; }

/* --- Vision strip --------------------------------------------------------- */
.vision { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vision figure { position: relative; margin: 0; border-radius: var(--r-tile); overflow: hidden; aspect-ratio: 1 / 1; }
.vision img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.vision figure:hover img { transform: scale(1.04); }
.vision figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  background: linear-gradient(to top, rgba(10, 8, 7, .85), transparent);
  color: #fff; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}

/* --- Pricing -------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: 1fr .92fr; gap: 40px; align-items: start; }
.pricecard {
  background: var(--grad-pitch); color: #fff; border-radius: var(--r-card);
  padding: 34px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.pricecard .eyebrow { background: rgba(255, 255, 255, .12); color: #F2C9C4; }
.pricecard h2 { color: #fff; }
.pricecard__amount { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 6px; }
.pricecard__amount b { font-family: var(--font-headline); font-weight: 600; font-size: 74px; line-height: 1; color: #fff; }
.pricecard__amount span { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.pricecard__sub { color: rgba(255, 255, 255, .72); font-size: 15px; }
.plist { list-style: none; margin: 24px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plist li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.plist svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: #7FD3AE; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pricecard .btn { width: 100%; }
.pricecard__fine { margin: 16px 0 0; font-family: var(--font-mono); font-size: 11px; line-height: 1.7; color: rgba(255, 255, 255, .45); text-align: center; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile);
  padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow-card);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: 0 0 12px; width: 12px; height: 12px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { font-size: 15px; margin: 0 0 18px; }

/* --- Closing CTA ---------------------------------------------------------- */
.closer {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  padding: 60px 44px; color: #fff; text-align: center;
  background:
    linear-gradient(90deg, rgba(10, 5, 4, .82) 0%, rgba(10, 5, 4, .55) 55%, rgba(10, 5, 4, .3) 100%),
    url('/assets/images/focus-week.jpg') center / cover no-repeat;
}
.closer::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 340px at 88% 12%, rgba(179, 36, 28, .45) 0%, transparent 62%);
}
.closer > * { position: relative; z-index: 1; }
.closer h2 { color: #fff; max-width: 16ch; margin-left: auto; margin-right: auto; }
.closer p { color: rgba(255, 255, 255, .72); max-width: 52ch; margin: 0 auto 26px; font-size: 17px; }
.closer .eyebrow { background: rgba(255, 255, 255, .13); color: #F2C9C4; }

/* Newsletter (secondary capture) */
.subscribe {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.subscribe p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .6); width: 100%; }
.subscribe input {
  flex: 1 1 260px; max-width: 340px; padding: 13px 18px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08);
  color: #fff; font-family: var(--font-ui); font-size: 15px;
}
.subscribe input::placeholder { color: rgba(255, 255, 255, .45); }
.subscribe button { padding: 13px 22px; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 40px; background: rgba(255, 255, 255, .45); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--ink); }
.footer-meta { color: var(--faint); font-size: 12.5px; margin: 0; width: 100%; font-family: var(--font-mono); }

/* --- Buy modal ------------------------------------------------------------ */
.buy-overlay {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(8, 6, 5, .74); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.buy-overlay.open { opacity: 1; pointer-events: auto; }
.buy-modal {
  position: relative; width: min(440px, 100%); background: var(--surface);
  border-radius: var(--r-card); padding: 34px 32px 28px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
  transform: translateY(14px); transition: transform .22s ease;
}
.buy-overlay.open .buy-modal { transform: none; }
.buy-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; background: var(--shell-2); border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.buy-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.buy-modal h2 { font-size: 30px; margin-bottom: 10px; }
.buy-modal .buy-sub { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.buy-field { margin-bottom: 14px; }
.buy-field label { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.buy-field input {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--shell); font-family: var(--font-ui); font-size: 15px; color: var(--ink);
}
.buy-field input:focus { border-color: var(--accent); outline: none; background: #fff; }
.buy-error { display: none; margin: 0 0 12px; font-size: 13.5px; color: var(--accent-deep); }
.buy-error.show { display: block; }
.buy-submit {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 22px; border: 0; border-radius: var(--r-pill); background: var(--accent);
  color: #fff; font-family: var(--font-ui); font-weight: 600; font-size: 15.5px; cursor: pointer;
}
.buy-submit:hover { background: var(--accent-deep); }
.buy-submit[disabled] { opacity: .7; cursor: default; }
.buy-submit .price { font-family: var(--font-mono); font-size: 13px; background: rgba(255, 255, 255, .18); padding: 3px 9px; border-radius: var(--r-pill); }
.buy-spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.buy-trust { margin: 14px 0 0; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--faint); }

/* --- Post-checkout pages --------------------------------------------------- */
.state-wrap { padding: 70px 0 90px; }
.state-card {
  max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 40px; box-shadow: var(--shadow-lift); text-align: center;
}
.state-mark {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30, 156, 107, .12); color: var(--done);
}
.state-mark--warn { background: var(--accent-soft); color: var(--accent-deep); }
.state-mark svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.state-card h1 { font-size: clamp(30px, 4vw, 42px); }
.creds { margin: 24px 0 0; text-align: left; display: none; }
.creds.show { display: block; }
.cred-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-tile); margin-bottom: 10px; background: var(--shell);
}
.cred-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); width: 78px; }
.cred-value { flex: 1; font-family: var(--font-mono); font-size: 14px; color: var(--ink); word-break: break-all; }
.cred-copy { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; color: var(--ink-2); }
.cred-copy:hover { border-color: var(--accent); color: var(--accent); }
.state-pending { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.state-pending .sp { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--idle); border-top-color: var(--accent); animation: spin .7s linear infinite; }
.state-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.state-foot { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
.state-error { display: none; margin-top: 20px; padding: 14px 16px; border-radius: var(--r-tile); background: var(--accent-soft); color: var(--accent-deep); font-size: 14px; }
.state-error.show { display: block; }

/* --- Legal pages ---------------------------------------------------------- */
.legal-body { max-width: 780px; margin: 0 auto; padding: 10px 0 60px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.legal-body h2 { font-size: 24px; margin-top: 1.8em; }
.legal-body ul { padding-left: 1.3em; }
.legal-body li { margin-bottom: .5em; }
.legal-updated { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: .06em; }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1040px) {
  .hero-inner, .finding, .score, .pricing { grid-template-columns: 1fr; gap: 34px; }
  .finding--flip .finding__fig { order: 0; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  /* The right-hand caption is context, not content — it would clip before it wrapped. */
  .daymark__label { display: none; }
  .daymark { margin-bottom: 20px; }
  .hero { padding: 34px 0 20px; }
  .tiles, .feat-grid { grid-template-columns: 1fr; }
  .vision { grid-template-columns: repeat(2, 1fr); }
  .closer { padding: 44px 24px; }
  .pricecard { padding: 26px; }
  .state-card { padding: 26px; }
  .hero-cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Print / forced colors: fills lose their meaning, so labels carry it. */
@media (forced-colors: active) {
  .bar__fill, .ringstat__fill, .chart .series { forced-color-adjust: none; }
}
