/* UpRev — "The Ledger x Instrument" design system.
   A print-financial document: navy ink on off-white paper, a running margin rule,
   small-caps section tags, audited tables, hairline-and-paper depth, one rationed
   electric-blue. Instrument-grade proof: self-drawing SVG lines + sparklines.
   Everything is finished with JS off; motion only plays toward the final state. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'InterVar';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #10275b;
  --ink-deep: #081634;
  --ink-cover: #0b1c44;
  --ink-80: #34456c;
  --ink-65: #54618a;
  --ink-45: #8089a6;
  --ink-25: #b9c0d2;
  --rule: rgba(16, 39, 91, 0.16);
  --rule-soft: rgba(16, 39, 91, 0.09);
  --paper: #f6f8fc;
  --paper-2: #eef2f9;
  --card: #ffffff;
  --volt: #2f6bff;
  --volt-ink: #1b4fe0;

  --maxw: 1180px;
  --rail: 88px; /* left margin-rule gutter on desktop */
  --radius: 5px;
  --radius-lg: 9px;

  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 1px rgba(8, 22, 52, 0.04),
    0 14px 34px -16px rgba(8, 22, 52, 0.18);
  --shadow-float: 0 1px 1px rgba(8, 22, 52, 0.05), 0 30px 70px -28px rgba(8, 22, 52, 0.45);

  --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'InterVar', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Cascadia Code', 'Roboto Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::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;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.62;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Type */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.035em;
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
a {
  color: var(--volt-ink);
  text-decoration: none;
}
.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-80);
  max-width: 40ch;
  letter-spacing: -0.01em;
}
.measure {
  max-width: 66ch;
}
.tnum {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1, 'ss01' 1;
}

/* Small-caps eyebrow + section tag (the recurring motif) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--volt);
  margin: 0 0 1.1rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* The running margin-rule: a hairline down the content well with the section
   number in the margin. The ownable motif, repeated on every section. */
.section {
  position: relative;
  padding: clamp(64px, 9vw, 128px) 0;
}
.ledger {
  position: relative;
  padding-left: var(--rail);
}
.ledger::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}
.ledger__no {
  position: absolute;
  left: 0;
  top: 4px;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-45);
  writing-mode: vertical-rl;
}
.ledger__tag {
  display: block;
  margin-bottom: 1.4rem;
}
@media (max-width: 760px) {
  .ledger {
    padding-left: 18px;
  }
  .ledger__no {
    writing-mode: horizontal-tb;
    transform: none;
    position: static;
    background: none;
    padding: 0 0 0.6rem;
  }
}

/* Dark sections carry a barely-there vertical depth wash + fine grain, so the flat navy
   reads as a deep, premium surface rather than a solid block. Felt, not seen. */
.section--cover {
  color: #fff;
  background-color: var(--ink-cover);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 22%, rgba(0, 0, 0, 0.12));
}
.section--ink {
  color: #fff;
  background-color: var(--ink-deep);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 24%, rgba(0, 0, 0, 0.16));
}
.section--paper2 {
  background: var(--paper-2);
}
.section--cover .ledger::before,
.section--ink .ledger::before {
  background: rgba(255, 255, 255, 0.16);
}
.section--cover .ledger__no,
.section--ink .ledger__no {
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
}
.section--cover h1,
.section--cover h2,
.section--ink h2 {
  color: #fff;
}
.section--cover .lede,
.section--ink .lede {
  color: rgba(255, 255, 255, 0.74);
}
.section--cover .tag,
.section--ink .tag {
  color: rgba(255, 255, 255, 0.5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s;
  line-height: 1;
}
.btn:hover {
  text-decoration: none;
}
.btn--primary {
  background: var(--volt);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 22px -8px rgba(47, 107, 255, 0.7);
}
.btn--primary:hover {
  background: var(--volt-ink);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 14px 30px -8px rgba(47, 107, 255, 0.85);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover {
  border-color: var(--ink);
}
.section--cover .btn--ghost,
.section--ink .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.section--cover .btn--ghost:hover {
  border-color: #fff;
}
.btn--lg {
  padding: 17px 32px;
  font-size: 1.06rem;
}
.btn-sub {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink-45);
  margin-top: 0.8rem;
}
.section--cover .btn-sub {
  color: rgba(255, 255, 255, 0.55);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: var(--paper);
  }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand img {
  height: 26px;
  width: auto;
  display: block;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a:not(.btn) {
  color: var(--ink-65);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:not(.btn):hover {
  color: var(--ink);
  text-decoration: none;
}
.nav .btn {
  padding: 9px 17px;
  font-size: 0.88rem;
}
.nav-toggle {
  display: none;
}
.nav-burger {
  display: none;
}
@media (max-width: 880px) {
  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px;
    cursor: pointer;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.18s ease;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 32px rgba(16, 39, 91, 0.1);
    padding: 6px 0 16px;
    display: none;
  }
  .nav-toggle:checked ~ .nav {
    display: flex;
  }
  .nav a:not(.btn) {
    display: block;
    padding: 15px 24px;
    font-size: 1.02rem;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
  }
  .nav .btn {
    margin: 16px 24px 4px;
    width: calc(100% - 48px);
    justify-content: center;
  }
}

/* Hero cover */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #122a5e 0%, var(--ink-cover) 52%, var(--ink-deep) 100%);
  color: #fff;
  padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(135% 110% at 50% -10%, #000 26%, transparent 72%);
  mask-image: radial-gradient(135% 110% at 50% -10%, #000 26%, transparent 72%);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 150%;
  background:
    radial-gradient(36% 46% at 16% 8%, rgba(91, 140, 255, 0.5), transparent 70%),
    radial-gradient(40% 50% at 88% 4%, rgba(47, 107, 255, 0.32), transparent 72%);
  filter: blur(8px);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  to {
    transform: translate3d(-2.5%, 1.6%, 0) scale(1.07);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__glow {
    animation: none;
  }
}
.hero__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  margin: 0 0 1.6rem;
  box-shadow: 0 3px 16px rgba(11, 27, 51, 0.2);
}
.hero h1 {
  max-width: 18ch;
}
.hero h1 .accent {
  color: #fff;
  background: linear-gradient(112deg, #ffffff 0%, #bcd0ff 48%, #5b8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__promise {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 50ch;
  margin: 1.4rem 0 2.1rem;
  letter-spacing: -0.01em;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.hero__trust {
  margin-top: clamp(22px, 3vw, 30px);
  max-width: 62ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.56);
}
.readbox {
  margin-top: 56px;
  max-width: 760px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px 22px;
  background: var(--paper-2);
}
/* Markets ticker: two rows drifting slowly right, seamless via a duplicated track. */
.market-marquee {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.market-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: market-scroll 64s linear infinite;
}
.market-track--b {
  animation-duration: 82s;
}
.market-marquee:hover .market-track {
  animation-play-state: paused;
}
@keyframes market-scroll {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
.market-chip {
  flex: none;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--ink-70);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 13px;
  background: var(--paper);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.market-track .market-chip {
  margin-right: 10px;
}
.market-chip:hover {
  border-color: var(--volt);
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .market-marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .market-track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    width: auto;
    gap: 10px;
  }
  .market-track .market-chip {
    margin-right: 0;
  }
  .market-track .market-chip[aria-hidden='true'] {
    display: none;
  }
}
.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.hero .btn--ghost:hover {
  border-color: #fff;
}

/* Figures of record (hero ledger strip) */
.figures {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.figure {
  padding: 22px 22px 0 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 22px;
}
.figure:first-child {
  border-left: 0;
  padding-left: 0;
}
.figure .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1;
  color: #fff;
}
.figure .n .u {
  color: #7aa2ff;
}
.figure .l {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 9px;
}
@media (max-width: 760px) {
  .figures {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 0;
  }
  .figure:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

/* Drop-cap lede (editorial) */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  float: left;
  font-size: 3.6em;
  line-height: 0.72;
  padding: 0.06em 0.12em 0 0;
  color: var(--ink);
}

/* Audited table (the instrument proof) */
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums lining-nums;
}
.ledger-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-45);
  padding-bottom: 14px;
}
.ledger-table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-45);
  font-weight: 500;
  text-align: right;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--rule);
}
.ledger-table th:first-child {
  text-align: left;
}
.ledger-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
  text-align: right;
  font-size: 1rem;
}
.ledger-table td:first-child {
  text-align: left;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.ledger-table tr:hover,
.ledger-table tbody tr:hover {
  background: rgba(47, 107, 255, 0.035);
}
.ledger-table .pos {
  color: var(--volt-ink);
  font-weight: 600;
}
.ledger-table__act {
  text-align: right;
  white-space: nowrap;
}
.foot {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-45);
  margin-top: 14px;
  letter-spacing: 0.01em;
}

/* Visually-hidden (kept in the a11y tree for screen readers). */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Two-column explainer box (RI definition + how to read the table). Stacks on phones. */
.readbox--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 34px;
  max-width: 920px;
}
@media (max-width: 720px) {
  .readbox--split {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Receipts table -> stacked cards on phones (data-label drives each row's field labels). */
@media (max-width: 640px) {
  .ledger-table caption {
    padding-bottom: 10px;
  }
  .ledger-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ledger-table,
  .ledger-table tbody,
  .ledger-table tr,
  .ledger-table td {
    display: block;
    width: 100%;
  }
  .ledger-table tr {
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 4px 14px 12px;
    margin-bottom: 12px;
    background: var(--paper);
  }
  .ledger-table tr:hover,
  .ledger-table tbody tr:hover {
    background: var(--paper);
  }
  .ledger-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    text-align: right;
    padding: 9px 0;
    border-bottom: 1px solid var(--rule-soft);
    font-size: 0.98rem;
  }
  .ledger-table td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-45);
    text-align: left;
  }
  .ledger-table td:first-child {
    display: block;
    font-size: 1.12rem;
    text-align: left;
    padding: 4px 0 11px;
    border-bottom: 1px solid var(--rule);
  }
  .ledger-table td:first-child::before {
    content: none;
  }
  .ledger-table__act {
    display: block;
    padding-top: 13px;
    border-bottom: 0;
  }
  .ledger-table__act::before {
    content: none;
  }
  .ledger-table__act .report-btn {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* Big instrument stat (hero metric / lift) */
.bigstat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.05em;
}
.bigstat .u {
  color: var(--volt);
  font-size: 0.5em;
}

/* Generic grids + cards */
.grid {
  display: grid;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 820px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}
.cell {
  background: var(--card);
  padding: 30px 28px;
  transition: background 0.2s;
}
.cell:hover {
  background: #fff;
}
.cell__no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--volt);
  margin-bottom: 10px;
}
.cell h3 {
  margin: 0 0 0.4rem;
}
.cell p {
  margin: 0;
  color: var(--ink-65);
  font-size: 0.96rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
a.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--volt) 35%, transparent);
  text-decoration: none;
}

.split {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* CTA band */
.ctaband {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ctaband strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* Return-on-fee instrument: fee vs return bars + the 11.6x multiplier. Static bar widths so it
   is finished with JS off; the multiplier counts up like the other figures. */
.feeret {
  margin: 0;
}
.feeret__row {
  display: grid;
  grid-template-columns: 122px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.feeret__lbl {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.feeret__track {
  height: 26px;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: 5px;
  overflow: hidden;
}
.feeret__bar {
  display: block;
  height: 100%;
  border-radius: 4px 0 0 4px;
}
.feeret__bar--fee {
  background: var(--ink-25);
}
.feeret__bar--ret {
  background: var(--volt);
}
.feeret__val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  min-width: 64px;
  text-align: right;
}
.feeret__mult-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.feeret__mult {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--volt-ink);
}
.feeret__x {
  font-size: 0.5em;
  color: var(--volt);
}
.feeret__mult-l {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-65);
  max-width: 17ch;
  line-height: 1.45;
}
.feeret__cap {
  max-width: 44ch;
}

/* Google reviews — aggregate badge + review cards */
.gbadge {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px 0 34px;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.gbadge__logo svg {
  width: 30px;
  height: 30px;
}
.gbadge__score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink);
}
.gbadge__col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gbadge__stars {
  color: #fbbc04;
  letter-spacing: 2px;
  font-size: 1.05rem;
}
.gbadge__count {
  font-size: 0.9rem;
  color: var(--ink-65);
}
.gbadge .btn {
  margin-left: auto;
}
.greviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .greviews {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .greviews {
    grid-template-columns: 1fr;
  }
}
.greview {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.greview__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.greview__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.greview__id {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.greview__name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.greview__meta {
  font-size: 0.8rem;
  color: var(--ink-45);
}
.greview__g {
  margin-left: auto;
  flex: none;
}
.greview__g svg {
  width: 20px;
  height: 20px;
}
.greview__stars {
  color: #fbbc04;
  letter-spacing: 1px;
  margin: 12px 0 8px;
}
.greview__text {
  color: var(--ink-70);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

/* Why-us option cards (honest four-ways teardown, on the ink section) */
.optcard {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  height: 100%;
}
.optcard h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}
.optcard__up {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
}
.optcard__catch {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.56);
}
.optcard__catch strong {
  color: #fff;
}
.optcard--win {
  background: linear-gradient(150deg, rgba(47, 107, 255, 0.22), rgba(47, 107, 255, 0.07));
  border-color: rgba(122, 162, 255, 0.5);
  padding: 30px 28px;
}
.optcard--win h3 {
  font-size: 1.5rem;
}
.optcard--win p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 64ch;
  font-size: 1.06rem;
}
.optcard__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7aa2ff;
  margin-bottom: 8px;
}

/* Why-us win row: UpRev card + portfolio calculator side by side (on the ink section) */
.winrow {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  margin-top: 18px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .winrow {
    grid-template-columns: 1fr;
  }
}
.winrow .optcard--win {
  margin: 0;
  height: 100%;
}
.calc {
  background: linear-gradient(160deg, rgba(47, 107, 255, 0.18), rgba(8, 22, 52, 0.42));
  border: 1px solid rgba(122, 162, 255, 0.45);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.calc__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7aa2ff;
  margin-bottom: 8px;
}
.calc__h {
  margin: 0 0 18px;
  font-size: 1.3rem;
  color: #fff;
}
.calc__label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}
.calc__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
  cursor: pointer;
}
.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--volt);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8, 22, 52, 0.45);
}
.calc__slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--volt);
  cursor: pointer;
}
.calc__slider:focus-visible {
  box-shadow: 0 0 0 3px rgba(122, 162, 255, 0.4);
}
.calc__n {
  margin-top: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.calc__n .tnum {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}
.calc__result {
  margin: 22px 0 6px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.calc__month {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, #9fc0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.calc__msub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}
.calc__year {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
}
.calc__year strong {
  color: #fff;
}
.calc__note {
  margin: 16px 0 20px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}
.calc .btn {
  align-self: flex-start;
}

/* Week rail (the five-day pricing rotation in the method section) */
/* "Free until 5x" band under the method steps. */
.freeband {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px 30px;
  flex-wrap: wrap;
  border: 1px solid var(--volt);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.07), rgba(47, 107, 255, 0.02));
  padding: 22px 26px;
}
.freeband__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 62ch;
}
.freeband__text strong {
  font-family: var(--font-display);
  font-size: 1.14rem;
  color: var(--ink);
}
.freeband__text span {
  color: var(--ink-70);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Week rail: a horizontal five-day timeline (vertical, left-accented on phones). */
.weekrail {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0 16px;
}
.weekday {
  position: relative;
  padding-top: 26px;
}
.weekday::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: -16px;
  height: 2px;
  background: var(--rule);
}
.weekday:last-child::before {
  display: none;
}
.weekday__node {
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 0 4px var(--paper);
  z-index: 1;
}
.weekday__day {
  display: block;
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.weekday__note {
  margin: 7px 0 0;
  color: var(--ink-65);
  font-size: 0.9rem;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .weekrail {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .weekday {
    padding-top: 0;
    padding-left: 18px;
    border-left: 2px solid var(--volt);
  }
  .weekday::before {
    display: none;
  }
  .weekday__node {
    display: none;
  }
  .weekday__day {
    margin-top: 0;
  }
  .weekday__note {
    max-width: 60ch;
  }
}

/* Why-us: one shared CTA under both blocks. */
.winrow__cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* Inline text link */
.textlink {
  color: var(--volt-ink);
  font-weight: 600;
}
.textlink:hover {
  text-decoration: underline;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--rule-soft);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 20px;
  color: var(--volt);
  font-size: 1.4rem;
  font-weight: 300;
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq details p {
  color: var(--ink-65);
  padding-bottom: 22px;
  max-width: 70ch;
}

/* Offer */
.offer {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.offer .big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 11vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, #fff, #9fc0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Founder */
.founder {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}
.founder__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 1px solid var(--rule);
}
.founder__sig {
  font-family: var(--font-display);
  font-weight: 700;
  margin-top: 14px;
}
@media (max-width: 760px) {
  .founder {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .founder__photo {
    max-width: 220px;
  }
}

/* Footer */
.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.66);
  padding: 60px 0 40px;
  font-size: 0.92rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  margin-bottom: 9px;
}
.footer-fine {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

/* Sticky mobile CTA */
.mobilecta {
  display: none;
}
@media (max-width: 760px) {
  .mobilecta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule-soft);
  }
  .mobilecta .btn {
    width: 100%;
    justify-content: center;
  }
  body {
    padding-bottom: 78px;
  }
}

/* Forms */
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-65);
  margin-bottom: 7px;
}
.field input,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font: inherit;
  background: var(--card);
  color: var(--ink);
}
.field input:focus,
.field select:focus {
  outline: 2px solid var(--volt);
  outline-offset: 1px;
  border-color: var(--volt);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.hp {
  position: absolute;
  left: -9999px;
}

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 2px;
  border-radius: 3px;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--volt);
  border: 1px solid color-mix(in srgb, var(--volt) 35%, transparent);
  padding: 5px 11px;
  border-radius: 999px;
}
.note {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-45);
  letter-spacing: 0.01em;
}
/* ---- Legal documents (terms, privacy, service terms, PFOS): readable long-form ---- */
.legal-doc {
  color: var(--ink-80);
  line-height: 1.75;
  font-size: 0.98rem;
}
.legal-doc h2 {
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 38px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
}
.legal-doc h2:first-child {
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
}
.legal-doc h3 {
  font-size: 1.02rem;
  color: var(--ink);
  margin: 22px 0 6px;
}
.legal-doc p {
  margin: 0 0 14px;
}
.legal-doc ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-doc li {
  margin: 0 0 7px;
}
.legal-doc strong {
  color: var(--ink);
}
.legal-doc a {
  color: var(--volt-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stars {
  color: #f5b301;
  letter-spacing: 1px;
}

/* Motion: rule-wipe reveal + text rise. Layer 0 = final state. */
.reveal {
  opacity: 1;
}
.rule-wipe {
  position: relative;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ---- Dynamic layer: scroll progress, hero spotlight, magnetic CTA, eyebrow rule-wipe ---- */
#scrollbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--volt), #7aa2ff);
  z-index: 80;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero__spot {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(440px 440px at var(--mx, 26%) var(--my, 16%), rgba(122, 162, 255, 0.28), transparent 66%);
  opacity: 0;
  transition: opacity 0.6s ease;
  mix-blend-mode: screen;
}
.hero:hover .hero__spot {
  opacity: 1;
}
@media (pointer: coarse) {
  .hero__spot {
    display: none;
  }
}
.btn.is-magnetic {
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.5, 1), box-shadow 0.16s var(--ease), background 0.16s;
}

/* The signature: a short rule wipes in under each section eyebrow as it enters. */
.eyebrow {
  display: block;
  position: relative;
}
.eyebrow::after {
  content: '';
  display: block;
  height: 2px;
  width: 34px;
  margin-top: 10px;
  background: var(--volt);
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .eyebrow::after {
      width: 0;
      animation: wipe linear both;
      animation-timeline: view();
      animation-range: entry 8% entry 44%;
    }
  }
}
@keyframes wipe {
  to {
    width: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #scrollbar {
    display: none;
  }
}

/* ---- Course player (The Revenue Management Playbook) ---- */
.course {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 36px;
  align-items: start;
}
.player-col {
  position: sticky;
  top: 86px;
}
.player-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
}
#player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}
.player-meta {
  padding: 16px 2px 0;
}
/* "Have us run it" panel under the player. Updates per unit as lessons play (course.js).
   Visible while watching; native fullscreen video covers it, so it hides itself in fullscreen. */
.player-cta {
  margin-top: 20px;
  padding: 20px 22px 22px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--volt);
  border-radius: var(--radius-lg);
}
.player-cta__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 9px;
}
.player-cta__h {
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 9px;
}
.player-cta__p {
  margin: 0 0 16px;
  color: var(--ink-80);
  font-size: 0.95rem;
  line-height: 1.55;
}
.player-cta__sub {
  margin: 11px 0 0;
}
@media (max-width: 540px) {
  .player-cta__btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}
/* Short-laptop above-the-fold: on ~13in screens the pinned column can't fit the full
   CTA next to the 16:9 video, so drop only the CTA body paragraph. The hook headline +
   button + reassurance stay visible above the fold; the big video is untouched. Desktop
   only (min-width:901px) so mobile keeps the full copy. */
@media (max-height: 840px) and (min-width: 901px) {
  .player-meta {
    padding-top: 10px;
  }
  .player-meta h3 {
    font-size: 1.02rem;
  }
  .player-cta {
    margin-top: 10px;
    padding: 14px 18px 16px;
  }
  .player-cta__eyebrow {
    margin-bottom: 6px;
  }
  .player-cta__h {
    font-size: 1.04rem;
    margin-bottom: 6px;
  }
  .player-cta__p {
    display: none;
  }
  .player-cta__sub {
    margin-top: 8px;
  }
}
/* End-of-lesson card. course.js overlays it on the finished video's last frame with the
   playing unit's ask (course-cta.ts `end`). Replay + Next lead; the ask is the calm third
   option, so it reads as a chapter end-card, not a pitch. */
.player-end {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 24px;
  background: rgba(8, 18, 42, 0.93);
  color: #fff;
}
.player-end.is-on {
  display: flex;
}
.player-end__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7aa2ff;
  margin-bottom: 12px;
}
.player-end__h {
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 24ch;
  margin: 0 0 20px;
}
/* The unit's ask is the big primary button (same style as every other CTA on the site);
   Replay + Next sit under it, smaller and quieter. */
.player-end__cta {
  margin: 0;
}
.player-end__actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.player-end__ctrl {
  background: none;
  border: 0;
  padding: 4px 6px;
  color: #cdd9f5;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.player-end__ctrl:hover {
  color: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  .player-end.is-on {
    animation: end-card-in 0.22s var(--ease);
  }
}
@keyframes end-card-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Never stack two asks on mobile: hide the sticky bottom CTA bar while the card is up. */
body.endcard-on .mobilecta {
  display: none;
}
.unit {
  margin-bottom: 22px;
}
.lessons {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.lessons li {
  margin: 0;
}
.lesson {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  text-decoration: none;
  padding: 12px 10px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-80);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.lesson:hover {
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
}
.lesson.active {
  color: var(--volt-ink);
  background: rgba(47, 107, 255, 0.07);
  font-weight: 600;
}
.lesson .ln-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-45);
  min-width: 42px;
  flex: none;
}
.lesson.active .ln-num {
  color: var(--volt-ink);
}
.lesson .ln-title {
  font-size: 0.98rem;
  line-height: 1.35;
}
@media (max-width: 900px) {
  .course {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .player-col {
    position: static;
  }
}

/* ============================================================
   /proof - redacted real reports gallery + homepage proof CTA
   ============================================================ */
.proofagg {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.proofagg__cell {
  padding: 22px 22px 22px 0;
  border-left: 1px solid var(--rule-soft);
  padding-left: 22px;
}
.proofagg__cell:first-child {
  border-left: 0;
  padding-left: 0;
}
.proofagg__n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1;
  color: var(--ink);
}
.proofagg__l {
  margin-top: 8px;
  color: var(--ink-45);
  font-size: 0.92rem;
  line-height: 1.4;
  max-width: 22ch;
}
.prooflist {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.proofcard {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 39, 91, 0.04);
}
.proofcard__thumb {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(210px, 26vw, 280px);
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}
.proofcard__thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.proofcard__thumb:hover img,
.proofcard__thumb:focus-visible img {
  transform: scale(1.03);
}
.proofcard__thumb:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: -2px;
}
.proofcard__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: rgba(8, 16, 38, 0.82);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(8, 16, 38, 0.35);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.proofcard__thumb:hover .proofcard__zoom,
.proofcard__thumb:focus-visible .proofcard__zoom {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none) {
  .proofcard__zoom {
    opacity: 1;
    transform: none;
  }
}
.proofcard__body {
  padding: 20px 22px 22px;
}
.proofcard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.proofcard__market {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
}
.proofcard__when {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-45);
  text-align: right;
  flex: none;
}
.proofcard__stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 16px;
}
.proofstat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.proofstat__n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1;
  color: var(--ink);
}
.proofstat--hero .proofstat__n {
  color: var(--volt-ink);
}
.proofstat__l {
  font-size: 0.74rem;
  color: var(--ink-45);
  line-height: 1.25;
}
/* "View the full report" button: opens the report in the shared modal viewer (same as the
   thumbnail). Full-width + labeled so the action is obvious on mobile. */
.proofdoc__open {
  margin-top: 18px;
  width: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--volt-ink);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.proofdoc__open svg {
  flex: none;
}
.proofdoc__open:hover,
.proofdoc__open:focus-visible {
  border-color: var(--volt);
  background: rgba(47, 107, 255, 0.05);
}
/* Real owner report on the dark "reporting" section (home 03). Click -> full 4-page modal. */
.ownerdoc {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.ownerdoc__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease;
}
.ownerdoc:hover .ownerdoc__img,
.ownerdoc:focus-visible .ownerdoc__img {
  transform: scale(1.02);
}
.ownerdoc:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.ownerdoc__hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 16, 38, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 13px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.ownerdoc:hover .ownerdoc__hint,
.ownerdoc:focus-visible .ownerdoc__hint {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none) {
  .ownerdoc__hint {
    opacity: 1;
    transform: none;
  }
}
.ownerdoc__cap {
  margin-top: 16px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}
.proofnote {
  margin-top: 52px;
  border-top: 1px solid var(--rule);
  padding-top: 30px;
}
/* Homepage receipts -> proof handoff */
.proofcta {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  padding: 20px 24px;
}
.proofcta strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
}
@media (max-width: 760px) {
  .proofagg {
    grid-template-columns: 1fr;
  }
  .proofagg__cell {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule-soft);
  }
  .proofagg__cell:first-child {
    border-top: 0;
  }
  .prooflist {
    grid-template-columns: 1fr;
  }
  .proofcta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Hero testimonial player (click-to-play, native-controls fallback)
   ============================================================ */
.vplayer {
  position: relative;
  margin: 0;
  max-width: 940px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0b1430;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 50px rgba(16, 39, 91, 0.16);
}
.vplayer__v {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #0b1430;
}
/* Big play affordance (shown only when JS is on; native controls are the no-JS path). */
.vplayer__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  cursor: pointer;
  padding-left: 5px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease, background 0.16s ease;
}
.vplayer__play:hover {
  transform: scale(1.06);
  background: #fff;
}
.vplayer__play:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 3px;
}
.vplayer.is-playing .vplayer__play {
  display: none;
}
/* The hidden attribute must win over the display rules (class ties the UA [hidden] rule). */
.vplayer__play[hidden],
.vplayer__end[hidden] {
  display: none !important;
}
/* End card: Replay + Book, shown when the montage finishes. */
.vplayer__end {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background: rgba(8, 16, 38, 0.86);
  backdrop-filter: blur(2px);
}
.vplayer__endh {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}
.vplayer__endrow {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.vplayer__replay {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.vplayer__replay:hover {
  border-color: #fff;
}
.vplayer__cta {
  margin-top: 26px;
}

/* ============================================================
   Report modal (shared <dialog>, populated by motion.js)
   ============================================================ */
.btn--sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}
.report-btn {
  white-space: nowrap;
}
.rmodal {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.rmodal[open] {
  display: grid;
  place-items: center;
}
.rmodal::backdrop {
  background: rgba(8, 16, 38, 0.8);
  backdrop-filter: blur(3px);
}
.rmodal__inner {
  width: min(940px, 94vw);
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}
.rmodal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  flex: none;
}
.rmodal__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.rmodal__close {
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-45);
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.rmodal__close:hover,
.rmodal__close:focus-visible {
  color: var(--ink);
  background: var(--paper-2);
}
.rmodal__body {
  overflow: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper-2);
  -webkit-overflow-scrolling: touch;
}
.rmodal__page {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(16, 39, 91, 0.1);
}
.rmodal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--rule);
  flex: none;
}
/* /proof keeps only Close: sit it on the right like a conventional dismiss. */
.rmodal--onebtn .rmodal__foot {
  justify-content: flex-end;
}
.rmodal__closetext {
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-80);
}
.rmodal__closetext:hover {
  border-color: var(--ink-45);
  color: var(--ink);
}
@media (max-width: 600px) {
  .rmodal__inner {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .rmodal__body {
    padding: 10px;
  }
}
