@font-face { font-family: 'Geist'; src: url('fonts/Geist_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/Geist_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/Geist_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/Geist_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/Fraunces_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('fonts/InstrumentSerif_400Regular.ttf') format('truetype'); font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('fonts/InstrumentSerif_400Regular_Italic.ttf') format('truetype'); font-style: italic; font-display: swap; }

:root {
  --ink: #14110E; --saffron: #F2B13C; --cream: #F6F1E7; --paper: #FFFDF8; --amber: #B56E00;
  --steps: 11;
  --side: clamp(20px, 5vw, 84px);
  /* The stage's colours. The script moves these as the story moves. */
  --bg: var(--ink); --fg: var(--cream); --accent: var(--saffron);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: 'Geist', system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
a { color: inherit; }
img, canvas { display: block; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--saffron); color: var(--ink); }

/* ---------- header ---------- */
.nav { --nfg: var(--fg); --nbg: var(--bg); position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 44px); color: var(--nfg); transition: background-color 0.25s, backdrop-filter 0.25s; }
.nav.on-light { --nfg: var(--ink); --nbg: var(--cream); }
.nav.past { background: color-mix(in srgb, var(--nbg) 80%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Instrument Serif', serif; font-size: 27px; line-height: 1; white-space: nowrap; }
.brand img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(20, 17, 14, 0.14); }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); font-size: 15px; font-weight: 500; }
.nav nav a { text-decoration: none; opacity: 0.84; transition: opacity 0.15s; }
.nav nav a:hover { opacity: 1; }
.nav nav .cta { opacity: 1; background: var(--nfg); color: var(--nbg); padding: 10px 16px; border-radius: 99px; font-weight: 600; white-space: nowrap; transition: transform 0.15s; }
.nav nav .cta:hover { transform: translateY(-1px); }

/* ---------- the demo ---------- */
.demo { position: relative; height: calc(var(--steps) * 100vh); height: calc(var(--steps) * 100svh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); color: var(--fg); perspective: 1700px; }
/* A little grain of light behind the phone, so the flat colour has depth. */
.stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 50%, color-mix(in srgb, var(--fg) 9%, transparent), transparent 70%); pointer-events: none; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

.bars { position: absolute; left: 0; right: 0; bottom: 0; height: 24vh; z-index: 0; display: flex; gap: 1.1vw; align-items: stretch; transform-origin: bottom; }
.bars i { background: var(--accent); flex: 0 0 auto; transform-origin: bottom; }

.rig { position: absolute; inset: 0; z-index: 2; pointer-events: none; transform-style: preserve-3d; }
.phone { --w: min(350px, calc(84svh / 2.174)); --b: calc(var(--w) * 0.026); position: absolute; left: 50%; top: 52%; width: var(--w); height: calc(var(--w) * 2.174); margin-left: calc(var(--w) / -2); margin-top: calc(var(--w) * -1.087); border: var(--b) solid #0C0A09; border-radius: calc(var(--w) * 0.158);
  box-shadow: 0 0 0 1.5px #5A534B, 0 0 0 3px #1B1714, 0 60px 110px -24px rgba(0, 0, 0, 0.55), 0 30px 50px -30px rgba(0, 0, 0, 0.5); }
/* The side buttons. */
.phone::before, .phone::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: #2B2622; }
.phone::before { left: calc(var(--b) * -1 - 5.5px); top: 24%; height: 7%; box-shadow: 0 calc(var(--w) * 0.2) 0 #2B2622; }
.phone::after { right: calc(var(--b) * -1 - 5.5px); top: 29%; height: 12%; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * 0.132); background: #F6F1E7; }
/* Glass: a soft streak of light across the screen. */
.screen::after { content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 22%, rgba(255, 255, 255, 0) 40%); }
.island { position: absolute; left: 50%; top: calc(var(--w) * 0.032); width: 31%; height: calc(var(--w) * 0.09); margin-left: -15.5%; border-radius: 99px; background: #000; z-index: 7; }

/* The app, drawn at its real size (402 × 874 points) and scaled to fit the phone. */
.ui { position: absolute; left: 0; top: 0; width: 402px; height: 874px; transform-origin: 0 0; transform: scale(var(--s, 0.75)); color: #1A1612; font-size: 16px; line-height: 1.25; }
.scr { position: absolute; inset: 0; padding: 124px 20px 0; opacity: 0; visibility: hidden; }
.scr > img { position: absolute; inset: 0; width: 402px; height: 874px; }
.scr-home { opacity: 1; visibility: visible; }

.status { position: absolute; left: 0; right: 0; top: 24px; display: flex; justify-content: space-between; align-items: center; padding: 0 34px 0 54px; font-weight: 600; font-size: 17px; letter-spacing: -0.2px; }
.bar { position: absolute; left: 16px; right: 16px; top: 66px; display: flex; justify-content: space-between; }
.round { width: 44px; height: 44px; border-radius: 22px; background: #FFFDF8; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(26, 22, 18, 0.08); }
.dock { position: absolute; left: 22px; right: 22px; bottom: 30px; height: 56px; border-radius: 99px; background: #1A1612; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 16.5px; box-shadow: 0 12px 30px rgba(26, 22, 18, 0.28); }
.title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 31px; line-height: 1.1; margin: 0 4px; letter-spacing: -0.3px; }
.title.sm { font-size: 25px; margin-bottom: 14px; }
.meta { margin: 6px 4px 14px; color: #6B6257; font-size: 16px; }
.label { margin: 0 0 10px; color: #6B6257; font-weight: 600; font-size: 14px; }
.chips { display: flex; gap: 6px; margin-bottom: 16px; }
.chips b, .chips span { height: 38px; padding: 0 15px; border-radius: 99px; display: grid; place-items: center; font-size: 14.5px; font-weight: 600; }
.chips b { background: #1A1612; color: #fff; }
.chips span { border: 1.5px solid #DCD3C2; color: #40382F; font-weight: 500; }

.verdict { background: #FBE4DF; border-radius: 26px; padding: 20px 20px 8px; }
.for { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #9F1F14; font-weight: 600; font-size: 15px; }
.verdict h4 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 25px; line-height: 1.25; margin: 0; }
.tsp { display: flex; align-items: center; gap: 12px; border-top: 1px solid #F1B9AE; margin-top: 14px; padding-top: 14px; }
.tsp strong { font-family: 'Fraunces', serif; font-size: 40px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tsp span { font-size: 15.5px; line-height: 1.3; font-weight: 500; }
.cubes3d { width: 322px; height: 100px; margin-top: -22px; pointer-events: none; }

.card { background: #FFFDF8; border-radius: 26px; padding: 18px; }
.rates { margin-top: 12px; padding: 6px 18px; }
.rates p { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 11px 0; border-top: 1px solid #F0E9DC; font-size: 16.5px; }
.rates p:first-child { border-top: 0; }
.pill { padding: 6px 13px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.pill.bad { background: #FBE4DF; color: #9F1F14; }
.pill.mid { background: #FBEBC5; color: #7A4A00; }
.most { list-style: none; margin: 0 0 6px; padding: 0; }
.most li { display: flex; gap: 12px; align-items: baseline; font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; line-height: 1.4; }
.most i { font: 600 15px 'Geist', sans-serif; color: #A1978A; width: 12px; }
.fact { border-top: 1px solid #F0E9DC; padding: 14px 0 12px; }
.fact b { display: block; font-size: 16.5px; }
.fact span { color: #40382F; font-size: 15px; line-height: 1.35; }
.fact:last-child { padding-bottom: 0; }
.reasons { margin-top: 12px; }
.reasons .label { margin: 0 0 4px; }
.reasons .fact:first-of-type { border-top: 0; padding-top: 6px; }

.claim { margin-bottom: 12px; position: relative; }
.quote { font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; margin: 0 0 30px; }
.stamp { position: absolute; right: 16px; top: 16px; margin: 0; padding: 7px 12px; border-radius: 99px; font-weight: 700; font-size: 13.5px; }
.stamp.no { background: #FBE4DF; color: #9F1F14; transform: rotate(4deg); }
.stamp.info { background: #FBEBC5; color: #7A4A00; transform: rotate(-3deg); }
.stamp.yes { background: #DDEFE1; color: #14633A; transform: rotate(3deg); }
.why { margin: 0; color: #40382F; font-size: 15.5px; line-height: 1.35; }

.people { padding: 4px 18px; }
.who { display: flex; gap: 12px; align-items: center; padding: 15px 0; border-top: 1px solid #F0E9DC; }
.who:first-child { border-top: 0; }
.who p { margin: 0; }
.who b { display: block; font-size: 17px; }
.who span { color: #40382F; font-size: 14.5px; line-height: 1.3; }
.dot { flex: 0 0 38px; height: 38px; border-radius: 19px; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.dot.bad { background: #FBE4DF; color: #D92D20; }
.dot.mid { background: #FBEBC5; color: #D98A00; }

.scr-scan { padding: 0; color: #fff; background: radial-gradient(120% 80% at 50% 48%, rgba(8, 7, 6, 0.12), rgba(8, 7, 6, 0.62)); }
.scan-top { position: absolute; top: 76px; left: 0; right: 0; text-align: center; font-weight: 600; font-size: 16px; }
.finder { position: absolute; left: 46px; right: 46px; top: 290px; height: 250px; }
.finder i { position: absolute; width: 36px; height: 36px; border: 0 solid #fff; }
.finder i:nth-child(1) { left: 0; top: 0; border-width: 4px 0 0 4px; border-top-left-radius: 14px; }
.finder i:nth-child(2) { right: 0; top: 0; border-width: 4px 4px 0 0; border-top-right-radius: 14px; }
.finder i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 4px 4px; border-bottom-left-radius: 14px; }
.finder i:nth-child(4) { right: 0; bottom: 0; border-width: 0 4px 4px 0; border-bottom-right-radius: 14px; }
.laser { position: absolute; left: 8px; right: 8px; top: 0; height: 3px; border-radius: 2px; background: #F2B13C; box-shadow: 0 0 18px 4px rgba(242, 177, 60, 0.7); }
.found { position: absolute; left: 24px; right: 24px; bottom: 96px; background: #FFFDF8; color: #1A1612; border-radius: 22px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.found em { flex: 0 0 38px; height: 38px; border-radius: 19px; background: #DDEFE1; color: #14633A; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.found p { margin: 0; }
.found b { display: block; font-size: 17px; }
.found span { color: #6B6257; font-size: 14.5px; }

.scr-privacy { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 0 26px; }
.lock { width: 132px; height: 132px; border-radius: 66px; background: #F2B13C; display: grid; place-items: center; }
.kept { list-style: none; margin: 0; padding: 4px 18px; background: #FFFDF8; border-radius: 26px; align-self: stretch; }
.kept li { padding: 15px 0; border-top: 1px solid #F0E9DC; }
.kept li:first-child { border-top: 0; }
.kept b { display: block; font-size: 17px; }
.kept span { color: #40382F; font-size: 15px; }

/* ---------- the words beside the phone ---------- */
.captions { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cap { position: absolute; top: 50%; left: var(--side); width: min(33vw, 470px); opacity: 0; }
.cap.right { left: auto; right: var(--side); }
.cap[data-step="0"] { opacity: 1; }
.cap[data-step="0"] > * { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.cap[data-step="0"] > :nth-child(2) { animation-delay: 0.08s; }
.cap[data-step="0"] > :nth-child(3) { animation-delay: 0.18s; }
.cap[data-step="0"] > :nth-child(4) { animation-delay: 0.6s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.62; }
.cap h1, .cap h2, main > section h2 { font-family: 'Instrument Serif', serif; font-weight: 400; margin: 0 0 18px; line-height: 0.98; letter-spacing: -0.012em; text-wrap: balance; }
.cap h1 { font-size: clamp(54px, 6.4vw, 108px); }
.cap h2 { font-size: clamp(46px, 5.3vw, 88px); }
.cap em, main > section h2 em { font-style: italic; color: var(--accent); }
.cap p { margin: 0; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.45; font-weight: 500; opacity: 0.8; max-width: 25em; text-wrap: pretty; }
.cap .hint { margin-top: 28px; font-size: 14px; opacity: 0.6; }
.cap .hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

.dots { position: absolute; z-index: 4; right: 12px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; }
.dots li { width: 18px; height: 15px; display: grid; place-items: center; cursor: pointer; transition: height 0.25s; }
.dots li::after { content: ''; width: 5px; height: 5px; border-radius: 3px; background: var(--fg); opacity: 0.28; transition: opacity 0.25s, height 0.25s; }
.dots li:hover::after { opacity: 0.7; }
.dots li.on { height: 30px; }
.dots li.on::after { opacity: 1; height: 22px; }

/* ---------- after the demo ---------- */
main > section:not(.demo) { padding: clamp(80px, 11vw, 160px) var(--side); position: relative; }
.light { background: var(--cream); color: var(--ink); --accent: var(--amber); }
main > section h2 { font-size: clamp(42px, 5.6vw, 88px); max-width: 12em; }
.lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; max-width: 32em; margin: 0; font-weight: 500; opacity: 0.8; }
.small { max-width: 46em; font-size: 14px; line-height: 1.55; opacity: 0.66; margin: 30px 0 0; }

.sources { border-bottom: 1px solid #E3DBCA; }
.cited { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.cited li { background: var(--paper); border-radius: 24px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.cited b { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 34px; line-height: 1; }
.cited span { font-size: 15px; line-height: 1.4; opacity: 0.78; }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin: 48px 0 0; max-width: 900px; }
.tier { background: var(--paper); border-radius: 30px; padding: 30px; }
.tier.lead { background: var(--saffron); }
.tier h3 { margin: 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; opacity: 0.7; }
.amount { font-family: 'Instrument Serif', serif; font-size: 68px; line-height: 1; margin: 14px 0 6px; }
.amount span { font-family: 'Geist', sans-serif; font-size: 17px; font-weight: 500; }
.or { margin: 0; font-weight: 500; opacity: 0.8; }
.tier ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; font-weight: 500; }
.tier li { padding-left: 26px; position: relative; }
.tier li::before { content: ''; position: absolute; left: 2px; top: 0.36em; width: 11px; height: 6px; border: solid currentColor; border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg); }

.closing { background: var(--ink); color: var(--cream); text-align: center; overflow: hidden; padding-bottom: calc(clamp(80px, 11vw, 160px) + 12vh) !important; }
.closing h2 { font-size: clamp(60px, 10vw, 170px); max-width: none; margin-bottom: 22px; }
.closing p { margin: 0 0 26px; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; opacity: 0.8; }
.closing p:last-of-type { opacity: 1; margin: 0; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--saffron); color: var(--ink); padding: 17px 28px; border-radius: 99px; font-weight: 600; font-size: 16.5px; }
.closing-bars { position: absolute; left: 0; right: 0; bottom: 0; height: 12vh; display: flex; gap: 1.1vw; }
.closing-bars i { background: var(--saffron); flex: 0 0 auto; }

.site-foot { background: var(--ink); color: var(--cream); padding: 30px var(--side); display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; border-top: 1px solid rgba(246, 241, 231, 0.12); }
.site-foot nav { display: flex; gap: 22px; font-weight: 500; margin-right: auto; font-size: 15px; }
.site-foot nav a { text-decoration: none; opacity: 0.84; }
.site-foot nav a:hover { opacity: 1; }
.site-foot p { margin: 0; opacity: 0.55; font-size: 14px; }

/* ---------- plain pages (privacy, support) ---------- */
.doc-nav { --nfg: var(--ink); --nbg: var(--cream); background: color-mix(in srgb, var(--cream) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.doc { background: var(--cream); color: var(--ink); min-height: 100vh; padding: 130px var(--side) 90px; }
.doc article { max-width: 44em; }
.doc h1 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(46px, 6vw, 80px); line-height: 1; margin: 0 0 10px; }
.doc h2 { font-family: 'Fraunces', serif; font-size: 24px; margin: 44px 0 10px; }
.doc p, .doc li { font-size: 17px; line-height: 1.6; }
.doc .updated { opacity: 0.6; font-size: 14px; }
.doc table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid #DCD3C2; vertical-align: top; }

/* ---------- small screens: the phone on top, the words under it, each in its own space ---------- */
@media (max-width: 899px) {
  .stage { --cap: max(31svh, 172px); --top: 62px; }
  .nav { padding: 12px 16px; }
  .brand { font-size: 24px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .nav nav a:not(.cta) { display: none; }
  .nav nav .cta { padding: 9px 14px; font-size: 14px; }
  .phone { --w: min(280px, calc((100svh - var(--top) - var(--cap) - 26px) / 2.174)); top: var(--top); margin-top: 0; }
  .phone::before, .phone::after { width: 2px; }
  .captions { top: auto; height: var(--cap); }
  .cap, .cap.right { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); left: 20px; right: 34px; width: auto; }
  .cap h1, .cap h2 { font-size: min(10.6vw, 5.5svh, 52px); margin-bottom: 8px; }
  .cap p { font-size: clamp(12.5px, 1.95svh, 16px); line-height: 1.4; }
  .cap .hint { margin-top: 10px; font-size: 12.5px; }
  .kicker { margin-bottom: 7px; font-size: 11px; }
  .dots { right: 4px; top: calc(var(--top) + (100svh - var(--top) - var(--cap)) / 2); }
  .dots li { height: 12px; }
  .dots li.on { height: 24px; }
  .dots li.on::after { height: 16px; }
  .bars { display: none; } /* it would sit behind the words here */
  .stage::before { background: radial-gradient(90% 45% at 50% 34%, color-mix(in srgb, var(--fg) 9%, transparent), transparent 70%); }
}
@media (max-width: 899px) and (max-height: 520px) {
  .stage { --top: 54px; --cap: 150px; }
  .cap .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cap .hint span, .cap[data-step="0"] > * { animation: none; }
}
