@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #f3f3f9;
  --surface: #ffffff;
  --soft: #e9e8fb;
  --soft-2: #dddbf7;
  --ink: #15151d;
  --ink-2: #3a3a48;
  --muted: #676779;
  --line: #e3e2ef;
  --line-2: #cdcbe2;
  --accent: #5146f0;
  --accent-ink: #3a30d4;
  --accent-soft: #e5e3ff;
  --dark: #191924;
  --dark-2: #23232f;
  --dark-line: rgba(255, 255, 255, .11);
  --ok: #17824a;
  --ok-soft: #e1f4e8;
  --warn: #9a5b00;
  --warn-soft: #fff2d3;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --code-bg: #191924;
  --radius: 24px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 8vw, 112px); /* one gap between sections, everywhere */
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 74px); letter-spacing: -0.04em; line-height: 1.03; }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: .86em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section, .section.tight { padding: calc(var(--sec) / 2) 0; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
.center { text-align: center; }
.head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.head .lead { margin: 18px auto 0; max-width: 620px; }
.mt { margin-top: 28px; }
.dim { opacity: .5; }
.icon { width: 22px; height: 22px; flex: none; }

/* ---------- buttons: big pills with a round arrow badge ---------- */
.btn { --bg-b: var(--accent); --fg-b: #fff; --ic-bg: #fff; --ic-fg: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding: 6px 6px 6px 26px; border-radius: 999px; border: 0; background: var(--bg-b); color: var(--fg-b); font: 700 16px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s ease; }
.btn .bi { width: 44px; height: 44px; border-radius: 50%; background: var(--ic-bg); color: var(--ic-fg); display: grid; place-items: center; flex: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.btn .bi svg { width: 18px; height: 18px; }
.btn:hover .bi { transform: rotate(45deg); }
.btn:hover { --bg-b: var(--accent-ink); }
.btn.soft { --bg-b: var(--soft); --fg-b: var(--ink); --ic-bg: var(--accent); --ic-fg: #fff; }
.btn.soft:hover { --bg-b: var(--soft-2); }
.btn.dark { --bg-b: var(--ink); --ic-bg: #fff; --ic-fg: var(--ink); }
.btn.dark:hover { --bg-b: #2c2c3a; }
.btn.white { --bg-b: #fff; --fg-b: var(--ink); --ic-bg: var(--accent); --ic-fg: #fff; }
.btn.white:hover { --bg-b: var(--soft); }
.btn.line { --bg-b: transparent; --fg-b: var(--ink); --ic-bg: var(--soft); --ic-fg: var(--ink); outline: 1.5px solid var(--line-2); outline-offset: -1.5px; }
.btn.line:hover { --bg-b: #fff; }
.btn.plain { padding: 0 22px; }
.btn.sm { min-height: 46px; padding: 4px 4px 4px 20px; font-size: 15px; gap: 10px; }
.btn.sm .bi { width: 38px; height: 38px; }
.btn.lg { min-height: 64px; padding: 7px 7px 7px 30px; font-size: 17px; }
.btn.lg .bi { width: 50px; height: 50px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
/* text link: underline drawn as a background so it can redraw on hover, arrow nudges right */
.link { --ul: calc(100% - 22px); color: var(--accent-ink); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) left bottom / var(--ul) 1.5px no-repeat; }
.link svg { width: 16px; height: 16px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
a.link:hover svg, a:hover > .link svg { transform: translateX(5px); }
@media (prefers-reduced-motion: no-preference) {
  a.link:hover, a:hover > .link { animation: ul .55s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes ul { from { background-size: 0 1.5px; } to { background-size: var(--ul) 1.5px; } }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.head-bar { display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 10px 0 22px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; }
.brand { color: var(--ink); }
.brand .logo { display: block; width: auto; height: 27px; }
.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav a { padding: 10px 16px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15.5px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); background: var(--bg); }
.head-cta { display: flex; gap: 10px; align-items: center; }
.nav .nav-cta { display: none; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: var(--bg); border-radius: 14px; color: var(--ink); cursor: pointer; padding: 11px; }
.menu-btn svg { width: 24px; height: 24px; }
@media (max-width: 880px) {
  .head-bar { gap: 10px; height: 60px; padding: 0 7px 0 16px; }
  .nav { position: fixed; left: var(--gutter); right: var(--gutter); top: 84px; flex-direction: column; gap: 0; background: #fff; border-radius: 20px; padding: 8px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; margin: 0; }
  .nav a { padding: 14px; font-size: 18px; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .head-cta { display: none; }
  .nav .nav-cta { display: inline-flex; justify-content: space-between; margin-top: 8px; padding: 6px 6px 6px 22px; color: #fff; font-size: 17px; }
  .nav .nav-cta:hover { color: #fff; background: var(--accent-ink); }
}

/* ---------- line pattern: visible at the edges only, dots on the crossings ---------- */
.lines { position: relative; isolation: isolate; }
.lines::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  --l: rgba(21, 21, 29, .045); --d: rgba(21, 21, 29, .13);
  background-image:
    radial-gradient(circle, var(--d) 1.3px, transparent 1.9px),
    linear-gradient(var(--l) 1px, transparent 1px),
    linear-gradient(90deg, var(--l) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -32px -32px, 0 0, 0 0;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, transparent 58%, rgba(0, 0, 0, .5) 80%, #000 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, transparent 58%, rgba(0, 0, 0, .5) 80%, #000 100%); }
/* hero: grid from the top, fading out downwards and towards the middle */
.lines-top::before { -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, .3) 300px, transparent 620px); mask-image: linear-gradient(#000, rgba(0, 0, 0, .3) 300px, transparent 620px); }
/* the grid runs up behind the sticky header: pull the hero under it (header = 14 + 68 + 14) */
.hero.lines-top { --hh: 96px; margin-top: calc(-1 * var(--hh)); padding-top: calc(var(--hh) + clamp(40px, 6vw, 72px)); }
.hero.lines-top .iso-field { top: var(--hh); }
@media (max-width: 880px) { .hero.lines-top { --hh: 88px; } }
.dark.lines::before, .cta.lines::before { --l: rgba(255, 255, 255, .04); --d: rgba(255, 255, 255, .16); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { text-align: center; max-width: 860px; margin: 0 auto; }
.hero h1 { max-width: 14ch; margin: 0 auto; }
.hero .lead { margin: 24px auto 0; max-width: 580px; }
.hero-up { margin-top: 48px; }
.hero .hero-up { margin-top: clamp(56px, 7vw, 100px); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; justify-content: center; color: var(--muted); font-size: 15px; font-weight: 600; }
.facts span { display: inline-flex; align-items: center; gap: 10px; }
.facts span::before { content: ''; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.connect { display: inline-flex; align-items: center; margin-bottom: 34px; }
.connect .lg { width: 62px; height: 62px; border-radius: 18px; background: #fff; display: grid; place-items: center; }
.connect .lg img { width: 32px; height: 32px; }
.connect .wire { position: relative; width: 112px; margin: 0 14px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); }
.connect .wire::after { content: ''; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); animation: wire 2.6s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes wire { 0%, 100% { left: 6px; } 50% { left: calc(100% - 18px); } }

/* isometric logo blocks: top face + two side faces (svg), logo projected onto the top face */
.iso-field { position: absolute; inset: 0; pointer-events: none; z-index: 0; visibility: hidden; }
.iso-field.placed { visibility: visible; }
.iso { position: absolute; width: 120px; aspect-ratio: 110 / 90; animation: float 7s ease-in-out infinite; }
.iso:nth-child(2n) { animation-delay: -2.5s; animation-duration: 8s; }
.iso:nth-child(3n) { animation-delay: -4s; animation-duration: 6.5s; }
.iso svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.iso .t { fill: #fff; stroke: #e1dff6; stroke-width: 1; }
.iso .l { fill: #dedbf8; }
.iso .r { fill: #cdc8f4; }
.iso .g { fill: rgba(81, 70, 240, .07); }
.iso .face { position: absolute; left: 50%; top: 38.9%; width: 60.5%; aspect-ratio: 1; display: grid; place-items: center; transform: translate(-50%, -50%) scaleY(.575) rotate(45deg); }
.iso .face img { width: 62%; height: 62%; transform: rotate(-45deg); }
@keyframes float { 50% { transform: translateY(-12px); } }
.iso.s { width: 92px; }
@media (max-width: 1180px) { .iso-field { display: none; } }
@media (prefers-reduced-motion: reduce) { .iso, .connect .wire::after { animation: none; } }

/* ---------- uploader ---------- */
.up { background: var(--surface); border-radius: 28px; padding: 10px; text-align: left; }
.up-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 16px; margin: 4px 0 0 4px; }
.up-tabs button { height: 42px; padding: 0 18px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 700 15px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.up-tabs button svg { width: 18px; height: 18px; }
.up-tabs button[aria-selected='true'] { background: #fff; color: var(--ink); outline: 1px solid var(--line); }
.drop { position: relative; margin: 10px 0 0; border-radius: 20px; padding: 52px 24px 44px; text-align: center; cursor: pointer; background: var(--bg); transition: background .2s; overflow: hidden; }
.drop::before { content: ''; position: absolute; inset: 10px; border: 1.5px dashed var(--line-2); border-radius: 14px; pointer-events: none; transition: border-color .2s; }
.drop:hover::before, .drop.over::before { border-color: var(--accent); }
.drop.over { background: var(--accent-soft); }
.drop-art { width: 150px; height: 100px; margin: 0 auto 18px; color: var(--ink); }
.drop strong { display: block; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.03em; font-weight: 800; }
.drop p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.drop .pick { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.drop .alt { font-size: 15px; color: var(--muted); font-weight: 600; }
.drop .alt button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.drop .hint { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.drop input[type=file] { display: none; }
.paste { margin: 10px 0 0; }
.paste textarea { width: 100%; height: 220px; resize: vertical; border: 0; border-radius: 20px; padding: 22px; font: 13.5px/1.6 var(--mono); color: var(--ink); background: var(--bg); }
.paste textarea:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.picked { margin: 10px 0 0; background: var(--bg); border-radius: 20px; padding: 22px; display: grid; gap: 14px; }
.picked-top { display: flex; align-items: center; gap: 14px; }
.picked-top .fi { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: none; color: var(--accent); }
.picked-top .fi svg { width: 22px; height: 22px; }
.picked-top div { min-width: 0; flex: 1; }
.picked-top strong { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked-top span { font-size: 14px; color: var(--muted); }
.x-btn { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.x-btn:hover { color: var(--ink); }
.x-btn svg { width: 18px; height: 18px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field select { height: 46px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; font: 600 15px var(--font); background: #fff; color: var(--ink); }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: #5c3b00; font-weight: 600; text-align: left; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.note.bad { background: var(--bad-soft); color: #7a1a12; }
.note.ok { background: var(--ok-soft); color: #0f4f2c; }
.up-foot { display: flex; align-items: center; gap: 16px; padding: 14px 6px 4px 14px; flex-wrap: wrap; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); flex: 1; min-width: 220px; line-height: 1.45; cursor: pointer; font-weight: 600; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check a { color: var(--ink); }
.up-foot .btn { margin-left: auto; }
.up-progress { height: 4px; border-radius: 4px; background: var(--bg); overflow: hidden; margin: 10px 12px 0; }
.up-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.up-error { margin: 10px 4px 0; }
@media (max-width: 560px) { .up-foot .btn { width: 100%; justify-content: space-between; } .drop { padding: 40px 16px 36px; } .up-tabs { display: flex; margin: 0; } .up-tabs button { flex: 1; justify-content: center; } }

/* ---------- logo strip ---------- */
.strip { padding: 8px 0 calc(var(--sec) / 2); }
.strip p { text-align: center; color: var(--muted); font-size: 15px; font-weight: 600; margin-bottom: 26px; padding: 0 var(--gutter); }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.names { display: flex; flex: none; gap: 72px; padding-right: 72px; list-style: none; margin: 0; animation: marquee 60s linear infinite; }
.names li { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.names img { width: 30px; height: 30px; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; } .names { flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 0 var(--gutter); } .names[aria-hidden] { display: none; } }
.logo-chip { width: 44px; height: 44px; border-radius: 13px; background: var(--bg); display: grid; place-items: center; flex: none; }
.logo-chip img { width: 24px; height: 24px; }
.pair { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.pair .logo-chip { width: 58px; height: 58px; border-radius: 17px; }
.pair .logo-chip img { width: 30px; height: 30px; }
.wire-s { width: 36px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 10px); flex: none; }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-card { padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.vs-card.them { background: rgba(255, 255, 255, .5); }
.vs-card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.vs-card.us .tag { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.vs-shot { border-radius: 16px; background: var(--bg); padding: 16px; min-height: 210px; }
.vs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.vs-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); font-weight: 600; }
.vs-list li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); }
.vs-card.them .vs-list li::before { background: var(--line-2); }
.blob { font: 12px/1.7 var(--mono); color: #8a8a99; white-space: pre; overflow: hidden; }
.mini-editor { display: grid; grid-template-columns: 160px 1fr; gap: 12px; }
.tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tree li { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tree li svg { width: 15px; height: 15px; color: var(--muted); }
.tree li.l2 { margin-left: 16px; }
.tree li.on { border-color: var(--accent); color: var(--ink); outline: 3px solid var(--accent-soft); }
.tree li.on svg { color: var(--accent); }
.mini-canvas { border-radius: 12px; background: #fff; border: 1px solid var(--line); padding: 14px; display: grid; gap: 8px; align-content: start; }
.mini-canvas .h { height: 14px; width: 72%; border-radius: 4px; background: var(--ink); outline: 2px solid var(--accent); outline-offset: 3px; }
.mini-canvas .p { height: 8px; border-radius: 4px; background: var(--line); }
.mini-canvas .p.s { width: 80%; }
.mini-canvas .b { height: 22px; width: 92px; border-radius: 999px; background: var(--accent); margin-top: 6px; }
.mini-canvas .img { height: 54px; border-radius: 8px; background: var(--soft); margin-top: 4px; }
@media (max-width: 820px) { .versus { grid-template-columns: 1fr; } .mini-editor { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { overflow: hidden; display: flex; flex-direction: column; }
.step-art { height: 210px; display: grid; place-items: center; background: var(--bg); margin: 10px; border-radius: 18px; color: var(--ink); }
.step-art svg { width: 100%; height: 100%; }
.step-body { padding: 14px 26px 28px; text-align: center; }
.step-body p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- dark block ---------- */
.dark-wrap { padding: 0 clamp(8px, 1.5vw, 20px); margin: calc(var(--sec) / 2) 0; }
.dark-wrap .section { padding: var(--sec) 0; }
@media (max-width: 880px) { .dark-wrap { padding: 0 var(--gutter); } .dark-wrap .wrap { padding: 0 24px; } }
.dark { background: var(--dark); color: #f1f0f7; border-radius: clamp(28px, 4vw, 48px); }
.dark .lead { color: #b8b7c8; }
.dark h2, .dark h3 { color: #fff; }

/* ---------- video ---------- */
.video-frame { position: relative; border-radius: 28px; overflow: hidden; background: var(--dark); aspect-ratio: 16 / 9; }
.video-frame video, .video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(21, 21, 29, .1); border-radius: inherit; pointer-events: none; }
.video-frame .play { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; outline: 10px solid rgba(81, 70, 240, .2); transition: transform .2s; }
.video-frame .play:hover { transform: scale(1.05); }
.video-frame .play svg { width: 30px; height: 30px; margin-left: 4px; }

/* ---------- proof ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 26px 20px; border-radius: 20px; background: var(--dark-2); text-align: center; }
.stat strong { display: block; font-size: clamp(34px, 4vw, 50px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.stat span { display: block; margin-top: 10px; color: #b8b7c8; font-size: 15px; font-weight: 600; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.proof-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.proof-list { display: grid; gap: 26px; }
.proof-list > div { display: flex; gap: 18px; align-items: flex-start; }
.proof-list .tk { flex: none; width: 56px; height: 56px; color: #b5b0ff; }
.proof-list p { color: #b8b7c8; margin-top: 4px; }
.sbs-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sbs-demo figure { margin: 0; }
.sbs-demo figcaption { font-size: 13px; font-weight: 700; color: #b8b7c8; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.sbs-demo figcaption img { width: 18px; height: 18px; }
.sbs-demo img.shot { border-radius: 14px; border: 1px solid var(--dark-line); width: 100%; height: auto; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }

/* ---------- features: tiles with line drawings ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { grid-column: span 2; padding: 10px 10px 28px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.tile.wide { grid-column: span 3; }
.tile .art { height: 180px; border-radius: 18px; background: var(--bg); color: var(--ink); display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; }
.tile .art svg { width: 100%; height: 100%; }
.tile h3, .tile p { padding: 0 18px; }
.tile p { color: var(--ink-2); }
.tile.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.tile.accent p { color: rgba(255, 255, 255, .88); }
.tile.accent .art { background: rgba(255, 255, 255, .1); color: #fff; }
.tile.ink { background: var(--dark); border-color: var(--dark); color: #fff; }
.tile.ink p { color: #b8b7c8; }
.tile.ink .art { background: var(--dark-2); color: #fff; }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } .tile, .tile.wide { grid-column: span 1; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 16px; }
.cmp th, .cmp td { text-align: left; padding: 20px 24px; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 600; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: 15px; color: var(--muted); font-weight: 700; }
.cmp thead th.us { color: var(--accent-ink); background: var(--accent-soft); }
.cmp td.us { background: #f6f5ff; font-weight: 800; }
.cmp td:first-child { font-weight: 800; width: 26%; }
.cmp .yes, .cmp .no { display: inline-flex; gap: 8px; align-items: flex-start; }
.cmp .yes svg { color: var(--ok); width: 18px; height: 18px; flex: none; margin-top: 3px; }
.cmp .no svg { color: #a0a0b0; width: 18px; height: 18px; flex: none; margin-top: 3px; }

/* ---------- faq ---------- */
.faq-wrap { margin: 0 auto; }
.faq-split { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-split > div:first-child { position: sticky; top: 120px; }
.faq-split .link { margin-top: 24px; }
@media (max-width: 860px) { .faq-split { grid-template-columns: 1fr; } .faq-split > div:first-child { position: static; text-align: center; } }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; font-weight: 700; font-size: clamp(18px, 1.7vw, 21px); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .qb { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; transition: transform .25s, background .2s; }
.faq summary .qb svg { width: 18px; height: 18px; }
.faq details[open] summary .qb { transform: rotate(180deg); background: var(--ink); }
.faq .a { padding: 0 66px 26px 0; color: var(--ink-2); display: grid; gap: 12px; text-align: left; }
.faq .a a { color: var(--ink); }
.faq-cats { display: grid; gap: clamp(56px, 7vw, 88px); }
.faq-cats h2 { font-size: clamp(26px, 2.8vw, 34px); }

/* ---------- cta ---------- */
.cta { border-radius: clamp(28px, 4vw, 48px); background: var(--accent); color: #fff; padding: clamp(56px, 8vw, 112px) clamp(24px, 6vw, 80px); text-align: center; overflow: hidden; }
.cta h2 { max-width: 20ch; margin: 0 auto; color: #fff; }
.cta .lead { color: rgba(255, 255, 255, .9); margin: 18px auto 0; max-width: 560px; }
.cta .btn { margin-top: 34px; }

/* ---------- footer ---------- */
.site-foot { margin-top: calc(var(--sec) / 2); background: var(--dark); color: #d9d8e4; border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0; padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-size: 15px; color: #fff; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: #b8b7c8; font-size: 15px; font-weight: 600; }
.foot-grid a:hover { color: #fff; }
.foot-mark { display: inline-block; }
.foot-mark svg { display: block; width: 56px; height: 56px; }
.foot-mark polygon { fill: #a7a2ff; }
/* Middle block eases into the top one, across into the bottom one, and back to the centre. */
@media (prefers-reduced-motion: no-preference) {
  .morph .mid { animation: morph 8s cubic-bezier(.65, 0, .35, 1) infinite; }
}
@keyframes morph {
  0% { transform: translateY(0); }
  25% { transform: translateY(-25px); }
  75% { transform: translateY(25px); }
  100% { transform: translateY(0); }
}


.foot-about p { color: #9e9db0; font-size: 15px; margin-top: 14px; max-width: 320px; }
.foot-big { margin-top: 56px; padding: 28px 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); font-size: clamp(24px, 3.1vw, 40px); white-space: nowrap; font-weight: 700; letter-spacing: -0.04em; color: #fff; line-height: 1.1; }
.foot-big a { color: #a7a2ff; text-decoration: none; }
@media (max-width: 760px) { .foot-big { white-space: normal; } }
.foot-base { margin-top: 28px; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; color: #8c8b9e; font-size: 13px; line-height: 1.6; }
.foot-base p { max-width: 720px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); text-align: center; }
.page-head h1 { max-width: 16ch; margin: 0 auto; }
.page-head .lead { margin: 20px auto 0; max-width: 640px; }
.page-head + .section.tight { padding-top: 0; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; justify-content: center; font-weight: 600; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.prose { font-size: 17px; color: var(--ink-2); text-align: left; }
.prose > * + * { margin-top: 18px; }
.prose > h2:first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); color: var(--ink); margin-top: 56px; }
.prose h3 { color: var(--ink); margin-top: 36px; font-size: 20px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose dl { display: grid; grid-template-columns: 220px 1fr; gap: 10px 24px; margin: 18px 0 0; }
.prose dt { font-weight: 800; color: var(--ink); }
.prose dd { margin: 0; }
@media (max-width: 640px) { .prose dl { grid-template-columns: 1fr; gap: 2px; } .prose dd { margin-bottom: 12px; } }
.legal .prose h2 { font-size: 24px; margin-top: 48px; }
.legal .prose h3 { font-size: 18px; margin-top: 28px; }
.ph { background: var(--warn-soft); color: #5c3b00; padding: 0 4px; border-radius: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 6vw, 72px); align-items: start; text-align: left; }
.split > * { min-width: 0; }
.split h1 { margin: 0; max-width: none; }
.split .lead { margin-left: 0; }
.aside { position: sticky; top: 110px; display: grid; gap: 16px; }
.aside-card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.aside-card h3 { font-size: 18px; margin-bottom: 8px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .aside { position: static; } }
.h3-like { font-size: 22px; margin-top: 40px; }
.howto { counter-reset: s; list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.howto li { counter-increment: s; position: relative; padding: 20px 22px 20px 70px; background: var(--surface); border-radius: 18px; }
.howto li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.howto li strong { display: block; color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-link { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 44px 28px 40px; border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.card-link:hover { transform: translateY(-4px); }
.card-link strong { font-size: 19px; letter-spacing: -0.02em; }
.card-link p { color: var(--muted); font-size: 15px; }
.card-link .link { margin-top: auto; padding-top: 8px; }
.logos-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; justify-content: center; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chips span { font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.tested { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tested .card { padding: 24px; text-align: center; }
.tested h3 { margin-bottom: 14px; font-size: 18px; }
@media (max-width: 900px) { .tested { grid-template-columns: 1fr; } }

/* ---------- result page ---------- */
.res-head { display: flex; align-items: flex-start; gap: 20px; justify-content: space-between; flex-wrap: wrap; text-align: left; }
.res-head h1 { font-size: clamp(30px, 4vw, 44px); overflow-wrap: anywhere; margin: 0; max-width: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--soft); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.run { background: var(--accent-soft); color: var(--accent-ink); }
.progress-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; max-width: 560px; text-align: left; }
.progress-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; color: var(--muted); font-size: 17px; font-weight: 600; }
.progress-list li .dot { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.progress-list li .dot svg { width: 14px; height: 14px; }
.progress-list li.done { color: var(--ink-2); }
.progress-list li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.progress-list li.now { color: var(--ink); font-weight: 800; }
.progress-list li.now .dot { border-color: var(--accent); }
.progress-list li.now .dot::after { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.55) rotate(45deg); opacity: .5; } }
.res-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 36px; text-align: left; }
.res-grid > * { min-width: 0; }
@media (max-width: 1000px) { .res-grid { grid-template-columns: 1fr; } }
.scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.score { background: var(--surface); border-radius: 18px; padding: 16px; display: grid; gap: 6px; }
.score span { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 700; }
.score span svg { width: 16px; height: 16px; }
.score strong { font-size: 30px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.score.good strong { color: var(--ok); }
.score.mid strong { color: var(--warn); }
@media (max-width: 560px) { .score { padding: 12px; } .score strong { font-size: 22px; } .score span { font-size: 13px; } }
.viewer { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.viewer-bar { display: flex; gap: 8px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--bg); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: transparent; height: 36px; padding: 0 13px; border-radius: 9px; font: 700 14px var(--font); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button svg { width: 15px; height: 15px; }
.seg button[aria-pressed='true'] { background: #fff; color: var(--ink); outline: 1px solid var(--line); }
.viewer-stage { max-height: 76vh; overflow: auto; background: var(--bg); display: flex; justify-content: center; padding: 16px; }
.sbs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; width: 100%; }
.sbs figure { margin: 0; min-width: 0; }
.sbs figcaption { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.sbs img { width: 100%; height: auto; display: block; border-radius: 8px; }
.live-box { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.live-box iframe { border: 0; transform-origin: 0 0; display: block; }
.dl { display: grid; gap: 10px; }
.dl .btn { width: 100%; justify-content: space-between; text-align: left; white-space: normal; padding: 10px 8px 10px 20px; border-radius: 20px; }
.dl .btn .t { display: grid; gap: 3px; }
.dl .btn small { font-weight: 600; font-size: 13px; opacity: .8; }
.expiry { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.5; font-weight: 600; }
.expiry svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--muted); }
.copy-row { display: flex; gap: 8px; margin-top: 12px; }
.copy-row input { flex: 1; min-width: 0; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; font: 13px var(--mono); color: var(--ink-2); background: var(--bg); }
.recent { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.recent a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-decoration: none; background: var(--surface); }
.recent a:hover { background: var(--accent-soft); }
.recent svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.recent span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 15px; }
.recent small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.skipped { margin-top: 8px; font-size: 13px; color: var(--muted); }
.skipped summary { cursor: pointer; }
.steps-small { margin: 10px 0 0; padding-left: 20px; font-size: 15px; color: var(--ink-2); display: grid; gap: 6px; }

/* reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- line drawing classes (lib/art.mjs) ---------- */
svg .ln { stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
svg .ac { stroke: var(--accent); stroke-width: 1.8; stroke-linecap: square; }
svg .dash { stroke-dasharray: 4 4; }
svg .fl { fill: #fff; } svg .fs { fill: var(--accent-soft); } svg .fa { fill: var(--accent); } svg .fl2 { fill: var(--line-2); } svg .none { fill: none; }
svg .tx { font: 600 10px var(--mono); fill: var(--muted); letter-spacing: -0.02em; }
svg .ac-t { fill: var(--accent-ink); }
svg .big { font: 800 72px var(--font); fill: currentColor; letter-spacing: -0.05em; }
.ink svg .fl, .dark svg .fl { fill: var(--dark-2); }
.ink svg .tx, .dark svg .tx { fill: #b8b7c8; }
.ink svg .fs, .dark svg .fs { fill: rgba(81, 70, 240, .28); }
.ink svg .ac, .dark svg .ac { stroke: #a7a2ff; }
.ink svg .fa, .dark svg .fa { fill: #a7a2ff; }
.ink svg .ac-t { fill: #d3d0ff; }
.accent svg .ac { stroke: #fff; } .accent svg .fa { fill: #fff; } .accent svg .fs { fill: rgba(255, 255, 255, .18); } .accent svg .fl { fill: rgba(255, 255, 255, .1); } .accent svg .tx { fill: rgba(255, 255, 255, .85); } .accent svg .fl2 { fill: rgba(255, 255, 255, .4); }
/* hover only: small moves inside the drawings of steps and tiles */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .fall, .a-lift, .a-x, .a-down, .a-flip, .a-grow { transition: transform .55s cubic-bezier(.2, .8, .2, 1); transform-box: fill-box; transform-origin: center; }
  .d1 { transition-delay: .07s; } .d2 { transition-delay: .14s; }
  .card:hover .fall { transform: translateY(8px); }
  .card:hover .a-lift { transform: translateY(-7px); }
  .card:hover .a-lift.s { transform: translateY(-3px); }
  .card:hover .a-x { transform: translateX(6px); }
  .card:hover .a-down { transform: translateY(4px); }
  .card:hover .a-flip { transform: scaleY(-1); }
  .card:hover .a-grow { transform: scaleX(1.25); transform-origin: left center; }
  .card:hover .a-flow { animation: flow .9s linear infinite; }
  .card:hover .a-draw { animation: draw 1.1s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes flow { to { stroke-dashoffset: -16; } }
@keyframes draw { from { stroke-dasharray: 1 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1 1; stroke-dashoffset: 0; } }
