/* ═══════════════════════════════════════════════════════════════════════════
   Moolamakers — customer route.

   Palette and faces are the campaign system. The one addition is --rose:
   every betting exchange in the world colours the two sides of a bet blue
   (back) and pink (lay), so the page borrows that vernacular rather than
   inventing a decorative accent. The ledger motif is the spine of the page.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #171a1d;
  --ink-2: #1f2429;
  --ink-3: #2a3037;
  --paper: #f7f7f3;
  --paper-2: #eceade;
  --sky: #b9d8f6;
  --blue: #91b9e8;
  --rose: #e7a7bd;
  --yellow: #f5eb4e;
  --mint: #d3e6d9;
  --muted: #5f6468;
  --dim: #9aa1a8;
  --line: rgba(23, 26, 29, .19);
  --line-dark: rgba(247, 247, 243, .15);
  --sans: Archivo, Arial, Helvetica, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --page: min(1360px, calc(100% - 64px));
}
@media (max-width: 700px) { :root { --page: calc(100% - 40px); } }

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

h1, h2, h3, p, figure, figcaption { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(50px, 8vw, 108px); line-height: .96; }
h2 { font-size: clamp(38px, 5.6vw, 74px); line-height: 1; }
h3 { font-size: clamp(23px, 2.5vw, 31px); line-height: 1.14; }
a, button { color: inherit; -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; }

.skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 16px; background: var(--yellow); color: var(--ink); font-weight: 800; transform: translateY(-180%); text-decoration: none; }
.skip:focus { transform: translateY(0); }

.page { width: var(--page); margin: 0 auto; }
.prose { max-width: 60ch; }
.lede { max-width: 62ch; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; color: var(--dim); }
.band-paper .lede, .band-paper .dim { color: var(--muted); }
.dim { color: var(--dim); }

.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: 11.5px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--dim); }
.eyebrow::after { content: ""; flex: 1; max-width: 200px; height: 1px; background: var(--line-dark); }
.band-paper .eyebrow { color: var(--muted); }
.band-paper .eyebrow::after { background: var(--line); }

.band { padding-block: clamp(78px, 10vw, 148px); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-paper { background: var(--paper); color: var(--ink); }

/* ── header ───────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(23, 26, 29, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); }
.site-header .page { min-height: 72px; display: flex; align-items: center; gap: 26px; color: var(--paper); }
.brand { margin-right: auto; font-size: 14px; line-height: 1; font-weight: 850; letter-spacing: .13em; text-decoration: none; }
.top-nav { display: flex; align-items: center; gap: 26px; font-size: 13.5px; font-weight: 650; }
.top-nav > a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--dim); }
.top-nav > a:hover { color: var(--paper); }
@media (max-width: 900px) { .top-nav > a:not(.nav-cta) { display: none; } }
.nav-cta { padding: 12px 17px; background: var(--yellow); color: var(--ink) !important; font-weight: 800; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 14px 22px; font-size: 15px; font-weight: 750; text-decoration: none; border: 1px solid transparent; transition: transform .16s ease, border-color .16s ease; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { transform: translateY(-2px); }
.btn-line { border-color: var(--line-dark); color: var(--paper); }
.btn-line:hover { border-color: var(--paper); }
.band-paper .btn-line { border-color: var(--line); color: var(--ink); }
.band-paper .btn-line:hover { border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translateY(-2px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; padding-block: clamp(52px, 7vw, 104px) clamp(64px, 8vw, 116px); overflow: clip; }
/* Radial falloff, not a hard-edged blob: it fades to transparent, so no
   crop of the hero box can leave a straight edge across the page. */
.hero::before { content: ""; position: absolute; z-index: -1; top: -22%; right: -16%; width: min(64vw, 900px); height: min(64vw, 900px); background: radial-gradient(closest-side, rgba(145, 185, 232, .30), rgba(145, 185, 232, .10) 55%, rgba(145, 185, 232, 0) 78%); pointer-events: none; }
.hero::after { content: ""; position: absolute; z-index: -1; bottom: -30%; right: 6%; width: min(40vw, 520px); height: min(40vw, 520px); background: radial-gradient(closest-side, rgba(245, 235, 78, .13), rgba(245, 235, 78, 0) 74%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(340px, .78fr); gap: clamp(34px, 5vw, 78px); align-items: start; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } .hero::before { display: none; } }
.hero h1 em { font-style: italic; color: var(--yellow); }
.hero .lede { margin-top: 30px; max-width: 51ch; }
.hero .lede strong { color: var(--paper); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--dim); max-width: 52ch; }

/* ── the ledger (the page's spine) ────────────────────────────────────── */
.ledger { background: var(--ink-2); border: 1px solid var(--ink-3); padding: clamp(20px, 2.5vw, 30px); font-variant-numeric: tabular-nums; }
.ledger-head { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 15px; border-bottom: 1px solid var(--ink-3); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.lrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--ink-3); }
.side { padding: 4px 9px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.side-back { background: rgba(145, 185, 232, .17); color: var(--blue); }
.side-lay { background: rgba(231, 167, 189, .17); color: var(--rose); }
.lrow .what { font-size: 14.5px; line-height: 1.35; }
.lrow .what small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--dim); }
.lrow .amt { font-size: 16px; font-weight: 650; white-space: nowrap; }
.amt-back { color: var(--blue); }
.amt-lay { color: var(--rose); }
.lnet { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding-top: 18px; }
.lnet + .lnet { margin-top: 18px; border-top: 1px solid var(--ink-3); }
.lnet .lbl { max-width: 27ch; font-size: 12.5px; line-height: 1.4; color: var(--dim); }
.lnet .val { font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); line-height: 1; color: var(--yellow); }
.ledger-foot { margin-top: 16px; font-size: 13px; color: var(--dim); }

.reveal { opacity: 0; transform: translateY(10px); animation: rise .6s cubic-bezier(.2,.7,.3,1) forwards; }
.d1 { animation-delay: .10s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .40s; } .d4 { animation-delay: .58s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── ticker ───────────────────────────────────────────────────────────── */
.ticker { background: var(--yellow); color: var(--ink); padding: 13px 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.ticker-track span { padding-inline: 26px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ticker-track span::after { content: "✦"; margin-left: 26px; opacity: .45; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; } }

/* ── split + steps ────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(34px, 5vw, 84px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 42px); padding: 27px 0; border-bottom: 1px solid var(--line); }
.step .num { padding-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.step p { margin-top: 10px; max-width: 52ch; font-size: 15.5px; color: var(--muted); }

/* ── worked example ───────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(292px, 1fr)); gap: 18px; margin-top: 46px; }
.card { background: var(--ink-2); border: 1px solid var(--ink-3); padding: 27px; }
.card .tag { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.card h3 { margin-top: 13px; }
.card > p { margin-top: 12px; font-size: 14.5px; color: var(--dim); }
.outcomes { margin-top: 20px; border-top: 1px solid var(--ink-3); font-variant-numeric: tabular-nums; }
.outcome { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--ink-3); font-size: 14px; }
.outcome span { color: var(--dim); }
.outcome b { font-weight: 650; white-space: nowrap; }
.either { margin-top: 15px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--yellow); }

.tally { margin-top: 46px; border-top: 1px solid var(--ink-3); font-variant-numeric: tabular-nums; }
.tally-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--ink-3); font-size: 16px; }
.tally-row .v { font-weight: 650; white-space: nowrap; }
.tally-row.big { padding: 27px 0; }
.tally-row.big .k { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); }
.tally-row.big .v { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 56px); line-height: 1; color: var(--yellow); }
.tally-row.sub { font-size: 14px; color: var(--dim); }
.tally-row.sub .v { font-weight: 500; color: var(--dim); }
.assume { margin-top: 26px; max-width: 62ch; font-size: 13.5px; color: var(--dim); }

/* ── film ─────────────────────────────────────────────────────────────── */
.films { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 46px; }
.film { background: var(--ink-2); border: 1px solid var(--ink-3); }
.film video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink-3); }
.film .meta { padding: 20px 22px 24px; }
.film .tag { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.film h3 { margin-top: 10px; font-size: 23px; }
.film p { margin-top: 9px; font-size: 14px; color: var(--dim); }

/* ── calculator ───────────────────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px, 4vw, 62px); align-items: start; margin-top: 50px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-panel { background: var(--paper-2); border: 1px solid var(--line); padding: clamp(22px, 3vw, 32px); }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.slider-top .l { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.slider-top .n { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 42px); line-height: 1; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin-top: 14px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: rgba(23,26,29,.4); }
input[type=range]::-moz-range-track { height: 2px; background: rgba(23,26,29,.4); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); }
.result { background: var(--paper); padding: 21px; }
.result .l { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.result .n { margin-top: 10px; font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); line-height: 1.04; font-variant-numeric: tabular-nums; }
.verdict { margin-top: 21px; min-height: 3.2em; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.verdict b { color: var(--ink); font-weight: 700; }
.chart-fig figcaption { margin-top: 13px; max-width: 46ch; font-size: 12.5px; color: var(--muted); }

/* ── the "nots" ───────────────────────────────────────────────────────── */
.nots { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); }
.not { background: var(--paper); padding: 25px; }
.not p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* ── stops ────────────────────────────────────────────────────────────── */
.stops { margin-top: 46px; border-top: 1px solid var(--ink-3); }
.stop { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: clamp(14px, 2.4vw, 32px); padding: 25px 0; border-bottom: 1px solid var(--ink-3); }
.stop .verdict-word { font-family: var(--serif); font-size: 27px; line-height: 1.1; color: var(--rose); }
.stop p { margin-top: 9px; max-width: 58ch; font-size: 15px; color: var(--dim); }

/* ── cta ──────────────────────────────────────────────────────────────── */
.cta { background: var(--yellow); color: var(--ink); }
.cta h2 { max-width: 15ch; }
.cta p { margin-top: 20px; max-width: 44ch; font-size: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.cta-note { max-width: 46ch; font-size: 13px; line-height: 1.5; opacity: .78; }

/* ── faq ──────────────────────────────────────────────────────────────── */
.faq { margin-top: 46px; border-top: 1px solid var(--ink-3); }
details { border-bottom: 1px solid var(--ink-3); }
summary { display: flex; gap: 20px; align-items: baseline; padding: 23px 0; list-style: none; cursor: pointer; font-family: var(--serif); font-size: clamp(21px, 2.2vw, 27px); line-height: 1.24; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font-family: var(--sans); font-size: 21px; color: var(--dim); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 25px; max-width: 66ch; font-size: 15.5px; color: var(--dim); }

/* ── footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--ink-3); padding-block: 58px; font-size: 13.5px; color: var(--dim); }
.site-footer .cols { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 76px); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer p + p { margin-top: 14px; }
.site-footer strong { color: var(--paper); font-weight: 700; }
.flag { margin-top: 22px; padding: 15px 17px; border: 1px solid var(--ink-3); border-left: 2px solid var(--yellow); font-size: 12.5px; line-height: 1.55; }
