/* ==========================================================================
   Snapra, the public site: marketing, sign-up, account. "Press night".
   --------------------------------------------------------------------------
   Built on ds.css. The site is the morning-after front page: newsprint,
   black ink, one red. Masthead, dateline, one giant headline, thick bars
   between stories. Square corners, 2px lines, no shadows, no blur.

   Photographs in this file are drawn, not shot: flat tonal blocks and hard
   silhouettes (see paint() in site.js). Our clients' guests did not agree to
   be on our homepage, so none of their faces are.
   ========================================================================== */

:root {
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --nav-h: 64px;
  --sec: clamp(64px, 9vw, 120px);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body { overflow-x: hidden; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 900px; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  padding: 12px 16px; background: var(--black); color: var(--white);
  font-weight: 800; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 12px; }

.ink { background: var(--black); color: var(--white); }   /* a black section on the paper */
.ink { --bg: var(--black); --panel: var(--g-900); --panel-2: var(--g-800); --fg: var(--white); --fg-2: #cfcfcf; --fg-3: #8a8a8a; --line: #333; --line-2: #555; --rule: var(--white); color-scheme: dark; }

/* --- masthead ----------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 100; background: var(--bg); padding-top: var(--safe-t); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--stroke); background: transparent; }
.nav.scrolled::after { background: var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.nav .wordmark { font-size: 32px; }
.nav .links { display: flex; gap: 22px; margin: 0 auto; }
.nav .links a { font: 800 14px/1 var(--font); font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; }
.nav .links a:hover { color: var(--red); }
.nav .end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav .links + .end { margin-left: 0; }
@media (max-width: 1020px) { .nav .links { display: none; } }
@media (max-width: 420px) {
  .nav .wrap { gap: 10px; }
  .nav .wordmark { font-size: 28px; }
  .nav .end .btn.quiet { padding: 0 8px; }
}

.dateline {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-top: var(--stroke) solid var(--rule); border-bottom: var(--stroke) solid var(--rule);
  font: 700 13px/1.2 var(--font); font-stretch: 85%; text-transform: uppercase;
}
.dateline span:nth-child(2) { text-align: center; }
@media (max-width: 700px) { .dateline span:nth-child(3) { display: none; } }
@media (max-width: 460px) { .dateline span:nth-child(2) { display: none; } }

/* --- sections ------------------------------------------------------------------ */
.sec { padding-block: var(--sec); }
.sec-head { display: grid; gap: 16px; max-width: 980px; margin-bottom: clamp(36px, 5vw, 60px); justify-items: start; }
.sec-head .lede { max-width: 56ch; }
.sec-head .h1 .r, .hed .r { color: var(--red); }
.bar.gap { margin-block: 0; }

/* reveal: a short cut in, not a float. JS adds .in; no JS, no hiding. */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ============================================================================
   FRONT PAGE
   ========================================================================== */
.front { padding: 4px 0 clamp(40px, 5vw, 64px); }
.front .grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.front-copy { display: grid; gap: 22px; justify-items: start; }
.front h1 { font-size: clamp(72px, 8.6vw, 140px); line-height: 0.8; }
.front h1 .r { color: var(--red); }
.front .lede { max-width: 32ch; color: var(--fg-2); }
.front .ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .front .grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .front .ctas .btn { width: 100%; } }

/* The stage: a hard-framed phone and a pinned-up photo with its caption strip. */
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0; min-height: 600px; }
.shot { background: var(--black); border: var(--stroke) solid var(--black); }
.shot .ph { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.cap {
  display: flex; gap: 10px; align-items: baseline; padding: 10px 12px;
  background: var(--black); color: var(--white); font: 700 13px/1.3 var(--font);
}
.cap b { background: var(--red); color: var(--white); padding: 3px 6px 2px; font: 900 12px/1 var(--font); font-stretch: 75%; text-transform: uppercase; flex: none; }
.cap .tick { font-variant-numeric: tabular-nums; }
.stage .shot { grid-column: 1 / -1; grid-row: 1; align-self: start; margin-right: 150px; }
.stage .shot .cap { padding-right: 162px; }
@media (max-width: 620px) { .stage .shot .cap { padding-right: 12px; } }
.stage .phone { grid-column: 2; grid-row: 1; margin-top: 150px; position: relative; z-index: 2; }
@media (max-width: 1100px) { .stage .shot { margin-right: 110px; } }
@media (max-width: 900px) { .stage { min-height: 0; } }
@media (max-width: 620px) {
  .stage { grid-template-columns: 1fr; justify-items: center; }
  .stage .shot { grid-row: 2; margin: 0; width: 100%; }
  .stage .phone { grid-column: 1; grid-row: 1; margin: 0 0 18px; }
}

.phone {
  width: min(300px, 82vw); aspect-ratio: 300 / 600;
  background: var(--black); color: var(--white);
  border: var(--stroke) solid var(--black); outline: 6px solid var(--black); outline-offset: 0;
  position: relative; overflow: hidden;
}
.phone .screen { position: absolute; inset: 0; border: var(--stroke) solid var(--white); margin: 8px; overflow: hidden; }
.phone .top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; z-index: 3; }
.phone .top .wordmark { font-size: 20px; color: var(--white); }
.rec { display: inline-flex; gap: 7px; align-items: center; font: 900 12px/1 var(--font); font-stretch: 75%; text-transform: uppercase; }
.scr { position: absolute; inset: 0; padding: 50px 14px 14px; display: flex; flex-direction: column; }
.phone:not(.s-scan) .scr-scan, .phone:not(.s-found) .scr-found { visibility: hidden; }

.scr-scan { align-items: center; text-align: center; gap: 12px; }
.scr-scan .hed { font-size: 34px; line-height: 0.9; margin-top: 8px; }
.viewfinder { position: relative; width: 78%; aspect-ratio: 3 / 4; margin-top: 6px; background: var(--g-800); overflow: hidden; }
.viewfinder .who { position: absolute; inset: 0; }
.viewfinder .oval { position: absolute; left: 18%; right: 18%; top: 12%; bottom: 22%; border: 3px solid var(--white); border-radius: 50%; }   /* functional: the face guide */
.viewfinder .corner { position: absolute; width: 18px; height: 18px; border: 3px solid var(--red); }
.viewfinder .c1 { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.viewfinder .c2 { right: 8px; top: 8px; border-left: 0; border-bottom: 0; }
.viewfinder .c3 { left: 8px; bottom: 8px; border-right: 0; border-top: 0; }
.viewfinder .c4 { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.scr-scan .hint { font: 700 13px/1.3 var(--font); color: var(--fg-3); }
.shutter { margin-top: auto; width: 60px; height: 60px; border: 3px solid var(--white); display: grid; place-items: center; }
.shutter::after { content: ""; width: 42px; height: 42px; background: var(--red); }

.scr-found .kicker { color: var(--white); margin-top: 8px; }
.scr-found .big { font-size: 140px; line-height: 0.78; color: var(--red); margin: 10px 0 2px; }
.scr-found .hed.sub { font-size: 44px; line-height: 0.88; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: auto 0 10px; }
.strip i { display: block; aspect-ratio: 1; border: var(--stroke) solid var(--white); visibility: hidden; position: relative; }
.strip i.on { visibility: visible; animation: ds-cut-in var(--dur-2) var(--ease) both; }
.strip i.new::after { content: "NEW"; position: absolute; left: -2px; top: -2px; background: var(--red); color: var(--white); font: 900 9px/1 var(--font); padding: 2px 3px; }
.scr-found .btn { --h: 48px; font-size: 18px; font-stretch: 70%; }

/* ============================================================================
   "PHOTOS": flat tonal blocks, painted by site.js
   ========================================================================== */
.art { background-color: var(--g-800); }

/* ============================================================================
   STATS: front-page numbers
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 8px solid var(--rule); }
.stat { padding: 18px 18px 6px 16px; border-left: var(--stroke) solid var(--rule); display: grid; gap: 6px; align-content: start; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .v { font-size: clamp(56px, 6.8vw, 104px); line-height: 0.8; white-space: nowrap; }
.stat .v small { font-size: 0.5em; margin-left: 2px; }
.stat .l { font: 800 13px/1.2 var(--font); font-stretch: 85%; text-transform: uppercase; max-width: 18ch; }
.stat.hi .v { color: var(--red); }
.stats.loading .v { color: transparent; width: 70%; }
.stats-src { margin-top: 14px; font: 700 13px/1.3 var(--font); color: var(--fg-3); display: flex; align-items: center; gap: 8px; }
@media (max-width: 1020px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 4) { border-top: var(--stroke) solid var(--rule); padding-top: 18px; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(4) { border-left: var(--stroke) solid var(--rule); padding-left: 16px; }
  .stat:nth-child(n + 3) { border-top: var(--stroke) solid var(--rule); padding-top: 18px; }
  .stat:last-child { grid-column: 1 / -1; }
}

/* --- the step-and-repeat band (used once) ------------------------------------- */
.band { border-top: 8px solid var(--black); border-bottom: 8px solid var(--black); }
.band .inner { min-height: 170px; display: grid; place-items: center; padding: 28px var(--gutter); border-top: 8px solid var(--white); border-bottom: 8px solid var(--white); }
.band .hed { font-size: clamp(40px, 6.4vw, 92px); background: var(--black); color: var(--white); padding: 6px 18px 2px; text-align: center; line-height: 0.9; }

/* ============================================================================
   HOW IT WORKS
   ========================================================================== */
.beats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 8px solid var(--rule); }
.beat { display: grid; gap: 18px; align-content: start; padding: 22px 22px 8px; border-left: var(--stroke) solid var(--rule); }
.beat:first-child { border-left: 0; padding-left: 0; }
.beat:last-child { padding-right: 0; }
.beat .no { font-size: 96px; line-height: 0.76; color: var(--red); }
.beat h3 { font-size: clamp(30px, 3vw, 42px); }
.beat p { color: var(--fg-2); max-width: 38ch; }
.beat .ill { position: relative; aspect-ratio: 5 / 4; background: var(--black); color: var(--white); border: var(--stroke) solid var(--black); overflow: hidden; }
@media (max-width: 900px) {
  .beats { grid-template-columns: 1fr; }
  .beat { border-left: 0; padding: 22px 0; border-top: var(--stroke) solid var(--rule); }
  .beat:first-child { border-top: 0; }
}

/* beat 1: Studio uploading */
.studio-win { position: absolute; inset: 12px; border: var(--stroke) solid var(--white); display: flex; flex-direction: column; }
.studio-win .tb { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-bottom: var(--stroke) solid var(--white); font: 900 12px/1 var(--font); font-stretch: 75%; text-transform: uppercase; }
.studio-win .tb .rec { margin-left: auto; color: var(--red); }
.studio-win .rows { flex: 1; position: relative; overflow: hidden; }
.frow { position: absolute; left: 0; right: 0; height: 25%; display: grid; grid-template-columns: 34px 1fr 18px; align-items: center; gap: 10px; padding: 0 10px; border-bottom: 1px solid #333; animation: frow 8s steps(40) infinite; animation-delay: calc(var(--k) * -2s); }
.frow .th { width: 34px; height: 24px; }
.frow .nm { display: grid; gap: 5px; min-width: 0; }
.frow .nm b { font: 700 11px/1 var(--font); font-variant-numeric: tabular-nums; }
.frow .pb { height: 4px; background: #333; overflow: hidden; }
.frow .pb::after { content: ""; display: block; height: 100%; background: var(--red); transform-origin: left; animation: pb 8s steps(8) infinite; animation-delay: inherit; }
.frow .ok { width: 16px; height: 16px; color: var(--ok); animation: okf 8s steps(1) infinite; animation-delay: inherit; }
@keyframes frow { 0% { transform: translateY(400%); } 100% { transform: translateY(-100%); } }
@keyframes pb { 0%, 18% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
@keyframes okf { 0%, 40% { opacity: 0; } 42%, 100% { opacity: 1; } }
.studio-win .ft { display: flex; justify-content: space-between; padding: 8px 10px; border-top: var(--stroke) solid var(--white); font: 800 11px/1 var(--font); font-stretch: 85%; text-transform: uppercase; }

/* beat 2: the match */
.match { position: absolute; inset: 0; display: grid; place-items: center; }
.match .vf { position: relative; width: 46%; aspect-ratio: 3 / 4; }
.match .vf .oval { position: absolute; inset: 10% 14% 20%; border: 3px solid var(--white); border-radius: 50%; }   /* functional: the face guide */
.match .res { position: absolute; left: 50%; bottom: 10%; translate: -50% 0; background: var(--red); color: var(--white); padding: 7px 12px 5px; font: 900 22px/1 var(--font); font-stretch: 62%; text-transform: uppercase; white-space: nowrap; animation: res 5s steps(1) infinite; }
@keyframes res { 0%, 48% { opacity: 0; } 50%, 94% { opacity: 1; } 96%, 100% { opacity: 0; } }
.match .strobe { position: absolute; inset: 0; background: var(--white); opacity: 0; animation: strobe 5s linear infinite; }
@keyframes strobe { 0%, 46% { opacity: 0; } 47%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }

/* beat 3: the gallery filling */
.fill { position: absolute; inset: 12px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 4px; }
.fill i { display: block; border: var(--stroke) solid var(--white); opacity: 0; animation: tilein 9s steps(1) infinite; animation-delay: calc(var(--k) * 0.55s); position: relative; }
.fill i::after { content: ""; position: absolute; inset: 0; background: var(--white); opacity: 0; animation: tileflash 9s linear infinite; animation-delay: inherit; }
@keyframes tilein { 0% { opacity: 0; } 1%, 90% { opacity: 1; } 91%, 100% { opacity: 0; } }
@keyframes tileflash { 0%, 1.5% { opacity: 1; } 3%, 100% { opacity: 0; } }

/* ============================================================================
   FILM
   ========================================================================== */
.film-frame { position: relative; aspect-ratio: 16 / 9; background: var(--black); border: var(--stroke) solid var(--black); }
.film-frame video { width: 100%; height: 100%; object-fit: cover; background: var(--black); }
.film-cover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--white); background-color: var(--black); background-size: 260px 96px; }
.film-cover .inner { display: grid; gap: 18px; justify-items: center; padding: 20px; }
.film-cover .play { width: 96px; height: 96px; background: var(--red); display: grid; place-items: center; transition: transform var(--dur-1); }
.film-cover .play svg { width: 34px; height: 34px; color: var(--white); margin-left: 4px; }
.film-cover:hover .play { transform: scale(1.06); }
.film-cover .hed { font-size: clamp(34px, 5vw, 76px); background: var(--black); padding: 4px 14px 0; }
.film-cover .kicker { color: var(--white); background: var(--black); padding: 4px 8px; }
@media (max-width: 560px) { .film-cover .play { width: 64px; height: 64px; } }

/* ============================================================================
   SPONSORS (black section)
   ========================================================================== */
.sponsor .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.sponsor .copy { display: grid; gap: 22px; }
.sponsor .h1 .r { color: var(--red); }
.sponsor .mini { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 8px solid var(--white); }
.sponsor .mini div { padding: 14px 14px 0 0; display: grid; gap: 6px; border-left: var(--stroke) solid var(--white); padding-left: 14px; }
.sponsor .mini div:first-child { border-left: 0; padding-left: 0; }
.sponsor .mini b { font-size: clamp(48px, 5vw, 76px); line-height: 0.8; }
.sponsor .mini span { font: 800 12px/1.25 var(--font); font-stretch: 85%; text-transform: uppercase; }
.sponsor .fine { font-size: 14px; color: var(--fg-3); max-width: 60ch; }
.share-card { border: var(--stroke) solid var(--white); background: var(--black); max-width: 460px; justify-self: end; width: 100%; }
.share-card .img { aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.share-card .brand { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: var(--white); color: var(--black); }
.share-card .brand b { font: 900 22px/1 var(--font); font-stretch: 62%; text-transform: uppercase; }
.share-card .brand span { font: 800 11px/1.2 var(--font); font-stretch: 85%; text-transform: uppercase; text-align: right; }
.share-card .brand span strong { color: var(--red); display: block; }
@media (max-width: 900px) { .sponsor .grid { grid-template-columns: 1fr; } .share-card { justify-self: start; } }
@media (max-width: 420px) { .sponsor .mini { grid-template-columns: 1fr 1fr; } .sponsor .mini div:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: var(--stroke) solid var(--white); margin-top: 14px; } }

/* ============================================================================
   PACKAGES: a price list in the paper
   ========================================================================== */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--stroke) solid var(--rule); }
.tier { display: flex; flex-direction: column; border-left: var(--stroke) solid var(--rule); background: var(--panel); }
.tier:first-child { border-left: 0; }
.tier .top { min-height: 46px; background: var(--black); color: var(--white); padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tier .top span { font: 800 13px/1 var(--font); font-stretch: 85%; text-transform: uppercase; }
.tier .body { padding: 22px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.tier h3 { font-size: clamp(36px, 3.4vw, 50px); }
.tier .price { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 8px solid var(--rule); }
.tier .price b { font-size: clamp(64px, 6vw, 92px); line-height: 0.8; }
.tier .price span { font: 800 13px/1.15 var(--font); font-stretch: 85%; text-transform: uppercase; }
.tier .facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; border-top: var(--stroke) solid var(--rule); border-bottom: var(--stroke) solid var(--rule); }
.tier .facts span { padding: 9px 0; font: 800 13px/1.2 var(--font); font-stretch: 85%; text-transform: uppercase; }
.tier .facts span + span { border-left: var(--stroke) solid var(--rule); padding-left: 12px; }
.tier ul { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; }
.tier li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; font-size: 15px; line-height: 1.4; color: var(--fg-2); }
.tier li::before { content: ""; width: 8px; height: 8px; background: var(--black); margin-top: 6px; }
.tier .btn { margin-top: auto; }
.tier.flag { background: var(--black); color: var(--white); --fg: var(--white); --fg-2: #d6d6d6; --bg: var(--black); --rule: var(--white); }
.tier.flag .top { background: var(--red); }
.tier.flag li::before { background: var(--red); }
.tier.flag .price b { color: var(--red); }
@media (max-width: 1020px) {
  .tiers { grid-template-columns: 1fr; max-width: 560px; }
  .tier { border-left: 0; border-top: var(--stroke) solid var(--rule); }
  .tier:first-child { border-top: 0; }
}

.addons { margin-top: 36px; border-top: 8px solid var(--rule); }
.addons h3 { margin: 14px 0 6px; }
.addons dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
.addons dl div { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 12px 0; border-bottom: var(--stroke) solid var(--rule); }
.addons dt { font: 800 16px/1.2 var(--font); font-stretch: 85%; text-transform: uppercase; }
.addons dd { margin: 0; color: var(--fg-3); font-size: 14px; }
.addons dd.p { font-size: 26px; line-height: 1; color: var(--fg); }
.tier-note { margin-top: 16px; font-size: 14px; color: var(--fg-3); max-width: 80ch; }
@media (max-width: 760px) { .addons dl { grid-template-columns: 1fr; } }

.night { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); }
.night .copy { display: grid; gap: 16px; align-content: start; }
.night ol { list-style: none; margin: 0; padding: 0; border-top: 8px solid var(--rule); }
.night li { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 16px 0; border-bottom: var(--stroke) solid var(--rule); }
.night .when { font-size: 36px; line-height: 0.9; }
.night .who { font: 800 12px/1 var(--font); font-stretch: 85%; text-transform: uppercase; color: var(--red); margin-top: 6px; }
.night li p { color: var(--fg-2); }
@media (max-width: 900px) { .night { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .night li { grid-template-columns: 1fr; gap: 6px; } }

/* ============================================================================
   PLAN BUILDER (marketing page and account)
   ========================================================================== */
.builder { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 24px; align-items: start; }
.brows { border: var(--stroke) solid var(--rule); background: var(--panel); }
.brow { display: grid; grid-template-columns: 1fr auto; gap: 8px 22px; align-items: center; padding: 18px 20px; border-top: var(--stroke) solid var(--line); }
.brow:first-child { border-top: 0; }
.brow { border-left: 6px solid transparent; }
.brow.on { border-left-color: var(--red); }   /* a hard marker bar */
.brow .n { display: grid; gap: 4px; }
.brow .n b { font: 900 22px/1 var(--font); font-stretch: 70%; text-transform: uppercase; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brow .n .pr { font: 700 13px/1 var(--font); font-stretch: 100%; text-transform: none; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.brow .n p { color: var(--fg-2); font-size: 14.5px; max-width: 54ch; }
.brow .note { grid-column: 1 / -1; font: 700 13px/1.3 var(--font); color: var(--red); }
.brow .note:empty { display: none; }
.brow .ctl { display: flex; align-items: center; gap: 10px; }
.brow.skel { height: 86px; }

.stepper { display: inline-flex; align-items: stretch; border: var(--stroke) solid var(--fg); height: 42px; }
.stepper button { width: 40px; display: grid; place-items: center; color: var(--fg); }
.stepper button:hover:not([disabled]) { background: var(--fg); color: var(--bg); }
.stepper button[disabled] { opacity: 0.3; cursor: default; }
.stepper button svg { width: 16px; height: 16px; }
.stepper input {
  width: 42px; border: 0; border-left: var(--stroke) solid var(--fg); border-right: var(--stroke) solid var(--fg);
  background: transparent; text-align: center; font: 900 20px/1 var(--font); font-stretch: 70%;
  color: var(--fg); -moz-appearance: textfield; appearance: textfield; border-radius: 0; font-variant-numeric: tabular-nums;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.summary { position: sticky; top: calc(var(--nav-h) + 16px); background: var(--black); color: var(--white); border: var(--stroke) solid var(--black); padding: 22px; display: grid; gap: 18px; }
.summary .kicker { color: var(--white); }
.summary .total { display: grid; gap: 8px; }
.summary .total .v { font-size: clamp(76px, 7vw, 112px); line-height: 0.8; display: flex; align-items: baseline; gap: 8px; }
.summary .total .v small { font: 800 15px/1 var(--font); font-stretch: 85%; text-transform: uppercase; }
.summary .lines { list-style: none; margin: 0; padding: 12px 0 0; border-top: var(--stroke) solid var(--white); display: grid; gap: 8px; }
.summary .lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary .lines li span:last-child { font-weight: 800; font-variant-numeric: tabular-nums; }
.summary .trial { padding: 12px 14px; background: var(--white); color: var(--black); font-size: 14px; line-height: 1.4; }
.summary .trial b { display: block; font: 900 20px/1 var(--font); font-stretch: 62%; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.summary .btn:not(.red):not(.quiet) { border-color: var(--white); color: var(--white); }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 520px) {
  .brow { padding: 16px; gap: 12px 14px; }
  .brow.q { grid-template-columns: 1fr; }
}

.perks { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 8px solid var(--rule); }
.perk { display: grid; gap: 8px; align-content: start; padding: 16px 18px 0; border-left: var(--stroke) solid var(--rule); }
.perk:first-child { border-left: 0; padding-left: 0; }
.perk b { font: 900 24px/1 var(--font); font-stretch: 70%; text-transform: uppercase; }
.perk p { font-size: 14.5px; color: var(--fg-2); }
@media (max-width: 900px) {
  .perks { grid-template-columns: 1fr 1fr; }
  .perk:nth-child(3) { border-left: 0; padding-left: 0; }
  .perk:nth-child(n + 3) { border-top: var(--stroke) solid var(--rule); margin-top: 16px; }
}

/* ============================================================================
   PRIVACY
   ========================================================================== */
.privacy .grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.privacy .sec-head { position: sticky; top: calc(var(--nav-h) + 24px); margin-bottom: 0; }
.promises { list-style: none; margin: 0; padding: 0; border-top: 8px solid var(--rule); counter-reset: p; }
.promises li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-bottom: var(--stroke) solid var(--rule); counter-increment: p; }
.promises li::before { content: counter(p); font: 900 56px/0.8 var(--font); font-stretch: 62%; color: var(--red); }
.promises h3 { font-size: 26px; }
.promises p { color: var(--fg-2); margin-top: 6px; max-width: 56ch; }
@media (max-width: 900px) { .privacy .grid { grid-template-columns: 1fr; } .privacy .sec-head { position: static; } }

/* ============================================================================
   FAQ
   ========================================================================== */
.faq { border-top: 8px solid var(--rule); }
.faq details { border-bottom: var(--stroke) solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 30px; gap: 16px; align-items: center;
  padding: 18px 0; font: 900 clamp(24px, 2.6vw, 34px)/1 var(--font); font-stretch: 70%; text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq summary .pm { position: relative; width: 30px; height: 30px; border: var(--stroke) solid currentColor; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 3px; background: currentColor; translate: -50% -50%; }
.faq summary .pm::after { rotate: 90deg; }
.faq details[open] summary .pm { background: var(--red); border-color: var(--red); color: var(--white); }
.faq details[open] summary .pm::after { display: none; }
.faq .ans { padding: 0 50px 22px 0; color: var(--fg-2); max-width: 70ch; font-size: 16px; }
.faq details[open] .ans { animation: ds-cut-in var(--dur-2) var(--ease) both; }

/* ============================================================================
   ENQUIRY: a typed form
   ========================================================================== */
.book .grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.book .copy { display: grid; gap: 20px; align-content: start; }
.book .copy .sec-head { margin-bottom: 0; }
.steps-next { list-style: none; margin: 0; padding: 0; border-top: 8px solid var(--rule); counter-reset: s; }
.steps-next li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-bottom: var(--stroke) solid var(--rule); counter-increment: s; color: var(--fg-2); }
.steps-next li::before { content: counter(s); font: 900 40px/0.8 var(--font); font-stretch: 62%; color: var(--red); }
.steps-next b { color: var(--fg); }
.contact-line { font-size: 15px; color: var(--fg-2); }

.form-card { border: var(--stroke) solid var(--rule); background: var(--panel); }
.form-card .ftop { background: var(--black); color: var(--white); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 800 13px/1 var(--font); font-stretch: 85%; text-transform: uppercase; }
.form-card form, .form-card .thanks { padding: clamp(20px, 3vw, 32px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.form-grid .full { grid-column: 1 / -1; }
.field > span .opt { color: var(--fg-3); font-weight: 600; text-transform: none; letter-spacing: 0; }
.field.bad .input, .field.bad .select { border-color: var(--red); background: #fff1ef; }
.field .err { font: 700 13px/1.3 var(--font); color: var(--red); text-transform: none; letter-spacing: 0; }
.field .err:empty { display: none; }
input[type="date"].input { color-scheme: light; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-foot .fine { font-size: 13px; color: var(--fg-3); max-width: 34ch; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; font: 600 14px/1.4 var(--font); border: var(--stroke) solid currentColor; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert.bad { color: var(--white); background: var(--red); border-color: var(--red); }
.alert.info { color: var(--fg); background: var(--panel); border-color: var(--fg); }
.alert.info svg { color: var(--red); }
.alert.info b { font-weight: 800; }
.form-card .alert { margin-bottom: 18px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
@media (max-width: 900px) { .book .grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

.thanks { display: grid; gap: 16px; justify-items: start; }
.thanks .stamp { background: var(--red); color: var(--white); padding: 10px 16px 4px; font-size: clamp(64px, 8vw, 120px); line-height: 0.85; }
.thanks .hed.h2 { font-size: clamp(34px, 3.6vw, 52px); }
.thanks p { color: var(--fg-2); max-width: 44ch; }

/* ============================================================================
   CLOSER + FOOTER
   ========================================================================== */
.closer { padding-block: clamp(64px, 9vw, 120px); }
.closer .hed { font-size: clamp(60px, 10vw, 160px); line-height: 0.82; max-width: 12ch; }
.closer .hed .r { color: var(--red); }
.closer .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.closer .btn:not(.red) { border-color: var(--white); color: var(--white); }
.closer .btn:not(.red):hover { background: var(--white); color: var(--black); }

.foot { padding: 40px 0 calc(32px + var(--safe-b)); }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-top: 24px; border-top: 8px solid var(--rule); }
.foot .brand { display: grid; gap: 12px; align-content: start; }
.foot .brand p { color: var(--fg-2); font-size: 14px; max-width: 34ch; }
.foot h4 { margin: 0 0 12px; font: 900 14px/1 var(--font); font-stretch: 80%; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; font-size: 14px; }
.foot a:hover { text-decoration: underline; }
.foot .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 12px; border-top: var(--stroke) solid var(--rule); font: 700 12px/1.2 var(--font); text-transform: uppercase; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .brand { grid-column: 1 / -1; } }

/* ============================================================================
   SIGN-UP
   ========================================================================== */
.auth { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.auth-art { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 28px clamp(24px, 4vw, 52px) 40px; background-color: var(--black); color: var(--white); background-size: 260px 96px; }
.auth-art .wordmark { color: var(--white); font-size: 34px; }
.auth-art .pass { max-width: 300px; width: 100%; align-self: flex-start; }
.auth-art .pass .hed { font-size: 52px; line-height: 0.86; }
.auth-art .pass .small { margin-top: 10px; }
.auth-art .pass .facts { margin-top: 14px; display: grid; border-top: var(--stroke) solid var(--black); }
.auth-art .pass .facts span { padding: 8px 0; border-bottom: var(--stroke) solid var(--black); font: 800 13px/1 var(--font); font-stretch: 85%; text-transform: uppercase; }
.auth-art .quote { background: var(--black); padding: 4px 0; font: 900 clamp(36px, 3.4vw, 54px)/0.88 var(--font); font-stretch: 62%; text-transform: uppercase; max-width: 12ch; }
.auth-art .quote .r { color: var(--red); }
.auth-main { display: flex; flex-direction: column; padding: 18px clamp(18px, 5vw, 64px) calc(28px + var(--safe-b)); }
.auth-main .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: var(--stroke) solid var(--rule); }
.auth-main .top .wordmark { font-size: 30px; }
@media (min-width: 901px) { .auth-main .top .wordmark { visibility: hidden; } }
.auth-form { width: 100%; max-width: 460px; margin: auto; padding-block: 40px; display: grid; gap: 24px; }
.auth-form .head { display: grid; gap: 14px; justify-items: start; }
.auth-form h1 { font-size: clamp(64px, 7vw, 104px); line-height: 0.8; }
.auth-form h1 .r { color: var(--red); }
.auth-form form { display: grid; gap: 18px; }
.pw { position: relative; }
.pw .input { padding-right: 84px; }
.pw .peek { position: absolute; right: 2px; top: 2px; bottom: 2px; padding: 0 14px; border-left: var(--stroke) solid var(--line-2); font: 800 13px/1 var(--font); font-stretch: 85%; text-transform: uppercase; }
.pw .peek:hover { background: var(--fg); color: var(--bg); }
.meter { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.meter i { height: 6px; background: var(--g-200); }
.meter i.on { background: var(--black); }
.meter.ok i.on { background: var(--ok); }
.hint.good { color: #11813b; font-weight: 700; }
.hint.bad { color: var(--red); font-weight: 700; }
.switch-line { font-size: 15px; color: var(--fg-2); text-align: center; }
.switch-line a { color: var(--fg); font-weight: 800; }
.legal { font-size: 13px; color: var(--fg-3); text-align: center; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ============================================================================
   ACCOUNT
   ========================================================================== */
.acct { padding: 28px 0 90px; }
.acct-head { display: grid; gap: 12px; margin-bottom: 28px; justify-items: start; }
.acct-head h1 { font-size: clamp(60px, 8vw, 128px); line-height: 0.8; }
.acct-head h1 .r { color: var(--red); }
.acct-head p { color: var(--fg-2); }
.acct-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 8px solid var(--rule); border-bottom: var(--stroke) solid var(--rule); }
.tile { padding: 18px 20px 20px; display: grid; gap: 10px; align-content: start; border-left: var(--stroke) solid var(--rule); }
.tile:first-child { border-left: 0; padding-left: 0; }
.tile .k { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile .v { font-size: clamp(52px, 5vw, 76px); line-height: 0.82; }
.tile .v small { font: 800 14px/1 var(--font); font-stretch: 85%; text-transform: uppercase; margin-left: 4px; }
.tile .s { font-size: 15px; color: var(--fg-2); }
.tile .btn { justify-self: start; margin-top: 4px; }
.trialbar { height: 10px; border: var(--stroke) solid var(--rule); }
.trialbar i { display: block; height: 100%; background: var(--red); transition: width var(--dur-3) var(--ease); }
@media (max-width: 900px) {
  .acct-grid { grid-template-columns: 1fr; }
  .tile { border-left: 0; padding-left: 0; border-top: var(--stroke) solid var(--rule); }
  .tile:first-child { border-top: 0; }
}

.panel-sec { margin-top: 44px; }
.panel-sec > header { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 8px solid var(--rule); margin-bottom: 20px; }
.panel-sec > header h2 { font-size: clamp(44px, 5vw, 72px); }
.panel-sec > header p { color: var(--fg-2); margin-top: 8px; max-width: 62ch; }
.quote { display: grid; gap: 10px; padding-top: 12px; border-top: var(--stroke) solid var(--white); }
.quote .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.quote .row b { font: 900 26px/1 var(--font); font-stretch: 70%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote .row.due b { color: var(--red); font-size: 40px; }
.quote .row small { display: block; font-size: 12.5px; color: var(--fg-3); margin-top: 3px; }
.quote.pending { opacity: 0.5; }
.sched { display: grid; gap: 8px; }
.sched:empty { display: none; }
.sched .it { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--warn); color: var(--black); font: 700 13px/1.3 var(--font); }
.sched .it svg { width: 16px; height: 16px; flex: none; }
.sched .it span { flex: 1; }
.summary .sched .it .btn { --h: 30px; padding: 0 10px; font-size: 12px; border-color: var(--black); color: var(--black); }
.summary .sched .it .btn:hover { background: var(--black); color: var(--warn); }
.save-row { display: grid; gap: 8px; }
.save-row .fine { font-size: 13px; color: var(--fg-3); text-align: center; }
.summary .btn.quiet { color: var(--white); }
.summary .btn.quiet:hover { background: var(--white); color: var(--black); }

.devices { list-style: none; margin: 0; padding: 0; }
.devices li { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: var(--stroke) solid var(--line); }
.devices .ic { width: 42px; height: 42px; display: grid; place-items: center; border: var(--stroke) solid var(--rule); }
.devices .ic svg { width: 18px; height: 18px; }
.devices .nm { display: grid; gap: 3px; min-width: 0; }
.devices .nm b { font: 900 20px/1 var(--font); font-stretch: 70%; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.devices .nm span { font-size: 13.5px; color: var(--fg-3); }
.devices li.revoked { opacity: 0.5; }
.empty { display: grid; justify-items: start; gap: 10px; padding: 18px 0; color: var(--fg-2); font-size: 15px; }
.empty svg { width: 24px; height: 24px; color: var(--red); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two-col .panel-sec { margin-top: 44px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 520px) { .devices li { grid-template-columns: 42px 1fr; } .devices li .btn, .devices li .badge { grid-column: 2; justify-self: start; } }

.gate { min-height: 64vh; display: grid; align-content: center; }
.gate .inner { display: grid; gap: 18px; justify-items: start; max-width: 760px; }
.gate h1 { font-size: clamp(64px, 9vw, 140px); line-height: 0.8; }
.gate h1 .r { color: var(--red); }
.gate p { color: var(--fg-2); font-size: 18px; max-width: 46ch; }
.gate .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

dialog.modal { background: var(--paper); color: var(--black); border-color: var(--black); }
dialog.modal .mbody { padding: 24px; display: grid; gap: 14px; }
dialog.modal h3 { font-size: 44px; }
dialog.modal p { color: #333; }
dialog.modal .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
dialog.modal .btn { --fg: var(--black); --bg: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .frow, .fill i, .fill i::after, .match .res, .match .strobe { animation: none !important; }
  .fill i { opacity: 1; }
  .frow { position: relative; height: 25%; transform: none; }
  .match .res { opacity: 1; }
}

.band.repeat, .auth-art.repeat { background-color: var(--black); --repeat-size: 260px 96px; }

/* --- account: white label -------------------------------------------------------- */
.wl-form { display: grid; gap: 16px; max-width: 640px; }
.wl-logo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wl-logo-box {
  min-width: 180px; height: 64px; display: grid; place-items: center; padding: 8px 14px;
  border: var(--stroke) solid var(--line-2); background: var(--black); color: var(--g-300);
  font: 700 12px/1 var(--font); text-transform: uppercase;
}
.wl-logo-box img { max-height: 46px; width: auto; }
.wl-form input:disabled, .wl-form button:disabled { opacity: 0.45; }
