/* Kliply site redesign prototype — direction: "Telestrator".
   The page borrows from broadcast instant replay: condensed scoreboard type, timecodes,
   and hand-drawn marker notes on top of real screenshots. Colors come from the app (Theme.swift). */

:root {
  --bg: #0E0E12; --side: #15151B; --panel: #1B1B22; --card: #22222B; --hover: #2A2A35; --line: #2D2D39;
  --accent: #FF5A1F; --accent-d: #D9440F; --on-accent: #111114;
  --text: #EDEDF2; --muted: #A0A0AE; --dim: #6C6C7A;
  --gold: #FFC53D; --violet: #8B7CFF; --live: #FF3B3B; --good: #33D17A;
  --paper: #F1ECDF; --ink: #111114;
  --grad: none;
  /* No web fonts: every face below ships with macOS / iOS; Windows and Android get close relatives. */
  --display: "DIN Condensed", "Bahnschrift", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --hand: "Bradley Hand", "Ink Free", "Segoe Print", cursive;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .4s; }
body::before { content: ""; position: fixed; inset: 0; background: var(--grad); opacity: .6; pointer-events: none; z-index: -1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(18px, 4vw, 40px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.f { fill: currentColor; stroke: none; }

/* ---------- Type ---------- */
h1, h2, .num { font-family: var(--display); font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: .005em; }
h2 { font-size: clamp(42px, 6.2vw, 80px); line-height: .9; margin: 0; }
h3 { font-size: 22px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
.kick { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.kick::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.sub { color: var(--muted); margin: 0; max-width: 46ch; }
section { padding-block: clamp(56px, 8vw, 112px); position: relative; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Marker ink (the telestrator) ---------- */
.ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ink path { fill: none; stroke: var(--gold); stroke-width: 3.5px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.in .ink path, .ink.in path { animation: draw .55s cubic-bezier(.6, .1, .3, 1) forwards; animation-delay: calc(var(--i, 0) * .22s + .15s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.note { position: absolute; font: 700 clamp(11px, 2.25cqw, 21px)/1.15 var(--hand); color: var(--gold); transform: rotate(var(--r, -3deg)); opacity: 0; white-space: pre-line; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); pointer-events: none; }
.in .note { animation: fade .4s forwards; animation-delay: calc(var(--i, 0) * .22s + .45s); }
@keyframes fade { to { opacity: 1; } }
.tele { position: relative; white-space: nowrap; }
.tele .ink { left: -5%; top: -6%; width: 110%; height: 112%; }
.tele .ink path { stroke-width: 5px; }

/* ---------- Buttons, keys, switches ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 15px/1 var(--body); padding: 14px 20px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s, background-color .15s, border-color .15s; }
.btn.solid { background: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-d); }
.btn.solid:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--accent-d); }
.btn.solid:active { transform: translateY(3px); box-shadow: 0 0 0 var(--accent-d); }
.btn.line { border-color: var(--line); background: var(--side); }
.btn.line:hover { border-color: var(--muted); }
.btn.lg { font-size: 17px; padding: 17px 24px; border-radius: 12px; }
.btn.sm { font-size: 13px; padding: 9px 14px; border-radius: 8px; box-shadow: 0 2px 0 var(--accent-d); }
.btn .i { font-size: 18px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
kbd { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px; background: #F4F4F6; color: #111; font: 700 14px/1 var(--body); box-shadow: 0 3px 0 #B9B9C2; transition: transform .08s, box-shadow .08s; }
kbd.down, .keys:active kbd { transform: translateY(3px); box-shadow: 0 0 0 #B9B9C2; }
kbd.s { min-width: 22px; height: 22px; font-size: 11px; border-radius: 5px; box-shadow: 0 2px 0 #B9B9C2; padding: 0 5px; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 11px; border-radius: 6px; font: 600 12px/1 var(--mono); color: var(--muted); cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: var(--hover); position: relative; margin: 0; cursor: pointer; transition: background-color .15s; flex: none; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s cubic-bezier(.3, 1.4, .5, 1); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
.badge { display: inline-flex; align-items: center; gap: 4px; font: 800 10px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px 4px 5px; border-radius: 5px; background: #3B3B4A; color: #fff; white-space: nowrap; }
.badge .i { font-size: 11px; }
.badge.basic { background: var(--violet); }
.badge.medium { background: var(--accent); color: var(--on-accent); }
.badge.epic { background: var(--gold); color: #111; }
.pill { font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.pill.pro { border-color: var(--accent); color: var(--accent); }

/* ---------- Black Friday strip ---------- */
.bf { background: var(--paper); color: var(--ink); font-size: 14.5px; position: relative; z-index: 31; }
.bf .wrap { display: flex; align-items: center; gap: 14px; min-height: 46px; padding-block: 7px; }
.bf-tag { font: 700 17px/1 var(--display); font-stretch: 75%; letter-spacing: .07em; background: var(--ink); color: var(--paper); padding: 8px 9px 4px; border-radius: 3px; transform: rotate(-2.5deg); white-space: nowrap; }
.bf-msg { min-width: 0; }
.bf-msg b { font-weight: 800; }
.bf-msg .now { font: 700 22px/1 var(--display); font-stretch: 75%; vertical-align: -2px; margin-left: 2px; }
.bf-go { margin-left: auto; font-weight: 800; text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--ink); padding-bottom: 1px; }
.bf-go:hover { border-color: var(--accent-d); color: var(--accent-d); }
.bf-x { border: 0; background: none; cursor: pointer; font-size: 13px; padding: 6px 8px; border-radius: 6px; color: #5B574D; }
.bf-x:hover { background: rgba(0, 0, 0, .08); color: var(--ink); }
.bf :focus-visible { outline-color: var(--ink); }
.was { position: relative; text-decoration: none; white-space: nowrap; color: #6A665B; }
.was .ink { left: -8%; width: 116%; }
.bf .was .ink path { stroke: #E0391B; stroke-width: 2.5px; }
@media (max-width: 720px) { .bf { font-size: 13px; } .bf .long { display: none; } .bf-tag { font-size: 14px; } }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { display: block; font: 800 15px/1 var(--body); letter-spacing: .1em; }
.brand i { display: block; font: 700 9px/1 var(--body); letter-spacing: .24em; color: var(--accent); font-style: normal; margin-top: 4px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 0; position: relative; }
.nav a:hover, .nav a.on { color: var(--text); }
.nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.scrub { position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; }
.scrub i { display: block; height: 100%; width: 0; background: var(--accent); }
@media (max-width: 760px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 4.5vw, 56px) clamp(48px, 7vw, 96px); }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--live); animation: rec 1.6s infinite; flex: none; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 59, 59, 0); } }
h1 { font-size: clamp(58px, 9.9vw, 122px); line-height: .84; margin: 0 0 clamp(24px, 3.4vw, 44px); }
h1 .l { display: inline; }
@media (max-width: 640px) { h1 { font-size: 17.5vw; } h1 .l { display: block; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); margin: 0 0 26px; }
.lead b { color: var(--text); font-weight: 600; }
.cta-meta { font: 500 12px/1.5 var(--mono); color: var(--dim); margin: 14px 0 0; letter-spacing: .02em; }
.fine { font-size: 13px; color: var(--dim); margin: 20px 0 0; }
.tag-price { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 14px 9px 20px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 4px 8px 8px 4px; position: relative; transform: rotate(-1.5deg); transform-origin: left center; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.tag-price::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--bg); }
.tag-price:hover { transform: rotate(1deg) scale(1.03); }
.tag-price .now { font: 700 24px/1 var(--display); font-stretch: 75%; vertical-align: -3px; }
.tag-price .was .ink path { stroke: #E0391B; stroke-width: 2.5px; }

/* ---------- Demo match ---------- */
.demo { background: var(--side); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8); position: relative; }
.demo-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); font: 500 11px/1 var(--mono); color: var(--dim); letter-spacing: .03em; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }
.demo-bar .live { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 700; letter-spacing: .1em; }
.demo-screen { position: relative; aspect-ratio: 16 / 10; background: #08080B; overflow: hidden; }
.demo-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.feed { position: absolute; left: 12px; bottom: 10px; font: 600 11px/1.55 var(--mono); pointer-events: none; }
.feed p { margin: 0; color: var(--dim); animation: feed 4.2s forwards; }
.feed b.a { color: var(--accent); } .feed b.f { color: #C9CCD6; } .feed b.me { color: #fff; }
@keyframes feed { 0% { opacity: 0; transform: translateX(-6px); } 6%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.toast { position: absolute; right: 12px; top: 12px; display: flex; gap: 10px; align-items: center; background: color-mix(in srgb, var(--panel) 96%, transparent); border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px 8px 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, .55); transform: translateX(calc(100% + 20px)); transition: transform .4s cubic-bezier(.2, .9, .2, 1); max-width: calc(100% - 24px); }
.toast.in { transform: none; }
.toast .ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 18px; flex: none; }
.toast.epic .ico { background: var(--gold); color: #111; } .toast.basic .ico { background: var(--violet); color: #fff; }
.toast b { display: block; font-size: 13px; line-height: 1.25; } .toast small { color: var(--muted); font-size: 11.5px; }
.rp { position: absolute; inset: 0; pointer-events: none; }
.rp-top { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.rp-tag { font: 700 15px/1 var(--display); font-stretch: 75%; letter-spacing: .1em; background: var(--gold); color: #111; padding: 6px 8px 3px; border-radius: 3px; }
.rp-live { position: absolute; right: 12px; top: 10px; pointer-events: auto; border: 1px solid var(--line); background: rgba(14, 14, 18, .85); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.rp-live:hover { border-color: var(--text); }
.rp-foot { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; align-items: center; gap: 10px; font: 600 11px/1 var(--mono); color: var(--text); }
.rp-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.rp-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.tape { height: 50px; border-top: 1px solid var(--line); background: var(--bg); position: relative; }
.tape canvas { width: 100%; height: 100%; display: block; }
.demo-ctl { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 14px; border-top: 1px solid var(--line); }
.keys { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); padding: 8px 14px 10px 10px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 14px; transition: border-color .15s; }
.keys:hover { border-color: var(--accent); }
.keys span { margin-left: 6px; display: inline-flex; align-items: center; gap: 7px; }
.keys .i { font-size: 16px; color: var(--accent); }
.ctl-l { font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.hint { font: 700 19px/1 var(--hand); color: var(--gold); transform: rotate(-4deg); margin-left: auto; white-space: nowrap; }
@media (max-width: 560px) { .hint { display: none; } }
.tray { display: flex; gap: 10px; padding: 0 14px 14px; overflow-x: auto; scrollbar-width: none; min-height: 132px; }
.tray::-webkit-scrollbar { display: none; }
.tray-empty { flex: 1; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; text-align: center; color: var(--dim); font-size: 13px; padding: 16px; }
.clip { flex: 0 0 158px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; transition: border-color .15s, transform .15s; }
.clip:hover { border-color: var(--muted); transform: translateY(-2px); }
.clip.new { animation: land .5s cubic-bezier(.2, 1.3, .4, 1); }
.clip.playing { border-color: var(--gold); }
@keyframes land { 0% { transform: translateY(-26px) scale(.86); opacity: 0; box-shadow: 0 0 0 3px var(--accent); } 100% { transform: none; opacity: 1; box-shadow: 0 0 0 0 transparent; } }
.clip .th { position: relative; aspect-ratio: 16 / 10; background: #08080B center / cover; }
.clip .th .badge { position: absolute; left: 6px; top: 6px; }
.clip .th .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .78); font: 700 10.5px/1 var(--mono); padding: 3px 5px; border-radius: 4px; }
.clip b { display: block; font-size: 12.5px; padding: 7px 9px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip small { display: block; padding: 1px 9px 8px; color: var(--muted); font-size: 11px; }
.demo-start { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 8, 11, .7); z-index: 2; }

/* ---------- Spec strip ---------- */
.strip { border-block: 1px solid var(--line); padding-block: 0; }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.strip li { padding: 22px 20px 20px; border-left: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.strip li:first-child { border-left: 0; padding-left: 0; }
.strip .num { display: block; font-size: 44px; line-height: 1; color: var(--text); margin-bottom: 6px; }
.strip .num small { font-size: 20px; color: var(--muted); margin-left: 4px; }
@media (max-width: 820px) { .strip ul { grid-template-columns: 1fr 1fr; } .strip li:nth-child(3) { border-left: 0; padding-left: 0; } .strip li:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Tour ---------- */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 18px; margin-bottom: 26px; }
.tabs button { text-align: left; border: 0; border-top: 2px solid var(--line); background: none; padding: 14px 0 6px; cursor: pointer; color: var(--muted); transition: color .15s, border-color .15s; position: relative; }
.tabs button i { font: 600 11px/1 var(--mono); letter-spacing: .1em; font-style: normal; color: var(--dim); }
.tabs button b { display: block; font: 700 clamp(24px, 2.6vw, 34px)/1 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; margin: 8px 0 2px; }
.tabs button span { font-size: 13px; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--accent); }
.tabs button[aria-selected="true"] i { color: var(--accent); }
@media (max-width: 760px) { .tabs { grid-template-columns: repeat(4, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; } .tabs button span { display: none; } }
.panel { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 940px) { .panel { grid-template-columns: 1fr; } }
.shot { margin: 0; position: relative; border-radius: 12px; border: 1px solid var(--line); background: #0E0E12; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); container-type: inline-size; }
.shot > img { width: 100%; border-radius: 11px; }
.shot .dots { position: absolute; left: 1.4%; top: 2.1%; }
.shot .dots i { width: 9px; height: 9px; }
.side p { color: var(--muted); margin: 0 0 12px; }
.side p code, .steps code, .brew code { font: 600 .88em var(--mono); background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--text); }
.w { background: var(--side); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 20px; }
.w-l { font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim) !important; margin: 0 0 12px !important; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.w-out { font-size: 14px; margin: 12px 0 0 !important; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.w-out b { color: var(--text); font-family: var(--mono); }
.len-bar { height: 26px; border-radius: 6px; margin-bottom: 12px; position: relative; overflow: hidden; background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(255, 255, 255, .05) 5px 6px); border: 1px solid var(--line); }
.len-bar i { position: absolute; right: 0; top: 0; bottom: 0; width: 36%; background: color-mix(in srgb, var(--accent) 26%, transparent); border-left: 2px solid var(--accent); transition: width .35s cubic-bezier(.3, 1.2, .4, 1); }
.len-bar::after { content: "NOW"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 700 9px/1 var(--mono); letter-spacing: .1em; color: var(--text); }
.tiers { display: grid; gap: 8px; margin: 12px 0; }
.tiers .switch { justify-content: space-between; }
.moments { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.moments li { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; transition: opacity .2s; }
.moments li em { margin-left: auto; font: 600 10.5px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--good); }
.moments li.off { opacity: .42; } .moments li.off em { color: var(--dim); } .moments li.off b { text-decoration: line-through; }
.moments li b { font-weight: 600; }
.deck { position: relative; height: 218px; margin-bottom: 12px; }
.deck .card { position: absolute; left: 0; right: 0; top: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .28s cubic-bezier(.3, 1, .4, 1), opacity .28s; transform-origin: 50% 100%; }
.deck .card img { width: 100%; aspect-ratio: 305 / 171; object-fit: cover; }
.deck .card p { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 9px 10px; font-size: 13px; font-weight: 700; color: var(--text) !important; }
.deck .card:nth-child(2) { transform: translateY(8px) scale(.955); opacity: .7; z-index: -1; }
.deck .card:nth-child(n+3) { transform: translateY(16px) scale(.91); opacity: .4; z-index: -2; }
.deck .card.keep { transform: translateX(70%) rotate(9deg); opacity: 0; box-shadow: 0 0 0 2px var(--good); }
.deck .card.del { transform: translateY(46%) rotate(-7deg) scale(.8); opacity: 0; box-shadow: 0 0 0 2px var(--live); }
.deck-end { position: absolute; inset: 0; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-content: center; text-align: center; gap: 10px; padding: 16px; }
.deck-end p { margin: 0 !important; font-size: 14px; }
.deck-ctl { display: flex; gap: 8px; align-items: center; }
.deck-ctl button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 10px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 700; font-size: 13.5px; }
.deck-ctl .d:hover { border-color: var(--live); color: var(--live); } .deck-ctl .k:hover { border-color: var(--good); color: var(--good); }
.score { display: flex; gap: 14px; font: 600 12px/1 var(--mono); }
.score .k { color: var(--good); } .score .d { color: var(--live); }
.fr-stage { height: 186px; background: #08080B; border-radius: 9px; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; }
.fr { height: 168px; width: 298px; max-width: 100%; position: relative; overflow: hidden; border-radius: 5px; transition: width .4s cubic-bezier(.3, 1.2, .4, 1); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.fr img { position: absolute; }
.fr .bgi { inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(12px) brightness(.65); max-width: none; }
.fr .fgi { inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fr.crop .fgi { object-fit: cover; } .fr.crop .bgi { display: none; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.w hr { border: 0; border-top: 1px dashed var(--line); margin: 16px 0; }
.sh-bar { height: 8px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); position: relative; margin: 12px 0 10px; }
.sh-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 99%; background: var(--muted); border-radius: 8px; transition: width .9s cubic-bezier(.5, 0, .2, 1), background-color .3s; }
.sh-bar em { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--gold); left: 33.3%; transition: left .3s; }
.sh-bar.fit i { background: var(--good); }

/* ---------- Quiet in the background ---------- */
.quiet-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 880px) { .quiet-grid { grid-template-columns: 1fr; } }
.lanes { background: var(--side); border: 1px solid var(--line); border-radius: 14px; padding: 8px 18px; }
.lane { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lane:last-child { border-bottom: 0; }
.lane b { font: 700 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.lane b small { display: block; color: var(--dim); font-weight: 500; letter-spacing: .02em; text-transform: none; margin-top: 3px; }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; overflow: hidden; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--c, var(--accent)); height: calc(var(--h) * 1%); animation: wave calc(var(--d) * 1s) ease-in-out infinite alternate; transform-origin: center; }
@keyframes wave { to { transform: scaleY(.25); } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.facts div { padding: 22px 0 22px 24px; border-left: 1px solid var(--line); }
.facts div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 0; }
.facts div:nth-child(odd) { padding-left: 0; border-left: 0; padding-right: 24px; }
.facts .num { font-size: clamp(54px, 6vw, 84px); line-height: .9; display: block; }
.facts .num small { font-size: .38em; color: var(--muted); margin-left: 6px; }
.facts p { color: var(--muted); margin: 8px 0 0; font-size: 14.5px; }

/* ---------- Themes ---------- */
.themes { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--side) 60%, transparent); }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 880px) { .swatches { grid-template-columns: repeat(2, 1fr); } }
.swatch { border: 1px solid var(--line); background: none; border-radius: 12px; padding: 6px 6px 10px; cursor: pointer; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: transform .15s, border-color .15s, color .15s; }
.swatch:hover { transform: translateY(-3px); color: var(--text); }
.swatch[aria-pressed="true"] { border-color: var(--sa); color: var(--text); box-shadow: 0 0 0 1px var(--sa); }
.swatch .pv { display: block; height: 64px; border-radius: 8px; background: var(--sg); position: relative; margin-bottom: 9px; overflow: hidden; }
.swatch .pv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 18%; background: var(--ss); }
.swatch .pv::after { content: ""; position: absolute; left: 28%; bottom: 12px; width: 34%; height: 9px; border-radius: 9px; background: var(--sa); }
.swatch span { padding-left: 4px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.free { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.free h3 { display: flex; align-items: baseline; gap: 12px; font: 700 34px/1 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; }
.free h3 small { font: 500 13px var(--mono); color: var(--muted); letter-spacing: 0; text-transform: none; }
.list { list-style: none; margin: 14px 0 20px; padding: 0; font-size: 14.5px; color: var(--muted); }
.list li { padding: 5px 0 5px 26px; position: relative; }
.list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 11px; height: 6px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.list li.no { color: var(--dim); }
.list li.no::before { border: 0; width: 10px; height: 2px; top: 15px; background: var(--dim); transform: none; }
.ticket { background: var(--side); border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 16px; position: relative; }
.ticket-top { padding: 26px clamp(20px, 3vw, 34px) 22px; }
.ticket-top h3 { font: 700 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 20px; }
.price { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.price .old { font: 700 clamp(40px, 5vw, 58px)/1 var(--display); font-stretch: 75%; color: var(--muted); padding-bottom: 8px; }
.price .old .ink { left: -10%; width: 120%; top: -10%; height: 120%; }
.price .old .ink path { stroke-width: 5px; }
.price .new { font: 700 clamp(104px, 14vw, 168px)/.74 var(--display); font-stretch: 75%; letter-spacing: -.01em; padding-top: 16px; }
.price .new sup { font-size: .42em; vertical-align: .82em; margin-right: 4px; color: var(--accent); }
.price .terms { font: 500 12.5px/1.5 var(--mono); color: var(--muted); padding-bottom: 10px; }
.price .terms b { color: var(--text); display: block; }
.sticker { position: absolute; right: clamp(12px, 3vw, 30px); top: -34px; width: 124px; height: 124px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-content: center; text-align: center; transform: rotate(11deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); transition: transform .35s cubic-bezier(.3, 1.8, .5, 1); cursor: default; }
.sticker::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px dashed rgba(17, 17, 20, .45); }
.sticker:hover { transform: rotate(-6deg) scale(1.06); }
.sticker b { font: 700 46px/.8 var(--display); font-stretch: 75%; display: block; margin-top: 6px; }
.sticker span { font: 700 10px/1.15 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 560px) { .sticker { width: 96px; height: 96px; top: -30px; } .sticker b { font-size: 34px; } .sticker span { font-size: 8.5px; } }
.cut { display: flex; align-items: center; gap: 8px; color: var(--dim); padding-inline: 14px; }
.cut::after { content: ""; flex: 1; border-top: 2px dashed var(--line); }
.cut .i { font-size: 16px; transform: rotate(-90deg) scaleX(-1); }
.ticket-body { padding: 18px clamp(20px, 3vw, 34px) 28px; }
.ticket-body .list { columns: 2; column-gap: 28px; margin-top: 0; }
.ticket-body .list li { break-inside: avoid; color: var(--text); }
@media (max-width: 560px) { .ticket-body .list { columns: 1; } }
.ticket-body .btn { width: 100%; }
.smallprint { font-size: 12.5px; color: var(--dim); margin: 14px 0 0; }
.smallprint b { color: var(--muted); font-weight: 600; }

/* ---------- Install ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 20px 22px 0 0; color: var(--muted); font-size: 14.5px; position: relative; }
.steps li::before { content: "0" counter(s); display: block; font: 700 54px/1 var(--display); font-stretch: 75%; color: var(--text); margin-bottom: 10px; }
.steps li::after { content: ""; position: absolute; left: 0; top: -1px; width: 44px; height: 2px; background: var(--accent); }
.steps b { color: var(--text); display: block; font-size: 16px; margin-bottom: 4px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; gap: 10px 0; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.brew { margin-top: 36px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.brew code { padding: 9px 12px; font-size: 13px; }
.copy { border: 1px solid var(--line); background: var(--side); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px; font-weight: 700; display: inline-flex; gap: 7px; align-items: center; }
.copy:hover { border-color: var(--muted); } .copy.ok { border-color: var(--good); color: var(--good); }

/* ---------- Reviews ---------- */
.rv-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .rv-grid { grid-template-columns: 1fr; } }
.rating { display: flex; align-items: flex-end; gap: 14px; margin: 26px 0 30px; }
.rating .num { font-size: 96px; line-height: .78; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 18px; }
.stars .off { color: var(--line); }
.rating p { margin: 0; color: var(--muted); font-size: 14px; }
.rv-list { border-top: 1px solid var(--line); }
.rv { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rv blockquote { margin: 0 0 12px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; }
.rv figcaption { display: flex; align-items: center; gap: 12px; font: 500 12px/1 var(--mono); color: var(--muted); flex-wrap: wrap; }
.rv figcaption b { color: var(--text); font-weight: 700; }
.rv figcaption .stars { font-size: 12px; margin-left: auto; }
.rv-form { background: var(--side); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 12px; }
.rv-form h3 { font-size: 17px; margin: 0; }
.rv-form input, .rv-form textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; font: inherit; font-size: 15px; resize: vertical; }
.rv-form input:focus, .rv-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.stars-input { display: flex; gap: 2px; }
.stars-input button { background: none; border: 0; padding: 0 2px; font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; transition: color .1s, transform .1s; }
.stars-input button.on { color: var(--gold); }
.stars-input button:hover { transform: scale(1.15) rotate(-6deg); }
.rv-note { margin: 0; font-size: 12px; color: var(--dim); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; } }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 18px 40px 18px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0 0 20px; max-width: 62ch; }

/* ---------- Closing + footer ---------- */
.closing { border-top: 1px solid var(--line); text-align: left; }
.closing .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(54px, 9vw, 132px); }
footer { border-top: 1px solid var(--line); padding-block: 28px 44px; color: var(--dim); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
footer a:hover { color: var(--text); }
footer .legal { flex-basis: 100%; margin: 8px 0 0; font-size: 12px; max-width: 110ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ink path { stroke-dashoffset: 0; animation: none !important; }
  .note { opacity: 1; animation: none !important; }
  .wave i, .rec { animation: none; }
  .feed p { animation: none; }
}

@media (max-width: 640px) { br.dk { display: none; } }

/* ---------- v2: no marker ink; clean strike, real video, motion ---------- */
h1 em { font-style: normal; color: var(--accent); }
.was::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: 2px; background: #E0391B; transform: rotate(-7deg) scaleX(0); transform-origin: left; animation: strike .45s .5s cubic-bezier(.6,.1,.3,1) forwards; }
.price .old::after { height: 4px; background: var(--accent); animation: none; transition: transform .5s .35s cubic-bezier(.6,.1,.3,1); }
.ticket.in .price .old::after { transform: rotate(-7deg) scaleX(1); }
@keyframes strike { to { transform: rotate(-7deg) scaleX(1); } }
.demo-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-screen { aspect-ratio: 960 / 624; }
[data-rise] { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
[data-rise].in { opacity: 1; transform: none; }
[data-rise].in > * { animation: rise .6s backwards cubic-bezier(.2,.8,.2,1); }
[data-rise].in > :nth-child(2) { animation-delay: .07s; } [data-rise].in > :nth-child(3) { animation-delay: .14s; } [data-rise].in > :nth-child(4) { animation-delay: .21s; } [data-rise].in > :nth-child(n+5) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.sec-head h2, [data-par] { will-change: transform; }
.ticket, .swatch, .clip, .rv-form, .lanes { transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .25s; }
.ticket { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.strip li, .facts div, .steps li { transition: background-color .2s; }
.strip li:hover .num, .facts div:hover .num, .steps li:hover::before { color: var(--accent); }
.strip .num, .facts .num, .steps li::before { transition: color .2s; }
.rv { transition: padding-left .25s; } .rv:hover { padding-left: 12px; box-shadow: inset 3px 0 0 var(--accent); }
details .ans { overflow: hidden; }
.closing .wrap { display: block; }
.closing-cta { display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; margin: clamp(24px, 3vw, 40px) 0 0; }
.closing-cta .cta-meta { margin: 0; }
@media (prefers-reduced-motion: reduce) { [data-rise] { opacity: 1; transform: none; transition: none; } [data-rise].in > * { animation: none; } .was::after { animation: none; transform: rotate(-7deg); } }
.clip .th { display: block; }

/* ---------- v3: tour as a sticky story (one fixed-ratio stage, steps scroll past it) ---------- */
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.stage { position: sticky; top: 96px; }
.stage-frame { position: relative; aspect-ratio: 1240 / 780; border-radius: 12px; border: 1px solid var(--line); background: #0E0E12; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.stage-frame .dots { position: absolute; left: 1.4%; top: 2.1%; z-index: 2; }
.stage-frame .dots i { width: 9px; height: 9px; }
.stage-shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .45s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.stage-shot.on { opacity: 1; transform: none; }
.stage-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.stage-shot[data-shot="auto"] img { object-fit: contain; object-position: center; padding: 3%; }
.stage-nav { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 0; padding: 0; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.stage-nav li { border-top: 2px solid var(--line); padding-top: 10px; transition: color .2s, border-color .2s; }
.stage-nav li.on { color: var(--text); border-color: var(--accent); }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-block: 28px; opacity: .35; transition: opacity .35s; }
.step.on { opacity: 1; }
.step:first-child { min-height: 0; padding-top: 0; justify-content: flex-start; margin-bottom: 12vh; }
.step:last-child { min-height: 0; margin-top: 8vh; }
.step-n { font: 700 clamp(30px, 3.2vw, 44px)/1 var(--display); font-stretch: 75%; text-transform: uppercase; margin: 0 0 14px; display: flex; align-items: baseline; gap: 12px; color: var(--text); }
.step-n i { font: 600 12px/1 var(--mono); font-style: normal; color: var(--accent); letter-spacing: .1em; }
.step h3 { font-size: 20px; }
.step > p { color: var(--muted); margin: 0 0 12px; }
.step p code { font: 600 .88em var(--mono); background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--text); }
.step-img { display: none; }
@media (max-width: 940px) {
  .story { grid-template-columns: 1fr; } .stage { display: none; }
  .step, .step:first-child, .step:last-child { min-height: 0; opacity: 1; margin: 0 0 56px; padding: 0; }
  .step-img { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
}
.stage-shot video, .step-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-img video { aspect-ratio: 992 / 624; height: auto; }
.stage-frame:has(.stage-shot.on video) > .dots { display: none; }

/* ---------- live-site additions: review form + list states ---------- */
.rv-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rv-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rv-msg { font-size: 14px; color: var(--muted); }
.rv-msg.ok { color: var(--good); } .rv-msg.err { color: #FF6B6B; }
.rv blockquote.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; white-space: pre-line; }
.rv blockquote.clamp.open { display: block; overflow: visible; }
.rv .more { background: none; border: 0; padding: 0; margin: -4px 0 12px; color: var(--accent); font: 700 13px var(--body); cursor: pointer; }
.dev-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--text); font: 600 13px var(--body); cursor: pointer; }
.dev-toggle img, .rv-reply b img { width: 16px; height: 16px; border-radius: 4px; }
.dev-toggle .chev { color: var(--accent); transition: transform .2s; }
.dev-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.rv-reply { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, transparent); border-left: 3px solid var(--accent); }
.rv-reply b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.rv-reply p { margin: 6px 0 0; color: var(--muted); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.rv-empty { color: var(--dim); padding: 22px 0; margin: 0; }
