/* BuildWithNik · Product Launch — product landing. Tokens first. */
:root {
  --bg: #e9e9e7;
  --bg-hi: #f3f3f1;
  --paper: #f4f4f2;
  --card: #ffffff;
  --ink: #0f0f0f;
  --ink-2: rgba(15, 15, 15, .62);
  --line: rgba(15, 15, 15, .1);
  --panel: #151515;
  --accent: #ff4a17;
  --accent-ink: #b72d00;
  --vh: 1vh;
  --persp: 2000px;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* timeline geometry, set by page.js */
  --pw: 1310px; --ph: 360px; --px: 65px; --py: 320px; --s: 190px; --pad: 40px; --bh: 64px; --rh: 34px; --trh: 190px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: #fff; padding: 10px 16px; border-radius: 12px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- buttons / pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 14px; font: 500 15px/1 var(--body); letter-spacing: -.01em; border: 1px solid transparent; transition: transform .35s var(--ease), background .25s, box-shadow .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-dark { background: #141414; color: #fff; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); }
.btn-dark:hover { background: #000; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6); }
.btn-light { background: #fff; color: #111; }
.btn-line { border-color: var(--line); background: transparent; }
.btn-line:hover { background: rgba(15, 15, 15, .05); }
.btn-sm { padding: 0 16px; min-height: 44px; border-radius: 12px; }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 18px; border-radius: 18px; }
.eyebrow { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow.center { text-align: center; }

.nav { position: fixed; z-index: 100; inset: 16px 22px auto 22px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.pill { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 18px; background: rgba(244, 244, 242, .74); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid rgba(15, 15, 15, .06); }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 10px; font: 600 19px/1 var(--display); letter-spacing: -.04em; }
.logo i { font-style: normal; color: var(--accent); }
.links { display: flex; }
.links a, .lnk { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 13px; font-size: 14px; color: rgba(15, 15, 15, .78); transition: background .2s, color .2s; }
.links a:hover, .lnk:hover { background: rgba(15, 15, 15, .06); color: #000; }
.more { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 13px; }
.more svg { fill: currentColor; }
.more:hover { background: rgba(15, 15, 15, .06); }
.snd { min-height: 44px; padding: 0 12px; border: 0; background: transparent; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); border-radius: 13px; }
.snd[aria-pressed="true"] { color: var(--ink); }
.snd:hover { background: rgba(15, 15, 15, .06); }
.menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; display: grid; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.menu[hidden] { display: none; }
.menu a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 15px; }
.menu a:hover { background: #f1f1ef; }
.menu-main { display: none; border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 6px; }

/* ---------- pinned hero / dock stage ---------- */
.pin { position: relative; height: calc(var(--vh) * 540); background: radial-gradient(130% 95% at 50% 0%, var(--bg-hi) 0%, var(--bg) 52%, #dddcd8 100%); }
.stage { position: sticky; top: 0; height: calc(var(--vh) * 100); overflow: hidden; perspective: var(--persp); perspective-origin: 50% 50%; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

.hero-copy { position: absolute; left: 0; right: 0; top: calc(var(--vh) * 40); z-index: 2; text-align: center; padding: 0 2.2vw; will-change: transform, opacity; }
.h1 { font: 500 clamp(2.7rem, 7.7vw, 8.4rem)/.94 var(--display); letter-spacing: -.058em; text-wrap: balance; margin: 0 auto; max-width: 16ch; }
.h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .14em; margin-bottom: -.14em; }
.h1 .w > span { display: inline-block; transform: translateY(112%); animation: up 1s var(--ease) forwards; }
.h1 .w:nth-child(1) > span { animation-delay: .25s; } .h1 .w:nth-child(2) > span { animation-delay: .34s; } .h1 .w:nth-child(3) > span { animation-delay: .43s; }
@keyframes up { to { transform: none; } }
.sub { margin: clamp(10px, 1.6vw, 22px) 0 clamp(14px, 1.9vw, 26px); font: 400 clamp(.95rem, 1.35vw, 1.3rem)/1.3 var(--display); letter-spacing: -.02em; opacity: 0; animation: fade .9s .7s var(--ease) forwards; }
.hero-copy .btn { opacity: 0; animation: fade .9s .85s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; translate: -50% 0; display: grid; justify-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--ink-2), transparent); transform-origin: top; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.dock-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(100% - var(--py) + clamp(26px, 4vh, 50px)); text-align: center; opacity: 0; pointer-events: none; padding: 0 20px; }
.dock-copy h2 { margin-top: 12px; font: 500 clamp(2rem, 4.6vw, 4.2rem)/1 var(--display); letter-spacing: -.05em; }
.clip-info { position: absolute; z-index: 2; left: 50%; top: calc(var(--py) + var(--ph) + clamp(18px, 3.4vh, 38px)); width: min(560px, calc(100% - 40px)); translate: -50% 0; text-align: center; opacity: 0; }
.ci-top { display: flex; justify-content: center; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ci-top .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.ci-name { margin-top: 12px; font: 500 clamp(1.4rem, 2.2vw, 2rem)/1.1 var(--display); letter-spacing: -.035em; }
.ci-desc { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); min-height: 44px; }

.timeline { position: absolute; z-index: 3; left: var(--px); top: var(--py); width: var(--pw); height: var(--ph); border-radius: 44px 44px 36px 36px; background: linear-gradient(180deg, #1c1c1c 0%, #121212 100%); color: #fff; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .06) inset; transform-origin: 50% 50%; will-change: transform, opacity; opacity: 0; transform: translate3d(0, 90vh, 0); }
.tl-bar { height: var(--bh); padding: 0 var(--pad); display: flex; align-items: center; gap: 14px; font: 400 13px/1 var(--body); color: #8a8a8a; }
.tl-play { width: 42px; height: 42px; border-radius: 13px; border: 0; background: #363636; color: #e9e9e9; display: grid; place-items: center; transition: background .2s, transform .2s; }
.tl-play:hover { background: #484848; }
.tl-play:active { transform: scale(.94); }
.tl-play svg { fill: currentColor; grid-area: 1/1; }
.tl-play .i-play { display: none; }
.tl-play[aria-pressed="false"] .i-play { display: block; }
.tl-play[aria-pressed="false"] .i-pause { display: none; }
.tl-time { font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }
.tl-time b { color: #f1f1f1; font-weight: 500; }
.tl-div { width: 1px; height: 26px; background: #333; }
.tl-dur { white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tl-dur em { font-style: normal; color: #d8d8d8; background: #2c2c2c; padding: 7px 11px; border-radius: 99px; }
.tl-hint { margin-left: auto; font: 400 12px/1 var(--mono); color: #5d5d5d; white-space: nowrap; }
.tl-ruler { position: relative; height: var(--rh); margin: 0 var(--pad); font: 400 11px/1 var(--body); color: #777; }
.tl-ruler b { position: absolute; top: 3px; font-weight: 400; transform: translateX(-2px); }
.tl-ruler u { position: absolute; bottom: 4px; width: 1px; height: 7px; background: #3a3a3a; }
.tl-ruler u.maj { height: 11px; background: #555; }
.tl-ruler i { position: absolute; bottom: 0; left: 0; width: 9px; height: 9px; margin-left: -4px; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.tl-track { position: relative; margin: 0 var(--pad); height: var(--trh); }
.playhead { position: absolute; left: 0; top: calc(var(--rh) * -1 + 6px); width: 2px; height: calc(var(--rh) - 6px); margin-left: -1px; background: #fff; pointer-events: none; }
.slot { position: absolute; width: var(--s); height: var(--s); padding: 0; border: 0; background: transparent; border-radius: 26%; cursor: pointer; pointer-events: none; will-change: transform; background-size: cover; }
.timeline.live .slot { pointer-events: auto; }
.slot:focus-visible { outline: 3px solid #fff; outline-offset: 7px; border-radius: 30%; }
.nogl .slot { box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

/* ---------- curtain (rest of the page) ---------- */
.curtain { position: relative; z-index: 6; margin-top: calc(var(--vh) * -100); background: var(--paper); border-radius: 44px 44px 0 0; box-shadow: 0 -30px 80px -30px rgba(0, 0, 0, .25); }
section { position: relative; }
.logos, .blocks, .remix, .features, .templates, .pricing { padding: clamp(80px, 11vw, 170px) clamp(20px, 4vw, 56px); }
.head { max-width: 1280px; margin: 0 auto clamp(36px, 5vw, 70px); }
.head.center { text-align: center; }
.head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.head h2, .remix h2, .cta h2 { margin-top: 14px; font: 500 clamp(2.3rem, 5.4vw, 5rem)/.98 var(--display); letter-spacing: -.055em; text-wrap: balance; }
.lede { margin-top: 18px; max-width: 34ch; font: 400 clamp(1.05rem, 1.5vw, 1.35rem)/1.35 var(--display); letter-spacing: -.02em; color: var(--ink-2); }
.head.center .lede { margin-inline: auto; }

.logos { padding-block: clamp(70px, 9vw, 130px) clamp(20px, 3vw, 40px); }
.marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px clamp(28px, 5vw, 70px); margin-top: 34px; font: 600 clamp(1.1rem, 1.9vw, 1.7rem)/1 var(--display); letter-spacing: -.03em; color: rgba(15, 15, 15, .72); }
.marks li:nth-child(2n) { font-style: italic; font-weight: 500; }
.marks li:nth-child(3n) { font-family: var(--mono); font-weight: 500; font-size: .86em; letter-spacing: -.02em; }
.marks li:nth-child(4n) { text-transform: uppercase; letter-spacing: .02em; font-weight: 800; }

.statement { padding: clamp(60px, 9vw, 150px) clamp(20px, 4vw, 56px); }
.big { max-width: 1180px; margin: 0 auto; font: 500 clamp(2rem, 5.2vw, 4.9rem)/1.04 var(--display); letter-spacing: -.05em; text-wrap: balance; }
.big .wd { opacity: .16; transition: opacity .35s linear; }
.big .wd.on { opacity: 1; }

/* block library */
.bgrid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bcard { background: var(--card); border-radius: 28px; padding: 10px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.bcard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.bprev { height: 250px; border-radius: 20px; display: grid; place-items: center; overflow: hidden; position: relative; }
.bt { font: 800 clamp(3.4rem, 5.6vw, 5.6rem)/1 var(--display); letter-spacing: -.06em; }
.bmeta { padding: 18px 12px 12px; }
.bmeta h3 { font: 500 22px/1.1 var(--display); letter-spacing: -.03em; }
.bmeta p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
@property --r { syntax: '<length>'; inherits: false; initial-value: 1.6px; }
[data-fx="inflate"] .bprev { background: #ffd9c9; }
[data-fx="inflate"] .bt { color: #ff5a24; filter: url(#inflate); transition: transform .8s var(--ease); }
[data-fx="inflate"]:hover .bt { transform: scale(1.08); }
[data-fx="glow"] .bprev { background: #0e0e10; }
[data-fx="glow"] .bt { color: #fff; text-shadow: 0 0 6px #fff, 0 0 22px var(--accent), 0 0 54px var(--accent); transition: text-shadow .6s, transform .6s var(--ease); }
[data-fx="glow"]:hover .bt { text-shadow: 0 0 10px #fff, 0 0 38px var(--accent), 0 0 110px var(--accent); transform: scale(1.04); }
[data-fx="focus"] .bprev { background: #dfe4ff; }
[data-fx="focus"] .bt { color: #131313; filter: blur(9px); transition: filter 1s var(--ease); }
[data-fx="focus"]:hover .bt, [data-fx="focus"]:focus-within .bt { filter: blur(0); }
[data-fx="halftone"] .bprev { background: #fff; }
[data-fx="halftone"] .bt { color: #1f2dff; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 var(--r), transparent calc(var(--r) + .6px)); mask-image: radial-gradient(circle at 50% 50%, #000 var(--r), transparent calc(var(--r) + .6px)); -webkit-mask-size: 7px 7px; mask-size: 7px 7px; transition: --r .8s var(--ease); }
[data-fx="halftone"]:hover .bt { --r: 4.4px; }

/* remix demo */
.remix-wrap { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-top: 34px; border-radius: 16px; background: rgba(15, 15, 15, .06); }
.tabs button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: transparent; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: background .25s, color .25s; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.panes { margin-top: 22px; min-height: 270px; }
.pane[hidden] { display: none; }
.dial { display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; gap: 14px; min-height: 52px; font-size: 15px; }
.dial output { font: 400 13px/1 var(--mono); text-align: right; color: var(--ink-2); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--ink) var(--fill, 50%), rgba(15, 15, 15, .14) var(--fill, 50%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(15, 15, 15, .14); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 0, .2); box-shadow: 0 3px 10px rgba(0, 0, 0, .25); transition: transform .2s; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 0, .2); box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.prompt { display: flex; gap: 8px; padding: 6px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.prompt input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; font: 400 15px var(--body); color: var(--ink); min-height: 44px; }
.prompt input:focus-visible { outline: none; }
.prompt:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips button { min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: transparent; font-size: 14px; transition: background .2s; }
.chips button:hover { background: #fff; }
.say { margin-top: 18px; font: 400 14px/1.5 var(--mono); color: var(--ink-2); min-height: 66px; }
.code-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 6px 18px; border-radius: 18px 18px 0 0; background: #1d1d1d; color: #8d8d8d; font: 400 12px/1 var(--mono); }
.ghost { min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: #cfcfcf; border-radius: 12px; font: 500 12px var(--mono); }
.ghost:hover { background: #2b2b2b; }
.code { margin: 0; padding: 18px; background: #141414; color: #d8d8d8; border-radius: 0 0 18px 18px; font: 400 13px/1.7 var(--mono); overflow: auto; min-height: 220px; }
.code .k { color: #ff8a65; } .code .s { color: #b4e08a; } .code .n { color: #7fd0ff; } .code .c { color: #6f6f6f; }
.fx-stage { position: relative; aspect-ratio: 5/4; border-radius: 36px; background: #121212; overflow: hidden; display: grid; place-items: center; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px); background-size: 22px 22px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.fx-text { font: 800 clamp(3.4rem, 8.6vw, 8.2rem)/.95 var(--display); letter-spacing: -.065em; color: #ff5a2c; text-align: center; padding: 0 4%; --glow: 14; --blur: 0; --ht: 0; filter: url(#inflate) drop-shadow(0 0 calc(var(--glow) * 1px) rgba(255, 90, 44, .85)) blur(calc(var(--blur) * 1px)); transition: filter .2s; user-select: none; text-wrap: balance; }
.fx-text.dots { -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 var(--dr, 3px), transparent calc(var(--dr, 3px) + .6px)); mask-image: radial-gradient(circle at 50% 50%, #000 var(--dr, 3px), transparent calc(var(--dr, 3px) + .6px)); -webkit-mask-size: 7px 7px; mask-size: 7px 7px; }
.fx-cap { position: absolute; left: 22px; bottom: 18px; font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #6b6b6b; }

/* features */
.fgrid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard { background: var(--card); border-radius: 28px; padding: 34px; min-height: 290px; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.fcard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .4); }
.fi { width: 52px; height: 52px; border-radius: 16px; background: #f0f0ee; display: grid; place-items: center; margin-bottom: auto; transition: background .3s, color .3s; }
.fcard:hover .fi { background: var(--ink); color: #fff; }
.fi svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fcard h3 { margin-top: 70px; font: 500 28px/1 var(--display); letter-spacing: -.04em; }
.fcard p { margin-top: 10px; max-width: 30ch; color: var(--ink-2); font-size: 15.5px; }

/* templates */
.templates { padding-inline: 0; overflow: hidden; }
.templates .head { padding-inline: clamp(20px, 4vw, 56px); }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; transition: background .2s, transform .3s var(--ease); }
.arrows button:hover { background: var(--ink); color: #fff; transform: scale(1.06); }
.strip { display: flex; gap: 16px; overflow-x: auto; padding: 6px max(clamp(20px, 4vw, 56px), calc((100vw - 1280px) / 2 + 0px)) 30px; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; scroll-padding-inline: clamp(20px, 4vw, 56px); }
.strip::-webkit-scrollbar { display: none; }
.strip.drag { cursor: grabbing; scroll-snap-type: none; }
.tpl { position: relative; flex: 0 0 clamp(240px, 24vw, 320px); aspect-ratio: 9/14; border-radius: 28px; overflow: hidden; background: #cfcfcb; scroll-snap-align: start; isolation: isolate; }
.tpl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); -webkit-user-drag: none; user-select: none; }
.tpl:hover img { transform: scale(1.07); }
.tpl::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, transparent 28%, transparent 52%, rgba(0, 0, 0, .72) 100%); z-index: 1; }
.tpl > * { z-index: 2; }
.tpl .tg { position: absolute; top: 16px; left: 16px; padding: 7px 11px; border-radius: 99px; background: rgba(255, 255, 255, .88); color: #111; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tpl .tm { position: absolute; top: 16px; right: 16px; color: #fff; font: 400 12px/1 var(--mono); }
.tpl .tt { position: absolute; left: 20px; right: 20px; bottom: 20px; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.tpl h3 { font: 500 26px/1 var(--display); letter-spacing: -.04em; }
.tpl .use { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 12px; background: #fff; color: #111; font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); }
.tpl:hover .use, .tpl:focus-within .use, .tpl .use:focus-visible { opacity: 1; transform: none; }

/* pricing */
.billing { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 15px; }
.billing em { font-style: normal; font: 500 11px/1 var(--mono); letter-spacing: .04em; background: var(--accent); color: #fff; padding: 5px 8px; border-radius: 99px; margin-left: 6px; text-transform: uppercase; }
.sw { position: relative; width: 62px; height: 36px; padding: 0; border: 0; border-radius: 99px; background: var(--ink); transition: background .3s; }
.sw i { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .45s var(--ease); }
.sw[aria-checked="true"] i { transform: translateX(26px); }
.plans { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { position: relative; background: var(--card); border-radius: 32px; padding: 38px 34px 34px; display: flex; flex-direction: column; min-height: 520px; transition: transform .5s var(--ease); }
.plan:hover { transform: translateY(-6px); }
.plan.pro { background: #131313; color: #fff; }
.plan h3 { font: 500 26px/1 var(--display); letter-spacing: -.04em; }
.flag { position: absolute; top: 34px; right: 30px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 6px 10px; border-radius: 99px; }
.price { margin-top: 30px; display: flex; align-items: baseline; gap: 8px; }
.price b { font: 500 78px/1 var(--display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.price span { font-size: 14px; color: var(--ink-2); }
.pro .price span, .pro .pd { color: rgba(255, 255, 255, .66); }
.pd { margin-top: 14px; min-height: 66px; color: var(--ink-2); font-size: 15px; }
.plan ul { margin: 22px 0 30px; display: grid; gap: 4px; }
.plan li { display: flex; gap: 10px; min-height: 30px; align-items: center; font-size: 15px; }
.plan li::before { content: ''; width: 16px; height: 16px; flex: none; background: currentColor; opacity: .85; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.500l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.500l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan .btn { margin-top: auto; }
.plan li[hidden] { display: none; }

.cta { margin: 0 clamp(12px, 2vw, 28px); padding: clamp(100px, 14vw, 200px) 24px; text-align: center; border-radius: 44px; background: #111; color: #fff; }
.cta h2 { margin: 0 auto; max-width: 12ch; font-size: clamp(3rem, 8.4vw, 8rem); }
.cta .lede { margin: 22px auto 40px; color: rgba(255, 255, 255, .66); }
.cta .btn-dark { background: #fff; color: #111; box-shadow: none; }
.cta .btn-dark:hover { background: var(--accent); color: #fff; }
.foot { padding: 90px clamp(20px, 4vw, 56px) 40px; }
.foot-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.logo2 { font: 600 34px/1 var(--display); letter-spacing: -.05em; }
.logo2 i { font-style: normal; color: var(--accent); }
.muted { margin-top: 10px; color: var(--ink-2); }
.foot h3 { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.foot nav a { display: flex; align-items: center; min-height: 36px; font-size: 15px; width: fit-content; }
.foot nav a:hover { color: var(--accent-ink); }
.fine { max-width: 1280px; margin: 70px auto 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }

/* scroll reveal (IntersectionObserver adds .in) */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .bcard.rv.in:hover, .js .fcard.rv.in:hover, .js .plan.rv.in:hover { transform: translateY(-6px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .bgrid { grid-template-columns: repeat(2, 1fr); }
  .tl-hint { display: none; }
  .links a { padding: 0 9px; }
}
@media (max-width: 900px) {
  .remix-wrap { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan { min-height: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { inset: 10px 10px auto 10px; }
  .links, .snd, .lnk { display: none; }
  .menu-main { display: grid; }
  .logo { padding-right: 6px; }
  .tl-hint, .tl-div, .tl-dur { display: none; }
  .tl-bar { gap: 12px; }
  .curtain { border-radius: 28px 28px 0 0; }
  .fcard { min-height: 230px; }
  .fcard h3 { margin-top: 40px; }
  .cta { border-radius: 30px; }
}
@media (max-width: 560px) {
  .bgrid, .fgrid { grid-template-columns: 1fr; }
  .bprev { height: 200px; }
  .foot-grid { grid-template-columns: 1fr; }
  .dial { grid-template-columns: 70px 1fr 34px; gap: 8px; }
  .tpl { flex-basis: 74vw; }
  .price b { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h1 .w > span, .sub, .hero-copy .btn { animation: none; transform: none; opacity: 1; }
  .scroll-cue i { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .big .wd { opacity: 1; transition: none; }
  [data-fx] * { transition: none !important; }
}
.playhead::before { content: ''; position: absolute; left: 50%; top: -3px; width: 11px; height: 9px; margin-left: -5.5px; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.narrow .playhead, .narrow .tl-ruler { display: none; }
