/* ============================================================
   fallinghippo.com/usbox  (mockup)
   Company header and footer: same as fallinghippo.com.
   The page between them is usBox's own: Space Grotesk headlines,
   warm paper chapters and dark chapters.
   ============================================================ */

@font-face { font-family: "Caprasimo"; src: url("assets/fonts/caprasimo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/schibsted-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/schibsted-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/schibsted-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* FallingHippo (from the company site) */
  --ink: #161E3E;
  --night: #121A3D;
  --night-2: #0E1533;
  --night-3: #0A1029;
  --on-night: #F1F2FF;
  --on-night-soft: #B7BEE2;
  --line-night: #2A3470;
  --mint: #58E9C2;
  --usbox: #F9941F;

  /* usBox */
  --stage: #0C1014;        /* matches the opening film's background */
  --dark: #0E1115;
  --dark-2: #151A22;
  --paper: #F3F1EC;
  --paper-2: #E9E5DC;
  --fg-dark: #F3F1EC;
  --fg-dark-soft: #AEB5C6;
  --fg-light: #161E3E;
  --fg-light-soft: #4A5068;
  --rule-light: rgba(22, 30, 62, .22);
  --rule-dark: rgba(243, 241, 236, .2);

  --f-display: "Caprasimo", "Cooper Black", Georgia, serif;
  --f-head: "Space Grotesk", "Schibsted Grotesk", system-ui, sans-serif;
  --f-body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, Consolas, monospace;

  --w: 1240px;
  --gutter: clamp(20px, 4.4vw, 56px);
  --pad: clamp(72px, 9vw, 128px);
  --head-1: 68px;
  --head-2: 68px;
  --head: 68px;
}

/* In a dark colour scheme the paper chapters become a second dark. */
:root { --l-bg: var(--paper); --l-bg-2: var(--paper-2); --l-fg: var(--fg-light); --l-soft: var(--fg-light-soft); --l-rule: var(--rule-light); }
@media (prefers-color-scheme: dark) {
  :root { --l-bg: #171C25; --l-bg-2: #1D2430; --l-fg: var(--fg-dark); --l-soft: var(--fg-dark-soft); --l-rule: var(--rule-dark); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-2) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 18px; line-height: 1.6; color: var(--fg-dark); background: var(--stage); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--usbox); outline-offset: 3px; border-radius: 6px; }
.on-light :focus-visible { outline-color: var(--ink); }
@media (prefers-color-scheme: dark) { .on-light :focus-visible { outline-color: var(--usbox); } }
.wrap { width: 100%; max-width: calc(var(--w) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- company header (same as fallinghippo.com) ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 40; color: var(--on-night); background: rgba(14, 21, 51, .98); box-shadow: 0 1px 0 var(--line-night); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }

.nav-inner { display: flex; align-items: center; gap: 20px; height: var(--head-1); }
.crumb { font: 500 .95rem/1 var(--f-mono); color: var(--on-night-soft); text-decoration: none; padding: 14px 0 14px 18px; border-left: 1px solid var(--line-night); }
.crumb:hover { color: var(--on-night); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; min-height: 44px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.wordmark { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -.005em; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { font-weight: 500; text-decoration: none; opacity: .88; padding: 10px 2px; }
.nav-links a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; font: 700 1.05rem/1 var(--f-body); color: var(--ink); background: var(--usbox); padding: 15px 24px; border-radius: 14px; border: 2px solid var(--usbox); text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 #05081A; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 #05081A; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #05081A; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { font-size: .95rem; min-height: 44px; padding: 11px 16px; border-radius: 12px; box-shadow: 3px 3px 0 #05081A; }
.on-light .btn { box-shadow: 4px 4px 0 var(--ink); }
.on-light .btn:hover { box-shadow: 6px 6px 0 var(--ink); }
.on-light .btn:active { box-shadow: 1px 1px 0 var(--ink); }
@media (prefers-color-scheme: dark) { .on-light .btn { box-shadow: 4px 4px 0 #05081A; } .on-light .btn:hover { box-shadow: 6px 6px 0 #05081A; } }
.text-link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: currentColor; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); padding-block: 12px; display: inline-block; }
.text-link:hover { text-decoration-color: currentColor; }

/* usBox local bar: sits under the company header like a product bar */
.local { border-top: 1px solid var(--line-night); }
.local-inner { display: flex; align-items: center; gap: 28px; height: var(--head-2); }
.local-logo { display: inline-flex; align-items: center; min-height: 44px; }
.local-logo img { height: 22px; width: auto; }
.local-links { display: flex; gap: 4px; margin-left: auto; margin-right: 8px; font-size: .95rem; }
.local-links a { text-decoration: none; padding: 12px 14px; border-radius: 999px; color: var(--on-night-soft); font-weight: 500; }
.local-links a:hover { color: var(--on-night); }
.local-links a[aria-current="true"] { color: var(--on-night); background: rgba(241, 242, 255, .1); }


/* ---------- common bits ---------- */
.on-dark { --bg: var(--dark); --fg: var(--fg-dark); --soft: var(--fg-dark-soft); --rule: var(--rule-dark); --accent: #F9941F; --card: #171C26; background: var(--bg); color: var(--fg); }
.on-light { --bg: var(--l-bg); --fg: var(--l-fg); --soft: var(--l-soft); --rule: var(--l-rule); --accent: #A85A06; --card: #FFFFFF; background: var(--bg); color: var(--fg); }
.on-light.alt { --bg: var(--l-bg-2); background: var(--bg); --card: #F8F6F1; }
@media (prefers-color-scheme: dark) { .on-light { --accent: #F9941F; --card: #1D2430; } .on-light.alt { --card: #232B38; } }
.chapter { position: relative; padding-block: var(--pad); }
.eyebrow { font: 500 .9rem/1.2 var(--f-mono); letter-spacing: .02em; display: flex; align-items: center; gap: 12px; color: var(--soft); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .7; }
.h2 { font-family: var(--f-head); font-weight: 700; font-size: clamp(2.8rem, 7.6vw, 7rem); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.lead { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.5; max-width: 34ch; color: var(--soft); margin-top: 28px; }
mark.ph { background: #FFE17A; color: var(--ink); padding: 0 .3em; border-radius: 4px; font-family: var(--f-mono); font-size: .86em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* reveal on scroll (only when JS is on and motion is allowed) */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- phone ---------- */
.phone { position: relative; width: var(--pw, 300px); border-radius: 44px; background: #05070A; padding: 9px; box-shadow: 0 0 0 1.5px #2B313C, 0 0 0 2.5px #0A0C10, 0 50px 90px -30px rgba(0, 0, 0, .75), 0 18px 36px -18px rgba(0, 0, 0, .6); }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 30%; height: 18px; border-radius: 999px; background: #05070A; transform: translateX(-50%); z-index: 3; opacity: .9; }
.phone .screens { display: grid; border-radius: 36px; overflow: hidden; background: var(--dark); }
.phone .screens img { grid-area: 1 / 1; width: 100%; height: auto; transition: opacity .6s ease; }
.phone .screens img[data-state="off"] { opacity: 0; }

/* ---------- 0. hero ---------- */
.hero { --bg: #161E3E; --fg: #F3F1EC; --soft: #C3C8DA; --rule: rgba(243,241,236,.22); --accent: #F9941F; background: var(--bg); color: var(--fg); padding-top: calc(var(--head) + 8px); overflow: hidden; position: relative; text-align: center; }
.film { background: var(--bg); position: relative; height: clamp(170px, 17vw, 250px); overflow: hidden; }
.film video { position: absolute; left: 50%; top: 50%; width: clamp(700px, 88vw, 1250px); max-width: none; height: auto; transform: translate(-50%, -50%); mix-blend-mode: lighten; }
.film .film-still { position: absolute; left: 50%; top: 50%; width: clamp(700px, 88vw, 1250px); max-width: none; transform: translate(-50%, -50%); mix-blend-mode: lighten; }
.film .film-still[hidden] { display: none; }
.hero-copy { position: relative; margin-top: clamp(-10px, 1vw, 10px); }
.hero h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(3.2rem, 9vw, 8.4rem); line-height: .93; letter-spacing: -.04em; text-wrap: balance; }
.hero-sub { max-width: 40ch; margin: 24px auto 0; font-size: clamp(1.12rem, 1.6vw, 1.38rem); line-height: 1.5; color: var(--soft); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 28px; margin-top: 34px; }
.hero-note { margin-top: 18px; font: 400 .88rem/1.5 var(--f-mono); color: var(--soft); }
.hero-phone { --pw: min(340px, 80vw); margin: clamp(40px, 5vw, 64px) auto 0; height: clamp(280px, 28vw, 400px); overflow: hidden; display: flex; justify-content: center; position: relative; }
.hero-phone::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, transparent, var(--bg) 92%); pointer-events: none; }
.hero-phone .phone { flex: none; will-change: transform; }
.hero-artie { position: absolute; z-index: 2; width: clamp(170px, 24vw, 340px); left: 50%; bottom: -8%; margin-left: clamp(120px, 14vw, 230px); filter: drop-shadow(0 20px 24px rgba(22, 30, 62, .25)); pointer-events: none; }
@media (max-width: 640px) { .hero-artie { width: 130px; margin-left: 70px; bottom: -4%; } }
.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero-copy > :nth-child(1) { animation-delay: 1.1s; } .js .hero-copy > :nth-child(2) { animation-delay: 1.3s; } .js .hero-copy > :nth-child(3) { animation-delay: 1.5s; } .js .hero-copy > :nth-child(4) { animation-delay: 1.65s; }
.js .hero-phone .phone { transform: translateY(70px); opacity: 0; animation: rise-phone 1.3s cubic-bezier(.2, .7, .2, 1) 1.7s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-phone { to { opacity: 1; transform: translateY(0); } }

/* ---------- 1. one list: a rail of screens ---------- */
.list-intro { max-width: 920px; }
.rail-bar { display: flex; justify-content: flex-end; gap: 10px; margin-top: clamp(28px, 4vw, 48px); }
.rail-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--rule); background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, opacity .2s; }
.rail-btn:hover { background: rgba(243, 241, 236, .1); }
.rail-btn[disabled] { opacity: .35; cursor: default; }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-pad); padding: 18px var(--rail-pad) 56px; margin-top: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; --rail-pad: max(var(--gutter), calc((100vw - var(--w)) / 2)); }
.rail::-webkit-scrollbar { display: none; }
.card { flex: none; width: min(84vw, 560px); height: clamp(560px, 62vw, 720px); border-radius: 28px; background: linear-gradient(165deg, #202738, #12161D 70%); border: 1px solid var(--rule); scroll-snap-align: start; position: relative; overflow: hidden; padding: clamp(26px, 3vw, 40px); }
.card h3 { font: 700 clamp(2rem, 3.6vw, 3rem)/1.02 var(--f-head); letter-spacing: -.03em; max-width: 12ch; }
.card p { margin-top: 14px; color: var(--soft); font-size: 1.1rem; max-width: 30ch; }
.card .phone { --pw: min(290px, 62vw); position: absolute; left: 50%; bottom: -44%; transform: translateX(-50%); }
.card:focus-visible { outline-offset: -4px; }

/* ---------- 2. one count ---------- */
.count { background: var(--dark); color: var(--fg); padding: 0; }
.count-track { height: 190vh; position: relative; }
.count-stage { position: sticky; top: 0; min-height: 100svh; display: flex; align-items: center; padding-top: var(--head-2); }
.count-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; width: 100%; }
.count-card { border-top: 1px solid var(--rule); padding-top: 22px; }
.count-meta { display: flex; justify-content: space-between; gap: 16px; font: 400 .9rem/1.4 var(--f-mono); color: var(--soft); }
.count-title { font: 500 clamp(1.3rem, 2.2vw, 1.8rem)/1.2 var(--f-head); margin-top: 22px; }
.count-title small { display: block; font: 400 .95rem/1.4 var(--f-body); color: var(--soft); margin-top: 4px; }
.count-num { display: flex; align-items: baseline; font-family: var(--f-head); font-weight: 700; font-size: clamp(6rem, 19vw, 17rem); line-height: .9; letter-spacing: -.06em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.count-num .gap { width: .22em; }
.roll { display: inline-block; height: .9em; overflow: hidden; line-height: .9; vertical-align: bottom; }
.roll span { display: block; height: .9em; transition: transform .9s cubic-bezier(.7, 0, .2, 1); }
.roll .nx { color: var(--accent); }
[data-count="1"] .roll span, [data-count="2"] .roll span { transform: translateY(-100%); }
.count-line { min-height: 3.2em; font-size: 1.2rem; color: var(--fg); margin-top: 10px; }
.count-line span { display: none; }
[data-count="0"] .count-line .s0, [data-count="1"] .count-line .s1, [data-count="2"] .count-line .s2 { display: block; animation: fade .6s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.who { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.who li { display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border: 1px solid var(--rule); border-radius: 999px; font: 500 .9rem/1 var(--f-mono); color: var(--soft); transition: color .5s ease, border-color .5s ease, background-color .5s ease; }
.who b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .9rem/1 var(--f-head); color: var(--ink); }
.who em { font-style: normal; }
.who .ep { display: inline-block; min-width: 4.6ch; }
[data-count="2"] .who li { color: var(--fg); border-color: var(--accent); background: rgba(249, 148, 31, .1); }
.count-text .lead { max-width: 34ch; }
.tap { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); margin-left: 18px; align-self: center; transition: background-color .3s, color .3s, transform .3s; flex: none; }
[data-count="1"] .tap { background: var(--accent); color: var(--bg); transform: scale(1.12); }
.count-cap { display: flex; align-items: center; }

/* ---------- 3. the lock ---------- */
.lock-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.lockdemo { position: relative; background: #171C26; border: 1px solid var(--rule); color: var(--fg-dark); border-radius: 28px; padding: clamp(18px, 3vw, 34px); display: grid; gap: 14px; box-shadow: 0 40px 80px -40px rgba(14, 17, 21, .6); }
.lockdemo .ph-tag { position: absolute; right: 14px; top: -14px; }
.l-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--dark-2); border: 1.5px solid rgba(249, 148, 31, .75); }
.l-card .t { font: 700 1.08rem/1.2 var(--f-head); }
.l-card .s { font: 400 .9rem/1.4 var(--f-mono); color: var(--fg-dark-soft); margin-top: 3px; }
.l-card svg { flex: none; color: var(--usbox); }
.l-card .plus { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--rule-dark); display: grid; place-items: center; font-size: 1.3rem; color: var(--fg-dark-soft); }
.l-ask { padding: 18px; border-radius: 16px; background: var(--dark-2); border: 1px solid var(--rule-dark); }
.l-ask h4 { margin: 0 0 12px; font: 700 1.05rem/1.2 var(--f-head); }
.l-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--rule-dark); font-weight: 500; }
.l-row .pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font: 500 .85rem/1 var(--f-mono); border: 1px solid var(--rule-dark); color: var(--fg-dark-soft); transition: all .5s ease; }
.l-row .pill svg { width: 14px; height: 14px; }
.l-row.yes .pill { color: #6EE7B7; border-color: #2E6E58; }
.js .l-row.no .pill { color: var(--fg-dark-soft); }
.l-row.no.out .pill, .no-js .l-row.no .pill { color: #FF8F8F; border-color: #7A3B3B; background: rgba(255, 120, 120, .08); }
.l-told { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: rgba(249, 148, 31, .1); border: 1px solid rgba(249, 148, 31, .35); font-size: 1rem; }
.l-told .forgive { margin-left: auto; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--usbox); color: var(--usbox); font: 700 .88rem/1 var(--f-body); white-space: nowrap; }
.js .lockdemo .beat { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .lockdemo.in .beat { opacity: 1; transform: none; }
.js .lockdemo.in .beat { transition-delay: var(--d, 0s); }
.l-note { margin-top: 26px; font-size: .98rem; color: var(--soft); max-width: 40ch; }

/* ---------- 4. what's inside: hairline list ---------- */
.inside-head { max-width: 900px; }
.inside-head .lead { margin-top: 0; }
.rows { margin-top: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 90px minmax(0, 5fr) minmax(0, 6fr); gap: 16px 40px; padding-block: clamp(26px, 3.2vw, 44px); border-top: 1px solid var(--rule); align-items: baseline; transition: background-color .3s; }
.row .no { font: 400 .9rem/1 var(--f-mono); color: var(--soft); }
.row h3 { font: 700 clamp(1.9rem, 4vw, 3.4rem)/1.02 var(--f-head); letter-spacing: -.03em; }
.row p { color: var(--soft); font-size: 1.15rem; max-width: 44ch; }

/* ---------- 5. Artie ---------- */
.artie-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.artie-img { justify-self: center; width: min(100%, 460px); }
.artie-img img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.for { margin-top: 34px; border-top: 1px solid var(--rule); }
.for li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 18px; align-items: baseline; font-weight: 500; font-size: 1.15rem; }
.for li span { font: 400 .85rem/1 var(--f-mono); color: var(--soft); min-width: 3ch; }

/* ---------- 6. join ---------- */
.join-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.how { margin-top: clamp(30px, 4vw, 52px); counter-reset: s; border-top: 1px solid var(--rule); }
.how li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 12px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.how li::before { content: counter(s, decimal-leading-zero); font: 400 .9rem/1.9 var(--f-mono); color: var(--soft); }
.how b { font: 700 1.3rem/1.3 var(--f-head); display: block; }
.how span { color: var(--soft); display: block; margin-top: 2px; }
.signup { background: var(--night); color: var(--on-night); border-radius: 24px; padding: clamp(24px, 3.2vw, 40px); position: sticky; top: calc(var(--head-2) + 24px); }
.signup h3 { font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--f-head); letter-spacing: -.03em; }
.signup p { color: var(--on-night-soft); margin-top: 10px; font-size: 1rem; }
.signup label { display: block; font: 500 .9rem/1 var(--f-mono); margin: 26px 0 10px; color: var(--on-night); }
.signup input { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid #5A6699; background: #0A1029; color: var(--on-night); font: 400 1.05rem/1.2 var(--f-body); }
.signup input::placeholder { color: #8B94BE; }
.signup input:focus-visible { outline-offset: 2px; outline-color: var(--usbox); }
.signup .btn { width: 100%; margin-top: 16px; box-shadow: 4px 4px 0 #05081A; }
.signup .status { min-height: 1.5em; font: 400 .9rem/1.5 var(--f-mono); color: var(--mint); margin-top: 14px; }
.signup small { display: block; margin-top: 12px; font-size: .9rem; line-height: 1.55; color: var(--on-night-soft); }
.signup small a { color: var(--on-night); }
.signup :focus-visible { outline-color: var(--usbox); }
.faq { margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding-block: 16px; font: 500 clamp(1.2rem, 2.2vw, 1.7rem)/1.3 var(--f-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.8rem/1 var(--f-mono); color: var(--soft); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 62ch; color: var(--soft); }

/* ---------- company footer (same as fallinghippo.com) ---------- */
.footer { background: var(--night-3); color: var(--on-night); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 48px; align-items: start; }
.footer-brand p { margin-top: 16px; color: var(--on-night-soft); }
.footer-links { display: flex; gap: 56px; }
.footer h2 { font: 500 .85rem/1 var(--f-mono); color: var(--on-night-soft); margin-bottom: 16px; }
.footer-links a { display: block; text-decoration: none; padding: 10px 0; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-company { font-size: .92rem; color: var(--on-night-soft); line-height: 1.6; }
.footer-company a { color: var(--on-night); }
.footer-legal { margin-top: 56px; padding-block: 24px 32px; border-top: 1px solid var(--line-night); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .85rem; color: var(--on-night-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-company { grid-column: 1 / -1; }
  .count-track { height: auto; }
  .count-stage { position: relative; min-height: 0; padding-block: calc(var(--head) + 24px) 80px; }
  .count-grid, .lock-grid, .artie-grid, .join-grid { grid-template-columns: 1fr; }
  .signup { position: relative; top: auto; }
  .artie-img { width: min(70vw, 340px); justify-self: start; }
  .local-links { display: none; }
  .btn-sm { margin-left: auto; }
  .row { grid-template-columns: 56px minmax(0, 1fr); }
  .row p { grid-column: 2; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  :root { --head-1: 60px; --head-2: 60px; --head: 60px; }
  .nav-inner { gap: 12px; }
  .wordmark { font-size: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-links { gap: 40px; }
  .hero-note { padding-inline: 8px; }
  .lockdemo { padding: 16px; }
  .l-told { flex-wrap: wrap; }
  .l-told .forgive { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .hero-copy > *, .js .hero-phone .phone, .js .lockdemo .beat { opacity: 1 !important; transform: none !important; }
  .count-track { height: auto; }
  .count-stage { position: relative; min-height: 0; padding-block: calc(var(--head) + 24px) 80px; }
}

/* headlines inside two-column chapters are a step smaller so they don't break into four lines */
.count-text .h2, .lock-grid .h2, .artie-grid .h2, .join-grid .h2 { font-size: clamp(2.7rem, 5.6vw, 5.4rem); }

/* ---------- stand-in film: a scroll-scrubbed horizontal pan across the screens ---------- */
.hfilm { display: none; }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hfilm { display: block; margin-top: 24px; }
  .rail, .rail-bar { display: none; }
  .hfilm-track { height: 420vh; position: relative; }
  .hfilm-stage { position: sticky; top: var(--head-2); height: calc(100svh - var(--head-2)); overflow: hidden; background: radial-gradient(120% 90% at 70% 40%, #1E2638 0%, #0E1115 70%); }
  .hfilm-tag { position: absolute; left: var(--gutter); top: 18px; z-index: 5; }
  .hfilm-row { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; will-change: transform; padding-inline: max(var(--gutter), calc((100vw - var(--w)) / 2)); }
  .hpanel { flex: none; width: min(1060px, 82vw); height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4vw; margin-right: 6vw; }
  .hpanel-text .hno { font: 500 .9rem/1 var(--f-mono); color: var(--soft); margin-bottom: 22px; }
  .hpanel-text h3 { font: 700 clamp(2.8rem, 5.4vw, 5.4rem)/.95 var(--f-head); letter-spacing: -.04em; max-width: 8ch; }
  .hpanel-text p:last-child { margin-top: 24px; max-width: 30ch; font-size: 1.25rem; line-height: 1.5; color: var(--soft); }
  .hpanel .phone { --pw: min(420px, calc((100svh - var(--head-2)) * 0.5)); align-self: end; margin-bottom: -16vh; }
  .hpanel::before { content: ""; position: absolute; right: 2vw; top: 18%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 148, 31, .22), transparent 65%); pointer-events: none; }
  .hpanel { position: relative; }
  .hfilm-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 2px; background: var(--rule); }
  .hfilm-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) { .hfilm { display: none; } }

@media (max-width: 760px) {
  .crumb { display: none; }
  .btn-sm { white-space: nowrap; padding-inline: 14px; }
}
@media (max-width: 380px) { .wordmark { font-size: 1.05rem; } .btn-sm { font-size: .88rem; padding-inline: 11px; } }

/* ---------- star rating card (stand-in for a real capture) ---------- */
.ratecard { --fill: 0; background: #171C26; border: 1px solid rgba(243, 241, 236, .2); border-radius: 24px; padding: 28px 30px 32px; width: min(100%, 440px); color: var(--fg-dark); }
.rc-meta { font: 400 .85rem/1.4 var(--f-mono); color: var(--fg-dark-soft); }
.rc-title { font: 700 1.7rem/1.2 var(--f-head); margin-top: 18px; }
.rc-who { font: 400 1rem/1.4 var(--f-body); color: var(--fg-dark-soft); margin-top: 2px; }
.stars { display: flex; gap: 8px; margin-top: 26px; }
.star { width: clamp(40px, 5vw, 58px); height: auto; overflow: visible; }
.s-bg { fill: rgba(243, 241, 236, .14); }
.s-fg { fill: #F9941F; }
.s-clip { transform-origin: 12px 12px; transform: scale(var(--s, 0)); opacity: var(--s, 0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.ratecard.static .star:nth-child(-n+4) { --s: 1; }
.card--rate .ratecard { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: calc(100% - 64px); }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hpanel--rate { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
  .hpanel--rate .ratecard { align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .ratecard .star:nth-child(-n+4) { --s: 1; } }
.card--rate .ratecard { padding: 22px 22px 26px; }
.card--rate .stars { gap: 6px; }
.card--rate .star { width: 34px; }

@media (min-width: 1024px) { .count-num { font-size: min(14.5vw, 13.5rem); } }
.crumb { padding-block: 15px; }
.signup small a { position: relative; }
.signup small a::after { content: ""; position: absolute; inset: -14px -4px; }

/* Artie outfits (images supplied by Dad) */
.lock-artie { display: block; height: clamp(170px, 14vw, 210px); width: auto; margin-top: 30px; filter: drop-shadow(0 18px 22px rgba(0,0,0,.35)); }
.cast { list-style: none; margin: clamp(48px, 7vw, 96px) 0 0; padding: clamp(28px, 4vw, 48px) 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 2vw, 28px); align-items: end; }
.cast li { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }
.cast img { width: auto; max-width: 100%; height: clamp(120px, 16vw, 230px); object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0,0,0,.3)); }
.cast span { font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); text-align: center; }
@media (max-width: 760px) { .cast { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } .cast img { height: 150px; } }
.signup-artie { position: absolute; right: clamp(18px, 4vw, 40px); top: 0; transform: translateY(-78%); height: clamp(120px, 12vw, 160px); width: auto; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.25)); }
@media (max-width: 1023px) { .signup-artie { transform: translateY(-80%); } .join-grid { row-gap: clamp(110px, 24vw, 150px); } }

/* Utility classes that replace inline style attributes, so the site's content security policy needs no 'unsafe-inline'. */
.mt-22 { margin-top: 22px; }
.mt-18 { margin-top: 18px; }
.ml-04 { margin-left: .4em; }
.av-a { background: #F5A623; }
.av-b { background: #F28DB6; }
.av-c { background: #6AA9FF; }
.av-d { background: #5ED6A0; }
.dl-1 { --d: 0s; }
.dl-2 { --d: .5s; }
.dl-3 { --d: 1.5s; }

.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cap { display: inline-block; background: rgba(8,19,50,.72); color: var(--on-night); padding: .2em .6em; border-radius: 999px; font: 500 .8rem/1.3 var(--f-mono); }

/* Small phones: keep the header and hero button inside the screen. */
@media (max-width: 380px) {
  .nav-inner { gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 30px; height: 30px; }
  .wordmark { font-size: 1rem; }
  .btn-sm { padding-inline: 10px; }
  .hero-actions .btn { max-width: 100%; padding-inline: 18px; }
}
@media (pointer: coarse) { .footer-links a, .footer a { padding-block: 11px; } }

/* Feature list: stack on phones so long words like "Recommendations" fit. */
@media (max-width: 640px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .row p { grid-column: auto; }
  .row h3 { font-size: clamp(1.6rem, 8vw, 2rem); overflow-wrap: break-word; }
}
