/* StreamVault — storefront styles.
   Concept: the broadcast test card. Near-black screen, white type, tally red,
   and the seven colour bars used sparingly as the brand's signature.
   Bricolage Grotesque for voice, Geist for reading, Geist Mono for on-screen data.
   Only transform / opacity / filter / clip-path are animated. */

@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --bg: #05060a;
  --bg-2: #090b11;
  --bg-3: #0f121a;
  --text: #f3f4f8;
  --muted: #8d93a5;
  --faint: #5d6374;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --white: #fff;
  --red: #ff3b3b;
  --ok: #4ee08a;
  --warn: #ffd23f;
  --err: #ff6b6b;
  --bars: linear-gradient(90deg, #f4f4f6 0 14.28%, #ffe600 0 28.56%, #00e5ff 0 42.84%, #1ee45a 0 57.12%, #ff2bd6 0 71.4%, #ff3b3b 0 85.68%, #2a4bff 0);

  --r-lg: 28px;
  --r: 18px;
  --r-sm: 12px;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-quart: cubic-bezier(.25, 1, .5, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --gutter: clamp(18px, 4vw, 44px);
  --topbar: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: .22em; transition: text-decoration-color .3s; }
a:hover { text-decoration-color: var(--white); }
::selection { background: var(--white); color: var(--bg); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 400; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -.035em; font-variation-settings: "opsz" 36, "wdth" 92; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.8rem); }
h2 { font-size: clamp(2.1rem, 5vw, 4.6rem); }
h2 .dim { color: var(--faint); }
h3 { font: 600 1.2rem/1.25 var(--sans); letter-spacing: -.015em; }
h4 { font: 500 .85rem/1.3 var(--sans); color: var(--muted); }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .86em; background: rgba(255, 255, 255, .08); padding: .12em .45em; border-radius: 6px; }

.wrap { width: min(1360px, 100% - var(--gutter) * 2); margin-inline: auto; }
.narrow { width: min(820px, 100% - var(--gutter) * 2); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .7em; margin: 0 0 1.2em; font: 500 .8rem/1 var(--mono); color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 300; font-weight: 600; }
.skip:focus { left: 8px; }
.ico { flex: none; }
p .ico { display: inline-block; vertical-align: -2px; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease-quart); }

/* film grain */
body::after { content: ""; position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* custom cursor ring (fine pointers only) */
.cursor { position: fixed; z-index: 120; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; pointer-events: none; opacity: 0; mix-blend-mode: difference; transition: opacity .3s, width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .3s; will-change: transform; }
.cursor.is-on { opacity: 1; }
.cursor.is-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .12); border-color: #fff; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Buttons ---------- */
.btn { --tx: 0px; --ty: 0px; --s: 1; position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; font: 600 .95rem/1.2 var(--sans); letter-spacing: -.01em; white-space: nowrap; cursor: pointer; text-decoration: none; transform: translate3d(var(--tx), var(--ty), 0) scale(var(--s)); transition: transform .5s var(--ease-out), background-color .3s, border-color .3s, color .3s; }
.btn:active { --s: .97; transition-duration: .12s; }
.btn .ico { transition: transform .4s var(--ease-out); }
.btn:hover .ico--arrow { transform: translateX(4px); }
.btn--primary { background: var(--white); color: var(--bg); }
.btn--primary::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--bars); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease-out); }
.btn--primary:hover::after { transform: scaleY(1); }
.btn--ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--lg { padding: 18px 32px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--danger { background: transparent; color: var(--err); border-color: rgba(255, 107, 107, .4); }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------- Header ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 70; }
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: rgba(5, 6, 10, .7); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border-bottom: 1px solid var(--line); transition: opacity .4s var(--ease-quart); }
.topbar.is-scrolled::before, .nav-open .topbar::before { opacity: 1; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--bars); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
@supports (animation-timeline: scroll()) { .topbar::after { animation: progress linear both; animation-timeline: scroll(root); } @keyframes progress { to { transform: scaleX(1); } } }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: var(--topbar); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 700 1.1rem/1 var(--display); letter-spacing: -.03em; color: var(--text); text-decoration: none; position: relative; z-index: 2; }
.brand img { transition: transform .8s var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand__logo { display: block; height: 46px; width: auto; }
.brand:hover .brand__logo { transform: none; opacity: .86; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav__links { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(5, 6, 10, .55); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav__links a { position: relative; color: var(--muted); font-weight: 500; font-size: .9rem; padding: 8px 15px; border-radius: 999px; text-decoration: none; transition: color .25s, background-color .3s; }
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav__links a[aria-current] { color: var(--bg); background: var(--white); }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.navtoggle { display: none; position: relative; z-index: 2; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.navtoggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease-out); }
.navtoggle span:nth-child(1) { top: 18px; } .navtoggle span:nth-child(2) { top: 25px; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .navtoggle { display: block; }
  .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px; padding: calc(var(--topbar) + 12px) var(--gutter) 40px; background: var(--bg); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--ease-out), visibility 0s .8s; }
  .nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease-out), visibility 0s; }
  .nav__links { flex-direction: column; align-items: flex-start; gap: 0; padding: 0; background: none; border: 0; }
  .nav__links a { font: 700 clamp(2.2rem, 10vw, 3.4rem)/1.1 var(--display); letter-spacing: -.04em; color: var(--text); padding: 4px 0; background: none !important; border-radius: 0; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .8s var(--ease-out); }
  .nav__links a[aria-current] { color: var(--faint); }
  .nav.is-open .nav__links a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * .05s); }
  .nav__muted { font-size: inherit !important; }
  .nav__cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; opacity: 0; transition: opacity .6s .45s; }
  .nav.is-open .nav__cta { opacity: 1; }
  .nav__cta .btn { padding: 16px 24px; font-size: 1rem; }
  .nav-open { overflow: hidden; }
}

/* ---------- Reveal system ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(5px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; min-height: max(100svh, 640px); display: flex; align-items: flex-end; overflow: clip; isolation: isolate; }
.hero__gl { position: absolute; inset: 0; z-index: -2; background: #090b11; animation: crt 1.4s var(--ease-out) both; }
.hero__gl canvas { width: 100%; height: 100%; }
.hero__gl.no-gl { background: var(--bars); opacity: .35; }
.hero__gl.no-gl canvas { display: none; }
@keyframes crt { 0% { clip-path: inset(49.4% 0 49.4% 0); filter: brightness(3); } 55% { clip-path: inset(49.4% 0 49.4% 0); filter: brightness(3); } 100% { clip-path: inset(0); filter: none; } }
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, var(--bg) 0, rgba(5, 6, 10, .7) 14%, transparent 46%), linear-gradient(180deg, rgba(5, 6, 10, .55) 0, transparent 22%); }
.hero__inner { padding-top: calc(var(--topbar) + 40px); padding-bottom: clamp(28px, 5vh, 56px); pointer-events: none; }
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__tag { display: inline-flex; align-items: center; gap: .8em; margin: 0 0 clamp(14px, 2.4vh, 26px); padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(5, 6, 10, .6); border: 1px solid var(--line-2); backdrop-filter: blur(10px); font: 500 .78rem/1 var(--mono); }
.hero__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: tally 2s infinite; }
.hero__tag span { color: var(--muted); }
@keyframes tally { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); } }
.hero__title { font-size: clamp(3rem, 10.6vw, 11.4rem); line-height: .88; letter-spacing: -.045em; margin: 0 0 clamp(22px, 4vh, 44px); font-weight: 700; font-variation-settings: "opsz" 36, "wdth" 92; text-shadow: 0 6px 60px rgba(0, 0, 0, .55); }
.hero__title .ln { display: block; overflow: hidden; padding: .04em .06em .1em 0; margin: -.04em 0 -.1em; }
.hero__title .ln > span { display: block; animation: lineup 1.4s var(--ease-out) both; animation-delay: 1s; }
.hero__title .ln:nth-child(2) > span { animation-delay: 1.12s; }
@keyframes lineup { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
[data-rise] { animation: rise 1.2s var(--ease-out) both; animation-delay: 1.3s; }
.hero__tag[data-rise] { animation-delay: .9s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 16px, 0); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero__lead { font-size: clamp(1.02rem, 1.25vw, 1.2rem); color: #b9bece; max-width: 54ch; margin: 0 0 26px; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* on-screen display */
.osd { flex: none; width: 250px; padding: 16px 18px; border-radius: var(--r); background: rgba(5, 6, 10, .62); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-family: var(--mono); animation: rise 1.2s var(--ease-out) 1.5s both; }
.osd__top { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); }
.osd__ch { color: var(--text); font-weight: 500; font-size: 1.1rem; letter-spacing: .02em; }
.osd__live { display: inline-flex; align-items: center; gap: 6px; }
.osd__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.osd__name { font: 700 2rem/1.1 var(--display); letter-spacing: -.04em; margin: 8px 0 12px; }
.osd__meter { display: flex; gap: 3px; align-items: flex-end; height: 16px; margin-bottom: 12px; }
.osd__meter i { width: 6px; background: var(--white); border-radius: 1px; transform-origin: 50% 100%; animation: eq 1.1s ease-in-out infinite; height: 100%; }
.osd__meter i:nth-child(2) { animation-delay: .15s; } .osd__meter i:nth-child(3) { animation-delay: .3s; } .osd__meter i:nth-child(4) { animation-delay: .45s; } .osd__meter i:nth-child(5) { animation-delay: .6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.osd__hint { margin: 0; font-size: .72rem; line-height: 1.4; color: var(--faint); }
.osd.is-glitch .osd__name { animation: glitch .35s steps(2, jump-none); }
@keyframes glitch { 0% { transform: translate3d(-4px, 0, 0); filter: blur(1px); } 50% { transform: translate3d(3px, 0, 0); } 100% { transform: none; } }
@media (max-width: 900px) { .osd { display: none; } .hero__foot { display: block; } }

/* ---------- Ticker ---------- */
.ticker { display: flex; align-items: stretch; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ticker__tag { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 22px 0 var(--gutter); background: var(--red); color: #fff; font: 700 .85rem/1 var(--mono); position: relative; z-index: 2; }
.ticker__tag::after { content: ""; position: absolute; right: -14px; top: 0; bottom: 0; width: 28px; background: var(--red); transform: skewX(-18deg); z-index: -1; }
.ticker__tag i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.ticker__lane { flex: 1; overflow: hidden; padding: 16px 0 16px 28px; }
.ticker__track { display: flex; width: max-content; animation: scroll 46s linear infinite; }
.ticker__set { display: flex; align-items: center; flex: none; }
.ticker__set span { font: 600 1.15rem/1 var(--display); letter-spacing: -.02em; padding: 0 28px; white-space: nowrap; color: #d6d9e4; }
.ticker__set i { width: 22px; height: 10px; flex: none; background: var(--bars); border-radius: 2px; }
@keyframes scroll { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Stats / odometer ---------- */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__grid > div { padding: clamp(34px, 5vw, 64px) 0 clamp(34px, 5vw, 64px) clamp(16px, 2.6vw, 40px); border-left: 1px solid var(--line); display: grid; gap: 6px; }
.stats__grid > div:first-child { border-left: 0; padding-left: 0; }
.stats__grid strong { font: 700 clamp(2.6rem, 6.4vw, 6rem)/1 var(--display); letter-spacing: -.04em; font-variation-settings: "opsz" 36, "wdth" 92; }
.stats__grid span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } .stats__grid > div:nth-child(3) { border-left: 0; padding-left: 0; } .stats__grid > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.odo { display: inline-flex; height: 1em; overflow: hidden; vertical-align: top; }
.odo__col { display: block; height: 1em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; transform: translate3d(0, 0, 0); transition: transform 1.6s var(--ease-out) calc(var(--i, 0) * 90ms); }
.odo.is-rolled .odo__strip { transform: translate3d(0, calc(var(--d) * -1em), 0); }
.odo__strip b { display: block; height: 1em; width: .58em; text-align: center; line-height: 1; font-weight: inherit; }
.odo__s { display: inline-block; line-height: 1; }

/* ---------- Story (pinned channel flip) ---------- */
.story { position: relative; height: calc(var(--n) * 78vh + 100vh); border-top: 1px solid var(--line); }
.story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: var(--topbar); }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 100px); align-items: center; }
.story__title { font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; color: var(--muted); margin: 0 0 clamp(20px, 4vh, 44px); max-width: 30ch; font-family: var(--sans); font-variation-settings: normal; }
.story__list { list-style: none; margin: 0; padding: 0; }
.story__item { border-top: 1px solid var(--line); }
.story__item:last-child { border-bottom: 1px solid var(--line); }
.story__btn { display: flex; align-items: baseline; gap: 18px; width: 100%; padding: clamp(10px, 1.8vh, 18px) 0; background: none; border: 0; color: var(--faint); text-align: left; cursor: pointer; transition: color .5s, transform .7s var(--ease-out); font: inherit; }
.story__btn:hover { color: #aeb3c4; }
.story__ch { font: 500 .8rem/1 var(--mono); min-width: 52px; }
.story__name { font: 700 clamp(2.1rem, 4.4vw, 4.4rem)/1 var(--display); letter-spacing: -.04em; font-variation-settings: "opsz" 36, "wdth" 92; }
.story__item.is-active .story__btn { color: var(--white); transform: translateX(10px); }
.story__item.is-active .story__ch { color: var(--red); }
.story__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.story__more > div { overflow: hidden; min-height: 0; }
.story__item.is-active .story__more { grid-template-rows: 1fr; }
.story__head { font: 600 1.15rem/1.3 var(--sans); letter-spacing: -.02em; margin: 4px 0 6px 70px; opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .6s .15s, transform .8s var(--ease-out) .15s; }
.story__copy { color: var(--muted); margin: 0 0 14px 70px; max-width: 46ch; opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .6s .22s, transform .8s var(--ease-out) .22s; }
.story__tags { list-style: none; margin: 0 0 18px 70px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; opacity: 0; transition: opacity .6s .3s; }
.story__tags li { font: 500 .78rem/1 var(--mono); padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: #c5c9d6; }
.story__item.is-active :is(.story__head, .story__copy) { opacity: 1; transform: none; }
.story__item.is-active .story__tags { opacity: 1; }

.story__detail { display: none; }
.tv { position: relative; }
.tv__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: 0 0 0 10px #0b0d13, 0 0 0 11px var(--line-2), 0 60px 120px -30px rgba(0, 0, 0, .9), 0 0 140px -30px rgba(120, 140, 255, .25); }
.tv__screen canvas { width: 100%; height: 100%; }
.tv__osd { position: absolute; left: 22px; top: 18px; display: flex; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: .85rem; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.tv__osd b { font: 700 1.5rem/1 var(--display); letter-spacing: -.03em; }
.tv__live { position: absolute; right: 22px; top: 18px; display: inline-flex; align-items: center; gap: 7px; font: 600 .75rem/1 var(--mono); color: #fff; padding: 6px 10px; border-radius: 6px; background: var(--red); }
.tv__live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.tv__glass { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .1) 0, transparent 32%), radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(0, 0, 0, .5) 100%); }
.tv__stand { width: 22%; height: 10px; margin: 20px auto 0; background: linear-gradient(#1a1e29, #0b0d13); border-radius: 0 0 14px 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .8); }
.story .tv.no-gl .tv__screen { background: var(--bars); }
.story .tv.no-gl canvas { display: none; }

@media (max-width: 960px) {
  .story { height: calc(var(--n) * 68vh + 100vh); }
  .story__pin { align-items: flex-start; padding-top: calc(var(--topbar) + 10px); }
  .story__grid { grid-template-columns: 1fr; gap: 18px; }
  .story__tv { order: -1; }
  .tv__screen { border-radius: 18px; box-shadow: 0 0 0 6px #0b0d13, 0 0 0 7px var(--line-2), 0 30px 60px -20px #000; }
  .tv__stand { display: none; }
  .tv__osd { left: 14px; top: 12px; font-size: .72rem; } .tv__osd b { font-size: 1.1rem; }
  .tv__live { right: 14px; top: 12px; }
  .story__title { display: none; }
  .story__list { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .story__item, .story__item:last-child { border: 0; flex: none; }
  .story__btn { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; align-items: center; gap: 8px; }
  .story__item.is-active .story__btn { transform: none; background: var(--white); color: var(--bg); border-color: var(--white); }
  .story__item.is-active .story__ch { color: var(--red); }
  .story__name { font: 600 .95rem/1 var(--sans); letter-spacing: -.01em; }
  .story__ch { min-width: 0; font-size: .7rem; }
  .story__more, .story__item.is-active .story__more { display: none; }
  .story__detail { display: block; margin-top: 18px; min-height: 170px; }
  .story__detail :is(.story__head, .story__copy, .story__tags) { margin-left: 0; opacity: 1; transform: none; }
  .story__detail .story__head { margin-top: 0; font-size: 1.3rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 170px) 0; position: relative; }
.section__head { max-width: 980px; margin: 0 0 clamp(36px, 6vw, 80px); }
.section__head p { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin: 1em 0 0; }
body:not(.home) .section { padding: clamp(40px, 6vw, 96px) 0 clamp(72px, 10vw, 140px); }
body:not(.home) main { padding-top: var(--topbar); }

/* devices hub */
.devices { border-top: 1px solid var(--line); background: radial-gradient(60% 50% at 50% 55%, rgba(120, 140, 255, .07), transparent 70%); }
.hub { position: relative; }
.hub__svg { width: 100%; height: auto; overflow: visible; }
.hub__line { fill: none; stroke: url(#hubline); stroke-width: 1.2; stroke-dasharray: 3 7; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -50; } }
.hub__dot { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
.hub__disc { fill: #fff; }
.hub__big { font: 800 30px var(--display); fill: var(--bg); letter-spacing: -1.5px; }
.hub__ring { fill: none; stroke: #fff; stroke-width: 1; transform-origin: 500px 230px; animation: ping 3.2s var(--ease-out) infinite; opacity: 0; }
.hub__ring--b { animation-delay: 1.6s; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.1); opacity: 0; } }
.hub__node rect { fill: var(--bg-3); stroke: rgba(255, 255, 255, .16); }
.hub__node { color: #fff; transition: transform .5s var(--ease-out); }
.hub__name { font: 600 16px var(--sans); fill: #fff; letter-spacing: -.3px; }
.hub__sub { font: 400 12px var(--sans); fill: #8d93a5; }
.devgrid { list-style: none; margin: 0; padding: 0; }
@media (min-width: 761px) { .devgrid { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
@media (max-width: 760px) {
  .hub__svg { display: none; }
  .devgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .devgrid li { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
  .devgrid strong { font: 600 1rem/1.25 var(--sans); margin-top: 8px; }
  .devgrid span { color: var(--muted); font-size: .85rem; }
}
.devices__more { margin: clamp(24px, 4vw, 48px) 0 0; }

/* how: scrubber timeline */
.how { border-top: 1px solid var(--line); background: var(--bg-2); }
.scrub__bar { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); margin-bottom: clamp(26px, 4vw, 48px); }
.scrub__fill { position: absolute; inset: 0; border-radius: 6px; background: var(--bars); transform-origin: 0 50%; transform: scaleX(0); transition: transform 2.8s cubic-bezier(.5, 0, .2, 1) .3s; }
.scrub__head { position: absolute; top: 50%; left: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .15), 0 0 24px #fff; transform: translate3d(0, 0, 0); transition: transform 2.8s cubic-bezier(.5, 0, .2, 1) .3s; }
.scrub.is-in .scrub__fill { transform: scaleX(1); }
.scrub.is-in .scrub__head { transform: translate3d(var(--w, 1000px), 0, 0); }
.scrub__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 64px); }
.scrub__steps li { opacity: .25; transform: translate3d(0, 14px, 0); transition: opacity .8s, transform 1s var(--ease-out); }
.scrub.is-in .scrub__steps li { opacity: 1; transform: none; }
.scrub.is-in .scrub__steps li:nth-child(1) { transition-delay: .2s; } .scrub.is-in .scrub__steps li:nth-child(2) { transition-delay: 1.3s; } .scrub.is-in .scrub__steps li:nth-child(3) { transition-delay: 2.6s; }
.scrub__steps time { display: block; font: 500 clamp(2.4rem, 4.6vw, 4.2rem)/1 var(--mono); letter-spacing: -.045em; color: var(--white); margin-bottom: 18px; }
.scrub__steps h3 { font: 700 1.6rem/1.1 var(--display); letter-spacing: -.04em; margin: 0 0 .5em; }
.scrub__steps p { color: var(--muted); max-width: 36ch; margin: 0; }
@media (max-width: 760px) { .scrub__steps { grid-template-columns: 1fr; } .scrub__bar { display: none; } .scrub__steps li { opacity: 1; transform: none; border-top: 1px solid var(--line); padding-top: 24px; } }

/* ---------- Pricing ---------- */
.pricing { overflow: clip; border-top: 1px solid var(--line); }
.pricing__aurora { position: absolute; inset: -10% 0 auto; height: 720px; z-index: -1; pointer-events: none; opacity: .55; background: radial-gradient(40% 50% at 20% 30%, rgba(42, 75, 255, .35), transparent 70%), radial-gradient(36% 46% at 80% 20%, rgba(255, 43, 214, .22), transparent 70%), radial-gradient(40% 40% at 55% 60%, rgba(0, 229, 255, .16), transparent 70%); filter: blur(40px); animation: aurora 18s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate3d(-4%, 6%, 0) scale(1.1); } }
.duration { position: relative; isolation: isolate; display: inline-flex; gap: 2px; padding: 5px; margin: 0 0 clamp(28px, 4vw, 48px); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; }
.duration__thumb { position: absolute; z-index: -1; top: 5px; bottom: 5px; left: 0; width: var(--tw, 0); border-radius: 999px; background: var(--white); transform: translate3d(var(--tx, 0), 0, 0); transition: transform .6s var(--ease-out), width .6s var(--ease-out); }
.duration button { position: relative; background: none; border: 0; color: var(--muted); font: 550 .92rem/1.15 var(--sans); padding: 11px 20px; border-radius: 999px; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; gap: 1px; transition: color .35s; }
.duration button[aria-selected="true"] { color: var(--bg); }
.duration small { font: 600 .68rem/1 var(--mono); color: var(--ok); transition: color .35s; }
.duration button[aria-selected="true"] small { color: #0a7a3a; }
.duration--compact { margin: 0; padding: 3px; display: inline-flex; }
.duration--compact a { color: var(--muted); font: 550 .85rem/1 var(--sans); padding: 8px 13px; border-radius: 999px; text-decoration: none; transition: background-color .3s, color .3s; }
.duration--compact a:hover { color: var(--text); }
.duration--compact a.is-on { background: var(--white); color: var(--bg); }
@media (max-width: 600px) { .duration { display: flex; width: 100%; } .duration button { flex: 1; padding: 10px 4px; font-size: .8rem; } }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { --mx: 50%; --my: 0%; position: relative; isolation: isolate; display: flex; flex-direction: column; padding: clamp(26px, 3vw, 42px); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .6s var(--ease-out), border-color .4s; }
.plan::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .5s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .09), transparent 60%); }
.plan:hover { transform: translateY(-6px); border-color: var(--line-2); }
.plan:hover::before { opacity: 1; }
.plan--featured { background: rgba(255, 255, 255, .06); border-color: transparent; }
.plan--featured::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--a), #ff3b3b, #ffe600, #1ee45a, #00e5ff, #2a4bff, #ff2bd6, #ff3b3b); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: spin 6s linear infinite; }
@keyframes spin { to { --a: 360deg; } }
.plan__badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--white); color: var(--bg); font: 600 .72rem/1 var(--mono); padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font: 700 2rem/1 var(--display); letter-spacing: -.045em; margin: 0 0 .3em; }
.plan__tag { color: var(--muted); min-height: 3em; margin-bottom: 18px; }
.plan__price { margin: 0 0 18px; min-height: 118px; }
.plan__priceopt:not([hidden]) { animation: priceIn .6s var(--ease-out) both; }
@keyframes priceIn { from { opacity: 0; transform: translate3d(0, 10px, 0); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.plan__priceopt strong { font: 700 clamp(3.2rem, 5vw, 4.8rem)/1 var(--display); letter-spacing: -.045em; font-variation-settings: "opsz" 36, "wdth" 92; }
.plan__priceopt span { color: var(--muted); margin-left: 4px; }
.plan__priceopt small { display: block; color: var(--faint); font-size: .86rem; margin-top: 8px; }
.plan__conn { font-size: .95rem; padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 20px; }
.plan__conn b { font: 700 1.6rem/1 var(--display); letter-spacing: -.04em; margin-right: .25em; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.ticks li { padding-left: 28px; position: relative; font-size: .96rem; color: #cfd3df; }
.ticks li::before { content: ""; position: absolute; left: 1px; top: .38em; width: 14px; height: 7px; border-left: 1.8px solid var(--ok); border-bottom: 1.8px solid var(--ok); transform: rotate(-45deg); }
.plan .ticks { flex: 1; }
.pricing__note { margin: 36px 0 0; color: var(--muted); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 500px; } .plan--featured { order: -1; } .plan__tag, .plan__price { min-height: 0; } }

/* ---------- Support chat ---------- */
.support { border-top: 1px solid var(--line); }
.support__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.support__lead { font-size: 1.15rem; color: var(--muted); max-width: 44ch; margin: 1.2em 0 28px; }
.chat { border: 1px solid var(--line-2); border-radius: 32px; background: var(--bg-2); overflow: hidden; box-shadow: 0 50px 100px -40px #000; max-width: 460px; width: 100%; justify-self: center; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.chat__avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #05140b; }
.chat__head b { display: block; font-size: .95rem; line-height: 1.2; }
.chat__head small { color: var(--ok); font-size: .78rem; }
.chat__body { display: grid; gap: 10px; padding: 22px 18px 26px; min-height: 340px; align-content: start; }
.msg { margin: 0; max-width: 82%; padding: 11px 15px; border-radius: 18px; font-size: .95rem; line-height: 1.4; opacity: 0; transform: translate3d(0, 12px, 0) scale(.96); }
.msg--in { justify-self: start; background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--out { justify-self: end; background: var(--white); color: var(--bg); border-bottom-right-radius: 6px; }
.msg--typing { justify-self: start; display: flex; gap: 4px; padding: 14px 16px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px; border-bottom-left-radius: 6px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat.is-in .msg { animation: pop .7s var(--ease-spring) forwards; }
.chat.is-in .msg:nth-child(1) { animation-delay: .5s; } .chat.is-in .msg:nth-child(2) { animation-delay: 1.5s; } .chat.is-in .msg:nth-child(3) { animation-delay: 2.7s; } .chat.is-in .msg:nth-child(4) { animation-delay: 3.8s; } .chat.is-in .msg:nth-child(5) { animation-delay: 5s; }
@keyframes pop { to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .support__grid { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews { border-top: 1px solid var(--line); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { --mx: 50%; --my: 0%; position: relative; isolation: isolate; margin: 0; padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, .025); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 320px; overflow: hidden; }
.quote::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--bars); opacity: .9; }
.quote::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 60%); }
.quote:hover::after { opacity: 1; }
.quote p { font: 600 clamp(1.25rem, 1.8vw, 1.65rem)/1.28 var(--display); letter-spacing: -.035em; font-variation-settings: "opsz" 36, "wdth" 94; margin: 8px 0 0; }
.quote footer { color: var(--muted); font-size: .92rem; }
.quote footer b { color: var(--text); font-weight: 550; }
.quotes__note { margin: 32px 0 0; font: 400 .78rem/1.4 var(--mono); color: var(--faint); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } .quote { min-height: 0; } }

/* ---------- CTA ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(100px, 16vw, 240px) 0 clamp(210px, 28vw, 420px); border-top: 1px solid var(--line); }
.cta__bars { position: absolute; inset: auto 0 0 0; height: clamp(120px, 24vw, 300px); display: flex; z-index: -1; }
.cta__bars i { flex: 1; transform-origin: 50% 100%; animation: vu 4.2s ease-in-out infinite alternate; }
.cta__bars i:nth-child(1) { background: #f4f4f6; animation-delay: -.2s; } .cta__bars i:nth-child(2) { background: #ffe600; animation-delay: -1.4s; } .cta__bars i:nth-child(3) { background: #00e5ff; animation-delay: -2.6s; } .cta__bars i:nth-child(4) { background: #1ee45a; animation-delay: -.8s; } .cta__bars i:nth-child(5) { background: #ff2bd6; animation-delay: -3.3s; } .cta__bars i:nth-child(6) { background: #ff3b3b; animation-delay: -2s; } .cta__bars i:nth-child(7) { background: #2a4bff; animation-delay: -1s; }
@keyframes vu { from { transform: scaleY(.32); } 40% { transform: scaleY(.9); } to { transform: scaleY(.5); } }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 20%, transparent 80%); pointer-events: none; }
.cta__in h2 { font-size: clamp(3.4rem, 13vw, 13rem); line-height: .86; letter-spacing: -.045em; margin: 0 0 .22em; font-weight: 800; font-variation-settings: "opsz" 36, "wdth" 90; }
.cta__in p { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 44ch; margin: 0 0 32px; }
.cta .btn--ghost { background: rgba(5, 6, 10, .6); }

/* ---------- Forms ---------- */
.form fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.form legend { font: 700 1.6rem/1.1 var(--display); letter-spacing: -.04em; margin-bottom: 18px; padding: 0; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 550; font-size: .88rem; margin-bottom: 8px; }
.field small { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text); padding: 15px 16px; font: inherit; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--white); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px rgba(255, 255, 255, .1); }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { resize: vertical; min-height: 120px; }
.field em, .field__err { display: block; color: var(--err); font-style: normal; font-size: .86rem; margin-top: 6px; }
.field--error input, .field--error textarea { border-color: var(--err); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.hp { position: absolute; left: -9999px; }
.choices { display: grid; gap: 12px; }
.choice { position: relative; display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px; cursor: pointer; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.choice:hover { border-color: rgba(255, 255, 255, .4); }
.choice:has(input:checked) { border-color: var(--white); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px var(--white); }
.choice input, .check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--line-2); border-radius: 50%; display: grid; place-content: center; cursor: pointer; transition: border-color .3s, background-color .3s; }
.check input { border-radius: 6px; }
.choice input::before, .check input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); transform: scale(0); transition: transform .35s var(--ease-spring); }
.check input::before { border-radius: 2px; }
.choice input:checked, .check input:checked { background: var(--white); border-color: var(--white); }
.choice input:checked::before, .check input:checked::before { transform: scale(1); }
.choice small { display: block; color: var(--muted); margin-top: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 20px; font-size: .94rem; color: var(--muted); }
.notice { border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 18px; border: 1px solid; font-size: .95rem; }
.notice--error { background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .4); color: #ffc2c2; }
.notice--warn { background: rgba(255, 210, 63, .08); border-color: rgba(255, 210, 63, .4); color: #ffe69a; }
.notice--ok { background: rgba(78, 224, 138, .08); border-color: rgba(78, 224, 138, .4); color: #b9f2d0; }

/* ---------- Cards & page layouts ---------- */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 38px); margin-bottom: 20px; }
.card h2, .card h3 { margin-top: 0; }
.card h2 { font: 700 1.8rem/1.05 var(--display); letter-spacing: -.045em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.contactlist { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 0; }
.contactlist li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.contactlist li:last-child { border-bottom: 1px solid var(--line); }
.contactlist li > span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 14px; flex: none; }
.contactlist strong { display: block; font-weight: 550; }
.done { text-align: center; margin-bottom: 28px; }
.done__icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); color: var(--bg); animation: popin .9s var(--ease-spring) both; }
@keyframes popin { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.done h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); }

.checkout { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.checkout__summary { position: sticky; top: 100px; margin: 0; }
.summary__plan { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.summary__plan strong { font: 700 1.6rem/1 var(--display); letter-spacing: -.04em; }
.summary__plan span { color: var(--muted); font-size: .9rem; }
.summary__dur { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: .9rem; }
.checkout .duration--compact { background: rgba(255, 255, 255, .06); border: 0; }
.summary__lines { margin: 0 0 14px; display: grid; gap: 8px; }
.summary__lines div { display: flex; justify-content: space-between; gap: 12px; }
.summary__lines dt { color: var(--muted); } .summary__lines dd { margin: 0; font-weight: 550; }
.summary__save dd { color: var(--ok); }
.summary__total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.summary__total dt { color: var(--text) !important; font-weight: 600; }
.summary__total dd { font: 700 2.2rem/1 var(--display); letter-spacing: -.05em; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .checkout__summary { position: static; order: -1; } }

.order__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.ref { display: block; font: 500 1.6rem/1.2 var(--mono); letter-spacing: .02em; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font: 500 .78rem/1 var(--mono); background: rgba(255, 255, 255, .08); color: var(--muted); }
.pill--paid, .pill--active { background: rgba(78, 224, 138, .14); color: var(--ok); }
.pill--pending { background: rgba(255, 210, 63, .14); color: var(--warn); }
.pill--cancelled, .pill--refunded, .pill--expired { background: rgba(255, 107, 107, .14); color: var(--err); }
.kv { margin: 0 0 20px; display: grid; }
.kv div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.kv--bank { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 18px; }
.kv--bank div:last-child { border-bottom: 0; }
.kv--bank code { cursor: copy; transition: background-color .3s, color .3s; }
.kv--bank code:hover { background: var(--white); color: var(--bg); }
@media (max-width: 520px) { .kv div { grid-template-columns: 1fr; gap: 0; } }

.faq__group { font: 700 1.8rem/1.1 var(--display); letter-spacing: -.045em; margin: 56px 0 14px; }
.faq { margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq__item summary { cursor: pointer; font-weight: 500; font-size: 1.05rem; padding: 22px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: color .3s; }
.faq__item summary:hover { color: #fff; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(#fff, #fff) center / 100% 1.5px no-repeat, linear-gradient(#fff, #fff) center / 1.5px 100% no-repeat; transition: transform .5s var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__item p { color: var(--muted); margin: 0 0 24px; max-width: 64ch; }
.faq__item::details-content { height: 0; overflow: clip; transition: height .5s var(--ease-out), content-visibility .5s allow-discrete; }
.faq__item[open]::details-content { height: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 40px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; color: var(--text); font-size: .9rem; font-weight: 500; text-decoration: none; transition: border-color .3s, background-color .3s, transform .4s var(--ease-out); }
.chips a:hover { border-color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.guide { scroll-margin-top: 96px; }
.guide h2 { font-size: 1.8rem; display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.guide__steps { list-style: none; counter-reset: g; padding: 0; margin: 0; }
.guide__steps li { counter-increment: g; position: relative; padding: 16px 0 16px 52px; border-top: 1px solid var(--line); color: var(--muted); }
.guide__steps li::before { content: counter(g); position: absolute; left: 0; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font: 500 .82rem/1 var(--mono); color: var(--text); }
.legal h2 { font: 700 1.5rem/1.15 var(--display); letter-spacing: -.04em; margin-top: 38px; }
.legal p, .legal li { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--bg); padding: 0 0 24px; overflow: hidden; }
.spectrum { height: 8px; background: var(--bars); margin-bottom: clamp(56px, 8vw, 110px); }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-bottom: clamp(24px, 5vw, 64px); }
.footer__big { font: 800 clamp(2.2rem, 4.4vw, 4rem)/.95 var(--display); letter-spacing: -.04em; font-variation-settings: "opsz" 36, "wdth" 92; margin: 0 0 16px; }
.footer__blurb { color: var(--muted); max-width: 40ch; margin: 0; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer h4 { margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--text); padding: 5px 0; font-size: .95rem; text-decoration: none; transition: color .3s, transform .5s var(--ease-out); }
.footer__cols a:hover { color: #fff; transform: translateX(4px); text-decoration: underline; }
.footer__mark { font: 800 clamp(4rem, 19.5vw, 20rem)/.8 var(--display); letter-spacing: -.05em; font-variation-settings: "opsz" 36, "wdth" 90; white-space: nowrap; user-select: none; color: rgba(255, 255, 255, .06); margin: 0 0 28px -.04em; padding-bottom: .08em; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: .82rem; border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .ticker__track, .cta__bars i { animation: none; }
  .msg { opacity: 1; transform: none; }
  .scrub__fill { transform: scaleX(1); } .scrub__steps li { opacity: 1; transform: none; }
}
