/* DRAFT: explainer videos section */
.xsection .xintro { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: var(--space-xxl); align-items: center; margin: var(--space-xl) 0 calc(var(--space-xxl) * 1.5); }
.xsection .xintro-copy h3 { margin: 0 0 var(--space-md); font-size: 1.6rem; }
.xsection .xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-xl); }
.xsection .xcard { margin: 0; display: flex; flex-direction: column; gap: var(--space-md); }
/* (old 9:16 frame rule removed: it squashed the phone) */

.xsection .xcard figcaption { font-size: var(--type-caption); color: var(--text-muted); }
.xsection .xcard figcaption strong { display: block; color: var(--text); font-size: var(--type-body); margin-bottom: 4px; }
@media (max-width: 700px) { .xsection .xintro { grid-template-columns: 1fr; justify-items: center; } .xsection .xintro .xframe { width: min(100%, 320px); } .xsection .xgrid { grid-template-columns: repeat(2, 1fr); } }

.verdict-lead { display: flex; justify-content: center; margin: 0 0 var(--space-xxl); }
.verdict-lead .hero-card { max-width: 420px; margin: 0; }

/* DRAFT: one phone body for every video on the page (explainers + "Watch it make the call") */
.device, .vframe {
  position: relative; aspect-ratio: 792 / 1700; padding: 10px; border-radius: 40px;
  background: linear-gradient(160deg, #2b2e33 0%, #0d0e10 18%, #050506 60%, #1c1e22 100%);
  box-shadow: inset 0 0 0 1.5px #5b6068, inset 0 0 0 3px #16181b, 0 1px 0 0 rgba(255,255,255,.06),
              0 34px 60px -26px rgba(4, 10, 20, .65), 0 10px 18px -12px rgba(4, 10, 20, .5);
  border: 0; overflow: visible;
}
.device video, .vframe video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 31px; background: #000; }
/* punch-hole camera, centred like the S22 */
.device::before, .vframe::before {
  content: ""; position: absolute; z-index: 2; top: 18px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #3b4a63 0 18%, #0a0d12 45%, #000 70%); box-shadow: 0 0 0 1.5px #111;
}
/* power and volume keys on the right edge */
.device::after, .vframe::after {
  content: ""; position: absolute; right: -3px; top: 19%; width: 3px; height: 13%; border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #3d4148, #6b7079); box-shadow: 0 calc(13% + 40px) 0 0 #555a62;
}
.xsection .xframe { border-radius: 40px; overflow: visible; border: 0; }
.xsection .xframe-lg { width: min(100%, 320px); }
.xsection .xcard .xframe, .xsection .xintro .xframe { cursor: pointer; }
.xplay { position: absolute; z-index: 3; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(8, 15, 28, .72); box-shadow: 0 0 0 2px rgba(245,247,250,.85); transition: opacity .2s; }
.xplay::after { content: ""; position: absolute; left: 25px; top: 19px; border-left: 20px solid #f5f7fa; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.playing .xplay { opacity: 0; }
.xcap { min-height: 2.8em; margin: 10px 0 0; font-size: var(--type-caption); line-height: 1.4; color: var(--text); text-align: center; }
.xbar { height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
.xbar i { display: block; height: 100%; width: 0; background: var(--accent-tide); }
video::cue { opacity: 0; }
.xsection .xintro-phone { width: min(100%, 320px); justify-self: center; } .xsection .xintro-phone .xframe-lg { width: 100%; }

/* REAL PHONE PROPORTIONS. The screen takes the footage's own shape (1080 x 2316) and the body is the screen plus
   an even bezel, which lands at about 0.48 wide to tall, the Galaxy S22's 70.6 x 146 mm. Nothing is stretched or cropped. */
.xsection .device, #see .vframe, .device, .vframe { aspect-ratio: auto !important; height: auto !important; padding: 11px; border-radius: 42px; }
.xsection .device video, #see .vframe video, .device video, .vframe video { aspect-ratio: 1080 / 2316; width: 100%; height: auto !important; object-fit: contain; border-radius: 32px; }
.xsection .xintro-phone { width: min(100%, 280px); }

/* ONE SCREEN PER SECTION: the pager moves a section per press, so each explainer screen must fit the window. */
.xsection .xintro { margin-bottom: 0; }
.xsection .xintro-phone { width: min(100%, 280px, calc((100vh - 360px) * 0.485)); }
.xsection .xgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; align-items: start; }
#explainers-boat .xgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; margin: 0 auto; }
.xsection .xcard { width: min(100%, 240px, calc((100vh - 400px) * 0.485)); }
@media (max-width: 700px) { .xsection .xgrid, #explainers-boat .xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .xsection .xcard { width: 100%; } }
.xsection .xintro-phone { width: min(100%, 300px, calc((100vh - 220px) * 0.485)); }
.xsection .xintro { grid-template-columns: auto minmax(0, 1fr); }
.xchapters { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-width: 560px; }
.xchapters button { width: 100%; display: flex; gap: 12px; align-items: baseline; text-align: left; font: inherit; color: var(--text); background: none; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.xchapters button:hover { border-color: var(--text-muted); }
.xchapters button.on { border-color: var(--accent-tide); }
.xchapters .t { color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 2.6em; }
@media (max-width: 700px) { .xsection .xintro { grid-template-columns: 1fr; } }

/* DRAFT: full-screen landing video behind the headline */
.hero.hero-video { position: relative; min-height: calc(100vh - var(--header-h, 56px)); min-height: calc(100svh - var(--header-h, 56px)); display: flex; align-items: flex-end; overflow: hidden; background: #071220; padding-bottom: clamp(40px, 9vh, 96px); }
.hero-video .lv-bg { position: absolute; inset: 0; z-index: 0; }
.hero-video .lv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video .lv-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,12,22,.15) 0%, rgba(5,12,22,.25) 45%, rgba(5,12,22,.78) 100%); }
.hero-video .wrap { position: relative; z-index: 1; width: 100%; }
.hero-video .with-phone { display: block; }
.hero-video .hero-inner, .hero-video h1, .hero-video .lede, .hero-video .eyebrow, .hero-video .hero-navnote, .hero-video .hero-meta { color: #f5f7fa; }
.hero-video h1 { font-size: clamp(30px, 5vw, 56px); max-width: 16ch; }
.hero-video .lede { color: rgba(245,247,250,.88); }
.hero-video .cta { background: #f5f7fa; color: #0a1628; }

/* DRAFT: the app on top of the landing video, stepping through the benefits */
.hero-video .with-phone { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 72px); align-items: end; }
.hero-phone { margin: 0; width: min(270px, calc((100vh - 260px) * 0.485)); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hp-device { width: 100%; }
.hp-screens { position: relative; aspect-ratio: 1080 / 2316; border-radius: 32px; overflow: hidden; background: #000; }
.hp-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.hp-screens img.on { opacity: 1; }
.hp-benefit { min-height: 2.8em; text-align: center; color: #f5f7fa; font-weight: 600; font-size: 1rem; line-height: 1.4; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hp-dots { display: flex; gap: 6px; } .hp-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(245,247,250,.35); } .hp-dots i.on { background: #f5f7fa; }
@media (max-width: 820px) { .hero-video .with-phone { grid-template-columns: minmax(0, 1fr); justify-items: center; } .hero-phone { width: min(230px, 60vw); } .hero.hero-video { min-height: auto; padding-top: 48px; } }

/* DRAFT: no glow around the tiles */
.verdict-card::before, .hero-card::before { display: none !important; }
.verdict-card { box-shadow: none !important; background-image: none !important; }
#verdict { background-image: none !important; }
/* DRAFT: day and night, straight from the phone */
.daynight { display: flex; justify-content: center; gap: clamp(24px, 6vw, 80px); flex-wrap: wrap; }
.dn { margin: 0; width: min(240px, 42vw, calc((100vh - 520px) * 0.485)); display: flex; flex-direction: column; gap: 12px; }
.dn .device img { display: block; width: 100%; aspect-ratio: 1080 / 2316; object-fit: cover; border-radius: 32px; }
.dn figcaption { font-size: var(--type-caption); color: var(--text-muted); text-align: center; }
.dn figcaption strong { display: block; color: var(--text); font-size: var(--type-body); }

/* DRAFT: the app's paper chart grid (PaperGrid.tsx: paper #f3efe5, 24 px step, ink rgba(27,47,74,0.045)) on the page */
body {
  background-color: #f3efe5 !important;
  background-image:
    linear-gradient(rgba(27, 47, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 47, 74, 0.045) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  background-repeat: repeat !important;
}

/* DRAFT: the verdict screen in one window: day and night phones on the left, the three answers stacked on the right */
#verdict .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "head head" "phones cards"; column-gap: clamp(24px, 5vw, 64px); row-gap: var(--space-xl); align-items: start; }
#verdict .section-head { grid-area: head; margin-bottom: 0; }
#verdict .verdict-lead { grid-area: phones; margin: 0; }
#verdict .verdicts { grid-area: cards; display: grid; grid-template-columns: 1fr; gap: 12px; }
#verdict .verdict-card { padding: 16px 20px; display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: center; }
#verdict .verdict-card > * { grid-column: 2; margin: 0; }
#verdict .verdict-card .verdict-mark { grid-column: 1; grid-row: 1 / span 3; width: 64px; height: auto; }
#verdict .verdict-card h3 { font-size: 1.1rem; margin: 4px 0 2px; }
#verdict .verdict-card .said { font-size: .92rem; line-height: 1.45; }
#verdict .dn { width: min(210px, 34vw, calc((100vh - 430px) * 0.485)); }
@media (max-width: 820px) { #verdict .wrap { grid-template-columns: 1fr; grid-template-areas: "head" "phones" "cards"; } }
#verdict .verdict-card .chip { justify-self: start; }
/* the page ground is painted by motion's fixed .journey layer, so the paper grid goes on top of that layer */
.journey::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: linear-gradient(rgba(27, 47, 74, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 47, 74, 0.06) 1px, transparent 1px);
  background-size: 24px 24px; }

/* ===== DRAFT: ideas from Mobbin research (26 Nov) ===== */
.hero-trust { margin: 18px 0 0; font-size: 13px; color: rgba(245,247,250,.8); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.hero-trust span { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: rgba(245,247,250,.6); }
.hero-trust i { width: 4px; height: 4px; border-radius: 50%; background: rgba(245,247,250,.5); }

/* benefits: one line each, Gentler Streak style */
.ideas-benefits { display: flex; align-items: center; min-height: calc(100vh - var(--hdr, 72px)); }
.ideas-benefits .wrap { display: grid; gap: clamp(28px, 6vh, 56px); max-width: 900px; text-align: center; }
.bline { margin: 0; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.35; color: var(--text); font-weight: 500; }
.bline strong { font-weight: 800; }
.bline .chip { vertical-align: middle; margin-right: 10px; font-size: 13px; position: relative; top: -3px; }

/* a day on the water: Oura-style tabs */
.ideas-day .day-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.day-tabs button { font: inherit; font-size: 15px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; }
.day-tabs button.on { background: var(--text); color: var(--bg-elevated, #fff); border-color: var(--text); }
.day-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.day-phone { width: min(260px, calc((100vh - 380px) * 0.485)); }
.day-screens { position: relative; aspect-ratio: 1080 / 2316; border-radius: 32px; overflow: hidden; background: #000; }
.day-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.day-screens img.on { opacity: 1; }
.day-copy > div { display: none; max-width: 460px; }
.day-copy > div.on { display: block; animation: settle .5s ease both; }
.day-copy h3 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 12px; line-height: 1.15; }
.day-copy p { font-size: 18px; color: var(--text-muted); margin: 0; }

/* stats: Rivian-style row of big numbers over a video */
.ideas-stats { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: calc(100vh - var(--hdr, 72px)); padding-bottom: clamp(48px, 10vh, 110px); }
.stats-bg { position: absolute; inset: 0; z-index: 0; } .stats-bg video { width: 100%; height: 100%; object-fit: cover; }
.stats-bg .lv-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,12,22,.1), rgba(5,12,22,.75)); }
.ideas-stats .wrap { position: relative; z-index: 1; width: 100%; color: #f5f7fa; }
.ideas-stats .eyebrow { color: rgba(245,247,250,.75); }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat b { display: block; font-size: clamp(44px, 7vw, 88px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 8px; font-size: 15px; color: rgba(245,247,250,.85); max-width: 18ch; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* photo with the app: Gentler Streak "Move for Life" style */
.ideas-photo { position: relative; overflow: hidden; min-height: calc(100vh - var(--hdr, 72px)); display: flex; flex-direction: column; }
.photo-bg { position: absolute; inset: 0 0 34% 0; z-index: 0; } .photo-bg video { width: 100%; height: 100%; object-fit: cover; }
.photo-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,12,22,.35) 0%, rgba(5,12,22,0) 40%, rgba(243,239,229,0) 80%, #f3efe5 100%); }
.ideas-photo .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; flex: 1; width: 100%; padding-top: clamp(32px, 6vh, 64px); }
.photo-head h2 { color: #fff; font-size: clamp(30px, 4.4vw, 52px); margin: 0 0 10px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.photo-head p { color: rgba(255,255,255,.92); max-width: 52ch; font-size: 18px; margin: 0; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.photo-cards { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: end; margin-top: 24px; }
.pcard { margin: 0; background: rgba(251,249,244,.9); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.pcard.tall { background: none; border: 0; padding: 0; backdrop-filter: none; }
.pcard.tall .device { width: min(250px, calc((100vh - 360px) * 0.485)); }
.pcard.tall .device img { display: block; width: 100%; aspect-ratio: 1080/2316; object-fit: cover; border-radius: 32px; }
.pshot { height: 170px; overflow: hidden; border-radius: 12px; background: #0a1628; }
.pshot img { width: 100%; display: block; object-fit: cover; object-position: top; transform: translateY(-14%); }
.pcard figcaption { font-size: 14px; color: var(--text-muted); } .pcard figcaption strong { color: var(--text); }
@media (max-width: 820px) { .photo-cards { grid-template-columns: 1fr; } .day-body { grid-template-columns: 1fr; justify-items: center; } }

/* landing video crossfade */
.hero-video .lv-video { opacity: 0; transition: opacity 1.8s ease-in-out; }
.hero-video .lv-video.on { opacity: 1; }
/* whole-element cards: no cropping */
.pshot { height: auto !important; background: none !important; }
.pshot img { transform: none !important; height: auto !important; border-radius: 12px; }
.photo-cards { align-items: end; }
.pcard { max-width: 360px; justify-self: center; }
/* hero phone rises from the bottom edge, held up into frame */
.hero.hero-video { padding-bottom: 0; }
.hero-video .with-phone { align-items: end; }
.hero-video .hero-inner { padding-bottom: clamp(40px, 9vh, 96px); }
.hero-phone { width: min(330px, calc((100vh - 120px) * 0.485)); transform: rotate(-5deg) translateY(5%); transform-origin: bottom center; margin-bottom: 0; }
.hero-phone .hp-benefit, .hero-phone .hp-dots { display: none; }
.hero-video .hero-benefit-line { margin-top: 18px; color: #f5f7fa; font-weight: 600; font-size: 1.05rem; min-height: 1.6em; }
/* 26/11: hero small text readable (Rohan: "way too small") */
.hero-video .hero-navnote { font-size: 15px; margin-top: 14px; }
.hero-video .hero-meta { font-size: 17px; gap: 10px 22px; margin-top: 10px; }
.hero-video .hero-meta .dot { width: 8px; height: 8px; }
/* 28/11 brief: ramp counts removed, two stats left */

/* 28/11: the verdict shown the way the app shows it, the mark with its word under it as one unit */
.vunit { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.vunit .verdict-mark { height: 58px; }
.vunit b { font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: .01em; paint-order: stroke fill; -webkit-text-stroke: 4px #0b1a2c; }
.vunit.go b { color: var(--mark-go); }
.vunit.caution b { color: var(--mark-caution); }
.vunit.nogo b { color: var(--mark-nogo); }
.bline { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 28px; text-align: left; }
.bline .vunit { justify-self: center; }
#verdict .verdict-card { grid-template-columns: 130px minmax(0, 1fr); }
#verdict .verdict-card .vunit { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
#verdict .verdict-card .vunit .verdict-mark { height: 52px; }
#verdict .verdict-card .vunit b { font-size: 22px; -webkit-text-stroke: 3px #0b1a2c; }
@media (max-width: 640px) { .bline { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; } }
#verdict .verdict-card .vunit .verdict-mark { width: auto; }
/* ramp finder, the last page */
#find .wrap { max-width: 880px; }
.find-summary { border-collapse: collapse; margin: 8px 0 24px; font-size: 1rem; }
.find-summary th, .find-summary td { text-align: left; padding: 6px 18px 6px 0; border-bottom: 1px solid var(--border); }
.find-summary td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.find-label { display: block; font-weight: 600; margin-bottom: 6px; }
.find-q { width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface, #fff); color: var(--text); }
.find-scroll { max-height: 46vh; overflow: auto; margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface, #fff); }
.find-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.find-table th { position: sticky; top: 0; background: var(--surface, #fff); text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.find-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.stage { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stage.pipe { color: var(--text-muted); }
/* 28/11 sizing pass: bigger marks on the benefit lines, tighter verdict cards so the section fits one window */
.bline .vunit .verdict-mark { height: 76px; }
.bline .vunit b { font-size: 32px; }
#verdict .verdict-card { grid-template-columns: 96px minmax(0, 1fr); padding: 12px 18px; column-gap: 14px; }
#verdict .verdict-card .vunit .verdict-mark { height: 40px; }
#verdict .verdict-card .vunit b { font-size: 17px; -webkit-text-stroke: 3px #0b1a2c; }
#verdict .verdict-card .said { font-size: .88rem; line-height: 1.4; }
#verdict .verdicts { gap: 10px; }
#verdict { padding-top: 40px; padding-bottom: 24px; }
#verdict .dn { width: min(200px, 34vw, calc((100vh - 470px) * 0.485)); }
/* 28/11 fit pass for shorter desktop windows: every screen sized from the window height */
@media (min-width: 821px) {
  main > section { padding-top: clamp(24px, 4vh, 72px); padding-bottom: clamp(16px, 3vh, 48px); }
  .day-phone { width: min(260px, calc((100vh - 430px) * 0.485)); }
  .pcard.tall .device { width: min(250px, calc((100vh - 420px) * 0.485)); }
  .pcard .pshot img { max-height: calc(100vh - 470px); width: auto; max-width: 100%; }
  #see .vslot .vframe { width: min(250px, calc((100vh - 330px) * 0.466)); margin: 0 auto; }
  .xsection .xframe-lg { width: min(320px, calc((100vh - 220px) * 0.466)); }
  #find .find-scroll { max-height: calc(100vh - 560px); min-height: 160px; }
  #ramps .ramp-table td, #ramps .ramp-table th { padding-top: 6px; padding-bottom: 6px; }
}
@media (min-width: 821px) and (max-height: 760px) {
  .hero-video h1 { font-size: clamp(30px, 7vh, 56px); }
  .hero-video .lede { font-size: clamp(14px, 2.3vh, 18px); line-height: 1.45; }
  .hero-video .hero-meta { font-size: 15px; } .hero-video .hero-navnote { margin-top: 6px; }
  .section-head h2 { font-size: clamp(22px, 4.2vh, 34px); }
  .section-head p, .section-head .muted { font-size: 14px; line-height: 1.45; }
  #verdict .verdict-card .said { font-size: .8rem; }
  #verdict .verdict-card h3 { font-size: .98rem; }
  #ramps .ramp-table { font-size: .82rem; } #ramps .ramp-table td, #ramps .ramp-table th { padding-top: 3px; padding-bottom: 3px; }
  .xchapters button { padding-top: 4px; padding-bottom: 4px; }
  #find .find-summary { margin-bottom: 10px; } #find .find-scroll { max-height: calc(100vh - 470px); min-height: 110px; }
}
/* the opening screen is exactly one window under the real header height */
@media (min-width: 821px) {
  .hero.hero-video { min-height: 0; height: calc(100vh - var(--hdr, 56px)); padding-top: 0; }
  .hero-video .hero-inner { gap: clamp(10px, 2.2vh, 24px); padding-bottom: clamp(16px, 5vh, 64px); }
  .hero-phone { width: min(330px, calc((100vh - var(--hdr, 56px) - 40px) * 0.47)); }
}
@media (min-width: 821px) and (max-height: 760px) { .hero-video .hero-benefit-line { display: none; } }
/* 28/11 hero round: logo with its headline, icons, footnote, and things arriving in order */
.hero-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-brand img { width: clamp(150px, 15vw, 230px); height: auto; display: block; }
.hero-tag { color: #f5f7fa; font-weight: 600; font-size: clamp(15px, 1.4vw, 19px); padding-left: 16px; border-left: 2px solid rgba(245,247,250,.45); }
.hero-video .hero-meta span { gap: 8px; }
.hero-video .hero-meta svg { width: 20px; height: 20px; fill: none; stroke: #8fd3e8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero-footnote { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; margin: 0; text-align: center; font-size: 11px; letter-spacing: .02em; color: rgba(245,247,250,.55); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes phonein { from { opacity: 0; transform: rotate(-9deg) translate(40px, 22%); } to { opacity: 1; transform: rotate(-5deg) translateY(5%); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes swapin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-brand img { animation: slidein .9s cubic-bezier(.2,.7,.2,1) .15s both; }
  .hero-tag { animation: rise .8s ease-out .6s both; }
  .hero-video .eyebrow { animation: rise .7s ease-out .85s both; }
  .hero-video h1 { animation: rise .8s ease-out 1s both; }
  .hero-video .lede { animation: rise .8s ease-out 1.2s both; }
  .hero-video .cta { display: inline-block; animation: rise .7s ease-out 1.4s both; }
  .hero-video .hero-benefit-line { animation: rise .7s ease-out 1.6s both; }
  .hero-video .hero-meta span { animation: rise .6s ease-out both; }
  .hero-video .hero-meta span:nth-child(1) { animation-delay: 1.75s; }
  .hero-video .hero-meta span:nth-child(2) { animation-delay: 1.9s; }
  .hero-video .hero-meta span:nth-child(3) { animation-delay: 2.05s; }
  .hero-phone { animation: phonein 1.3s cubic-bezier(.2,.7,.2,1) .5s both; }
  .hero-footnote { animation: rise .6s ease-out 2.3s both; }
  .hero-video .lv-video { animation: drift 18s ease-in-out infinite alternate; }
  .hero-benefit-line.swap { animation: swapin .5s ease-out both; }
}
