/* Self hosted: the marketing host's font-src is 'self'. */
@font-face { font-family: "Roboto"; src: url("/marketing/assets/fonts/roboto-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/marketing/assets/fonts/roboto-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("/marketing/assets/fonts/roboto-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* Quote Pear marketing homepage. Brand tokens per the brand kit: Clay acts, Pear proves, Roboto speaks, Roboto Mono proves. */
:root {
  --ivory: #F6F2EA; --paper: #FDFBF7; --ink: #1A1815; --ink-soft: #6B6458; --stone: #8C857A; --mist: #E4DDD1;
  --clay: #D0603E; --clay-text: #A04A2E; --pear: #7A9455; --pear-text: #55683B; --pear-soft: #E3E9D3;
  --night-2: #24201C; --night-line: rgba(246,242,234,.12); --night-soft: rgba(246,242,234,.68);
  --font: "Roboto", -apple-system, "Segoe UI", sans-serif; --mono: "Roboto Mono", ui-monospace, "SF Mono", monospace;
  --shell: 1160px; --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font: 500 clamp(44px, 6.2vw, 76px)/1.0 var(--font); letter-spacing: -.03em; }
h2 { font: 500 clamp(32px, 4.4vw, 54px)/1.06 var(--font); letter-spacing: -.022em; }
h3 { font: 500 22px/1.25 var(--font); letter-spacing: -.01em; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--clay-text); margin-bottom: 18px; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-soft); max-width: 560px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 999px; font: 500 16px/1 var(--font); transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: #BF5433; }
.btn-ink { background: var(--ink); color: var(--ivory); }
.btn-ink:hover { background: #2E2A25; }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ivory); }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.top { position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100% - 24px)); height: 58px; display: flex; align-items: center; gap: 28px; padding: 0 10px 0 22px; border-radius: 999px; background: rgba(253,251,247,.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border: 1px solid var(--mist); }
.top .logo img { height: 26px; width: auto; }
.top nav { display: flex; gap: 26px; margin-left: 8px; flex: 1; font-size: 15px; color: var(--ink-soft); }
.top nav a:hover { color: var(--ink); }
.top .login { font-size: 15px; color: var(--ink-soft); padding: 0 6px; }
.top .login:hover { color: var(--ink); }
.qp-auth-in { display: none; }
.qp-signed-in .qp-auth-out { display: none; }
.qp-signed-in .qp-auth-in { display: inline-flex; }
.qp-account { align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--mist); font: 500 14px var(--font); }
.qp-account-avatar { width: 26px; height: 26px; border-radius: 13px; background: var(--ink); color: var(--ivory); display: flex; align-items: center; justify-content: center; font-size: 12px; overflow: hidden; }

/* ---------- hero ---------- */
.night { background: var(--ink); color: var(--ivory); }
.hero { --hero-top: 156px; position: relative; overflow: clip; text-align: center; padding: var(--hero-top) 0 0; background: radial-gradient(1000px 560px at 50% 78%, rgba(208,96,62,.24), transparent 64%), radial-gradient(700px 420px at 10% 0%, rgba(122,148,85,.07), transparent 60%), var(--ink); }
.hero .eyebrow, .auto .eyebrow, .close .eyebrow { color: #E58A6C; }
.hero h1 { margin: 0 auto; }
.hero .lede { color: var(--night-soft); margin: 24px auto 0; max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.night .btn-line { border-color: rgba(246,242,234,.4); color: var(--ivory); }
.night .btn-line:hover { background: var(--ivory); color: var(--ink); }
.youcan { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 34px auto 0; max-width: 760px; }
.youcan a { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--night-line); display: inline-flex; align-items: center; font-size: 14px; color: var(--night-soft); transition: color .2s, border-color .2s; }
.youcan a:hover { color: var(--ivory); border-color: rgba(246,242,234,.4); }
.scene { position: relative; max-width: 940px; margin: 68px auto -96px; padding: 0 24px; }
.scene .win { color: var(--ink); text-align: left; border-color: rgba(246,242,234,.18); box-shadow: 0 0 0 1px rgba(246,242,234,.05), 0 40px 140px rgba(208,96,62,.26); }
.toast { position: absolute; z-index: 3; width: 232px; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 16px; background: rgba(36,32,28,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(246,242,234,.16); color: var(--ivory); opacity: 0; animation: toast .8s var(--ease) var(--t, 0s) forwards, bob 7s ease-in-out calc(var(--t, 0s) + .8s) infinite; }
.toast .ic { width: 34px; height: 34px; border-radius: 17px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--pear); color: #fff; }
.toast .ic.plain { background: rgba(246,242,234,.12); color: var(--ivory); }
.toast b { display: block; font: 500 15px/1.25 var(--font); }
.toast span { display: block; font: 500 12px/1.4 var(--mono); color: var(--stone); }
.toast.t1 { left: -92px; top: 96px; } .toast.t2 { right: -84px; top: 30px; } .toast.t3 { left: -66px; top: 300px; } .toast.t4 { right: -60px; top: 250px; }
@keyframes toast { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-7px); } }

/* the phone that plays the 9:42 PM story */
.phone-fit { position: relative; flex: none; width: calc(300px * var(--ph, 1)); height: calc(var(--phone-h, 610px) * var(--ph, 1)); perspective: 1400px; }
.phone { position: absolute; left: 50%; top: 50%; margin: calc(var(--phone-h, 610px) / -2) 0 0 -150px; width: 300px; height: var(--phone-h, 610px); border-radius: 46px; background: #0B0A09; padding: 10px; box-shadow: 0 0 0 1px rgba(246,242,234,.10), 0 50px 120px rgba(208,96,62,.28), 0 20px 50px rgba(0,0,0,.5); transform: scale(var(--ph, 1)) rotateY(var(--ry, -7deg)) rotateX(var(--rx, 3deg)); transition: transform .5s var(--ease); transform-style: preserve-3d; }
.phone .scr { position: relative; height: 100%; border-radius: 36px; background: var(--paper); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.phone .bar { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 6px 22px 0; font: 500 12px var(--mono); }
.phone .bar i { width: 84px; height: 22px; border-radius: 12px; background: #0B0A09; position: absolute; left: 50%; top: 9px; transform: translateX(-50%); }
.w-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 10px; border-bottom: 1px solid var(--mist); font: 500 13px var(--font); }
.w-dots { display: flex; gap: 4px; }
.w-dots i { width: 14px; height: 3px; border-radius: 2px; background: var(--mist); transition: background .3s; }
.w-dots i.on { background: var(--ink); }
.w-stage { position: relative; flex: 1; }
.w-s { position: absolute; inset: 0; padding: 18px 18px 0; opacity: 0; transform: translateX(26px); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; font-size: 13.5px; line-height: 1.4; }
.w-s.on { opacity: 1; transform: none; }
.w-s.gone { opacity: 0; transform: translateX(-26px); }
.w-s h4 { font: 500 19px/1.2 var(--font); letter-spacing: -.01em; margin-bottom: 16px; }
.w-s label { display: block; font: 500 11px/1 var(--font); color: var(--ink-soft); margin-bottom: 6px; }
.w-in { height: 44px; border: 1px solid var(--stone); border-radius: 10px; padding: 0 12px; display: flex; align-items: center; font-size: 15px; background: #fff; margin-bottom: 12px; }
.w-in.typing::after { content: ''; width: 1.5px; height: 18px; background: var(--ink); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.w-btn { width: 100%; height: 46px; border-radius: 999px; background: var(--clay); color: #fff; font: 500 15px var(--font); display: flex; align-items: center; justify-content: center; transition: transform .15s, filter .15s; }
.w-btn.tap { transform: scale(.96); filter: brightness(.9); }
.w-code { display: flex; gap: 8px; margin: 16px 0 12px; opacity: 0; transition: opacity .3s; }
.w-code i { flex: 1; height: 48px; border: 1px solid var(--stone); border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; font: 500 20px var(--mono); font-style: normal; }
.sent .w-code { opacity: 1; }
.w-note { font-size: 12px; color: var(--ink-soft); opacity: 0; transition: opacity .3s; }
.sent .w-note { opacity: 1; }
.w-ok { margin-top: 12px; height: 44px; border-radius: 10px; background: var(--pear-soft); color: var(--pear-text); font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transform: scale(.96); transition: opacity .3s, transform .3s var(--ease); }
.ok .w-ok { opacity: 1; transform: none; }
.w-sug { border: 1px solid var(--mist); border-radius: 10px; margin-top: -6px; overflow: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s var(--ease); background: #fff; }
.sug .w-sug, .picked .w-sug { opacity: 1; transform: none; }
.w-sug div { padding: 10px 12px; border-top: 1px solid var(--mist); color: var(--ink-soft); }
.w-sug div:first-child { border-top: 0; }
.w-sug div b { color: var(--ink); font-weight: 500; display: block; }
.picked .w-sug div:first-child { background: var(--ivory); }
.w-card { border: 1px solid var(--mist); border-radius: 14px; padding: 16px; margin-bottom: 14px; background: #fff; }
.w-card .big { font: 500 26px/1.1 var(--mono); letter-spacing: -.02em; }
.w-card .sub { color: var(--ink-soft); font-size: 12px; margin-top: 4px; }
.w-facts { display: flex; gap: 8px; margin-top: 12px; }
.w-facts span { border: 1px solid var(--mist); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.w-s small { display: block; text-align: center; color: var(--ink-soft); font-size: 12px; margin-top: 10px; }
.w-opt { display: flex; justify-content: space-between; align-items: center; height: 46px; border: 1px solid var(--mist); border-radius: 12px; padding: 0 12px; margin-bottom: 8px; background: #fff; transition: border-color .25s, box-shadow .25s; }
.w-opt span { font: 500 13.5px var(--mono); }
.w-opt.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.w-tot { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 2px 12px; color: var(--ink-soft); }
.w-tot b { font: 500 22px var(--mono); color: var(--ink); letter-spacing: -.02em; }
.w-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.w-paid { position: absolute; inset: 0; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 0; pointer-events: none; transition: opacity .35s; }
.paid .w-paid { opacity: 1; }
.w-paid .chk { width: 64px; height: 64px; border-radius: 32px; background: var(--pear); color: #fff; display: flex; align-items: center; justify-content: center; transform: scale(.4); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.paid .w-paid .chk { transform: none; }
.w-paid b { font: 500 22px var(--font); margin-top: 6px; }
.w-paid span { font: 500 14px var(--mono); color: var(--ink-soft); }
.w-dates { display: grid; gap: 8px; }
.w-dates span { height: 46px; border: 1px solid var(--mist); border-radius: 12px; display: flex; align-items: center; padding: 0 12px; font: 500 13.5px var(--mono); background: #fff; transition: border-color .25s, box-shadow .25s; }
.dated .w-dates span:first-child { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.w-done { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--ivory); color: var(--ink-soft); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.w-done b { color: var(--ink); font-weight: 500; }
.dated .w-done { opacity: 1; transform: none; }
.w-foot { height: 34px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: var(--ink-soft); border-top: 1px solid var(--mist); }
.w-foot b { color: var(--ink-soft); font-weight: 500; }


/* app window */
.win { border: 1px solid var(--mist); border-radius: 16px; background: var(--paper); overflow: hidden; }
.win-bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--mist); background: var(--ivory); }
.win-bar i { width: 9px; height: 9px; border-radius: 5px; background: var(--mist); }
.win-bar span { margin-left: 10px; font: 500 11px var(--mono); color: var(--ink-soft); }
.win-body { display: grid; grid-template-columns: 164px 1fr; min-height: 396px; }
.side { background: var(--ivory); border-right: 1px solid var(--mist); padding: 12px 8px; font-size: 13px; }
.side .new { height: 30px; border: 1px solid var(--mist); border-radius: 8px; background: var(--paper); display: flex; align-items: center; gap: 8px; padding: 0 9px; font-weight: 500; margin-bottom: 10px; }
.side .new b { color: var(--clay); font-weight: 500; }
.side .it { height: 29px; border-radius: 7px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px; color: var(--ink); }
.side .it.on { background: rgba(26,24,21,.075); font-weight: 500; }
.side .it em { font: 500 11px var(--mono); font-style: normal; color: var(--clay-text); }
.side .kid { margin-left: 12px; padding-left: 9px; border-left: 1px solid var(--mist); color: var(--ink-soft); height: 26px; display: flex; align-items: center; justify-content: space-between; padding-right: 9px; }
.pane { padding: 18px 20px 20px; min-width: 0; }
.pane h5 { margin: 0; font: 500 17px/1.3 var(--font); }
.pane .sh { margin: 16px 0 8px; font: 500 11.5px/1 var(--font); color: var(--ink-soft); }
.rows { border: 1px solid var(--mist); border-radius: 12px; overflow: hidden; background: var(--paper); }
.r { display: flex; align-items: center; gap: 12px; padding: 10px 13px; min-height: 50px; border-top: 1px solid var(--mist); font-size: 13.5px; line-height: 1.35; }
.r:first-child { border-top: 0; }
.r .tm { width: 62px; flex: none; font: 500 12px var(--mono); color: var(--ink-soft); }
.r .x { flex: 1; min-width: 0; }
.r .x b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r .x > span { display: block; color: var(--ink-soft); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r .amt { font: 500 13px var(--mono); }
.dot { width: 6px; height: 6px; border-radius: 3px; background: var(--clay); flex: none; }
.chip { height: 22px; padding: 0 8px; border-radius: 6px; font: 500 11.5px/22px var(--font); background: rgba(26,24,21,.075); white-space: nowrap; flex: none; }
.chip.ok { background: var(--pear-soft); color: var(--pear-text); }
.chip.att { background: #F7DCD1; color: var(--clay-text); }
.chip.warn { background: #FBEBC4; color: #7A5900; }
.r.fresh { background: #FBF3EC; animation: fresh 2.4s var(--ease) 1; }
@keyframes fresh { 0% { opacity: 0; transform: translateY(-10px); } 30% { opacity: 1; transform: none; } }
.cap { margin-top: 12px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); text-align: right; }

/* ---------- hero film: a muted loop behind the words, under a scrim ---------- */
/* The still and the film share one box and one framing, so the film starts on the picture already on the page.
   Wide: the box is wider than the screen and anchored left, which keeps the cleaner right of the words.
   The scrim is solid Ink at its top and its foot, so the film never shows an edge of its own.
   Pinned, the film fills the pinned block. In the flow it fills the hero, from the hero's top edge:
   --hero-top is the hero's own top padding, which the film climbs to sit under the header.
   --film-pool is the width of the scrim's darker pool behind the words. It is in vw on purpose: a percentage
   inside clamp() is not a radius the browser accepts, and one refused radius drops the whole scrim. */
.hero-film { --film-pool: clamp(40vw, 480px, 56vw); position: absolute; z-index: 0; top: calc(0px - var(--hero-top)); right: 0; bottom: 0; left: 0; overflow: clip; pointer-events: none; background: var(--ink); }
.hero-film img, .hero-film video { position: absolute; top: 0; left: 0; width: 142%; max-width: none; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-film video { opacity: 0; transition: opacity .9s ease; }
.hero-film video[data-on] { opacity: 1; }
.hero-film::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1000px 560px at 50% 78%, rgba(208,96,62,.24), transparent 64%), radial-gradient(ellipse var(--film-pool) 36% at 50% 41%, rgba(26,24,21,.74) 0, rgba(26,24,21,.46) 58%, rgba(26,24,21,0) 100%), linear-gradient(180deg, var(--ink) 0, rgba(26,24,21,.74) 13%, rgba(26,24,21,.46) 32%, rgba(26,24,21,.46) 56%, rgba(26,24,21,.9) 80%, var(--ink) 100%); }
.hero-stack { position: relative; z-index: 1; }
/* The small words carry their own pool of Ink, blurred until it has no edge, so they hold their contrast over
   the brightest part of the picture wherever the layout puts them. The headline is large: the scrim's own pool
   (--film-pool, never narrower than the headline) is enough for it. The second button is tinted inside its line. */
.hero .eyebrow, .hero .lede { position: relative; }
.hero .eyebrow::before, .hero .lede::before { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.hero .eyebrow::before { left: 50%; top: 50%; width: 280px; height: 48px; margin: -24px 0 0 -140px; border-radius: 24px; background: rgba(26,24,21,.78); filter: blur(12px); }
.hero .lede::before { inset: -8px -44px; border-radius: 40px; background: rgba(26,24,21,.84); filter: blur(22px); }
.hero .btn-line { background: rgba(26,24,21,.3); }
.hero-film-btn { position: absolute; z-index: 2; top: 0; right: 24px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(246,242,234,.3); background: rgba(26,24,21,.55); color: var(--ivory); display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s; }
.hero-film-btn[hidden] { display: none; }
.hero-film-btn:hover { border-color: rgba(246,242,234,.6); }
.hero-film-btn:focus-visible { outline: 2px solid var(--ivory); outline-offset: 2px; }
.hero-film-btn .i-play, .hero-film-btn[data-paused] .i-pause { display: none; }
.hero-film-btn[data-paused] .i-play { display: block; }

/* ---------- strip ---------- */
.strip { border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); background: var(--paper); overflow: hidden; padding: 18px 0; }
.strip-in { display: flex; gap: 44px; width: max-content; animation: slide 46s linear infinite; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.strip-in span::before { content: '•'; color: var(--clay); margin-right: 44px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- what you can do ---------- */
.sec { padding: 116px 0; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.can { position: relative; margin-top: 60px; min-height: 560px; }
.can-item { width: 43%; border-top: 1px solid var(--mist); }
.can-item:last-child { border-bottom: 1px solid var(--mist); }
.can-head { position: relative; display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 22px 0; text-align: left; color: var(--stone); transition: color .3s; }
.can-head .n { font: 500 12px/1 var(--mono); letter-spacing: .14em; width: 20px; flex: none; color: var(--ink-soft); }
.can-head b { font: 500 clamp(22px, 2.5vw, 31px)/1.12 var(--font); letter-spacing: -.02em; }
.can-head:hover { color: var(--ink-soft); }
.can-head .prog { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--ink); }
.can-item.on .can-head { color: var(--ink); }
.can-item.on .can-head .n { color: var(--clay-text); }
.can-item.on .can-head .prog { width: 100%; }
.can-item.on.can-run .can-head .prog { animation: fill 6.5s linear 1 both; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.can-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.can-item.on .can-body { grid-template-rows: 1fr; }
.can-body > div { overflow: hidden; min-height: 0; }
.can-body p { color: var(--ink-soft); font-size: 17px; line-height: 1.55; padding: 0 0 24px 38px; max-width: 440px; }
.view { position: absolute; right: 0; top: 0; width: 50%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .45s, transform .5s var(--ease); pointer-events: none; }
.can-item.on .view { opacity: 1; transform: none; pointer-events: auto; }
.vcard { width: min(100%, 440px); border: 1px solid var(--mist); border-radius: 22px; background: var(--paper); padding: 26px; text-align: left; }
.vh { display: flex; justify-content: space-between; align-items: center; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.vt { font: 500 22px/1.2 var(--font); letter-spacing: -.01em; }
.vs { color: var(--ink-soft); font-size: 15px; margin: 2px 0 16px; }
.ln { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--mist); font-size: 15px; color: var(--ink-soft); }
.ln span:last-child { font: 500 15px var(--mono); color: var(--ink); }
.ln.tot { color: var(--ink); font-weight: 500; }
.ln.tot span:last-child { font-size: 20px; letter-spacing: -.02em; }
.vpaid { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 0 14px; }
.vpaid .chk { width: 84px; height: 84px; border-radius: 42px; background: var(--pear); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.vpaid b { font: 500 26px/1.1 var(--font); letter-spacing: -.02em; }
.vpaid .amt { font: 500 44px/1.1 var(--mono); letter-spacing: -.04em; margin: 10px 0 8px; }
.vpaid span { color: var(--ink-soft); font-size: 15px; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.board h6 { margin: 0 0 8px; font: 500 12px/1 var(--font); color: var(--ink-soft); }
.blk { border: 1px solid var(--mist); border-left: 3px solid var(--clay); border-radius: 10px; padding: 10px 11px; margin-bottom: 8px; background: #fff; font-size: 13px; line-height: 1.35; }
.blk.b { border-left-color: var(--stone); }
.blk .mono { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-soft); margin-bottom: 3px; }
.blk b { display: block; font-weight: 500; }
.blk span { color: var(--ink-soft); }
.blk.tall { padding-bottom: 34px; }
.talk { display: grid; gap: 12px; }
.msg { max-width: 86%; border-radius: 18px 18px 18px 4px; background: var(--ivory); border: 1px solid var(--mist); padding: 12px 14px; font-size: 14.5px; line-height: 1.4; }
.msg.me { justify-self: end; border-radius: 18px 18px 4px 18px; background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.msg .from { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.mini { border: 1px solid var(--mist); border-radius: 14px; padding: 13px 14px; background: #fff; }
.mini .k { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.mini b { display: block; font-weight: 500; font-size: 15px; }
.mini > span { color: var(--ink-soft); font-size: 13.5px; }
.payout { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding: 13px 14px; border-radius: 14px; background: var(--ivory); font-size: 14px; color: var(--ink-soft); }
.payout b { font: 500 16px var(--mono); color: var(--ink); }

/* ---------- quoting while you sleep ---------- */
.auto { position: relative; overflow: clip; padding: 120px 0; background: radial-gradient(820px 600px at 74% 50%, rgba(208,96,62,.22), transparent 62%), var(--ink); color: var(--ivory); }
.auto .clock { position: absolute; left: -1.5vw; bottom: -30px; font: 500 clamp(110px, 21vw, 330px)/.8 var(--mono); letter-spacing: -.06em; color: rgba(246,242,234,.04); white-space: nowrap; pointer-events: none; user-select: none; }
.auto-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.auto .eyebrow { color: var(--stone); }
.auto .lede { color: var(--night-soft); }
.pts { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--night-line); max-width: 520px; }
.pts div { padding: 18px 0; border-bottom: 1px solid var(--night-line); display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: baseline; }
.pts b { font: 500 17px/1.3 var(--font); }
.pts span { color: var(--night-soft); font-size: 15.5px; line-height: 1.5; }
.stagebox { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; perspective: 1400px; }
.b-foot { display: flex; align-items: center; gap: 14px; min-height: 36px; }
.stamp { display: inline-block; border: 1.5px solid var(--pear); color: #A9C283; border-radius: 8px; padding: 8px 12px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; transform: rotate(-2deg) scale(1.25); opacity: 0; transition: opacity .25s, transform .45s cubic-bezier(.3,1.6,.5,1); }
.stamp.in { opacity: 1; transform: rotate(-2deg); }
.replay { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--night-line); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(246,242,234,.6); }
.replay:hover { color: var(--ivory); border-color: rgba(246,242,234,.4); }

/* ---------- getting started ---------- */
.start { background: var(--paper); border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--mist); text-align: left; }
.step { padding: 28px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--mist); }
.step:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.step .n { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--clay-text); }
.step h3 { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.15; letter-spacing: -.02em; margin: 16px 0 10px; }
.step p { color: var(--ink-soft); }
.start-go { margin-top: 44px; }

/* ---------- close ---------- */
.close { position: relative; overflow: hidden; padding: 130px 0 120px; background: radial-gradient(800px 480px at 50% 110%, rgba(208,96,62,.26), transparent 65%), var(--ink); color: var(--ivory); }
.close .eyebrow { color: #E58A6C; }
.close h2 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -.03em; line-height: 1.0; }
.close .lede { color: var(--night-soft); }
.close-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: start; }
.close .hero-actions { margin-top: 32px; }
.form { border-radius: 20px; background: var(--paper); color: var(--ink); padding: 28px; }
.form h3 { margin-bottom: 4px; }
.form .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.form label { display: block; font: 500 12px/1 var(--font); color: var(--ink-soft); margin: 14px 0 6px; }
.form input, .form textarea { width: 100%; border: 1px solid var(--stone); border-radius: 10px; background: #fff; font: 400 15px/1.4 var(--font); color: var(--ink); padding: 11px 12px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.form .hp { position: absolute; left: -9999px; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.form .btn { width: 100%; margin-top: 18px; }
.form-status { font-size: 13px; color: var(--ink-soft); margin-top: 10px; min-height: 18px; }
.form-status.err { color: var(--clay-text); }
.form-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* The form's choices. The page holds no browser select: a list is a button with a listbox (choice.js), and a
   choice of two is a pair of radios drawn as one control. State is read from attributes, never from a class. */
.form { --fpad: 11px; }
.form .flabel { display: block; font: 500 12px/1 var(--font); color: var(--ink-soft); margin: 14px 0 6px; }
.pick { position: relative; }
.pick-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--stone); border-radius: 10px; background: #fff; font: 400 15px/1.4 var(--font); color: var(--ink); padding: var(--fpad) 12px; text-align: left; transition: border-color .15s; }
.pick-btn:hover { border-color: var(--ink-soft); }
.pick-btn:focus-visible, .pick-btn[aria-expanded="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.pick-btn[aria-invalid="true"] { border-color: var(--clay); }
.pick-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--stone); }
.pick-val[data-filled] { color: var(--ink); }
.pick-chev { flex: none; color: var(--ink-soft); transition: transform .2s var(--ease); }
.pick-btn[aria-expanded="true"] .pick-chev { transform: rotate(180deg); }
.pick-list { position: absolute; z-index: 6; left: 0; top: calc(100% + 6px); min-width: 100%; width: max-content; max-width: calc(100vw - 48px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--mist); border-radius: 12px; box-shadow: 0 14px 34px rgba(26,24,21,.16), 0 2px 6px rgba(26,24,21,.06); outline: none; animation: pick-in .16s var(--ease); }
.pick-list[hidden] { display: none; }
@keyframes pick-in { from { opacity: 0; transform: translateY(-4px); } }
.pick-opt { position: relative; padding: 10px 40px 10px 10px; border-radius: 8px; font: 400 15px/1.35 var(--font); color: var(--ink); white-space: nowrap; cursor: pointer; }
.pick-opt[data-active] { background: rgba(26,24,21,.075); }
.pick-opt[aria-selected="true"] { font-weight: 500; }
.pick-opt[aria-selected="true"]::after { content: ""; position: absolute; right: 15px; top: 50%; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-62%) rotate(45deg); }
.seg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3px; padding: 3px; border: 1px solid var(--stone); border-radius: 10px; background: #fff; }
.seg[aria-invalid="true"] { border-color: var(--clay); }
.form .seg .seg-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.form .seg .seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.seg-opt span { display: flex; align-items: center; justify-content: center; min-height: calc(21px + 2 * var(--fpad) - 6px); padding: 0 8px; border-radius: 7px; font: 400 15px/1.2 var(--font); color: var(--ink); transition: background .15s, color .15s; }
.seg-opt:hover span { background: rgba(26,24,21,.06); }
.seg-opt input:checked + span { background: var(--ink); color: var(--ivory); font-weight: 500; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.ferr { font-size: 12.5px; line-height: 1.3; color: var(--clay-text); margin-top: 6px; }
.ferr[hidden] { display: none; }
.form-success { padding: 12px 0 4px; }
.form-success .success-mark { width: 52px; height: 52px; border-radius: 26px; background: var(--pear); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.form-success p { color: var(--ink-soft); margin-top: 8px; }
.form-success .success-sub { font-size: 14px; }

/* ---------- footer ---------- */
.foot { padding: 44px 0 56px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot img { height: 26px; width: auto; }
.foot p { color: var(--ink-soft); font-size: 14px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .top { gap: 10px; padding: 0 8px 0 16px; height: 54px; }
  .top nav, .top .login { display: none; }
  .top .logo { flex: 1; }
  .hero { --hero-top: 120px; }
  .hero-film img, .hero-film video { width: 100%; object-position: 50% 50%; }
  .hero-film-btn { right: 16px; }
  .scene { margin: 52px auto -60px; padding: 0 16px; }
  .toast { width: 204px; padding: 10px 12px; }
  .toast.t1, .toast.t3 { display: none; }
  .toast.t2 { right: 6px; top: -30px; } .toast.t4 { right: auto; left: 6px; top: auto; bottom: 86px; }
  .win-body { grid-template-columns: 1fr; }
  .side { display: none; }
  .pane { padding: 16px 14px; }
  .r .x b, .r .x > span { white-space: normal; }
  .sec { padding: 76px 0; }
  .can { margin-top: 36px; min-height: 0; }
  .can-item { width: 100%; }
  .can-head { color: var(--ink); padding: 20px 0 10px; }
  .can-head .n { color: var(--clay-text); }
  .can-head .prog { display: none; }
  .can-body { grid-template-rows: 1fr; }
  .can-body p { padding: 0 0 18px 38px; }
  .view { position: static; width: 100%; height: auto; opacity: 1; transform: none; pointer-events: auto; padding: 0 0 30px; }
  .vcard { padding: 20px; border-radius: 18px; }
  .auto { padding: 84px 0; }
  .auto-grid, .close-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .auto .clock { bottom: auto; top: 46%; }
  .pts div { grid-template-columns: 1fr; gap: 4px; }
  .phone { --ry: 0deg; --rx: 0deg; transform: scale(var(--ph, 1)); }
  .steps { grid-template-columns: 1fr; margin-top: 36px; }
  .step { border-right: 0; margin-right: 0; padding: 24px 0; border-bottom: 1px solid var(--mist); }
  .step:last-child { border-bottom: 0; padding-bottom: 0; }
  .close { padding: 84px 0 72px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .frow { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .strip-in, .can-item.on.can-run .can-head .prog { animation: none; }
  .toast { animation: none; opacity: 1; }
  .hero-film video { transition: none; }
  .pick-list { animation: none; }
  .pick-chev { transition: none; }
  .phone { transition: none; }
}
/* static mode for screenshots and print: everything in its final state */
.static .rv { opacity: 1; transform: none; transition: none; }
.static .strip-in { animation: none; }
.static .toast { animation: none; opacity: 1; }

/* =====================================================================
   SCENES. Every section holds one screen and plays as the page scrolls.
   pin.js pins a section's block for a stretch of scrolling and writes,
   on the block's track: data-mode, data-step, --p, --sp, --step, data-fit,
   --pin-h and --pin-scale. home.js writes data-scene on the section.
   Every rule below reads those. Without script, under reduced motion, on
   a short screen, or when one screen cannot hold a section, the section
   stays data-scene="still" and none of these rules apply: the page reads
   in the normal flow.
   ===================================================================== */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }

.pin-track { position: relative; }
/* the scroll distance: a spacer after the pinned block */
.pin-track[data-mode="scroll"]::after { content: ""; display: block; height: var(--run, 150svh); }
.pin-track[data-mode="scroll"] > .pin-sticky { position: sticky; top: 0; height: 100svh; box-sizing: border-box; padding: 84px 0 20px; display: flex; flex-direction: column; justify-content: center; overflow: clip; }
.pin-track[data-mode="scroll"] .pin-inner { width: 100%; flex: none; min-height: var(--pin-h, 0px); transform: scale(var(--pin-scale, 1)); transform-origin: 50% 50%; }
/* parts a pinned block can do without when one screen is not enough */
.pin-track[data-fit="1"] .pin-drop-1,
.pin-track[data-fit="2"] .pin-drop-1,
.pin-track[data-fit="2"] .pin-drop-2 { display: none; }
/* while pin.js measures, nothing is in motion */
.pin-track[data-measure] * { transition: none !important; animation: none !important; }
[data-scene="scroll"] { padding-top: 0; padding-bottom: 0; }
[data-scene="scroll"] h2 { font-size: min(clamp(32px, 4.4vw, 54px), 7.6svh); }
.can-ticks { display: none; }

/* ---------- hero: the words leave, the app rises, four moments land ---------- */
.hero[data-scene="scroll"] .pin-track { --rise: clamp(0, calc(var(--p, 0) / .3), 1); }
.hero[data-scene="scroll"] .hero-stack { display: grid; justify-items: center; align-items: center; }
.hero[data-scene="scroll"] .hero-stack > * { grid-area: 1 / 1; }
.hero[data-scene="scroll"] h1 { font-size: min(clamp(44px, 6.2vw, 76px), 11svh); }
.hero[data-scene="scroll"] .lede { margin-top: clamp(14px, 3svh, 24px); }
.hero[data-scene="scroll"] .hero-actions { margin-top: clamp(18px, 4svh, 34px); }
.hero[data-scene="scroll"] .hero-copy { width: 100%; opacity: calc(1 - var(--rise) * 1.5); transform: translateY(calc(var(--hero-lift, 0px) - var(--rise) * 56px)); }
.hero[data-scene="scroll"] .pin-track:not([data-step="0"]) .hero-copy { visibility: hidden; }
.hero[data-scene="scroll"] .scene { width: 100%; margin: 0 auto; opacity: 1; transition: none; transform: translateY(calc((1 - var(--rise)) * var(--hero-drop, 0px))); }
.hero[data-scene="scroll"] .pin-track[data-measure] .hero-copy,
.hero[data-scene="scroll"] .pin-track[data-measure] .scene { transform: none; }
.hero[data-scene="scroll"] .toast { animation: none; opacity: var(--on); transform: translateY(calc((1 - var(--on)) * 18px)) scale(calc(.94 + var(--on) * .06)); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.hero[data-scene="scroll"] .toast.t1 { --on: clamp(0, calc(var(--step, 0) - 0), 1); }
.hero[data-scene="scroll"] .toast.t2 { --on: clamp(0, calc(var(--step, 0) - 1), 1); }
.hero[data-scene="scroll"] .toast.t3 { --on: clamp(0, calc(var(--step, 0) - 2), 1); }
.hero[data-scene="scroll"] .toast.t4 { --on: clamp(0, calc(var(--step, 0) - 3), 1); }
/* the film leaves with the words, and its button with it */
.hero[data-scene="scroll"] .hero-film { top: 0; opacity: calc(1 - var(--rise)); }
.hero[data-scene="scroll"] .hero-film-btn { top: auto; bottom: 24px; opacity: calc(1 - var(--rise) * 2); }
.hero[data-scene="scroll"] .pin-track:not([data-step="0"]) .hero-film-btn { visibility: hidden; }

/* ---------- what you can do: the scroll picks the statement ---------- */
#can[data-scene="scroll"] .can { margin-top: clamp(16px, 4svh, 60px); min-height: clamp(300px, 54svh, 560px); }
#can[data-scene="scroll"] .can-head { padding: clamp(10px, 2.3svh, 22px) 0; }
#can[data-scene="scroll"] .can-head b { font-size: min(clamp(22px, 2.5vw, 31px), 4.4svh); }
#can[data-scene="scroll"] .can-body p { font-size: clamp(15px, 2.6svh, 17px); padding-bottom: clamp(10px, 2.6svh, 24px); }
#can[data-scene="scroll"] .can-item.on .can-head .prog { width: calc(var(--sp, 0) * 100%); animation: none; }
#can[data-scene="scroll"] .vcard { transform: scale(var(--card-scale, 1)); }
#can[data-scene="scroll"] .cap { margin-top: 8px; }

/* ---------- quoting while you sleep: the scroll plays the phone ---------- */
.auto[data-scene="scroll"] .lede { margin-top: clamp(10px, 2.4svh, 20px); }
.auto[data-scene="scroll"] .pts { margin-top: clamp(14px, 4svh, 40px); }
.auto[data-scene="scroll"] .pts div { padding: clamp(9px, 2svh, 18px) 0; opacity: .4; transition: opacity .45s var(--ease); }
.auto[data-scene="scroll"] .pin-track[data-pt="0"] .pts div:nth-child(1),
.auto[data-scene="scroll"] .pin-track[data-pt="1"] .pts div:nth-child(2),
.auto[data-scene="scroll"] .pin-track[data-pt="2"] .pts div:nth-child(3) { opacity: 1; }
.auto[data-scene="scroll"] .stagebox { gap: clamp(8px, 2svh, 22px); }
.auto[data-scene="scroll"] .replay { display: none; }

/* ---------- getting started: three steps light in turn ---------- */
.start[data-scene="scroll"] .steps { position: relative; margin-top: clamp(22px, 6svh, 56px); }
.start[data-scene="scroll"] .steps::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--ink); }
.start[data-scene="scroll"] .step { opacity: calc(.28 + .72 * var(--on)); transform: none; transition: opacity .5s var(--ease); }
.start[data-scene="scroll"] .step:nth-child(1) { --on: 1; }
.start[data-scene="scroll"] .step:nth-child(2) { --on: clamp(0, calc(var(--step, 0) - 0), 1); }
.start[data-scene="scroll"] .step:nth-child(3) { --on: clamp(0, calc(var(--step, 0) - 1), 1); }
.start[data-scene="scroll"] .start-go { --on: clamp(0, calc(var(--step, 0) - 1), 1); margin-top: clamp(16px, 4.4svh, 44px); opacity: calc(.28 + .72 * var(--on)); transform: none; transition: opacity .5s var(--ease); }

/* ---------- tonight: one screen, never pinned (a form stays free to scroll) ---------- */
.scenes .close[data-screen] { min-height: 100svh; display: grid; align-content: center; padding: clamp(84px, 13svh, 96px) 0 clamp(18px, 4svh, 36px); }
.scenes .close h2 { font-size: min(clamp(38px, 6vw, 76px), 11svh); }
.scenes .form { padding: clamp(18px, 3.4svh, 28px); }
.scenes .form .sub { margin-bottom: clamp(6px, 1.6svh, 18px); }
.scenes .form label, .scenes .form .flabel { margin-top: clamp(8px, 1.7svh, 14px); }
.scenes .form { --fpad: clamp(8px, 1.5svh, 11px); }
.scenes .form input, .scenes .form textarea { padding-top: var(--fpad); padding-bottom: var(--fpad); }
.scenes .form .btn { margin-top: clamp(10px, 2svh, 18px); }

@media (min-width: 901px) and (max-width: 1180px) {
  /* a narrower window: the four moments sit on the app's edges, inside the screen */
  .hero[data-scene="scroll"] .toast.t1 { left: 6px; } .hero[data-scene="scroll"] .toast.t3 { left: 18px; }
  .hero[data-scene="scroll"] .toast.t2 { right: 6px; } .hero[data-scene="scroll"] .toast.t4 { right: 18px; }
}
@media (max-width: 1100px) {
  /* the app reaches the corner on a window this narrow: the film's button sits under the header */
  .hero[data-scene="scroll"] .hero-film-btn { top: 84px; bottom: auto; }
}
/* the hero's four moves as the browser plays them against the scroll (the phone block below). A fade ends at .001,
   never at 0: Apple's notes for Safari Technology Preview 254 record a fault that could leave an element fully
   visible when an animation the browser runs off the page's own thread brought its opacity to 0. */
@keyframes hero-rise { from { transform: translateY(var(--hero-drop, 0px)); } to { transform: translateY(0px); } }
@keyframes hero-leave { from { opacity: 1; transform: translateY(var(--hero-lift, 0px)); } 66.667% { opacity: .001; } to { opacity: .001; transform: translateY(calc(var(--hero-lift, 0px) - 56px)); } }
@keyframes hero-film-out { from { opacity: 1; } to { opacity: .001; } }
@keyframes hero-film-btn-out { from { opacity: 1; } 50% { opacity: .001; } to { opacity: .001; } }
@media (max-width: 900px) {
  .pin-track[data-mode="scroll"] > .pin-sticky { padding: 76px 0 12px; }
  [data-scene="scroll"] h2 { font-size: min(32px, 4.9svh); }
  /* hero: the two buttons share a row; two moments on a phone, one to a side */
  .hero[data-scene="scroll"] h1 { font-size: min(44px, 6.6svh); }
  .hero[data-scene="scroll"] .lede { font-size: 15.5px; line-height: 1.5; }
  .hero[data-scene="scroll"] .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero[data-scene="scroll"] .hero-actions .btn { height: 46px; padding: 0 16px; font-size: 15px; }
  .hero[data-scene="scroll"] .toast.t2 { top: 8px; }
  .hero[data-scene="scroll"] .toast.t2 { --on: clamp(0, calc(var(--step, 0) - 0), 1); }
  .hero[data-scene="scroll"] .toast.t4 { --on: clamp(0, calc(var(--step, 0) - 2), 1); }
  /* hero, on a phone: the parts that move with the scroll each hold a layer of their own from the first paint,
     and the film and its scrim with them. A scroll then moves layers and repaints nothing, and the film starting
     fills a layer that is already there. */
  .hero[data-scene="scroll"] .hero-film, .hero[data-scene="scroll"] .hero-film video, .hero[data-scene="scroll"] .hero-film::after { will-change: opacity; }
  .hero[data-scene="scroll"] .hero-copy { will-change: transform, opacity; }
  .hero[data-scene="scroll"] .scene { will-change: transform; }
  /* hero, on a phone: where the browser can play an animation against the scroll itself, it moves the hero and the
     script stands down. A phone scrolls on a thread of its own and tells the page's script where it is late, and
     no more than 60 times a second, so a part the script steers trails the finger. The four moves below read the
     scroll directly, over the stretch --rise covers: the first .3 of the run. home.js checks that the browser has
     the app where the scroll says and writes data-rise on the track: "browser" holds --rise still, "script" takes
     the four animations away and the rules above move the hero from --rise, as on a wide window. */
  @supports (animation-timeline: scroll()) {
    .hero[data-scene="scroll"] .scene { animation: hero-rise linear both; animation-timeline: scroll(root block); animation-range: 0px calc(var(--run, 150svh) * .3); }
    .hero[data-scene="scroll"] .hero-copy { animation: hero-leave linear both; animation-timeline: scroll(root block); animation-range: 0px calc(var(--run, 150svh) * .3); }
    .hero[data-scene="scroll"] .hero-film { animation: hero-film-out linear both; animation-timeline: scroll(root block); animation-range: 0px calc(var(--run, 150svh) * .3); }
    .hero[data-scene="scroll"] .hero-film-btn { animation: hero-film-btn-out linear both; animation-timeline: scroll(root block); animation-range: 0px calc(var(--run, 150svh) * .3); }
    .hero[data-scene="scroll"] .pin-track[data-rise="browser"] { --rise: 0; }
    .hero[data-scene="scroll"] .pin-track[data-rise="script"] .scene, .hero[data-scene="scroll"] .pin-track[data-rise="script"] .hero-copy,
    .hero[data-scene="scroll"] .pin-track[data-rise="script"] .hero-film, .hero[data-scene="scroll"] .pin-track[data-rise="script"] .hero-film-btn { animation: none; }
    .hero[data-scene="scroll"] .pin-track:not([data-step="0"]) .hero-film { visibility: hidden; }
  }
  /* what you can do: one statement at a time, with its picture under it */
  #can[data-scene="scroll"] .can-ticks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; }
  #can[data-scene="scroll"] .can-ticks i { position: relative; height: 2px; background: var(--mist); overflow: hidden; }
  #can[data-scene="scroll"] .can-ticks i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(clamp(0, calc(var(--step, 0) - var(--i) + var(--sp, 0)), 1)); }
  #can[data-scene="scroll"] .can-ticks i:nth-child(1) { --i: 0; } #can[data-scene="scroll"] .can-ticks i:nth-child(2) { --i: 1; }
  #can[data-scene="scroll"] .can-ticks i:nth-child(3) { --i: 2; } #can[data-scene="scroll"] .can-ticks i:nth-child(4) { --i: 3; }
  #can[data-scene="scroll"] .can-ticks i:nth-child(5) { --i: 4; }
  #can[data-scene="scroll"] .can { display: grid; margin-top: 10px; min-height: 0; }
  #can[data-scene="scroll"] .can-item { grid-area: 1 / 1; border: 0; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
  #can[data-scene="scroll"] .can-item.on { opacity: 1; pointer-events: auto; }
  #can[data-scene="scroll"] .can-head { padding: 10px 0 6px; }
  #can[data-scene="scroll"] .can-body p { padding: 0 0 12px 38px; }
  #can[data-scene="scroll"] .view { padding: 0; }
  #can[data-scene="scroll"] .vcard { transform: none; padding: 16px; }
  #can[data-scene="scroll"] .cap { display: none; }
  /* quoting while you sleep: the point the phone is proving, then the phone */
  .auto[data-scene="scroll"] .auto-grid { gap: clamp(12px, 2.4svh, 28px); }
  .auto[data-scene="scroll"] .pin-track { --phone-h: 486px; }
  .auto[data-scene="scroll"] .eyebrow, .auto[data-scene="scroll"] .lede, .auto[data-scene="scroll"] .b-foot { display: none; }
  .auto[data-scene="scroll"] .pts b { font-size: 16px; } .auto[data-scene="scroll"] .pts span { font-size: 15px; line-height: 1.45; }
  .auto[data-scene="scroll"] .pts { border-top: 0; margin-top: 10px; display: grid; }
  .auto[data-scene="scroll"] .pts div { grid-area: 1 / 1; border-bottom: 0; padding: 0; opacity: 0; }
  .auto[data-scene="scroll"] .clock { top: auto; bottom: -20px; }
  /* getting started: tighter on a phone */
  .start[data-scene="scroll"] .steps { margin-top: clamp(14px, 3svh, 36px); }
  .start[data-scene="scroll"] .step { padding: clamp(12px, 2.4svh, 24px) 0; }
  .start[data-scene="scroll"] .step h3 { margin: clamp(8px, 1.6svh, 16px) 0 6px; }
  /* tonight: a phone reads the form in the flow */
  .scenes .close[data-screen] { display: block; padding: 96px 0 56px; }
}
