/* smartparktech.com — the landing page, "dusk to night" (Matt, 4 Oct).

   The page is one evening: it opens on the sunrise illustration, the hero film
   carries it into night as you scroll, and everything after the film lives in
   the night parkade. So it is dark by design and does not follow the phone's
   theme — the same reasoning as patrol being pinned dark. The legal pages keep
   styles.css, which does follow the theme.

   Colour comes from the app's palette at its dark stops (globals.css) plus the
   illustration's sunset: --sun is the brand orange, --peach and --lav are taken
   from the art. Status colours still mean status: green is a valid pass, orange
   is expiring, red is no pass. They are never decoration here either.

   Declared exceptions to the app's rules, because this is a landing page and
   not an app screen: display type up to 120px with negative tracking; a 1px
   hairline grid where the app would use cards (a grid of hairlines is how the
   page reads as one surface at night, where card shadows do nothing); the
   phone frame's 46px corner is a drawing of a phone. */

:root {
  --night: #05060B;
  --night-2: #090A12;
  --dusk: #141127;
  --panel: #0E1019;
  --panel-2: #151826;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --ink: #F1F5FC;
  --ink-2: rgba(241, 245, 252, .74);
  --ink-3: rgba(241, 245, 252, .56);

  --sun: #FF7A00;
  --peach: #FFB98A;
  --lav: #B9A3FF;
  --brand: #1795FA;
  --brand-ink: #06070B;
  --brand-2: #6CC0FF;
  --ok: #41B787;
  --warn: #FF7A00;
  --stop: #FF645A;
  --teal: #40B3A7;
  --note: #A486FF;

  --g-sunset: linear-gradient(100deg, #FFE2C4 0%, #FFB98A 30%, #FF8A4C 58%, #E46CA0 82%, #B9A3FF 100%);
  --g-rail: linear-gradient(90deg, #FF7A00, #E46CA0, #B9A3FF, #1795FA);

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-2: cubic-bezier(.65, 0, .35, 1);
  --gut: clamp(16px, 4.5vw, 72px);
  --maxw: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.locked { overflow: hidden; }
img, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--sun); color: #000; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; z-index: 1000; }
.skip:focus { left: 16px; top: 16px; background: #fff; color: #000; padding: 12px 16px; border-radius: 12px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
section { position: relative; }

/* ── Type ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; line-height: 16px; letter-spacing: .26em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-2); margin: 0;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 14px var(--sun);
}
.eyebrow.night::before { background: var(--brand); box-shadow: 0 0 14px var(--brand); }
.display {
  margin: 0; font-weight: 650; letter-spacing: -.045em; line-height: .92;
  font-size: clamp(48px, 9vw, 128px);
}
.h1 { margin: 0; font-weight: 650; letter-spacing: -.04em; line-height: .96; font-size: clamp(40px, 6.4vw, 96px); }
.h2 { margin: 0; font-weight: 650; letter-spacing: -.035em; line-height: 1; font-size: clamp(34px, 4.6vw, 68px); text-wrap: balance; }
.h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; font-size: clamp(22px, 2vw, 30px); }
.lead { margin: 0; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; color: var(--ink-2); font-weight: 400; text-wrap: pretty; }
.body { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.grad { background: var(--g-sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); letter-spacing: .08em; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .2s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn .ar { transition: transform .5s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-sun { background: #FFFFFF; color: #07090D; }
.btn-sun::before { background: var(--g-sunset); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost::before { background: #FFFFFF; }
.btn-ghost:hover { color: #07090D; border-color: #FFFFFF; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }

/* ── Preloader ────────────────────────────────────────── */
#pre {
  position: fixed; inset: 0; z-index: 9999; background: var(--night);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: opacity .9s var(--ease), visibility .9s;
}
#pre.done { opacity: 0; visibility: hidden; pointer-events: none; }
#pre svg { width: 88px; height: 88px; transform: rotate(-90deg); }
#pre .track { stroke: rgba(255, 255, 255, .12); }
#pre .arc { stroke: url(#preGrad); stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset .4s var(--ease); }
#pre .wm { font-size: 20px; font-weight: 700; letter-spacing: -.03em; opacity: .92; }
#pre .wm span { color: var(--brand); }
#pre .pct { font-size: 11px; letter-spacing: .3em; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-top: -14px; }

/* ── Progress rail + cursor ───────────────────────────── */
#rail { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 950; transform-origin: left; transform: scaleX(0); background: var(--g-rail); box-shadow: 0 0 14px rgba(255, 122, 0, .5); }
#cur {
  position: fixed; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55); pointer-events: none; z-index: 9998;
  mix-blend-mode: difference; opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, opacity .3s;
}
#cur.on { opacity: 1; }
#cur.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .12); }
@media (hover: none), (pointer: coarse) { #cur { display: none; } }

/* ── Nav ──────────────────────────────────────────────── */
#nav {
  position: fixed; inset: 0 0 auto; z-index: 900; border-bottom: 1px solid transparent;
  transition: background-color .55s var(--ease), border-color .55s, transform .5s var(--ease), backdrop-filter .55s;
}
#nav.solid {
  background: rgba(5, 6, 11, .72); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
}
#nav.hide { transform: translateY(-101%); }
#nav .inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); height: 72px; display: flex; align-items: center; gap: 36px; }
.wordmark { font-size: 21px; font-weight: 700; letter-spacing: -.03em; color: #FFFFFF; display: inline-flex; align-items: baseline; }
.wordmark span { color: var(--brand); }
.wordmark .mark { width: 26px; height: 26px; }
#nav .links { display: flex; gap: 30px; margin-left: auto; }
#nav .links a { position: relative; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 10px 0; transition: color .35s; }
#nav .links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--sun); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
#nav .links a:hover { color: #FFFFFF; }
#nav .links a:hover::after { transform: scaleX(1); transform-origin: left; }
#nav .login { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 12px 4px; transition: color .35s; }
#nav .login:hover { color: #FFFFFF; }
#burger { display: none; margin-left: auto; width: 44px; height: 44px; position: relative; }
#burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #FFFFFF; border-radius: 2px; transition: .45s var(--ease); }
#burger i:nth-child(1) { top: 17px; }
#burger i:nth-child(2) { top: 26px; }
#burger.on i:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
#burger.on i:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
#drawer {
  position: fixed; inset: 0; z-index: 890; background: rgba(5, 6, 11, .97);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gut);
  opacity: 0; visibility: hidden; transition: .6s var(--ease);
}
#drawer.on { opacity: 1; visibility: visible; }
#drawer a { font-size: clamp(34px, 9vw, 56px); font-weight: 650; letter-spacing: -.04em; padding: 12px 0; border-bottom: 1px solid var(--line); transform: translateY(24px); opacity: 0; transition: .7s var(--ease); }
#drawer.on a { transform: none; opacity: 1; }
#drawer a:nth-child(2) { transition-delay: .06s; } #drawer a:nth-child(3) { transition-delay: .12s; }
#drawer a:nth-child(4) { transition-delay: .18s; } #drawer a:nth-child(5) { transition-delay: .24s; } #drawer a:nth-child(6) { transition-delay: .3s; }
#drawer .btn { margin-top: 32px; align-self: flex-start; opacity: 0; transition: opacity .7s var(--ease) .36s; }
#drawer.on .btn { opacity: 1; }
@media (max-width: 900px) {
  #nav .links, #nav .login, #nav .cta { display: none; }
  #burger { display: block; }
}

/* ── Hero: a scroll runway with the film pinned ───────── */
#hero { height: 100svh; background: var(--night); }
#hero.scrub { height: 500svh; }
/* After the last frame the pinned screen fades to the page's night, so the
   statement below arrives out of black rather than scrolling up under the film. */
#hero .fade { position: absolute; inset: 0; z-index: 3; background: var(--night); opacity: 0; pointer-events: none; }
#hero .pin { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; }
#hero .media { position: absolute; inset: 0; }
#hero .media img, #hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#hero canvas { opacity: 0; transition: opacity .8s var(--ease); }
#hero.scrub canvas { opacity: 1; }
#hero .media img { transform: scale(1.06); transition: transform 3.2s var(--ease); }
#hero.ready .media img { transform: none; }
#hero .veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 11, .55) 0%, rgba(5, 6, 11, 0) 22%, rgba(5, 6, 11, 0) 46%, rgba(5, 6, 11, .9) 100%),
    linear-gradient(95deg, rgba(5, 6, 11, .55) 0%, rgba(5, 6, 11, .2) 38%, rgba(5, 6, 11, 0) 60%);
}
@media (max-aspect-ratio: 4/5) {
  #hero .veil { background: linear-gradient(180deg, rgba(5, 6, 11, .45) 0%, rgba(5, 6, 11, 0) 18%, rgba(5, 6, 11, .2) 34%, rgba(5, 6, 11, .82) 58%, rgba(5, 6, 11, .96) 100%); }
}
#grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .06; pointer-events: none; mix-blend-mode: overlay; }
#hero .content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut) clamp(32px, 6vh, 72px);
}
#hero .beat { transition: opacity .5s linear, transform .5s linear; }
#hero .beat2 { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(160px, 26vh, 260px); opacity: 0; pointer-events: none; }
#hero .kick { margin-bottom: 22px; overflow: hidden; }
#hero .kick > span { display: inline-flex; transform: translateY(110%); transition: transform 1.1s var(--ease) .3s; }
#hero.ready .kick > span { transform: none; }
.mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.mask > span { display: block; transform: translateY(108%); transition: transform 1.25s var(--ease); }
#hero.ready .mask > span { transform: none; }
#hero .l2 > span { transition-delay: .12s; }
#hero .sub { color: var(--ink); max-width: 520px; margin-top: 24px; opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease) .7s, transform 1s var(--ease) .7s; }
#hero.ready .sub { opacity: 1; transform: none; }
#hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease) .85s, transform 1s var(--ease) .85s; }
#hero.ready .ctas { opacity: 1; transform: none; }
#hero .foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(28px, 5vh, 56px); padding-top: 22px; border-top: 1px solid var(--line-2);
  opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease) 1s, transform 1s var(--ease) 1s;
}
#hero.ready .foot { opacity: 1; transform: none; }
/* Once the entrance has played, scroll drives these directly — no leftover delay. */
#hero.settled .beat, #hero.settled .foot, #hero.settled .sub, #hero.settled .ctas { transition: none; }
.facts { display: flex; gap: clamp(24px, 5vw, 72px); flex-wrap: wrap; }
.facts .n { font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.facts .l { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.scrollcue { display: flex; align-items: center; gap: 14px; }
.scrollcue .track { width: 1px; height: 52px; background: var(--line-2); position: relative; overflow: hidden; }
.scrollcue .track i { position: absolute; left: 0; top: -52px; width: 1px; height: 52px; background: linear-gradient(180deg, transparent, var(--peach)); animation: cue 2.4s var(--ease-2) infinite; }
@keyframes cue { 0% { top: -52px; } 55%, 100% { top: 52px; } }
.scrollcue span { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); writing-mode: vertical-rl; }
@media (max-width: 700px) { .scrollcue { display: none; } #hero .ctas .btn { flex: 1; } }

/* ── Reveal system ────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1.05s var(--ease), transform 1.05s var(--ease); }
.rv-s { opacity: 0; transform: scale(1.06); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); }
.rv.in, .rv-s.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; } .d5 { transition-delay: .4s; }
.rule { height: 1px; background: var(--line-2); transform: scaleX(0); transform-origin: left; transition: transform 1.5s var(--ease); }
.rule.in { transform: scaleX(1); }

/* ── Manifesto: words light up as you read ────────────── */
#manifesto { padding: clamp(110px, 18vh, 220px) 0 clamp(90px, 14vh, 170px); background: linear-gradient(180deg, var(--night), var(--night-2)); }
#manifesto .intro { will-change: opacity, transform; }
/* With the film running, the statement's section is pulled up over the last
   stretch of the hero so its words rise and fade in while the film fades to
   black, not after. The overlap is transparent, so the fading film shows
   behind the text. The numbers are tied to the hero's 500svh runway and the
   fade's start (87% of it) in site.js: intro top = 500 − 87 + 20 − scroll,
   which puts the words at the bottom of the screen as the fade begins. */
#hero.scrub + #manifesto { position: relative; z-index: 2; margin-top: -87svh; padding-top: 20svh;
  background: linear-gradient(180deg, transparent 0, transparent 87svh, var(--night) 87svh, var(--night-2) 100%); }
#manifesto .big { margin: 28px 0 0; font-size: clamp(30px, 4.7vw, 72px); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; max-width: 22ch; }
#manifesto .big .w { color: rgba(241, 245, 252, .16); transition: color .6s var(--ease); }
#manifesto .big .w.lit { color: var(--ink); }
#manifesto .big .w.hot.lit { color: var(--peach); }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(64px, 10vh, 120px); padding-top: 40px; border-top: 1px solid var(--line); }
.cols3 h3 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin: 0 0 12px; }
@media (max-width: 800px) { .cols3 { grid-template-columns: 1fr; } }

/* ── A pass's life: a row of steps, scrolled sideways ── */
/* The section pins while the row moves right to left. Its height comes from
   site.js (the row's width less the screen's, plus one screen), so vertical
   scroll maps one-to-one onto the row's travel. */
#life { height: 500svh; background: var(--night-2); }
#life .stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
#life .sky { position: absolute; inset: 0; transition: background 1.2s var(--ease); }
#life[data-step="0"] .sky { background: radial-gradient(120% 90% at 80% 10%, rgba(255, 152, 90, .28), rgba(185, 120, 200, .12) 40%, transparent 70%), var(--dusk); }
#life[data-step="1"] .sky { background: radial-gradient(120% 90% at 80% 10%, rgba(228, 108, 160, .24), rgba(120, 100, 220, .12) 45%, transparent 70%), #100E22; }
#life[data-step="2"] .sky { background: radial-gradient(110% 80% at 75% 90%, rgba(255, 150, 60, .16), transparent 55%), radial-gradient(100% 80% at 20% 0%, rgba(23, 149, 250, .14), transparent 60%), #06070D; }
#life[data-step="3"] .sky { background: radial-gradient(120% 90% at 80% 10%, rgba(23, 149, 250, .2), rgba(185, 163, 255, .08) 45%, transparent 70%), #080A14; }
#life[data-step="4"] .sky { background: radial-gradient(120% 90% at 70% 20%, rgba(255, 185, 138, .18), rgba(23, 149, 250, .12) 45%, transparent 75%), #0A0B16; }
#life .head { position: absolute; z-index: 2; top: 96px; left: var(--gut); right: var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pips { display: flex; gap: 10px; }
.pips i { display: block; width: 44px; height: 2px; background: var(--line-2); overflow: hidden; position: relative; border-radius: 2px; }
.pips i b { position: absolute; inset: 0; background: var(--g-rail); transform: scaleX(0); transform-origin: left; }
#life .track { position: absolute; top: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: clamp(180px, 18vw, 320px); padding: 140px var(--gut) 40px; will-change: transform; }
/* A panel stays at full strength while most of it is on screen and fades only
   as it slides off an edge; site.js sets its opacity from how much is visible. */
/* Each step is its text and its own phone, held close (48px); the space
   between one step and the next is three to five times that, so a heading
   can never read as belonging to the neighbouring phone. */
.panel { flex: none; display: grid; grid-template-columns: minmax(0, 440px) auto; gap: 48px; align-items: center; }
.panel.wide { width: min(1380px, 92vw); grid-template-columns: minmax(260px, 340px) 1fr; }
.ptext .who { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ptext .who b { color: var(--peach); font-weight: 600; }
.ptext .h2 { margin-top: 16px; font-size: clamp(34px, 3.8vw, 60px); }
.ptext .lead { margin-top: 20px; max-width: 34ch; }

/* The laptop: the real Overview screen, the council's side of the story */
.laptop { justify-self: end; width: 100%; max-width: calc((100svh - 250px) * 1.38); }
.laptop .lid { position: relative; border-radius: 18px; padding: 14px 14px 16px; background: #0B0C10; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 90px rgba(0, 0, 0, .55), 0 0 140px rgba(23, 149, 250, .1); }
.laptop .cam { position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #23252B; }
.laptop img { width: 100%; aspect-ratio: 2560 / 1800; object-fit: cover; object-position: top; border-radius: 6px; transform: scale(1.04); opacity: .6; transition: transform 1.6s var(--ease) .2s, opacity 1.2s var(--ease) .2s; }
.panel.seen .laptop img { transform: none; opacity: 1; }
.laptop .base { position: relative; height: 16px; margin: 0 -6%; border-radius: 2px 2px 16px 16px; background: linear-gradient(180deg, #4A4D55, #1C1D22 70%); box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.laptop .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; margin-left: -8%; border-radius: 0 0 8px 8px; background: #2A2C32; }

/* The phone */
.device { position: relative; flex: none; width: calc(360px * var(--s, 1)); height: calc(780px * var(--s, 1)); justify-self: center; }
/* The phone is drawn at 360 × 780 and scaled to fit, so its contents shrink
   like a screenshot instead of reflowing. --s is set by site.js. */
.device .frame { width: 360px; height: 780px; transform: scale(var(--s, 1)); transform-origin: 0 0; }
.device .frame {
  position: absolute; left: 0; top: 0; border-radius: 46px; padding: 9px; background: #0B0C10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 90px rgba(0, 0, 0, .55), 0 0 120px rgba(255, 140, 80, .12);
}
.device .glass { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #F2F3F7; }
.device .island { position: absolute; top: 12px; left: 50%; width: 30%; height: 26px; margin-left: -15%; background: #000; border-radius: 20px; z-index: 5; }
.scr { position: absolute; inset: 0; font-family: var(--font); color: #07090D; }
.scr .status { height: 50px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 26px 6px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.scr .body2 { padding: 10px 16px; }
.scr .t20 { font-size: 20px; font-weight: 700; letter-spacing: -.4px; }
.scr .t13 { font-size: 12px; color: #6A6C6F; }
.scr .lab { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6A6C6F; margin: 18px 0 8px; }
.scr .card { background: #FFFFFF; border-radius: 18px; box-shadow: 0 1px 2px rgba(30, 26, 40, .05), 0 6px 18px rgba(30, 26, 40, .05); padding: 12px; }
.plate-s { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; background: #F5F7FB; border-radius: 5px; padding: 2px 5px; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.tag.teal { background: #D0FBF4; color: #007B70; }
.tag.ok { background: #D6FAE8; color: #007E54; }

/* screen 1: resident */
.favs { display: flex; gap: 12px; }
.fav { width: 64px; text-align: center; font-size: 11px; position: relative; }
.fav .av { width: 58px; height: 58px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 700; color: #FFFFFF; box-shadow: 0 0 0 2.5px #F2F3F7, 0 0 0 4.5px var(--ring, #D9DBDE); }
.fav .add { background: #FFFFFF; color: #909295; box-shadow: 0 0 0 1px #D9DBDE; font-weight: 400; font-size: 26px; }
.tap { position: absolute; left: 50%; top: 29px; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(0, 105, 204, .35); transform: scale(.3); opacity: 0; }
.panel.seen .tap { animation: tap 1.2s var(--ease) 1s 1 both; }
@keyframes tap { 0% { transform: scale(.3); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.newpass { margin-top: 16px; height: 46px; border-radius: 14px; background: #0069CC; color: #FFFFFF; font-weight: 600; font-size: 15px; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 105, 204, .28); }
.meter { display: flex; gap: 4px; margin-top: 8px; }
.meter i { flex: 1; height: 8px; border-radius: 99px; background: #0069CC; }
.meter i.off { background: #D9DBDE; }
.toast { position: absolute; left: 14px; right: 14px; bottom: 22px; background: #1C1D22; color: #FFFFFF; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; transform: translateY(140%); opacity: 0; }
.toast i { width: 22px; height: 22px; border-radius: 50%; background: #41B787; display: grid; place-items: center; flex: none; }
.panel.seen .toast { animation: toast .7s var(--ease) 1.9s both; }
@keyframes toast { to { transform: none; opacity: 1; } }

/* screen 2: guest */
.sms { margin: 8px 0 14px; max-width: 86%; background: #E9E9EB; border-radius: 18px 18px 18px 6px; padding: 9px 12px; font-size: 13px; line-height: 1.35; opacity: 0; transform: translateY(10px); }
.sms a { color: #0069CC; }
.panel.seen .sms { animation: rise .6s var(--ease) .4s both; }
.passcard { text-align: center; opacity: 0; transform: translateY(14px); }
.panel.seen .passcard { animation: rise .7s var(--ease) 1.1s both; }
@keyframes rise { to { opacity: 1; transform: none; } }
.ring { position: relative; width: 150px; height: 150px; margin: 6px auto 8px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .tr { stroke: #D9DBDE; }
.ring .ar { stroke: #007E54; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring .t { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .t b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.ring .t span { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #6A6C6F; margin-top: 4px; }
.rows { margin-top: 12px; text-align: left; padding: 0; }
.rows div { display: flex; justify-content: space-between; padding: 10px 12px; font-size: 13px; }
.rows div + div { border-top: 1px solid #E6E7EA; }
.rows b { font-weight: 600; }

/* screen 3: patrol — patrol is dark, always */
.scr.patrol { background: #060709; color: #F1F5FC; }
.scr.patrol .status { color: #F1F5FC; }
.vf { position: relative; margin: 6px 16px 0; height: 46%; border-radius: 22px; overflow: hidden; background: #0F1116 url(/assets/patrol.webp) center 70% / cover; }
.vf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .55)); }
.vf .corners { position: absolute; inset: 22% 14%; z-index: 2; }
.vf .corners i { position: absolute; width: 22px; height: 22px; border: 2.5px solid #FFFFFF; }
.vf .corners i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.vf .corners i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.vf .corners i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.vf .corners i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.vf .scan { position: absolute; left: 14%; right: 14%; top: 22%; height: 2px; z-index: 3; background: var(--brand-2); box-shadow: 0 0 16px var(--brand); opacity: 0; }
.panel.seen .vf .scan { animation: sweep 1.4s var(--ease-2) .5s 2 both; }
@keyframes sweep { 0% { top: 22%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 78%; opacity: 0; } }
.vf .readplate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; background: #F4F4F0; color: #101218; font-family: var(--mono); font-weight: 700; letter-spacing: .06em; font-size: 22px; padding: 8px 14px; border-radius: 8px; box-shadow: 0 0 0 2px #2D3A6B inset; }
.verdict { margin: 14px 16px 0; border-radius: 20px; padding: 16px; background: linear-gradient(160deg, #0E3B2A, #0A1F18); box-shadow: inset 0 0 0 1px rgba(65, 183, 135, .35); opacity: 0; transform: translateY(16px); }
.panel.seen .verdict { animation: rise .7s var(--ease) 3.4s both; }
.verdict .v1 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.verdict .v1 i { width: 28px; height: 28px; border-radius: 50%; background: #41B787; display: grid; place-items: center; }
.verdict .v2 { font-size: 12px; color: rgba(241, 245, 252, .7); margin-top: 6px; }
.verdict .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.verdict .tiles div { background: rgba(0, 0, 0, .28); border-radius: 10px; padding: 8px; font-size: 10px; color: rgba(241, 245, 252, .6); letter-spacing: .06em; text-transform: uppercase; }
.verdict .tiles b { display: block; font-size: 13px; color: #F1F5FC; letter-spacing: 0; text-transform: none; margin-top: 2px; font-variant-numeric: tabular-nums; }
.offline { margin: 12px 16px 0; font-size: 11px; color: rgba(241, 245, 252, .6); display: flex; align-items: center; gap: 6px; }
.offline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #41B787; }

.recent { margin: 14px 16px 0; background: #121318; border-radius: 16px; padding: 4px 12px; }
.recent .rh { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(241, 245, 252, .55); padding: 8px 0 4px; }
.recent .rr { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.plate-d { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; font-weight: 700; }
.pill { height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; }
.pill.warn { background: #402713; color: #FF7A00; } .pill.brand { background: #0D2034; color: #1795FA; } .pill.stop { background: #442320; color: #FF645A; }

/* screen 4: council */
.drow { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 12px; color: #585B5F; }
.drow + .drow { border-top: 1px solid #E6E7EA; }
.tag.nt { background: #EEF0F3; color: #585B5F; }
.notice { margin-top: 10px; }
.notice .ph { height: 110px; border-radius: 12px; background: #1C1D22 url(/assets/patrol.webp) right 60% / cover; margin-bottom: 10px; }
.notice .amt { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.btn2 { display: flex; gap: 8px; margin-top: 12px; }
.btn2 span { flex: 1; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.btn2 .c { background: #0069CC; color: #FFFFFF; }
.btn2 .w { background: #F2F3F7; color: #07090D; }
.decided { margin-top: 10px; display: flex; gap: 8px; align-items: center; font-size: 12px; color: #007E54; font-weight: 600; opacity: 0; }
.panel.seen .decided { animation: rise .6s var(--ease) 1.8s both; }
.panel.seen .btn2 .c { animation: press .5s var(--ease) 1.3s both; }
@keyframes press { 40% { transform: scale(.95); } 100% { transform: none; } }

@media (max-width: 900px) {
  #life .head { top: 76px; }
  #life .track { padding: 112px var(--gut) 28px; gap: 20px; }
  .panel, .panel.wide { width: 84vw; grid-template-columns: 1fr; gap: 18px; align-content: center; }
  .panel .device, .panel .laptop { grid-row: 1; justify-self: center; }
  .laptop { max-width: none; }
  .ptext .h2 { font-size: clamp(28px, 7.4vw, 40px); margin-top: 10px; }
  .ptext .lead { margin-top: 10px; font-size: 16px; }
  .pips i { width: 28px; }
  #life .head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ── For councils: six features, each with a working miniature ── */
/* The miniature is the app's light council UI drawn at small size, so its
   colours are the app's light tokens as literals: it is a picture of the app
   inside a dark page, the same reasoning as the phones in the story row. */
#council { padding: clamp(100px, 16vh, 180px) 0; background: radial-gradient(90% 60% at 80% 30%, rgba(23, 149, 250, .1), transparent 70%), var(--night); }
.ch-head { max-width: 680px; }
.ch-head .lead { margin-top: 22px; }
.ch { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(40px, 6vh, 72px); }
.ch-list { display: grid; gap: 4px; }
.ch-item { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; text-align: left; padding: 16px 18px; border-radius: 16px; transition: background-color .4s var(--ease); }
.ch-item .n { font-size: 12px; letter-spacing: .2em; color: var(--ink-3); padding-top: 3px; font-variant-numeric: tabular-nums; transition: color .4s; }
.ch-item b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink-2); transition: color .4s; }
.ch-item small { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-3); margin-top: 4px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s var(--ease); }
.ch-item:hover b { color: var(--ink); }
.ch-item[aria-selected="true"] { background: rgba(255, 255, 255, .06); }
.ch-item[aria-selected="true"] .n { color: var(--peach); }
.ch-item[aria-selected="true"] b { color: #FFFFFF; }
.ch-item[aria-selected="true"] small { max-height: 80px; opacity: 1; }
.ch-item .bar { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px; background: var(--g-rail); transform: scaleX(0); transform-origin: left; }
.ch-win { border-radius: 18px; overflow: hidden; background: #F2F3F7; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 90px rgba(0, 0, 0, .55), 0 0 140px rgba(23, 149, 250, .1); color: #07090D; }
.ch-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #E6E8EE; border-bottom: 1px solid #D9DBDE; }
.ch-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.ch-bar i:nth-child(2) { background: #FEBC2E; } .ch-bar i:nth-child(3) { background: #28C840; }
.ch-bar span { margin-left: 10px; font-size: 12px; color: #585B5F; }
.ch-body { position: relative; min-height: 470px; }
.ch-pane { position: absolute; inset: 0; padding: 22px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility .5s; }
.ch-pane.on { position: relative; opacity: 1; visibility: visible; transform: none; }
.cx-title { font-size: 20px; font-weight: 700; letter-spacing: -.4px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cx-title span { font-weight: 500; color: #6A6C6F; font-size: 15px; letter-spacing: 0; }
.cx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cx-card { background: #FFFFFF; border-radius: 16px; padding: 16px; box-shadow: 0 1px 2px rgba(30, 26, 40, .05), 0 6px 18px rgba(30, 26, 40, .05); font-size: 14px; }
.cx-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6A6C6F; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.cx-muted { font-size: 13px; color: #6A6C6F; line-height: 1.45; }
.cx-muted b { color: #07090D; }
.cx-mono, .cx-plate { font-family: var(--mono); letter-spacing: .06em; }
.cx-plate { display: inline-block; font-weight: 700; font-size: 15px; background: #F5F7FB; border-radius: 6px; padding: 3px 8px; margin: 10px 0 6px; }
.cx-amt { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cx-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #E6E7EA; font-size: 13px; color: #585B5F; }
.cx-row:first-of-type { border-top: 0; }
.cx-row b { color: #07090D; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cx-row.big { font-size: 15px; }
.cx-row.tot b { font-size: 18px; color: #007E54; }
.cx-row s { color: #909295; }
.cx-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; font-style: normal; letter-spacing: 0; text-transform: none; }
.cx-chip.sm { height: 20px; padding: 0 7px; }
.cx-chip.stop { background: #FEEBE9; color: #C70011; }
.cx-chip.ok { background: #D6FAE8; color: #007E54; }
.cx-chip.warn { background: #FFECDF; color: #9F5100; }
.cx-chip.nt { background: #EEF0F3; color: #585B5F; }
.cx-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.cx-dot.ok { background: #007E54; } .cx-dot.warn { background: #FF7A00; }
/* sliders */
.cx-sl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 0 12px; border-top: 1px solid #E6E7EA; font-size: 13px; color: #585B5F; }
.cx-sl:first-child { border-top: 0; padding-top: 0; }
.cx-sl b { color: #0069CC; font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-sl input { grid-column: 1 / -1; width: 100%; height: 28px; margin: 0; accent-color: #0069CC; cursor: pointer; }
.cx-notice .cx-row:first-of-type { border-top: 1px solid #E6E7EA; margin-top: 12px; }
.cx-steps { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.cx-steps span { height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; background: #FFFFFF; color: #6A6C6F; box-shadow: 0 1px 2px rgba(30, 26, 40, .06); }
.cx-steps .done { color: #007E54; } .cx-steps .done::before { content: "✓"; margin-right: 5px; }
.cx-steps .cur { background: #0069CC; color: #FFFFFF; }
/* evidence */
.cx-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.cx-photos i { aspect-ratio: 4 / 3; border-radius: 10px; background: #1C1D22 center / cover; }
.cx-tl { list-style: none; margin: 0 0 12px; padding: 0; }
.cx-tl li { position: relative; padding: 0 0 12px 22px; font-size: 13px; }
.cx-tl li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #0069CC; background: #FFFFFF; }
.cx-tl li.d::before { background: #0069CC; }
.cx-tl li::after { content: ""; position: absolute; left: 8px; top: 17px; bottom: 0; width: 1px; background: #D9DBDE; }
.cx-tl li:last-child::after { display: none; }
.cx-tl b { display: block; font-weight: 600; }
.cx-tl span { color: #6A6C6F; }
/* queue */
.cx-q { padding: 4px 16px; }
.cx-qrow { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid #E6E7EA; font-size: 14px; transition: opacity .5s var(--ease); }
.cx-qrow:first-child { border-top: 0; }
.cx-qrow .cx-mono { font-weight: 700; background: #F5F7FB; border-radius: 6px; padding: 2px 6px; margin-right: 6px; }
.cx-qrow > b { font-variant-numeric: tabular-nums; }
.cx-act { display: flex; gap: 6px; align-items: center; }
.cx-btn { height: 34px; padding: 0 14px; border-radius: 11px; font-size: 13px; font-weight: 600; background: #F2F3F7; color: #07090D; transition: transform .15s var(--ease), background-color .2s; position: relative; }
.cx-btn::after { content: ""; position: absolute; inset: -5px -2px; }
.cx-btn:active { transform: scale(.96); }
.cx-btn.p { background: #0069CC; color: #FFFFFF; }
.cx-btn.sm { height: 28px; padding: 0 10px; font-size: 12px; margin-left: 8px; background: #E6F2FE; color: #0069CC; }
.cx-btn:focus-visible { outline: 2px solid #0069CC; outline-offset: 2px; }
.cx-reasons { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-reasons button { height: 30px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #FFFFFF; color: #07090D; box-shadow: 0 0 0 1px #D9DBDE; }
.cx-done { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; animation: rise .5s var(--ease) both; }
.cx-done.ok { color: #007E54; } .cx-done.nt { color: #585B5F; }
.cx-foot { margin-top: 12px; }
/* reports */
.cx-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.cx-kpis small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6A6C6F; }
.cx-kpis b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.cx-kpis span { font-size: 12px; color: #6A6C6F; } .cx-kpis .up { color: #007E54; font-weight: 600; }
/* usage by unit */
.cx-kpis.k4 { grid-template-columns: repeat(4, 1fr); }
.cx-kpis.k4 b { font-size: 22px; }
.cx-key { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 11px; color: #6A6C6F; flex-wrap: wrap; }
.cx-key i { width: 8px; height: 8px; border-radius: 2px; margin-left: 6px; }
.cx-key .d, .cx-ub .d { background: #007B70; } .cx-key .o, .cx-ub .o { background: #7631E6; } .cx-key .e, .cx-ub .e { background: #909295; }
.cx-key .a { width: 2px; height: 10px; background: #07090D; border-radius: 0; }
.cx-usage { display: grid; gap: 2px; }
.cx-u { display: grid; grid-template-columns: 66px 1fr 30px; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 5px 6px; margin: 0 -6px; border-radius: 8px; font-size: 13px; color: #07090D; transition: background-color .2s; }
.cx-u:hover, .cx-u[aria-expanded="true"] { background: #F5F7FB; }
.cx-un { font-weight: 600; white-space: nowrap; }
.cx-u > b { text-align: right; font-variant-numeric: tabular-nums; }
.cx-u.hi > b { color: #C70011; }
.cx-ub { position: relative; height: 12px; border-radius: 4px; background: #EEF0F3; }
.cx-ub::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: #07090D; opacity: .55; }
.cx-ub .fill { display: flex; height: 100%; width: 0; border-radius: 4px; overflow: hidden; transition: width .9s var(--ease); }
.ch-pane.on .cx-ub .fill { width: var(--w); }
.cx-u:nth-child(2) .fill { transition-delay: .04s; } .cx-u:nth-child(3) .fill { transition-delay: .08s; } .cx-u:nth-child(4) .fill { transition-delay: .12s; }
.cx-u:nth-child(5) .fill { transition-delay: .16s; } .cx-u:nth-child(6) .fill { transition-delay: .2s; } .cx-u:nth-child(7) .fill { transition-delay: .24s; } .cx-u:nth-child(8) .fill { transition-delay: .28s; }
.cx-ub i { height: 100%; }
.cx-ud { grid-column: 2 / -1; font-size: 12px; color: #6A6C6F; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.cx-u[aria-expanded="true"] .cx-ud { max-height: 20px; }
/* residents */
.cx-meter { height: 8px; border-radius: 99px; background: #D9DBDE; overflow: hidden; margin-bottom: 8px; }
.cx-meter i { display: block; height: 100%; border-radius: 99px; background: #007E54; }
.cx-nt { display: block; font-size: 15px; margin-bottom: 6px; }
.cx-langs { display: flex; gap: 6px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.cx-langs span { height: 26px; padding: 0 10px; border-radius: 999px; background: #F2F3F7; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.cx-langs em { font-style: normal; font-size: 12px; color: #6A6C6F; margin-left: 4px; }
@media (max-width: 1000px) {
  .ch { grid-template-columns: 1fr; }
  .ch-list { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); }
  .ch-list::-webkit-scrollbar { display: none; }
  .ch-item { flex: none; grid-template-columns: auto auto; gap: 8px; padding: 12px 16px; border-radius: 999px; background: rgba(255, 255, 255, .04); }
  .ch-item b { font-size: 15px; white-space: nowrap; }
  .ch-item small, .ch-item .bar { display: none; }
  .ch-item .n { padding-top: 1px; }
}
@media (max-width: 640px) {
  .ch-pane { padding: 14px; }
  .cx-grid2, .cx-kpis { grid-template-columns: 1fr; }
  .cx-kpis.k4 { grid-template-columns: 1fr 1fr; }
  .cx-qrow { grid-template-columns: 1fr auto; }
  .cx-qrow .cx-act { grid-column: 1 / -1; }
  .cx-qrow .cx-act .cx-btn { flex: 1; height: 40px; }
  .ch-body { min-height: 0; }
}

/* ── Numbers ──────────────────────────────────────────── */
#numbers { padding: clamp(90px, 14vh, 160px) 0; background: var(--night); }
.numgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(40px, 6vh, 72px); }
.numgrid > div { background: var(--night); padding: clamp(24px, 3vw, 44px) clamp(20px, 2.4vw, 34px); transition: background-color .6s var(--ease); }
.numgrid > div:hover { background: var(--panel); }
.numgrid .n { font-size: clamp(56px, 7vw, 104px); font-weight: 650; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.numgrid .n small { font-size: .32em; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2); margin-left: 6px; }
.numgrid .k { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 24ch; }
@media (max-width: 1000px) { .numgrid { grid-template-columns: 1fr 1fr; } }

/* ── Roles stage: four full-bleed panes ───────────────── */
#roles { padding: clamp(90px, 14vh, 160px) 0 0; background: var(--night); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(36px, 6vh, 64px); }
.sec-head .lead { max-width: 44ch; }
.tabs { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1; min-width: 160px; padding: 22px 22px 20px; text-align: left; position: relative; border-right: 1px solid var(--line); }
.tab:last-child { border-right: 0; }
.tab .idx { font-size: 11px; letter-spacing: .24em; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .5s; }
.tab .nm { display: block; font-size: clamp(17px, 1.4vw, 21px); font-weight: 600; letter-spacing: -.01em; margin-top: 8px; color: var(--ink-3); transition: color .5s; white-space: nowrap; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--g-rail); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.tab:hover .nm { color: var(--ink-2); }
.tab[aria-selected="true"] .nm { color: #FFFFFF; }
.tab[aria-selected="true"] .idx { color: var(--peach); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.stage { position: relative; min-height: clamp(620px, 88vh, 900px); overflow: hidden; }
.pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.pane.on { opacity: 1; visibility: visible; }
.pane .bg { position: absolute; inset: 0; }
.pane .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 2.6s var(--ease); }
.pane.on .bg img { transform: none; }
.pane .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 11, .95) 0%, rgba(5, 6, 11, .8) 36%, rgba(5, 6, 11, .2) 66%, rgba(5, 6, 11, .55) 100%), linear-gradient(180deg, rgba(5, 6, 11, .6), transparent 28%, transparent 70%, rgba(5, 6, 11, .85)); }
.pane .txt { position: relative; z-index: 2; height: 100%; max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 8vh, 96px) var(--gut); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.pane .in { max-width: 560px; }
.pane .h2 { margin-top: 18px; }
.pane .lead { margin-top: 20px; }
.pane ul { list-style: none; margin: 32px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 14px; }
.pane li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.pane li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 12px rgba(255, 185, 138, .7); }
.pane li b { color: var(--ink); font-weight: 600; }
.shot { width: clamp(200px, 20vw, 290px); border-radius: 40px; padding: 8px; background: #0B0C10; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 90px rgba(0, 0, 0, .6); transform: translateY(30px) rotate(2deg); opacity: 0; transition: transform 1.4s var(--ease) .2s, opacity 1.2s var(--ease) .2s; }
.pane.on .shot { transform: rotate(2deg); opacity: 1; }
.shot img { border-radius: 32px; width: 100%; }
.shot.wide { width: clamp(320px, 38vw, 560px); border-radius: 14px; padding: 0; transform: translateY(30px); }
.pane.on .shot.wide { transform: none; }
.shot.wide img { border-radius: 14px; }
@media (max-width: 900px) {
  .stage { min-height: 900px; }
  .pane .bg::after { background: linear-gradient(180deg, rgba(5, 6, 11, .55) 0%, rgba(5, 6, 11, .85) 46%, rgba(5, 6, 11, .97) 100%); }
  .pane .txt { grid-template-columns: 1fr; align-content: end; }
  .shot, .shot.wide { display: none; }
  .stage { min-height: 640px; }
  .tab { min-width: 136px; padding: 18px 16px; }
}

/* ── Fair by design: principles ───────────────────────── */
#fair { padding: clamp(100px, 16vh, 180px) 0; background: linear-gradient(180deg, var(--night), var(--night-2) 50%, var(--night)); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(40px, 6vh, 72px); }
.principle { position: relative; background: var(--night); padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 36px) clamp(32px, 3.4vw, 48px); overflow: hidden; transition: background-color .6s var(--ease); }
.principle::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--g-rail); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.principle:hover { background: var(--panel); }
.principle:hover::before { transform: scaleX(1); }
.principle .num { font-size: 12px; letter-spacing: .24em; color: var(--peach); font-variant-numeric: tabular-nums; }
.principle h3 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin: 26px 0 12px; }
.principle p { margin: 0; color: var(--ink-2); line-height: 1.65; }
@media (max-width: 1000px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }

/* ── Pricing ──────────────────────────────────────────── */
#pricing { padding: clamp(90px, 14vh, 160px) 0; background: var(--night); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(40px, 6vh, 72px); }
.tier { position: relative; background: var(--night); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; }
.tier.feat { background: linear-gradient(180deg, rgba(255, 140, 80, .1), rgba(185, 163, 255, .04) 60%, var(--night)); }
.tier.feat::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--g-sunset); }
.tier .size { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.tier .name { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-top: 10px; }
.tier .price { font-size: clamp(36px, 3.4vw, 52px); font-weight: 650; letter-spacing: -.04em; margin-top: 40px; line-height: 1; }
.tier .per { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.tier .btn { margin-top: 40px; align-self: flex-start; }
.incl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 40px; padding: 32px 0 0; margin-top: 32px; border-top: 1px solid var(--line); list-style: none; }
.incl li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--ink-2); }
.incl svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
@media (max-width: 900px) { .tiers, .incl { grid-template-columns: 1fr; } }

/* ── Demo ─────────────────────────────────────────────── */
#demo { padding: clamp(90px, 14vh, 160px) 0; background: linear-gradient(180deg, var(--night), var(--dusk)); }
#demo .split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
#demo .lead { margin-top: 24px; max-width: 38ch; }
.contact { margin-top: 40px; border-top: 1px solid var(--line); }
.contact a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), color .3s; }
.contact a:hover { padding-left: 10px; color: var(--peach); }
.contact small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.contact b { font-weight: 600; font-size: 17px; }
.form { display: grid; gap: 22px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fld { position: relative; }
.fld label { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; font-weight: 600; }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ink);
  font: 16px/1.4 var(--font); appearance: none; transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.fld select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23aab' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.fld select option { background: #11131C; color: #F1F5FC; }
.fld textarea { padding: 16px; min-height: 130px; resize: vertical; }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(241, 245, 252, .32); }
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: none; border-color: var(--brand); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 3px rgba(23, 149, 250, .28); }
@media (hover: none) and (pointer: coarse) { .fld input, .fld select, .fld textarea { font-size: 17px; } }
.form .btn { justify-self: start; }
.form .fine { font-size: 13px; color: var(--ink-3); margin: 0; }
.form .fine a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 900px) { #demo .split, .form .row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

/* ── Close ────────────────────────────────────────────── */
#close { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
#close .bg { position: absolute; inset: -10% 0; will-change: transform; }
#close .bg img { width: 100%; height: 100%; object-fit: cover; }
#close .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--dusk) 0%, rgba(5, 6, 11, 0) 28%, rgba(5, 6, 11, .1) 55%, rgba(5, 6, 11, .92) 100%); }
#close .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 10vh, 120px); }
#close .display { margin-top: 22px; max-width: 12ch; }
#close .lead { margin-top: 24px; max-width: 46ch; }
#close .btn { margin-top: 36px; }

/* ── Footer ───────────────────────────────────────────── */
footer { background: var(--night); border-top: 1px solid var(--line); padding: clamp(56px, 8vh, 88px) 0 32px; }
.fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.fgrid h4 { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 18px; font-weight: 600; color: var(--ink-3); }
.fgrid ul { list-style: none; margin: 0; padding: 0; }
.fgrid li a { display: inline-block; padding: 7px 0; color: var(--ink-2); transition: color .3s; }
.fgrid li a:hover { color: #FFFFFF; }
.fgrid p { color: var(--ink-3); max-width: 34ch; margin: 16px 0 0; font-size: 15px; }
.fbot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(48px, 7vh, 80px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.ghostword { font-size: clamp(80px, 19vw, 300px); font-weight: 700; letter-spacing: -.06em; line-height: .8; margin-top: clamp(48px, 8vh, 96px); background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }
@media (max-width: 800px) { .fgrid { grid-template-columns: 1fr 1fr; } .fgrid > div:first-child { grid-column: 1 / -1; } }

/* ── Reduced motion: everything arrives at rest ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  #hero.scrub { height: 100svh; }
  .rv, .rv-s { opacity: 1; transform: none; }
  #manifesto .big .w { color: var(--ink); }
}
