/* netra.digital landing page. Brand tokens match the apps (plum, coral, DM Sans). Motion: transform + opacity only. */
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url(/fonts/dm-sans-400.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url(/fonts/dm-sans-700.woff2) format("woff2"); }

:root {
  --bg: #140F1C; --bg2: #18121F; --surface: #201828; --surface2: #2A2133; --line: #33283D; --line2: #46384F;
  --text: #FCEFEA; --text2: #D9CDD6; --text3: #B9AEBE;
  --accent: #FF7A59; --accent-h: #FF9A80; --live: #FF5A5F; --ok: #4CD08A;
  --ring: 0 0 0 3px var(--accent), 0 0 28px rgba(255, 122, 89, .45);
  --gutter: max(16px, 5vw);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
em { font-style: normal; color: var(--accent); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h2.big { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text2); max-width: 34em; }
.mark { display: inline-block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 17px; text-decoration: none; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #1A1020; }
.btn-primary:hover { background: var(--accent-h); }
.btn-ghost { background: var(--surface2); color: var(--text); }
.btn-ghost:hover { background: var(--line2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .dur { font-weight: 400; color: var(--text3); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(20, 15, 28, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 25px; letter-spacing: -.04em; }
.logo svg { width: 20px; height: 24px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text2); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav .btn { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 11px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- story: ident, zoom through the arrow, the film ---------- */
#story { position: relative; }
/* the stage is pinned for the whole story; the flow scrolls past over it normally */
.stage-wrap { position: absolute; inset: 0; }   /* as tall as the story, so the stage unpins exactly at its end */
/* two pinned layers: the background behind the scrolling captions, the logo, TV and chapter bar in front of them */
.stage-wrap.back { z-index: 0; }
.stage-wrap.front { z-index: 3; pointer-events: none; }
.front .scrub { pointer-events: auto; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.flow { position: relative; z-index: 2; }
.pin-bg { position: absolute; inset: 0; background:
  radial-gradient(60% 55% at 18% 30%, rgba(122, 52, 44, .32), transparent 70%),
  radial-gradient(55% 50% at 85% 85%, rgba(74, 44, 96, .4), transparent 70%), var(--bg); }

.ident { position: absolute; left: 0; right: 0; top: 34%; translate: 0 -50%; z-index: 4; display: flex; justify-content: center; pointer-events: none; }
.lockup { --fs: clamp(76px, 15vw, 210px); display: flex; align-items: center; column-gap: calc(var(--fs) * .1); font-size: var(--fs); font-weight: 700; line-height: 1; letter-spacing: -.035em; }
.lk-zoom { position: relative; width: calc(var(--fs) * .78); height: calc(var(--fs) * .94); transform-origin: 46% 50%; }
.lk-glide, .lk-mark, .lk-blush { position: absolute; inset: 0; }
.lk-mark svg, .lk-blush svg { width: 100%; height: 100%; display: block; }
.lk-blush { opacity: 0; }
.lk-bloom { position: absolute; left: 50%; top: 50%; width: 280%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 122, 89, .5), rgba(255, 122, 89, .14) 42%, transparent); }
.lk-word { color: var(--text); padding-bottom: .08em; will-change: transform, opacity; }
.hero-block { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-content: start; justify-items: center; text-align: center;
  padding: calc(34vh + clamp(76px, 15vw, 210px) * .56 + clamp(24px, 4vh, 44px)) var(--gutter) 140px; }
.hero-copy { will-change: transform, opacity; }
.hero-copy h1 { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -.025em; }
.hero-copy p { color: var(--text2); font-size: clamp(16px, 1.5vw, 19px); max-width: 32em; margin: 12px auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); display: grid; justify-items: center; gap: 10px; }
.scroll-cue i { width: 2px; height: 34px; border-radius: 2px; background: linear-gradient(var(--accent), transparent); transform-origin: top; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ident timeline (from the apps' opening animation, SPEC 24): 2250 ms, minus the closing zoom, which the scroll drives here */
.js .lk-mark, .js .lk-word > span, .js .hero-in, .js .scroll-cue { opacity: 0; }
.ident-play .lk-glide { animation: ik-glide 2250ms linear both; }
.ident-play .lk-mark { animation: ik-mark 2250ms linear both; }
.ident-play .lk-blush { animation: ik-blush 2250ms linear both; }
.ident-play .lk-bloom { animation: ik-bloom 2250ms linear both; }
.ident-play .lk-word > span { display: inline-block; animation: ik-word 2250ms linear both; }
.ident-play .hero-in { animation: rise .9s 1.45s var(--ease) both; }
.ident-play .scroll-cue { animation: fade .8s 2.2s both; }
.ident-still .lk-mark, .ident-still .lk-word > span, .ident-still .hero-in, .ident-still .scroll-cue { opacity: 1; }
@keyframes ik-mark { 0% { opacity: 0; transform: scale(.86); animation-timing-function: cubic-bezier(.2,.8,.2,1); } 18.667% { opacity: 1; transform: scale(1); }
  19.6% { opacity: 1; transform: scale(1.06); animation-timing-function: cubic-bezier(.16,1,.3,1); } 40.889%, 100% { opacity: 1; transform: scale(1); } }
@keyframes ik-blush { 0%, 26.667% { opacity: 1; animation-timing-function: cubic-bezier(.33,0,.2,1); } 40.889%, 100% { opacity: 0; } }
@keyframes ik-bloom { 0%, 18.6% { opacity: 0; transform: scale(.47); } 18.667% { opacity: .75; transform: scale(.47); animation-timing-function: cubic-bezier(.16,1,.3,1); } 47.1%, 100% { opacity: 0; transform: scale(1); } }
@keyframes ik-glide { 0%, 41.778% { transform: translateX(var(--glide, 0px)); animation-timing-function: cubic-bezier(.65,0,.25,1); } 64%, 100% { transform: translateX(0); } }
@keyframes ik-word { 0%, 45.778% { opacity: 0; transform: translateX(.22em); animation-timing-function: cubic-bezier(.2,.8,.2,1); } 66.667%, 100% { opacity: 1; transform: translateX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* the TV */
#tv { position: absolute; z-index: 3; right: var(--gutter); top: 50%; width: min(56vw, 940px); margin-top: calc(min(56vw, 940px) * -.29); will-change: transform, opacity; }
.bezel { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(10px, 1.2vw, 18px); background: #07050A; padding: clamp(5px, .55vw, 9px);
  box-shadow: 0 0 0 1px #2E2537, 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 120px -40px rgba(255, 122, 89, .25); }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: clamp(5px, .6vw, 9px); background: var(--bg); }
.screen > img, .screen > .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv .stand { width: 22%; height: clamp(8px, 1vw, 14px); margin: 0 auto; background: linear-gradient(#1C1622, #0C090F); border-radius: 0 0 8px 8px; }
.scene { opacity: 0; transform: scale(1.035); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.scene.on { opacity: 1; transform: none; }

.caps { position: absolute; left: var(--gutter); top: 50%; width: min(32vw, 450px); transform: translateY(-50%); display: grid; }
.cap { grid-area: 1 / 1; align-self: center; opacity: 0; transform: translateY(18px); transition: opacity .4s var(--ease), transform .6s var(--ease); }
.cap.on { opacity: 1; transform: none; transition-delay: .12s; }
.beat { height: 100vh; height: 100svh; }
.cap .eyebrow { margin-bottom: 14px; display: block; }
.cap h2 { font-size: clamp(30px, 3.9vw, 58px); line-height: 1.05; letter-spacing: -.03em; }
.cap p { margin-top: 16px; color: var(--text2); font-size: clamp(16px, 1.45vw, 20px); }

.scrub { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(18px, 4vh, 36px); font-size: 13px; color: var(--text3); opacity: 0; transition: opacity .4s; }
.scrub.on { opacity: 1; }
.track { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.track .fill { position: absolute; inset: 0 auto 0 0; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--accent); border-radius: inherit; }
.track .knob { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 122, 89, .25); }
.chapters { position: absolute; inset: 0; }
.chapters button { position: absolute; top: 50%; translate: -50% -50%; padding: 10px 0; width: 70px; text-align: center; }
.chapters button::before { content: ""; display: block; width: 2px; height: 10px; margin: 0 auto; background: rgba(255, 255, 255, .35); border-radius: 2px; }
.chapters span { position: absolute; left: 50%; top: -18px; translate: -50% 0; white-space: nowrap; font-size: 12px; color: var(--text3); transition: color .2s; }
.chapters button.on span, .chapters button:hover span { color: var(--text); }

@media (max-width: 860px) {
  /* phone: the TV is pinned under the nav and the captions scroll up beneath it */
  #tv { left: 50%; right: auto; width: 92vw; margin: 0 0 0 -46vw; top: 80px; }
  .caps { top: calc(80px + 52vw + 44px); right: var(--gutter); width: auto; transform: none; }
  .cap { align-self: start; }
  .cap h2 { font-size: clamp(28px, 8vw, 40px); }
  .scrub { display: none; }
}

/* ---------- sections ---------- */
section[id] { scroll-margin-top: 40px; }
section.block { position: relative; padding: clamp(90px, 14vh, 160px) 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split.wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.split { gap: clamp(32px, 5vw, 80px); align-items: center; }
.split-copy > * + * { margin-top: 18px; }
@media (max-width: 960px) { .split, .split.wide { grid-template-columns: 1fr; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hint { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text3); }
.kbd { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 7px; background: var(--surface2); box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); color: var(--text2); font-size: 13px; font-weight: 700; }

/* ---------- remote playground ---------- */
.remote-stage { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: center; }
@media (max-width: 600px) { .remote-stage { grid-template-columns: 1fr; justify-items: center; } }
.tvui { position: relative; cursor: pointer; }
.tvui:focus-visible { box-shadow: none; }
.tvui:focus-visible .bezel, .tvui.active .bezel { box-shadow: 0 0 0 1px #2E2537, 0 0 0 3px rgba(255,122,89,.5), 0 40px 90px -30px rgba(0,0,0,.8); }
.tvui .screen, .pair-tv .screen { container-type: inline-size; }
.ui { position: absolute; inset: 0; background: radial-gradient(70% 90% at 0% 100%, rgba(255,122,89,.08), transparent 60%), var(--bg); font-size: 1.72cqw; }
.ui-side { position: absolute; left: 7%; top: 50%; translate: 0 -50%; width: 32%; }
.ui-side .logo { font-size: 3.3em; gap: .35em; }
.ui-side .logo svg { width: .8em; height: .95em; }
.ui-side h3 { font-size: 2.6em; margin-top: .7em; letter-spacing: -.02em; line-height: 1.1; }
.ui-side p { color: var(--text2); font-size: 1.1em; margin-top: .4em; }
.ui-side small { display: block; color: var(--text3); font-size: .85em; margin-top: 1.6em; line-height: 1.45; }
.ui-pane { position: absolute; left: 44%; right: 5%; top: 50%; translate: 0 -50%; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.ui-pane.out-l { opacity: 0; transform: translateX(-6%); pointer-events: none; }
.ui-pane.out-r { opacity: 0; transform: translateX(6%); pointer-events: none; }
.opt { display: flex; align-items: center; gap: 1.1em; padding: .8em 1.1em; margin: .55em 0; border-radius: .8em; background: var(--surface); transition: background .2s, box-shadow .25s, transform .25s var(--ease); }
.opt .ic { width: 2.2em; height: 2.2em; border-radius: .5em; display: grid; place-items: center; background: var(--surface2); flex: none; }
.opt .ic svg { width: 1.2em; height: 1.2em; fill: var(--text2); }
.opt b { display: block; font-size: 1.2em; }
.opt span { display: block; color: var(--text3); font-size: .95em; }
.opt .chev { margin-left: auto; color: var(--text3); font-size: 1.4em; }
.f { background: var(--surface2); box-shadow: 0 0 0 .18em var(--accent), 0 0 1.6em rgba(255,122,89,.4); transform: scale(1.02); }
.field { margin: .55em 0; padding: .7em 1em; border-radius: .7em; background: var(--surface); transition: box-shadow .25s, background .2s; }
.field label { display: block; font-size: .85em; color: var(--text3); }
.field .val { display: block; font-size: 1.15em; min-height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field .val::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--accent); opacity: 0; }
.field.typing .val::after { opacity: 1; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ui-btn { display: inline-block; margin-top: .7em; padding: .7em 1.4em; border-radius: .7em; font-weight: 700; font-size: 1.1em; background: var(--surface2); transition: box-shadow .25s, background .2s, transform .25s var(--ease); }
.ui-btn.f { background: var(--accent); color: #1A1020; }
.toggle { display: flex; align-items: center; justify-content: space-between; }
.toggle i { width: 2.6em; height: 1.5em; border-radius: 1em; background: var(--accent); position: relative; }
.toggle i::after { content: ""; position: absolute; right: .2em; top: .2em; width: 1.1em; height: 1.1em; border-radius: 50%; background: #fff; }
.pane-title { font-size: 1.7em; font-weight: 700; margin-bottom: .3em; }
.recv { display: grid; grid-template-columns: auto 1fr; gap: 1.6em; align-items: center; }
.qr { background: #FCEFEA; padding: .6em; border-radius: .6em; width: 11em; }
.pt-recv .qr { width: 15em; }
.qr svg { display: block; width: 100%; height: auto; }
.code { font-size: 2.2em; font-weight: 700; letter-spacing: .06em; }
.wait { display: flex; align-items: center; gap: .6em; color: var(--text2); margin-top: .5em; }
.dot { width: .7em; height: .7em; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.55); opacity: .5; } }
.bar { height: .5em; border-radius: .5em; background: var(--surface2); overflow: hidden; margin: 1em 0; }
.bar i { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: inherit; animation: indet 1.3s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.ui-toast { position: absolute; left: 50%; bottom: 6%; translate: -50% 0; padding: .6em 1.2em; border-radius: 2em; background: var(--surface2); font-size: 1.05em; opacity: 0; transform: translateY(.6em); transition: opacity .3s, transform .3s var(--ease); white-space: nowrap; }
.ui-toast.on { opacity: 1; transform: none; }

/* on-screen remote */
.remote { font-size: clamp(10px, .95vw, 15px); width: 10em; padding: 1.45em 1.2em 1.85em; border-radius: 5em 5em 2.8em 2.8em; background: linear-gradient(#2A2133, #1A141F); box-shadow: 0 0 0 1px #3A2F44, 0 30px 60px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); display: grid; justify-items: center; gap: 1.2em; }
.dpad { position: relative; width: 7.6em; height: 7.6em; border-radius: 50%; background: #120D16; box-shadow: inset 0 0 0 1px #3A2F44; }
.dpad button { position: absolute; display: grid; place-items: center; color: var(--text3); transition: color .15s, transform .1s; }
.dpad button:hover { color: var(--text); }
.dpad button:active, .dpad button.press { transform: scale(.9); color: var(--accent); }
.dpad [data-k=ArrowUp] { left: 2.47em; top: .27em; width: 2.67em; height: 2.13em; }
.dpad [data-k=ArrowDown] { left: 2.47em; bottom: .27em; width: 2.67em; height: 2.13em; }
.dpad [data-k=ArrowLeft] { left: .27em; top: 2.47em; width: 2.13em; height: 2.67em; }
.dpad [data-k=ArrowRight] { right: .27em; top: 2.47em; width: 2.13em; height: 2.67em; }
.dpad [data-k=Enter] { left: 2.2em; top: 2.2em; width: 3.2em; height: 3.2em; border-radius: 50%; background: #2A2133; color: var(--text); font-size: 1em; font-weight: 700; box-shadow: inset 0 0 0 1px #46384F; }
.dpad [data-k=Enter]:active, .dpad [data-k=Enter].press { background: var(--accent); color: #1A1020; }
.remote-row { display: flex; gap: 1.07em; }
.rbtn { width: 3.07em; height: 3.07em; border-radius: 50%; background: #120D16; box-shadow: inset 0 0 0 1px #3A2F44; display: grid; place-items: center; color: var(--text2); transition: transform .1s, color .15s; }
.rbtn:active, .rbtn.press { transform: scale(.9); color: var(--accent); }
.rbtn svg, .dpad svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.remote .brand { color: var(--accent); width: 1.07em; height: 1.33em; opacity: .8; }

/* ---------- phone pairing ---------- */
.pair { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 960px) { .pair { grid-template-columns: 1fr; } }
.steps { list-style: none; margin-top: 28px; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; color: var(--text3); transition: background .35s, color .35s; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--surface2); transition: background .35s, color .35s; }
.steps li.on { background: var(--surface); color: var(--text); }
.steps li.on::before { background: var(--accent); color: #1A1020; }
.pair-stage { position: relative; display: grid; grid-template-columns: 1fr minmax(120px, 26%); gap: clamp(16px, 4vw, 56px); align-items: center; }
.pt-layer { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.pt-layer.off { opacity: 0; transform: scale(.97); pointer-events: none; }
.pt-recv { grid-template-columns: auto auto; gap: 3em; }
.pt-recv h4 { font-size: 2em; letter-spacing: -.02em; }
.pt-recv p { color: var(--text2); font-size: 1.15em; margin-top: .3em; }
.pt-done { text-align: center; }
.check { width: 6em; height: 6em; margin: 0 auto 1em; border-radius: 50%; background: rgba(76, 208, 138, .14); display: grid; place-items: center; }
.check svg { width: 3em; height: 3em; stroke: var(--ok); stroke-width: 3; fill: none; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .6s .15s var(--ease); }
.pt-done:not(.off) .check svg { stroke-dashoffset: 0; }
.pt-done h4 { font-size: 2.2em; }
.pt-done p { color: var(--text2); font-size: 1.2em; }
.phone { position: relative; aspect-ratio: 9 / 19.5; border-radius: 16% / 7.5%; background: #07050A; padding: 5%; box-shadow: 0 0 0 1px #2E2537, 0 40px 80px -30px rgba(0,0,0,.8); }
.phone .screen { border-radius: 12% / 5.6%; container-type: inline-size; }
.ph { position: absolute; inset: 0; padding: 18% 8% 8%; font-size: 6.2cqw; transition: opacity .45s var(--ease), transform .5s var(--ease); }
.ph.off { opacity: 0; transform: translateY(4%); pointer-events: none; }
.ph h5 { font-size: 1.25em; letter-spacing: -.02em; line-height: 1.15; }
.ph p { color: var(--text3); font-size: .8em; margin-top: .3em; }
.viewfinder { position: relative; margin-top: 1.2em; aspect-ratio: 1; border-radius: .8em; background: #0B0810; overflow: hidden; }
.viewfinder .qr { position: absolute; left: 50%; top: 50%; width: 58%; translate: -50% -50%; padding: .3em; border-radius: .3em; opacity: .9; }
.viewfinder::before { content: ""; position: absolute; inset: 14%; border-radius: .6em; box-shadow: 0 0 0 999px rgba(11, 8, 16, .5); border: 2px solid rgba(255,255,255,.7); z-index: 1; }
.scanline { position: absolute; left: 14%; right: 14%; top: 14%; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); z-index: 2; opacity: 0; }
.scanning .scanline { animation: scan 1.3s ease-in-out 2 alternate; }
@keyframes scan { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(calc(var(--vf, 100px) * .72)); } }
.pl { display: flex; align-items: center; gap: .6em; padding: .7em; margin-top: .55em; border-radius: .6em; background: var(--surface); font-size: .82em; transition: box-shadow .25s, background .25s; }
.pl i { width: 1.8em; height: 1.8em; border-radius: .4em; background: var(--surface2); flex: none; }
.pl.f { transform: none; }
.ph-send { display: block; margin-top: 1em; text-align: center; padding: .7em; border-radius: .6em; background: var(--accent); color: #1A1020; font-weight: 700; font-size: .85em; transition: transform .15s; }
.ph-send.tap { transform: scale(.94); }
.flyer { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; }
.flyer .fy { padding: 10px 16px; border-radius: 12px; background: var(--accent); color: #1A1020; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 12px 30px -8px rgba(255,122,89,.6); }
.flyer.go { opacity: 1; animation: fly-x 1s cubic-bezier(.45,0,.3,1) forwards; }
.flyer.go .fy { animation: fly-y 1s cubic-bezier(.3,0,.7,1) forwards; }
@keyframes fly-x { 0% { transform: translateX(var(--x0)); } 100% { transform: translateX(var(--x1)); opacity: 0; } }
@keyframes fly-y { 0% { transform: translateY(var(--y0)) scale(1); } 45% { transform: translateY(calc(var(--y1) - 90px)) scale(1.05); } 100% { transform: translateY(var(--y1)) scale(.6); } }
.secure { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 15px; color: var(--text3); }
.secure svg { width: 16px; height: 16px; fill: var(--ok); }

/* ---------- live guide ---------- */
.guide { margin-top: clamp(36px, 6vh, 56px); border-radius: 22px; background: var(--bg2); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.g-info { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: end; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); min-height: 116px; }
.g-info h3 { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; }
.g-info p { color: var(--text3); font-size: 15px; }
.g-info .when { color: var(--text2); }
.g-prog { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.g-prog i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s var(--ease); }
.g-body { display: grid; grid-template-columns: clamp(118px, 16vw, 210px) 1fr; }
.g-chans { border-right: 1px solid var(--line); }
.g-head { height: 40px; display: flex; align-items: center; padding: 0 16px; font-size: 13px; color: var(--accent); font-weight: 700; border-bottom: 1px solid var(--line); }
.g-chan { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.g-chan b { font-weight: 700; display: block; line-height: 1.2; }
.g-chan small { color: var(--text3); font-size: 12px; }
.g-logo { width: 36px; height: 24px; border-radius: 5px; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.g-scroll { position: relative; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; cursor: grab; }
.g-scroll.drag { cursor: grabbing; }
.g-grid { position: relative; }
.g-times { height: 40px; position: relative; border-bottom: 1px solid var(--line); }
.g-times span { position: absolute; top: 0; height: 40px; display: flex; align-items: center; padding-left: 10px; font-size: 13px; color: var(--text3); border-left: 1px solid var(--line); }
.g-row { position: relative; height: 64px; border-bottom: 1px solid var(--line); }
.g-p { position: absolute; top: 6px; bottom: 6px; padding: 8px 12px; border-radius: 10px; background: var(--surface); overflow: hidden; font-size: 14px; line-height: 1.3; transition: background .2s, box-shadow .25s; outline: none; }
.g-p b, .g-p small { display: block; will-change: transform; }
.g-p b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-p small { color: var(--text3); font-size: 12px; white-space: nowrap; }
.g-p.past { background: transparent; color: var(--text3); box-shadow: inset 0 0 0 1px var(--line); }
.g-p.now { background: var(--surface2); }
.g-p.f { transform: none; z-index: 2; }
.g-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 3; pointer-events: none; }
.g-now::before { content: ""; position: absolute; top: 12px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }

/* ---------- devices ---------- */
.devices-head { text-align: center; }
.devices-head .lede { margin: 18px auto 0; }
.trio { position: relative; height: clamp(320px, 52vw, 640px); margin-top: clamp(40px, 7vh, 72px); }
.trio > * { position: absolute; will-change: transform; }
.d-tv { left: 50%; top: 4%; width: 62%; translate: -50% 0; z-index: 1; }
.d-tab { left: 0; bottom: 4%; width: 34%; z-index: 2; }
.d-tab .bezel { aspect-ratio: 4 / 3; border-radius: 7% / 9%; padding: 2.2%; }
.d-tab .screen { border-radius: 4.5% / 6%; }
.d-tab img { object-position: top; }
.d-ph { right: 2%; bottom: 0; width: 17%; z-index: 3; }
.d-ph .screen img { object-position: top; }
.lift { transition: translate .5s var(--ease); }
.lift:hover { translate: 0 -8px; }
.d-tv.lift:hover { translate: -50% -8px; }

/* ---------- small things ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tiles { grid-template-columns: 1fr; } }
.tile { padding: 26px 24px 28px; border-radius: 20px; background: var(--surface); transition: transform .35s var(--ease), box-shadow .35s, background .3s; }
.tile:hover { transform: translateY(-4px); background: var(--surface2); box-shadow: var(--ring); }
.tile svg { width: 30px; height: 30px; fill: var(--accent); }
.tile h3 { margin-top: 18px; font-size: 20px; letter-spacing: -.01em; }
.tile p { margin-top: 8px; color: var(--text3); font-size: 15.5px; }

/* ---------- platforms ---------- */
.plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 960px) { .plats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plats { grid-template-columns: 1fr; } }
.plat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 20px; background: var(--surface); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s, background .3s; }
.plat:hover, .plat:focus-visible { transform: translateY(-4px); background: var(--surface2); box-shadow: var(--ring); border-radius: 20px; }
.plat svg { width: 32px; height: 32px; fill: var(--text2); margin-bottom: 10px; }
.plat h3 { font-size: 20px; }
.plat p { color: var(--text3); font-size: 15px; }
.plat .st { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text2); }
.plat .st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.plat.live .st { color: var(--accent); }
.plat.live .st::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.plat.beta .st::before { background: #F2C14E; }
.plat .go { position: absolute; right: 22px; top: 22px; color: var(--text3); transition: transform .3s var(--ease), color .3s; }
.plat:hover .go { transform: translate(3px, -3px); color: var(--accent); }
.note { margin-top: 24px; color: var(--text3); font-size: 15px; }

/* ---------- no content + faq ---------- */
.notice { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: linear-gradient(135deg, rgba(255,122,89,.12), rgba(255,122,89,.02) 60%); box-shadow: inset 0 0 0 1px rgba(255,122,89,.25); }
.notice svg { width: 40px; height: 48px; }
.notice h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; }
.notice p { color: var(--text2); margin-top: 8px; max-width: 46em; }
.faq { margin-top: 40px; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--surface); transition: background .3s; }
.faq details[open] { background: var(--surface2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 18px; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .a { padding: 0 22px 22px; color: var(--text2); max-width: 52em; }
.faq .a a { color: var(--accent); }

/* ---------- end card + footer ---------- */
.endcard { text-align: center; padding: clamp(110px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); background: radial-gradient(50% 60% at 50% 40%, rgba(122, 52, 44, .3), transparent 70%); }
.endcard .lockup { --fs: clamp(64px, 10vw, 140px); justify-content: center; }
.endcard .lk-zoom { transform: none; }
.endcard .tag { margin-top: 26px; font-size: clamp(18px, 2vw, 24px); color: var(--text2); }
.endcard .pl-line { margin-top: 14px; color: var(--text3); font-size: 16px; }
.endcard .pl-line span + span::before { content: "·"; margin: 0 .55em; color: var(--accent); }
.endcard .hero-cta { margin-top: 36px; }
.endcard small { display: block; margin-top: 40px; color: var(--text3); font-size: 13px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--text3); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; gap: 22px; margin-left: auto; }
.foot a { text-decoration: none; color: var(--text2); }
.foot a:hover { color: var(--text); }
.foot .logo { font-size: 20px; }
.foot .logo svg { width: 16px; height: 19px; }

/* ---------- film dialog ---------- */
dialog.film { margin: auto; width: min(1100px, 94vw); border: 0; border-radius: 18px; background: #000; color: var(--text); padding: 0; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.7); }
dialog.film::backdrop { background: rgba(10, 7, 14, .82); backdrop-filter: blur(6px); }
dialog.film[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
dialog.film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
dialog.film .x { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(20, 15, 28, .7); display: grid; place-items: center; z-index: 1; }
dialog.film .x svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.4; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- phone width ---------- */
.pl:nth-child(3) i { background: linear-gradient(135deg, #FF7A59, #B8456B); }
.pl:nth-child(4) i { background: linear-gradient(135deg, #6B4FD8, #2F6F7A); }
.pl:nth-child(5) i { background: linear-gradient(135deg, #3E7D4F, #C0A33B); }
@media (max-width: 600px) {
  .tvui { width: 100%; }
  .remote { font-size: 13px; }
  .g-info { grid-template-columns: 1fr; padding: 18px 16px 14px; min-height: 0; }
  .g-body { grid-template-columns: 104px 1fr; }
  .g-chan { padding: 0 10px; gap: 8px; font-size: 13px; }
  .g-chan small { display: none; }
  .g-logo { width: 26px; height: 20px; }
  .trio { height: 92vw; }
  .d-tv { width: 88%; top: 0; }
  .d-tab { width: 46%; bottom: 0; }
  .d-ph { width: 25%; }
  .pair-stage { grid-template-columns: 1fr 30%; }
}
.opt > div { min-width: 0; }
.opt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .opt { padding: .7em 1em; margin: .45em 0; } .g-chan b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62px; } }

/* ---------- story (PoC): the timelines live in home.js (WAAPI); CSS only holds resting states ---------- */
html, body { overflow-x: clip; }                       /* clip, not hidden: never turns body into a scroll container (keeps sticky safe on iOS) */
.stage-wrap.back .stage { height: 100vh; height: 100lvh; } /* background covers the toolbar-collapsed viewport: no seam on iOS/Android */
#tv { opacity: 0; }                                    /* WAAPI fills drive it from here */
.bezel { transform-origin: 50% 55%; will-change: transform; }
.portal { position: absolute; inset: 0; z-index: 4; background: var(--accent); opacity: 0; pointer-events: none; will-change: clip-path, opacity; }
.ident { z-index: 5; }
.scene { opacity: 1; transform: none; transition: none; visibility: hidden; will-change: clip-path, transform; }
.scene.on { visibility: visible; }
.edge { position: absolute; top: 0; bottom: 0; left: -2px; width: 3px; background: var(--accent); opacity: 0; pointer-events: none;
  box-shadow: 0 0 18px 3px rgba(255, 122, 89, .65); }
.cap { opacity: 1; transform: none; transition: none; }
.cap:not(.on) .ci > * { opacity: 0; }
.caps, .scrub { opacity: 0; }
.caps, .scrub { visibility: hidden; }
.through .caps, .through .scrub { visibility: visible; }
.through .hero-copy { pointer-events: none; }
.track .fill, .track .knob { transition: none; }
.beats::after { content: ""; display: block; height: 50vh; height: 50svh; }

/* ---------- touch screens: no pinned tour, a native swipe carousel instead ---------- */
.tour-m { display: none; }
@media (max-width: 860px), (pointer: coarse) {
  .front #tv, .front .caps, .front .scrub, .front .portal, .beats { display: none !important; }
  .tour-m { display: block; padding: 56px 0 24px; }
  .tm-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 520px); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 28px var(--gutter) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tm-track::-webkit-scrollbar { display: none; }
  .slide { scroll-snap-align: start; margin: 0; }
  .slide .tv { position: relative; }
  .slide figcaption { margin-top: 18px; padding-right: 8px; }
  .slide figcaption .eyebrow { display: block; margin-bottom: 8px; }
  .slide h3 { font-size: clamp(24px, 6.6vw, 32px); line-height: 1.1; letter-spacing: -.02em; }
  .slide p { margin-top: 10px; color: var(--text2); font-size: 16px; }
  .slide .screen img { transition: transform .8s var(--ease); transform: scale(1.03); }
  .slide.on .screen img { transform: none; }
  .tm-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .tm-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line2); transition: width .3s var(--ease), background .3s; }
  .tm-dots i.on { width: 22px; background: var(--accent); }
}

/* ---------- iPhone / touch stability (see netra-core/docs/WEBSITE-AUDIT.md) ---------- */
html { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }   /* no double-tap zoom on the remote, no grey tap flash */
body { overflow-x: clip; }                                                        /* Safari can still pan sideways with overflow-x: hidden */
.g-scroll { overscroll-behavior-x: contain; }
.g-info h3, .g-info p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }   /* header never changes height */
@media (hover: none) {
  /* a tap leaves :hover applied on touch screens, so nothing may move or lift on hover there */
  .lift:hover { translate: none; }
  .d-tv.lift:hover { translate: -50% 0; }
  .tile:hover, .plat:hover { transform: none; box-shadow: none; background: var(--surface); }
  .plat:hover .go { transform: none; }
}
@media (pointer: coarse) {
  .reveal { transform: none; transition: opacity .6s ease; }                     /* fade in place; no sliding while flick-scrolling */
}
