/* First £1 to £100k, v2. Light and airy, after readwise.io/books:
   warm glows, big rounded panels, floating white cards, one geometric sans.
   Brand colours from the book cover: charcoal and old gold. */

:root {
  --bg: #faf9f6;
  --ink: #2b2b29;
  --ink-2: #4a4945;
  --mute: #75736d;
  --line: #ebe8e1;
  --card: #ffffff;
  --coal: #21211f;
  --gold: #e3b341;
  --gold-deep: #9a6d0b;     /* gold text on light (large text) */
  --gold-wash: #fbeac0;
  --wash: #fdf5e3;
  --stone: #d9d5ca;

  --sans: "Plus Jakarta Sans", "Avenir Next", system-ui, sans-serif;
  --display: "Barlow Condensed", "DIN Condensed", "Arial Narrow", sans-serif;

  --r-panel: 28px;
  --r-card: 16px;
  --shadow: 0 1px 2px rgb(60 40 0 / .05), 0 12px 32px -8px rgb(60 40 0 / .14);
  --max: 76rem;
  --gutter: clamp(1rem, 3vw, 2rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--sans); color: var(--ink); margin: 0; letter-spacing: -.035em; line-height: 1.06; font-weight: 600; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .3em;
  min-height: 3rem; padding: .6rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font: 600 1rem/1 var(--sans); text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgb(33 33 31 / .45); }
.pill:active { transform: translateY(0); box-shadow: none; }
.pill:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.pill-ghost { background: rgb(255 255 255 / .7); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 8px 20px -8px rgb(60 40 0 / .25); }
.pill-small { min-height: 2.4rem; padding: .4rem 1.1rem; font-size: .92rem; }
.pill-wide { width: 100%; }
.text-btn { background: none; border: 0; font: 500 .95rem var(--sans); color: var(--mute); cursor: pointer; padding: .6rem; text-decoration: underline; text-underline-offset: .2em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 2rem;
  padding: .8rem var(--gutter); background: rgb(250 249 246 / .8);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.logo svg { width: 30px; height: 30px; }
.nav nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 52rem) { .nav nav { display: none; } .nav .pill { margin-left: auto; } }

/* Panels and cards */
.panel { position: relative; border-radius: var(--r-panel); overflow: hidden; background: linear-gradient(160deg, var(--wash), #fbf7ee 55%, #f6f2e8); }
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); }
.card-kicker { font-size: .78rem; font-weight: 600; color: var(--mute); margin: 0 0 .5rem; }
.big { font: 700 1.7rem/1 var(--sans); letter-spacing: -.03em; color: var(--ink); margin: 0 0 .7rem; }
.big small { font-size: .85rem; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.big-s { font: 700 1.1rem/1.2 var(--sans); color: var(--ink); margin: 0 0 .5rem; letter-spacing: -.02em; }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) var(--gutter) 0; }
.center-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.center-head p { color: var(--mute); font-size: 1.1rem; margin-top: 1rem; }

/* HERO */
.hero { max-width: calc(var(--max) + 4rem); margin: 0 auto; padding: .5rem var(--gutter) 0; }
.hero-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; min-height: min(78vh, 46rem); padding: clamp(2.5rem, 6vw, 5rem); }
.glow-a { width: 34rem; height: 34rem; right: 4%; top: 8%; background: radial-gradient(circle, #f7d68a 0%, rgb(247 214 138 / 0) 70%); opacity: .75; }
.glow-b { width: 26rem; height: 26rem; left: -8rem; bottom: -10rem; background: radial-gradient(circle, #fde3b0, transparent 70%); opacity: .7; }
.hero-copy { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.9rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.045em; }
.hero-title b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
/* "£100k" always sits on its own line at its final width, so the count-up never reflows the title */
.swash-wrap { position: relative; display: grid; width: max-content; white-space: nowrap; }
.swash-wrap::before { content: "£100k"; grid-area: 1 / 1; visibility: hidden; font-weight: 700; }
.swash-wrap b { grid-area: 1 / 1; }
.swash { position: absolute; left: -2%; right: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.swash path { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 30rem; margin: 1.6rem 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.note { margin: 1.2rem 0 0; font-size: .9rem; color: var(--mute); }

.stage { position: relative; z-index: 1; display: grid; place-items: center; min-height: 30rem; perspective: 1600px; }
.book { position: relative; width: min(64%, 17.5rem); transform: rotateY(-16deg) rotateX(3deg); transform-style: preserve-3d; border-radius: 3px 6px 6px 3px; box-shadow: 0 40px 60px -24px rgb(40 30 0 / .55), 0 2px 4px rgb(0 0 0 / .2); }
.book::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5%; z-index: 3; background: linear-gradient(90deg, rgb(0 0 0 / .45), rgb(255 255 255 / .14) 45%, transparent); border-radius: 3px 0 0 3px; }
.book-flat { transform: rotateY(-10deg); }

.float { position: absolute; z-index: 3; padding: 1rem 1.1rem; }
.stage .book { margin-right: 16%; }
.f1 { right: -10%; top: 2%; width: 13.5rem; }
.f2 { right: -12%; top: 46%; width: 12.5rem; }
.f3 { left: -6%; bottom: -3%; width: 13rem; }
.checks { list-style: none; margin: 0; padding: 0; font-size: .86rem; font-weight: 500; color: var(--ink); }
.checks li { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; }
.checks i { width: 1.1rem; height: 1.1rem; border-radius: 50%; flex: none; position: relative; box-shadow: inset 0 0 0 1.5px var(--stone); }
.checks .done i { background: var(--ink); box-shadow: none; }
.checks .done i::after { content: ""; position: absolute; left: .34rem; top: .2rem; width: .3rem; height: .55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks .now i { box-shadow: inset 0 0 0 1.5px var(--gold); background: radial-gradient(circle, var(--gold) 0 35%, transparent 38%); }
.mini-bars { width: 100%; height: auto; display: block; }
.bar { height: .5rem; border-radius: 999px; background: #f1ede3; overflow: hidden; }
.bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #f0cf73); transform-origin: left; }

/* Web cover (the book cover in HTML + SVG, cqw units) */
.wcover { position: relative; aspect-ratio: 210 / 297; container-type: inline-size; overflow: hidden; background: var(--coal); border-radius: 3px 6px 6px 3px; }
.wcover > p { position: absolute; z-index: 2; margin: 0; font-family: var(--display); }
.wc-kick { top: 7cqw; left: 8cqw; font-size: 3.4cqw; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.wc-title { top: 16cqw; left: 7.2cqw; font-weight: 700; text-transform: uppercase; line-height: .82; color: #f5f3ec; }
.wc-title span { display: block; font-size: 17.5cqw; }
.wc-title b { display: block; margin-top: 3cqw; font-size: 41cqw; color: var(--gold); letter-spacing: -.02em; }
.wc-sub { top: 80cqw; left: 8cqw; width: 44cqw; font-size: 5.4cqw; font-weight: 500; line-height: 1.12; color: #d9d6cc; }
.wc-foot { bottom: 8cqw; left: 8cqw; font-size: 3.4cqw; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #9d9a91; }
.cover-coins { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

/* SNOWBALL */
.calc-panel { padding: clamp(1rem, 4vw, 3.5rem); }
.calc-card { padding: clamp(1.2rem, 3vw, 2.4rem); }
.controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1.4rem 2.6rem; margin: 0 0 1.6rem; }
.control { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .4rem 1rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.control-label { font-size: .9rem; font-weight: 500; color: var(--mute); padding: 0; }
.control output { font: 700 1.5rem/1 var(--sans); color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.control input[type=range] { grid-column: 1 / -1; }
.rates { grid-template-columns: auto; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2rem; background: transparent; cursor: pointer; margin: 0; --fill: 12%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--fill), #ece8de var(--fill)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--fill), #ece8de var(--fill)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 3px 8px rgb(0 0 0 / .2); transition: transform .15s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px rgb(227 179 65 / .5); }
.seg { display: inline-flex; background: #f3f0e8; border-radius: 999px; padding: 4px; gap: 2px; margin-top: .3rem; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { font: 600 .95rem/1 var(--sans); padding: .55rem 1rem; border-radius: 999px; cursor: pointer; color: var(--ink-2); transition: background .25s var(--ease), color .25s, box-shadow .25s; }
.seg input:checked + label { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgb(60 40 0 / .15); }
.seg input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }

.readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.readout > div { background: #faf8f3; border-radius: 12px; padding: 1rem 1.2rem; }
.readout span { display: block; font-size: .85rem; color: var(--mute); }
.readout b { display: block; font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--sans); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: .2rem; }
.readout > div:first-child { background: var(--gold-wash); }

.chart { position: relative; margin: 1.6rem 0 0; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart figcaption { font-size: .85rem; color: var(--mute); margin-top: 1rem; max-width: 46em; }
.chart .axis { font: 500 14px var(--sans); fill: var(--mute); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .target { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 6; }
.chart .target-label { font: 700 15px var(--sans); fill: var(--ink); }
.chart .paid { fill: #e4e0d6; }
.chart .rim { fill: #f0cf73; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .stack { transform-box: fill-box; transform-origin: bottom; }
.chart.wait .stack { transform: scaleY(0); }
.chart.grow .stack { animation: stack-grow .9s var(--ease) both; animation-delay: calc(var(--i) * 28ms); }
.chart .stack rect, .chart .stack ellipse { transition: y .5s var(--ease), height .5s var(--ease), cy .5s var(--ease); }
.chart .target-g { transition: transform .5s var(--ease); }
.legend { display: flex; gap: 1.2rem; font-size: .88rem; font-weight: 500; color: var(--ink-2); margin-bottom: .4rem; }
.legend i { display: inline-block; width: .75em; height: .75em; border-radius: 3px; margin-right: .4em; vertical-align: -.05em; }
.k-paid { background: #d9d6cc; }
.k-gold { background: var(--gold); }
.tip { position: absolute; pointer-events: none; z-index: 3; background: var(--ink); color: #fff; border-radius: 10px; padding: .55rem .8rem; font-size: .85rem; line-height: 1.35; white-space: nowrap; box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 12px)); }
.tip b { font-size: 1.15rem; }

/* CHAPTERS MARQUEE */
.chapters { max-width: none; padding-left: 0; padding-right: 0; }
.wash-band { margin: 0 var(--gutter); padding: clamp(3rem, 7vw, 5rem) 0; background: radial-gradient(60% 80% at 50% 0%, #fbe1a6 0%, #fdf1d6 45%, #faf6ec 100%); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { list-style: none; margin: 0; padding: .5rem 0 1.5rem; display: flex; gap: 1rem; width: max-content; }
.marquee:hover .track { animation-play-state: paused; }
.ch {
  width: 9.5rem; height: 13.4rem; flex: none; border-radius: 4px 8px 8px 4px; padding: 1rem .9rem;
  display: flex; flex-direction: column; justify-content: space-between; position: relative;
  box-shadow: 0 18px 28px -14px rgb(60 40 0 / .4), 0 1px 2px rgb(0 0 0 / .1);
  transition: transform .3s var(--ease);
}
.ch::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(90deg, rgb(0 0 0 / .25), transparent); border-radius: 4px 0 0 4px; }
.ch:hover { transform: translateY(-6px) rotate(-1deg); }
.ch span { font: 600 .72rem/1 var(--sans); opacity: .75; }
.ch b { font: 700 1.55rem/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.c-coal { background: var(--coal); color: #f5f3ec; }
.c-coal b { color: var(--gold); }
.c-gold { background: var(--gold); color: var(--coal); }
.c-paper { background: #fff; color: var(--ink); }
.c-stone { background: #e7e1d2; color: var(--ink); }

/* PLAN (split) */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-copy > p { color: var(--ink-2); margin-top: 1.2rem; font-size: 1.1rem; max-width: 30rem; }
.steps { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: .9rem; padding: .55rem 0; font-weight: 500; color: var(--ink); }
.steps b { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font: 700 .9rem var(--sans); }
.art-panel { padding: clamp(1.5rem, 4vw, 3rem); }
.art { display: block; width: 100%; height: auto; overflow: visible; }
.f4 { left: 6%; top: 8%; width: 14rem; }
.tick-line { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .85rem; color: var(--mute); }
.tick-line i { width: 1rem; height: 1rem; border-radius: 50%; background: var(--gold); position: relative; flex: none; }
.tick-line i::after { content: ""; position: absolute; left: .32rem; top: .17rem; width: .28rem; height: .5rem; border: solid var(--coal); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* USEFUL BITS */
.bits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
.bit h3 { margin: 1.3rem 0 .5rem; }
.bit p { color: var(--mute); margin: 0; max-width: 32rem; }
.bit-art { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 1.5rem 2rem; }
.bit-art .art { width: auto; height: 100%; max-width: 100%; }
.bit-ui { padding: 2rem; }
.sheet, .mail { width: min(100%, 22rem); padding: 1.2rem 1.3rem; }
.sheet .row { display: flex; justify-content: space-between; align-items: baseline; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.sheet .row span { color: var(--ink-2); }
.sheet em { font-style: normal; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.sheet em.gold { color: var(--gold-deep); }
.sheet .blank { display: block; width: 4.5rem; border-bottom: 1.5px dashed var(--stone); height: 1em; }
.mail { font-size: .9rem; position: relative; }
.mail-head { margin: 0; padding: .4rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.mail-head b { color: var(--ink); font-weight: 600; }
.mail-body { margin: .7rem 0 0; color: var(--ink); }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--ink); vertical-align: -.15em; margin-left: 2px; }
.send { display: inline-block; margin-top: 1rem; padding: .35rem .9rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; }

/* FIT */
.fit-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4rem; padding: clamp(2rem, 5vw, 4rem); background: var(--coal); color: #d9d6cc; }
.fit-panel h2 { color: #f5f3ec; }
.fit-panel h3 { color: #a29f96; font-size: 1.5rem; }
.ticks { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.ticks li { position: relative; padding: .55rem 0 .55rem 2rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--gold); }
.ticks li::after { content: ""; position: absolute; left: .42rem; top: 1.02rem; width: .3rem; height: .55rem; border: solid var(--coal); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fit-panel .ticks li { color: #f5f3ec; font-size: 1.1rem; }
.dashes { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.dashes li { position: relative; padding: .5rem 0 .5rem 1.8rem; color: #a29f96; }
.dashes li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 1rem; height: 2px; background: #6b6963; }

/* READERS (placeholder quotes: see the comment in index.html)
   Two feature cards, then two rows of quotes drifting in opposite directions.
   Each row holds its cards twice (v2.js) and moves -50%, so the loop has no seam.
   Spacing is a margin on the card, not a flex gap, or the seam is one gap short. */
.tcards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tcard { margin: 0; position: relative; display: flex; flex-direction: column; gap: 1.2rem; padding: clamp(1.8rem, 3.5vw, 2.6rem); background: var(--card); border-radius: 32px; box-shadow: var(--shadow); }
.tcard .tmark { font-size: 3rem; line-height: .8; }
.tquote { margin: 0; }
.tquote p { margin: 0; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.38; font-weight: 600; letter-spacing: -.02em; color: var(--ink); text-wrap: pretty; }
.tquote em { font-style: normal; color: var(--gold-deep); }
.tby, .qby { display: grid; gap: .2rem; margin: 1.2rem 0 0; line-height: 1.25; }
.tby b, .qby b { font-size: .9rem; font-weight: 700; color: var(--ink); }
.tby span, .qby span { font-size: .8rem; color: var(--mute); }

.qmarquee { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.qrow { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.qtrack { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; }
.qrow:hover .qtrack, .qrow:focus-within .qtrack { animation-play-state: paused !important; }
.qcard { width: 22rem; flex: none; margin-right: 1.5rem; display: flex; flex-direction: column; padding: 1.6rem 1.8rem; border-radius: var(--r-card); background: rgb(255 255 255 / .7); border: 1px solid var(--line); }
.qmark { font: 800 2rem/1 var(--sans); color: var(--gold); }
.qmark span { color: var(--coal); }
.qcard blockquote { margin: .8rem 0 0; }
.qcard em { font-style: normal; color: var(--gold-deep); }
.qcard blockquote p { margin: 0; font-size: 1rem; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.qcard .qby { margin-top: auto; padding-top: 1.3rem; }
@media (max-width: 60rem) {
  .tcards { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .tcard { padding: 1.6rem 1.5rem; }
  .tcard .tmark { font-size: 2.4rem; }
  .qcard { width: 17rem; padding: 1.3rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .qrow { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* BUY */
.buy-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; padding: clamp(2rem, 6vw, 5rem); }
.glow-c { width: 30rem; height: 30rem; left: 10%; top: 10%; background: radial-gradient(circle, #f7d68a, transparent 70%); opacity: .7; }
.buy-book { position: relative; display: grid; place-items: center; perspective: 1400px; }
.buy-book .book { width: min(70%, 16rem); }
.buy-card { position: relative; padding: clamp(1.6rem, 3vw, 2.4rem); max-width: 26rem; }
.buy-card h2 { font-size: 2rem; }
.price { display: flex; align-items: baseline; gap: .7rem; margin: .8rem 0 1rem; font: 700 3.6rem/1 var(--sans); letter-spacing: -.05em; color: var(--ink); }
.price small { font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--mute); }
.buy-card .ticks { margin: 0 0 1.6rem; }
.buy-card .ticks li { font-size: .95rem; color: var(--ink-2); padding: .4rem 0 .4rem 1.9rem; }
.buy-card .ticks li::before { top: .6rem; width: 1.1rem; height: 1.1rem; }
.buy-card .ticks li::after { top: .76rem; left: .4rem; }
.secure { margin: .9rem 0 0; font-size: .85rem; color: var(--mute); text-align: center; }

/* FAQ */
.faq { max-width: 48rem; }
.faq h2 { text-align: center; margin-bottom: 2rem; }
details { background: #fff; border-radius: var(--r-card); box-shadow: 0 1px 2px rgb(60 40 0 / .05); margin-bottom: .7rem; padding: 0 1.4rem; transition: box-shadow .25s; }
details[open] { box-shadow: var(--shadow); }
summary { list-style: none; cursor: pointer; padding: 1.15rem 2rem 1.15rem 0; position: relative; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: .2rem; top: 50%; width: .55rem; height: .55rem; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { color: var(--mute); padding-bottom: 1.2rem; margin: 0; }

/* FOOTER */
.foot { max-width: var(--max); margin: clamp(4rem, 9vw, 7rem) auto 0; padding: 2.5rem var(--gutter) 3.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 1rem 4rem; }
.logo-foot { font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -.02em; }
.disclaimer { font-size: .85rem; color: var(--mute); margin: 0; max-width: 52rem; }
.legal-note { font-size: .8rem; line-height: 1.45; color: var(--mute); margin: .8rem 0 0; }
.legal-note a { color: inherit; text-underline-offset: .18em; }
.foot-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 0; list-style: none; font-size: .88rem; }
.foot-links a { color: var(--mute); text-underline-offset: .2em; }
.foot-links a:hover { color: var(--ink); }

/* DIALOG */

/* STICKY CTA */
.sticky-cta {
  position: fixed; z-index: 40; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: .9rem; padding: .5rem;
  background: rgb(255 255 255 / .86); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-radius: 14px; /* concentric: cover radius 6px + padding 8px */
  box-shadow: 0 0 0 1px rgb(60 40 0 / .06), 0 18px 40px -12px rgb(60 40 0 / .35);
  transform: translate(-50%, calc(100% + 2rem)); opacity: 0;
  visibility: hidden; transition: transform .5s var(--ease), opacity .3s, visibility 0s .5s;
}
.sticky-cta.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.sc-cover { width: 2.1rem; height: 2.95rem; flex: none; border-radius: 3px 6px 6px 3px; background: var(--coal); display: grid; place-items: end center; padding-bottom: .35rem; box-shadow: 0 4px 10px -2px rgb(0 0 0 / .35); }
.sc-cover b { font: 700 .62rem/1 var(--display); color: var(--gold); }
.sc-text { margin: 0; display: grid; line-height: 1.2; padding-right: .6rem; }
.sc-text b { color: var(--ink); font-size: .95rem; letter-spacing: -.02em; white-space: nowrap; }
.sc-text span { font-size: .8rem; color: var(--mute); }
.sticky-cta .pill { align-self: stretch; min-height: 0; padding: .45rem 1.3rem; font-size: .95rem; white-space: nowrap; border-radius: 8px; }
@media (max-width: 30rem) {
  .sticky-cta { left: .75rem; right: .75rem; transform: translateY(calc(100% + 2rem)); }
  .sticky-cta.show { transform: none; }
  .sticky-cta .pill { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---------- MOTION ----------
   Blocks start paused on frame one; script.js adds .in when each scrolls into
   view. No JS, or reduced motion: everything shows in its final state. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-animate], .js [data-animate] * { animation-play-state: paused; }
  .js [data-animate].in, .js [data-animate].in * { animation-play-state: running; }

  /* reveal: each block rises in, soft and slow */
  [data-animate]:not(.stage) { animation: reveal 1s var(--ease) both; }
  .bit:nth-child(2) { animation-delay: .12s; }
  .bit:nth-child(4) { animation-delay: .12s; }
  .tcard:nth-child(2) { animation-delay: .12s; }

  /* hero: copy staggers in, the gold swash draws under £100k after the count */
  .hero-copy { animation: none !important; }
  .hero-copy > * { animation: reveal .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .hero-copy > :nth-child(3) { animation-delay: .24s; }
  .hero-copy > :nth-child(4) { animation-delay: .36s; }
  .swash path { animation: draw 1s var(--ease) 2.2s both; }

  /* the book swings in; the cards pop in around it, then float */
  .stage .book { animation: book-in 1.3s var(--ease) .1s both; }
  .float { animation: pop .8s cubic-bezier(.3, 1.4, .5, 1) both, bob 6s ease-in-out infinite; }
  .f1 { animation-delay: .9s, 1.7s; }
  .f2 { animation-delay: 1.15s, 2.4s; }
  .f3 { animation-delay: 1.4s, 3.1s; }
  .f4 { animation-delay: 1.6s, 2.4s; }
  .checks li { animation: reveal .5s var(--ease) both; }
  .checks li:nth-child(1) { animation-delay: 1.3s; } .checks li:nth-child(2) { animation-delay: 1.5s; } .checks li:nth-child(3) { animation-delay: 1.7s; }
  .checks .done i { animation: tick-in .4s cubic-bezier(.3, 1.6, .5, 1) both; }
  .checks li:nth-child(1) i { animation-delay: 1.6s; } .checks li:nth-child(2) i { animation-delay: 1.8s; }
  .mini-bars rect { transform-box: fill-box; transform-origin: bottom; animation: stack-grow .7s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(1.5s + var(--i) * .06s); }
  .bar span { animation: bar-fill 1.6s var(--ease) 1.8s both; }

  /* cover coins: J-curve growth, then a glint */
  .stk { transform-box: fill-box; transform-origin: 50% 100%; animation: stack-grow .9s cubic-bezier(.3, 1.35, .5, 1) both; animation-delay: calc(.8s + var(--i) * .13s); }
  .glint { animation: glint 6s ease-in-out 2.4s infinite both; }
  .buy-panel .stk { animation-delay: calc(.3s + var(--i) * .1s); }

  /* marquee of chapters */
  .track { animation: marquee 60s linear infinite; }
  .qtrack { animation: marquee var(--marquee, 70s) linear infinite; }
  .qrow-b .qtrack { animation-name: marquee-r; }

  /* steps: stairs build, coin climbs */
  .step { transform-box: fill-box; transform-origin: 50% 100%; animation: reveal .6s var(--ease) both; animation-delay: calc(.2s + var(--i) * .08s); }
  .hop { animation: hop 2.4s linear 1s both; }
  .spin { transform-box: fill-box; transform-origin: 50% 50%; animation: spin .48s linear 1s 5 both; }

  /* boxes: land, coins drop in, the pension box locks */
  .box { transform-box: fill-box; transform-origin: 50% 100%; animation: box-in .6s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(.2s + var(--i) * .12s); }
  .drop { animation: drop .9s both; animation-delay: calc(.7s + var(--d) * .09s); }
  .shackle { animation: lock .35s cubic-bezier(.5, 0, .5, 1.6) 2.5s both; }

  /* trap: the coin rocks on the edge */
  .rock { transform-box: view-box; animation: rock 2.8s ease-in-out infinite alternate both; }
  .pebble { animation: pebble 2.8s ease-in 1.4s infinite both; }
  .fall-line { animation: dash 1.4s linear infinite; }

  /* worksheet numbers type in; the email caret blinks */
  .type { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; animation: type .8s steps(var(--n)) both; animation-delay: calc(.6s + var(--d, 0) * .7s); }
  .caret { animation: blink 1s steps(1) infinite; }
  .send { animation: nudge 3s var(--ease) 1.5s infinite; }
}

@keyframes reveal { from { opacity: 0; transform: translateY(26px); } }
@keyframes book-in { from { opacity: 0; transform: rotateY(-60deg) rotateX(10deg) translate3d(30px, 40px, 0); } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.9); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes tick-in { from { transform: scale(0); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes bar-fill { from { transform: scaleX(0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-r { from { transform: translateX(-50%); } to { transform: none; } }
@keyframes stack-grow { from { transform: scaleY(0); } }
@keyframes glint { 0% { transform: skewX(-18deg) translateX(0); } 22%, 100% { transform: skewX(-18deg) translateX(150px); } }
@keyframes hop {
  0%   { transform: translate(calc(var(--run) * -5), calc(var(--rise) * 5)); opacity: 0; animation-timing-function: ease-out; }
  4%   { opacity: 1; }
  10%  { transform: translate(calc(var(--run) * -4.5), calc(var(--rise) * 4.5 - 46px)); animation-timing-function: ease-in; }
  20%  { transform: translate(calc(var(--run) * -4), calc(var(--rise) * 4)); animation-timing-function: ease-out; }
  30%  { transform: translate(calc(var(--run) * -3.5), calc(var(--rise) * 3.5 - 46px)); animation-timing-function: ease-in; }
  40%  { transform: translate(calc(var(--run) * -3), calc(var(--rise) * 3)); animation-timing-function: ease-out; }
  50%  { transform: translate(calc(var(--run) * -2.5), calc(var(--rise) * 2.5 - 46px)); animation-timing-function: ease-in; }
  60%  { transform: translate(calc(var(--run) * -2), calc(var(--rise) * 2)); animation-timing-function: ease-out; }
  70%  { transform: translate(calc(var(--run) * -1.5), calc(var(--rise) * 1.5 - 46px)); animation-timing-function: ease-in; }
  80%  { transform: translate(calc(var(--run) * -1), var(--rise)); animation-timing-function: ease-out; }
  90%  { transform: translate(calc(var(--run) * -.5), calc(var(--rise) * .5 - 46px)); animation-timing-function: ease-in; }
  100% { transform: translate(0, 0); }
}
@keyframes spin { 50% { transform: scaleX(.08); } }
@keyframes box-in { from { opacity: 0; transform: translateY(24px) scale(.94); } }
@keyframes drop {
  0%   { opacity: 0; transform: translateY(-240px); animation-timing-function: cubic-bezier(.5, 0, 1, 1); }
  10%  { opacity: 1; }
  62%  { transform: translateY(0); animation-timing-function: ease-out; }
  78%  { transform: translateY(-16px); animation-timing-function: ease-in; }
  100% { transform: translateY(0); }
}
@keyframes lock { from { transform: translateY(-9px); } }
@keyframes rock { from { transform: rotate(-7deg); } to { transform: rotate(8deg); } }
@keyframes pebble { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 1; } 70%, 100% { transform: translate(14px, 190px); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes type { from { width: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(4px); } 90% { transform: translateX(-2px); } }

@media (prefers-reduced-motion: reduce) {
  .chart .stack rect, .chart .stack ellipse, .chart .target-g { transition: none; }
  .marquee { overflow-x: auto; }
}

/* RESPONSIVE */
@media (max-width: 60rem) {
  .bits { grid-template-columns: 1fr; }
}
@media (max-width: 52rem) {
  .hero-panel, .split, .buy-panel, .fit-panel { grid-template-columns: 1fr; }
  .hero-panel { padding: 2.2rem 1.4rem 1.5rem; min-height: 0; }
  .stage { min-height: 24rem; }
  .stage { min-height: 25rem; margin-top: 1rem; }
  .stage .book { margin: 0 0 3rem; width: min(58%, 13rem); }
  .f1 { display: none; }
  .f2 { right: -2%; top: 42%; width: 10rem; }
  .f3 { bottom: -4%; }
  .f3 { left: -2%; bottom: 0; width: 11rem; }
  .bit-ui { aspect-ratio: auto; padding: 1.4rem; }
  .float { padding: .8rem .9rem; }
  .big { font-size: 1.35rem; }
  .controls { grid-template-columns: 1fr; gap: 1rem; }
  .readout { grid-template-columns: 1fr; }
  .readout > div { display: flex; justify-content: space-between; align-items: baseline; }
  .readout b { font-size: 1.8rem; margin: 0; }
  .calc-panel { padding: .6rem; }
  .f4 { left: 4%; top: 4%; width: 11rem; }
  .buy-book { display: none; }
  .buy-card { max-width: none; }
  .foot { grid-template-columns: 1fr; }
}
