/* Archivo Narrow and IBM Plex Mono, both SIL Open Font License (assets/fonts/OFL.txt) */
@font-face { font-family: "Archivo Narrow"; src: url("assets/fonts/archivo-narrow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("assets/fonts/archivo-narrow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

/* ==========================================================================
   Colours. Dark is the default; light follows the system or the toggle.
   The app's own surfaces (the lab, screenshots) stay dark in both.
   ========================================================================== */
:root {
  --bg: #070807;
  --bg-2: #0c0d0c;
  --surface: #111312;
  --surface-2: #171a18;
  --line: rgba(242, 240, 232, .08);
  --line-2: rgba(242, 240, 232, .15);
  --text: #f2f0e8;
  --text-2: #bdbdb3;
  --muted: #8b8c84;
  --accent: #3fd4ff;
  --accent-ink: #04161d;
  --accent-soft: rgba(63, 212, 255, .12);
  --ok: #4cc26a;
  --rec: #e5322d;
  --warn: #e8b339;
  --glow-a: rgba(40, 170, 255, .22);
  --glow-b: rgba(229, 50, 45, .10);
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  --shadow-sm: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --grad: linear-gradient(100deg, #f2f0e8 0%, #9feaff 55%, #3fd4ff 100%);
  --nav-bg: rgba(7, 8, 7, .74);

  /* the app's own dark surfaces */
  --app-bg: #0f1113;
  --app-panel: #1b1e22;
  --app-chosen: #3a4048;
  --app-line: #30353b;
  --app-text: #e9ecef;
  --app-dim: #9a9a9a;

  --sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo Narrow", "Arial Narrow", "Roboto Condensed", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;

  --r: 18px;
  --r-lg: 26px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f3ee;
  --bg-2: #ebe9e2;
  --surface: #fbfaf7;
  --surface-2: #efede7;
  --line: rgba(20, 20, 10, .09);
  --line-2: rgba(20, 20, 10, .17);
  --text: #0d0e0c;
  --text-2: #3d3f3a;
  --muted: #6a6c64;
  --accent: #0789b3;
  --accent-ink: #ffffff;
  --accent-soft: rgba(7, 137, 179, .10);
  --ok: #23964a;
  --glow-a: rgba(40, 170, 255, .16);
  --glow-b: rgba(229, 50, 45, .06);
  --shadow: 0 30px 70px -24px rgba(15, 30, 50, .35), 0 0 0 1px rgba(10, 20, 30, .07);
  --shadow-sm: 0 10px 30px -14px rgba(15, 30, 50, .25);
  --grad: linear-gradient(100deg, #0d0e0c 0%, #0789b3 100%);
  --nav-bg: rgba(244, 243, 238, .8);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f3ee;
    --bg-2: #ebe9e2;
    --surface: #fbfaf7;
    --surface-2: #efede7;
    --line: rgba(20, 20, 10, .09);
    --line-2: rgba(20, 20, 10, .17);
    --text: #0d0e0c;
    --text-2: #3d3f3a;
    --muted: #6a6c64;
    --accent: #0789b3;
    --accent-ink: #ffffff;
    --accent-soft: rgba(7, 137, 179, .10);
    --ok: #23964a;
    --glow-a: rgba(40, 170, 255, .16);
    --glow-b: rgba(229, 50, 45, .06);
    --shadow: 0 30px 70px -24px rgba(15, 30, 50, .35), 0 0 0 1px rgba(10, 20, 30, .07);
    --shadow-sm: 0 10px 30px -14px rgba(15, 30, 50, .25);
    --grad: linear-gradient(100deg, #0d0e0c 0%, #0789b3 100%);
    --nav-bg: rgba(244, 243, 238, .8);
    color-scheme: light;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--text-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
b, strong { font-weight: 600; color: var(--text); }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--sans); margin: 0; letter-spacing: -.02em; line-height: 1.1; color: var(--text); }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.012em; line-height: .96; }
h2 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); }
h3 { font-size: 1.25rem; font-weight: 620; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 .45em;
  font: 600 .78rem/1 var(--mono); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 7px;
}
code { font-family: var(--mono); font-size: .86em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 30px; height: 30px; stroke-width: 1.5; color: var(--accent); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.grow { flex: 1; }
.center { text-align: center; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

.fine { font-size: .86rem; color: var(--muted); line-height: 1.55; }
.fine b { color: var(--text-2); }
.sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); line-height: 1.55; }
.lbl { font-size: .78rem; color: var(--muted); margin: 14px 0 7px; }

/* ==========================================================================
   Buttons, pills, segmented controls
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--text-font); letter-spacing: -.005em; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-sm { height: 36px; padding: 0 15px; font-size: .86rem; }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 8px 30px -8px var(--glow-a); }
.btn-primary:hover { box-shadow: 0 10px 40px -6px var(--glow-a); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text-2); }
.btn-text { color: var(--text); padding: 0 10px; }
.btn-text .ic { width: 16px; height: 16px; }
.btn.is-off, .is-off { opacity: .55; pointer-events: none; }
.btn .ic { width: 18px; height: 18px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: transparent; border: 1px solid transparent; color: var(--text-2);
  transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line); text-decoration: none; }
.icon-btn .ic { width: 19px; height: 19px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 8px; font-family: var(--mono); letter-spacing: .02em;
  background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line-2);
  color: var(--text-2); font-size: .86rem; backdrop-filter: blur(10px);
}
.pill:hover { text-decoration: none; color: var(--text); border-color: var(--accent); }
.pill .ic { width: 15px; height: 15px; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }

.badge { display: inline-block; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 .7rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.seg { display: inline-flex; flex-wrap: nowrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button {
  border: 0; background: transparent; color: var(--text-2); padding: 7px 12px; border-radius: 8px;
  font-size: .86rem; font-weight: 550; white-space: nowrap; transition: background .2s, color .2s;
}
.seg button:hover { color: var(--text); }
.seg button.on, .seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line-2), 0 4px 14px -6px rgba(0, 0, 0, .35); }
.seg-wrap { flex-wrap: wrap; }
.seg-big { padding: 5px; border-radius: 14px; }
.seg-big button { padding: 10px 20px; font-size: .95rem; border-radius: 10px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px;
  font: 600 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.dot-ok { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.dot-rec { background: var(--rec); box-shadow: 0 0 12px var(--rec); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: var(--nav-bg); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-color: var(--line); }
.nav-in { width: min(1280px, 100% - 32px); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.28rem/1 var(--display); color: var(--text); letter-spacing: .005em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2); }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.menu-btn { display: none; }
.ic-sun { display: none; }
:root[data-theme="light"] .ic-sun { display: block; }
:root[data-theme="light"] .ic-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .ic-sun { display: block; }
  :root:not([data-theme="dark"]) .ic-moon { display: none; }
}

@media (max-width: 920px) {
  .menu-btn { display: inline-grid; }
  .nav-links {
    position: absolute; top: 64px; left: 12px; right: 12px; flex-direction: column; gap: 2px; padding: 10px;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
}
@media (max-width: 420px) {
  .nav-actions [data-link="github"] { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 140px 0 40px; overflow: hidden; isolation: isolate; }
.hero-glow {
  position: absolute; inset: -10% -20% auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 30%, var(--glow-a), transparent 70%),
    radial-gradient(30% 40% at 75% 25%, var(--glow-b), transparent 70%),
    radial-gradient(50% 50% at 50% 80%, color-mix(in srgb, var(--glow-a) 60%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 55% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 20%, transparent 75%);
}
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.quick-dl { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.qd { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font-size: .86rem; font-weight: 550; text-decoration: none; transition: border-color .2s, color .2s; }
.qd:hover { border-color: var(--text-2); color: var(--text); }
.qd .ic { width: 16px; height: 16px; }
.qd-soon { border-style: dashed; color: var(--muted); }
.hero h1 {
  margin-top: 26px;
  font-size: clamp(3.3rem, 10.5vw, 8.6rem); font-weight: 700; letter-spacing: -.015em; line-height: .9;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; }
.lede { margin-top: 26px; max-width: 680px; font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: var(--text-2); line-height: 1.55; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; justify-content: center; }
.hero .fine { margin-top: 18px; }
.hero .fine a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

.hero-stage { margin-top: 64px; perspective: 1800px; }
.stage { position: relative; transform-style: preserve-3d; transform: rotateX(var(--tilt, 14deg)) scale(var(--sc, .94)); transform-origin: 50% 0; transition: transform .1s linear; will-change: transform; }
.screen {
  margin: 0; border-radius: 16px; overflow: hidden; background: #0b0c0e;
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 120px -20px var(--glow-a);
}
.screen-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #16191d; border-bottom: 1px solid #23272c; font: 500 .72rem/1 var(--text-font); color: #8d949c; }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b3036; }
.screen-bar span { margin-left: 10px; }
.screen img { width: 100%; height: auto; }

.chip-float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  background: rgba(18, 21, 25, .82); color: #eef1f4; border: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateZ(60px); animation: float 6s ease-in-out infinite;
}
.chip-float b { color: #fff; }
.chip-float .ic { width: 16px; height: 16px; color: #3fd4ff; }
.chip-float.c1 { top: 13%; left: -3%; }
.chip-float.c2 { top: 4%; right: 6%; animation-delay: -1.5s; }
.chip-float.c3 { bottom: 12%; left: 14%; animation-delay: -3s; }
.chip-float.c3 .ic { color: #4cc26a; }
.chip-float.c4 { bottom: 9%; right: -2%; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #e5322d; box-shadow: 0 0 0 0 rgba(229, 50, 45, .6); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 50, 45, .6); } 70% { box-shadow: 0 0 0 8px rgba(229, 50, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 50, 45, 0); } }

.ribbon { list-style: none; padding: 0; margin: 56px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; color: var(--muted); }
.ribbon li { display: flex; align-items: center; gap: 11px; }
.ribbon .ic { width: 22px; height: 22px; color: var(--text-2); }
.ribbon span { display: flex; flex-direction: column; font-size: .78rem; line-height: 1.25; }
.ribbon b { font-size: .92rem; color: var(--text); font-weight: 600; }

@media (max-width: 760px) {
  .hero { padding-top: 112px; }
  .hero-stage { margin-top: 44px; width: calc(100% - 24px); }
  .chip-float { font-size: .72rem; padding: 6px 10px; border-radius: 10px; }
  .chip-float.c1 { left: 2%; top: 10%; }
  .chip-float.c2 { display: none; }
  .chip-float.c3 { left: 6%; bottom: 8%; }
  .chip-float.c4 { right: 2%; bottom: auto; top: -4%; }
  .screen { border-radius: 10px; }
  .screen-bar { height: 20px; font-size: .6rem; }
  .screen-bar i { width: 7px; height: 7px; }
  .cta .btn-text { width: 100%; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.head.center { margin-inline: auto; text-align: center; }
.head .sub { margin-top: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--text-2); font-size: .98rem; }
.card.flat { box-shadow: none; }
.card.flat > .ic:not(.ic-lg) { color: var(--accent); width: 22px; height: 22px; margin-bottom: 10px; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trio-sm { margin-top: 22px; }
.trio-sm .card { padding: 22px; }
.trio-sm p { font-size: .93rem; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* ==========================================================================
   Video
   ========================================================================== */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000;
  box-shadow: var(--shadow); isolation: isolate;
}
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); filter: saturate(.9); transition: transform 1.2s var(--ease); }
.video:hover .video-poster { transform: scale(1.06); }
.video-shade { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, rgba(0, 0, 0, .1), rgba(0, 0, 0, .65)); }
.video-hud { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: clamp(10px, 3vw, 40px); color: rgba(255, 255, 255, .75); font-size: clamp(.6rem, 1.2vw, .8rem); letter-spacing: .1em; text-transform: uppercase; }
.video-hud span { position: relative; padding-top: 14px; }
.video-hud span::before { content: ""; position: absolute; top: 0; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: #3fd4ff; translate: -50% 0; box-shadow: 0 0 10px #3fd4ff; }
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: clamp(64px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); color: #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; place-items: center;
  transition: transform .3s var(--ease), background .3s;
}
.play:hover { transform: scale(1.08); background: rgba(255, 255, 255, .24); }
.play .ic { width: 40%; height: 40%; margin-left: 6%; }
.play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.video-note { position: absolute; top: 18px; left: 50%; translate: -50% 0; padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .82rem; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.video-note.show { opacity: 1; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .video-hud span:nth-child(2), .video-hud span:nth-child(3) { display: none; } }

/* ==========================================================================
   Numbers
   ========================================================================== */
.numbers { border-block: 1px solid var(--line); background: var(--bg-2); }
.nums { display: grid; grid-template-columns: repeat(5, 1fr); }
.num { padding: 38px 22px; border-left: 1px solid var(--line); }
.num:first-child { border-left: 0; padding-left: 0; }
.num b { display: flex; align-items: baseline; gap: 4px; font: 700 clamp(2.8rem, 5vw, 4.2rem)/1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--text); }
.num b small { font-size: .45em; letter-spacing: -.01em; color: var(--muted); font-weight: 600; }
.num > span { display: block; margin-top: 10px; font-size: .86rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) {
  .nums { grid-template-columns: 1fr 1fr; }
  .num, .num:first-child { padding: 26px 18px; border-left: 0; border-top: 1px solid var(--line); }
  .num:nth-child(even) { border-left: 1px solid var(--line); }
  .num:nth-child(-n+2) { border-top: 0; }
  .num:last-child { grid-column: span 2; }
}

/* ==========================================================================
   Live-view lab
   ========================================================================== */
.lab {
  margin-top: 56px; padding: 14px; border-radius: 28px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), var(--surface));
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.lab-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 8px 14px; flex-wrap: wrap; }
.lab-title { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--text-2); }
.lab-keys { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); }
.lab-keys kbd { min-width: 1.7em; height: 1.7em; font-size: .7rem; }
.lab-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 10px; background: var(--app-bg); border-radius: 18px; padding: 10px; color: var(--app-text); }
.lab-foot { margin: 12px 8px 4px; font-size: .8rem; color: var(--muted); }

.mon { display: flex; flex-direction: column; min-width: 0; }
.mon-status { display: flex; align-items: center; gap: 12px; padding: 4px 6px 10px; font-size: .86rem; color: var(--app-text); white-space: nowrap; overflow: hidden; }
.mon-status b { font-weight: 650; color: #fff; }
.mon-status span { color: #d5d9dd; }
.rec-tag { display: none; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; background: var(--rec); color: #fff !important; font-weight: 700; font-size: .78rem; }
.rec-tag b { color: #fff; }
.rec-tag .rec-dot { background: #fff; width: 6px; height: 6px; animation: none; }
.lab.recording .rec-tag { display: inline-flex; }

.mon-pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #000; cursor: crosshair; touch-action: manipulation; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s; }
.lab.recording .mon-pic { outline-color: var(--rec); }
.mon-zoom { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform .45s var(--ease); }
.mon-zoom canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#labOverlay { pointer-events: none; }
.grid3 {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background:
    linear-gradient(90deg, transparent calc(33.333% - .5px), rgba(255, 255, 255, .55) calc(33.333% - .5px), rgba(255, 255, 255, .55) calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), rgba(255, 255, 255, .55) calc(66.666% - .5px), rgba(255, 255, 255, .55) calc(66.666% + .5px), transparent calc(66.666% + .5px)),
    linear-gradient(180deg, transparent calc(33.333% - .5px), rgba(255, 255, 255, .55) calc(33.333% - .5px), rgba(255, 255, 255, .55) calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), rgba(255, 255, 255, .55) calc(66.666% - .5px), rgba(255, 255, 255, .55) calc(66.666% + .5px), transparent calc(66.666% + .5px));
}
.grid3.on { opacity: 1; }

.focus-box { position: absolute; width: 9%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; opacity: 0; transform: scale(1.5); transition: opacity .2s, transform .35s var(--ease); }
.focus-box.show { opacity: 1; transform: scale(1); }
.focus-box i { position: absolute; width: 26%; height: 26%; border: 2px solid #fff; transition: border-color .2s; }
.focus-box i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.focus-box i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.focus-box i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.focus-box i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.focus-box.ok i { border-color: #4cc26a; }
.focus-box.track { width: 13%; }
.focus-box.track i { border-width: 3px; }
.focus-box.track.ok { animation: track 1.6s ease-in-out infinite; }
@keyframes track { 50% { transform: scale(1.06); } }

.hint {
  position: absolute; left: 50%; top: 10%; translate: -50% 0; padding: 10px 16px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: .9rem; pointer-events: none; backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 8px; transition: opacity .3s;
}
.hint::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; animation: pulse-w 1.6s infinite; }
@keyframes pulse-w { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.hint.gone { opacity: 0; }

.histo {
  position: absolute; right: 1.6%; bottom: 3%; width: clamp(150px, 24%, 270px); padding: 8px 9px 6px; border-radius: 6px;
  background: rgba(20, 22, 25, .82); border: 1px solid rgba(255, 255, 255, .14); cursor: grab; touch-action: none; user-select: none;
  backdrop-filter: blur(6px); transition: opacity .2s;
}
.histo:active { cursor: grabbing; }
.histo.off { opacity: 0; pointer-events: none; }
.histo canvas { width: 100%; height: auto; aspect-ratio: 520 / 140; }
.histo-row { display: flex; justify-content: space-between; font-size: .62rem; color: #cfd3d7; margin-top: 4px; }
.histo .warn { color: var(--warn); }
.meter b { display: block; margin-top: 4px; font-size: .74rem; color: var(--warn); font-weight: 600; }
.meter b.zero { color: #4cc26a; }
.meter-scale { position: relative; display: flex; justify-content: space-between; margin-top: 3px; padding-top: 12px; font: .56rem/1 var(--mono); color: #aeb3b8; }
.meter-scale i { font-style: normal; width: 14px; text-align: center; position: relative; }
.meter-scale i::before { content: ""; position: absolute; top: -9px; left: 50%; width: 1px; height: 6px; background: #8d9399; }
.meter-scale span { position: absolute; top: 0; width: 3px; height: 13px; background: var(--warn); border-radius: 2px; translate: -50% 0; transition: left .35s var(--ease), background .2s; }
.meter-scale span.zero { background: #4cc26a; }

.toast { position: absolute; left: 12px; top: 12px; padding: 6px 11px; border-radius: 6px; background: rgba(0, 0, 0, .66); color: #fff; font-size: .8rem; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

.mon-tools { display: flex; align-items: center; gap: 6px; padding: 10px 4px 2px; flex-wrap: wrap; }
.mon-conn { font-size: .84rem; color: var(--app-dim); }
.tool { border: 0; padding: 6px 11px; border-radius: 4px; background: #24282d; color: #e9ecef; font-size: .8rem; transition: background .15s, color .15s; }
.tool:hover { background: #2e3339; }
.tool[aria-pressed="true"] { background: #22c7ea; color: #04161d; font-weight: 600; }
.levels-wrap { position: relative; }
.levels {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; width: 300px; padding: 12px; border-radius: 10px;
  background: #1b1e22; border: 1px solid #353a40; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7);
}
.levels p { font-size: .72rem; color: var(--app-dim); margin: 0 0 6px; }
.levels p + .seg { margin-bottom: 12px; }
.levels .seg, .panel .seg, .auto-side .seg-panel { background: #15181b; border-color: #2a2f35; display: flex; }
.levels .seg button, .panel .seg button, .auto-side .seg-panel button { flex: 1; color: #c6cbd0; padding: 6px 4px; font-size: .78rem; }
.levels .seg button.on, .panel .seg button.on, .auto-side .seg-panel button.on { background: var(--app-chosen); color: #fff; box-shadow: none; }
.swatches i { display: block; width: 16px; height: 16px; margin: auto; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }

.panel { background: var(--app-panel); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: .84rem; }
.panel-conn { display: flex; align-items: center; gap: 8px; color: var(--app-text); margin-bottom: 4px; }
.ok-dot { width: 8px; height: 8px; border-radius: 50%; background: #4cc26a; }
.rec-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 6px; border: 0;
  background: #262a2f; color: #fff; font-size: 1.08rem; font-weight: 600; transition: background .2s;
}
.rec-btn:hover { background: #2e3339; }
.rec-btn .rec-dot { width: 16px; height: 16px; animation: none; }
.lab.recording .rec-btn { background: var(--rec); }
.lab.recording .rec-btn .rec-dot { background: #fff; border-radius: 3px; width: 14px; height: 14px; }
.panel-h { margin-top: 8px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #cfd3d7; }
.panel-l { font-size: .74rem; color: var(--app-dim); margin-top: 2px; }
.stepper { display: grid; grid-template-columns: 38px 1fr 38px; gap: 4px; }
.stepper button { border: 0; border-radius: 5px; background: #24282d; color: #fff; font-size: .8rem; }
.stepper button:hover { background: #30353b; }
.stepper div { background: #24282d; border-radius: 5px; text-align: center; padding: 5px 0 6px; line-height: 1.15; }
.stepper small { display: block; font-size: .66rem; color: var(--app-dim); }
.stepper b { font-size: 1.05rem; color: #fff; font-weight: 650; font-variant-numeric: tabular-nums; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.soft { border: 0; border-radius: 5px; background: #24282d; color: #e9ecef; padding: 8px 4px; font-size: .78rem; }
.soft.on { background: var(--app-chosen); font-weight: 650; color: #fff; }
.soft:hover { background: #30353b; }

@media (max-width: 960px) {
  .lab-body { grid-template-columns: 1fr; }
  .panel { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .panel > * { grid-column: span 2; }
  .panel .stepper { grid-column: span 1; }
  .panel .stepper:nth-of-type(3) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .lab { padding: 8px; border-radius: 20px; margin-inline: -8px; }
  .lab-body { padding: 6px; border-radius: 14px; }
  .lab-keys, .hide-sm { display: none !important; }
  .hint { font-size: .76rem; padding: 7px 12px; white-space: nowrap; }
  .mon-status { font-size: .74rem; gap: 8px; }
  .tool { padding: 6px 8px; font-size: .74rem; }
  .histo { width: 38%; padding: 5px 6px 4px; }
  .histo-row { display: none; }
  .meter-scale { font-size: .46rem; }
  .panel { grid-template-columns: 1fr; }
  .panel > *, .panel .stepper, .panel .stepper:nth-of-type(3) { grid-column: auto; }
  .levels { right: -40px; }
}

/* ==========================================================================
   Screenshot frames and splits
   ========================================================================== */
.shot { margin: 0; }
.shot img, .shot video { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); background: #111; }
.shot figcaption { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.shot-wide { margin-top: 48px; }
.shot-tilt img, .shot-tilt video { transform: perspective(1400px) rotateY(8deg) rotateX(2deg); transition: transform .6s var(--ease); }
.shot-tilt:hover img, .shot-tilt:hover video { transform: none; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: clamp(80px, 10vw, 130px); }
.split-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.split-copy > p { margin-top: 18px; color: var(--text-2); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; color: var(--text-2); font-size: .97rem; }
.ticks .ic { color: var(--ok); width: 18px; height: 18px; stroke-width: 2.2; }
.split-rev { grid-template-columns: 1fr 1.1fr; }
.split-rev .shot { order: 2; }
.split-rev .shot-tilt img, .split-rev .shot-tilt video { transform: perspective(1400px) rotateY(-8deg) rotateX(2deg); }
.split-rev .shot-tilt:hover video { transform: none; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-rev .shot { order: 0; } .shot-tilt img, .shot-tilt video, .split-rev .shot-tilt video { transform: none; } }

/* ==========================================================================
   Tabs showcase
   ========================================================================== */
.tabs-show { display: flex; flex-direction: column; gap: 28px; }
.tabs-show > .seg { align-self: flex-start; }
.tabs-stage { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.tabs-img { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #111; }
.tabs-img img { width: 100%; height: auto; }
.tabs-col { position: absolute; top: 0; bottom: 0; width: 33.4%; border: 0; padding: 0; background: rgba(5, 6, 8, .62); transition: background .35s var(--ease), box-shadow .35s; }
.tabs-col[data-tab="0"] { left: 0; }
.tabs-col[data-tab="1"] { left: 33.3%; }
.tabs-col[data-tab="2"] { left: 66.6%; }
.tabs-col:hover { background: rgba(5, 6, 8, .4); }
.tabs-img[data-active="0"] .tabs-col[data-tab="0"],
.tabs-img[data-active="1"] .tabs-col[data-tab="1"],
.tabs-img[data-active="2"] .tabs-col[data-tab="2"] { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); border-radius: 10px; }
.tabs-copy h3 { font-size: 1.8rem; letter-spacing: -.03em; }
.tabs-copy .tab-text p { margin-top: 12px; color: var(--text-2); font-size: 1.05rem; }
.tab-text { animation: fadeUp .45s var(--ease); }
.mini-list { margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 12px; }
.mini-list li { position: relative; padding-left: 20px; color: var(--muted); font-size: .93rem; }
.mini-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .tabs-stage { grid-template-columns: 1fr; } .tabs-show > .seg { align-self: stretch; } .tabs-show > .seg button { flex: 1; } }

/* ==========================================================================
   Presets and S&Q
   ========================================================================== */
.presets-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; }
.preset-demo, .sq { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: 28px; }
.preset-demo { display: flex; flex-direction: column; align-items: center; background: radial-gradient(80% 60% at 50% 40%, var(--accent-soft), transparent), var(--surface); }
.preset-status { align-self: stretch; text-align: center; padding: 10px 12px; border-radius: 10px; background: var(--app-bg); color: #e9ecef; font-size: .8rem; margin-bottom: 22px; transition: color .3s; }
.preset-status.flash { color: #4cc26a; }
.preset-shot { position: relative; width: min(345px, 100%); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); container-type: inline-size; }
.preset-shot img { width: 100%; height: auto; }
.hot { position: absolute; z-index: 2; left: 4.06%; width: 89%; border: 0; padding: 0; border-radius: 1.6cqw; background: transparent; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .25s, background .25s; }
.hot:hover { background: rgba(255, 255, 255, .05); }
.hot.on { box-shadow: inset 0 0 0 2px #4cc26a, 0 0 24px -4px rgba(76, 194, 106, .55); }
.hot[data-preset="0"].on { box-shadow: 0 0 24px -4px rgba(76, 194, 106, .55); }
/* Drawn over the screenshot's C1 so it can stop being green when another setup is picked */
.c1-cover { position: absolute; z-index: 1; left: 4.06%; width: 89%; top: 42.4%; height: 12.3%; background: #16181b; padding: .6cqw; opacity: 0; transition: opacity .2s; pointer-events: none; }
.c1-cover div { position: relative; height: 100%; border-radius: 1.2cqw; background: #1b1e22; }
.c1-cover span, .c1-cover b, .c1-cover em, .c1-cover small { position: absolute; line-height: 1; white-space: nowrap; font-family: "Segoe UI", system-ui, sans-serif; }
.c1-cover span { left: 2.6%; top: 37%; font-size: 3.2cqw; color: #9a9a9a; }
.c1-cover b { left: 12%; top: 18%; font-size: 3.9cqw; font-weight: 700; color: #fff; }
.c1-cover em { right: 2.4%; top: 20%; font-style: normal; font-size: 3.3cqw; font-weight: 600; color: #fff; }
.c1-cover small { left: 12%; top: 60%; font-size: 3.15cqw; color: #a8adb2; }
.preset-shot.moved .c1-cover { opacity: 1; }
.caption { margin-top: 16px; font-size: .84rem; color: var(--muted); text-align: center; }

.sq h3 { font-size: 1.6rem; letter-spacing: -.03em; }
.sq > p { margin-top: 10px; color: var(--text-2); }
.sq-controls { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.sq-out { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 24px 0 16px; }
.sq-big { font: 700 1.6rem/1 var(--display); color: var(--text-2); letter-spacing: -.02em; }
.sq-big b { font-size: 3.4rem; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sq-small { color: var(--muted); font-size: .92rem; }
.lanes { display: grid; gap: 10px; margin-bottom: 16px; }
.lane { display: grid; grid-template-columns: 76px 1fr 40px; align-items: center; gap: 12px; font-size: .78rem; color: var(--muted); }
.lane em { font-style: normal; font-family: var(--mono); text-align: right; }
.track { position: relative; height: 34px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.track::before { content: ""; position: absolute; inset: 50% 10px auto; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.bird { position: absolute; top: 50%; left: 0; width: 24px; height: 24px; color: var(--accent); translate: 0 -50%; animation: fly var(--d, 1s) linear infinite; }
#birdFast { color: var(--text-2); }
@keyframes fly { from { left: -24px; } to { left: 100%; } }

.baseiso { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-top: 22px; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.baseiso .eyebrow { margin-bottom: 10px; }
.baseiso p:last-child { color: var(--text-2); }
@media (max-width: 860px) { .presets-grid, .baseiso { grid-template-columns: 1fr; } }

/* ==========================================================================
   Photo modes
   ========================================================================== */
.photo-show { display: flex; flex-direction: column; gap: 28px; }
.photo-show > .seg { align-self: flex-start; }
.photo-stage { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.col-crop { position: relative; height: 640px; width: auto; aspect-ratio: 357 / 875; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #1b1e22; }
.col-crop img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; transition: transform .6s var(--ease); }
.col-crop[data-mode="0"] img { transform: translateX(0); }
.col-crop[data-mode="1"] img { transform: translateX(-33.9%); }
.col-crop[data-mode="2"] img { transform: translateX(-67.8%); }
.photo-panes .pane, .photo-real .shot { animation: fadeUp .45s var(--ease); }
.photo-real { margin-top: 12px; }
.photo-real .shot-tl { max-width: 760px; }
.pane h3 { font-size: 1.8rem; letter-spacing: -.03em; }
.pane > p { margin: 10px 0 18px; color: var(--text-2); font-size: 1.05rem; }
.pane .fine { margin-top: 18px; }
.pane-out { margin-top: 18px !important; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2) !important; min-height: 88px; }
.range { display: block; margin-top: 16px; }
.range span { display: flex; justify-content: space-between; font-size: .9rem; color: var(--text-2); margin-bottom: 8px; }
.range b { font-family: var(--mono); }
input[type="range"] { width: 100%; height: 6px; appearance: none; -webkit-appearance: none; background: var(--surface-2); border-radius: 99px; border: 1px solid var(--line); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2), 0 4px 12px rgba(0, 0, 0, .35); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); cursor: grab; }
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.readout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.readout div { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.readout small { display: block; font-size: .76rem; color: var(--muted); }
.readout b { display: block; margin: 4px 0; font: 700 2.3rem/1.05 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lexp-out { display: flex; gap: 20px; align-items: center; margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.lexp-out p { color: var(--text-2); font-size: .95rem; }
.ring { position: relative; width: 88px; height: 88px; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--surface-2); stroke-width: 3; }
.ring circle + circle { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 106.8; stroke-dashoffset: 106.8; }
.ring circle.run { animation: expose var(--d, 3s) linear forwards; }
@keyframes expose { to { stroke-dashoffset: 0; } }
.ring b { font: 650 1.05rem/1 var(--sans); }
@media (max-width: 860px) {
  .photo-stage { grid-template-columns: 1fr; }
  .col-crop { height: 520px; margin-inline: auto; }
  .photo-show > .seg { align-self: stretch; } .photo-show > .seg button { flex: 1; padding-inline: 8px; }
}

/* ==========================================================================
   Automatic recording
   ========================================================================== */
.auto { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 10px; padding: 10px; border-radius: 24px; background: var(--app-bg); box-shadow: var(--shadow); color: var(--app-text); }
.auto-pic { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .3s; }
.auto-pic img { width: 100%; height: 100%; object-fit: cover; }
.auto-pic.rec { outline-color: var(--rec); }
.scan { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(63, 212, 255, .16) 48%, rgba(63, 212, 255, .5) 50%, transparent 52%); background-size: 200% 100%; animation: scan 2.6s linear infinite; mix-blend-mode: screen; transition: opacity .4s; }
.auto-pic.seen .scan, .auto-pic.idle .scan { opacity: 0; }
@keyframes scan { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.det { position: absolute; left: 41.7%; top: 13.9%; width: 26%; height: 69.4%; border: 2px solid #4cc26a; opacity: 0; transform: scale(1.12); transition: opacity .35s, transform .5s var(--ease); }
.det span { position: absolute; left: -2px; top: -2px; padding: 2px 6px; background: #000; color: #fff; font-size: .74rem; border: 1px solid #4cc26a; }
.auto-pic.seen .det { opacity: 1; transform: none; }
.auto-pic.leaving .det { opacity: .35; }
.auto-rec { position: absolute; left: 14px; top: 12px; display: none; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 6px; background: var(--rec); color: #fff; font-weight: 700; font-size: .84rem; }
.auto-rec .rec-dot { background: #fff; width: 7px; height: 7px; animation: none; }
.auto-rec b { color: #fff; }
.auto-pic.rec .auto-rec { display: inline-flex; }
.auto-state { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: .8rem; white-space: nowrap; backdrop-filter: blur(8px); }
.auto-side { background: var(--app-panel); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; }
.auto-side .lbl { color: var(--app-dim); margin-top: 4px; }
.auto-side .seg-panel { margin-bottom: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .9rem; cursor: pointer; margin-bottom: 14px; }
.check input { position: absolute; opacity: 0; }
.check span { width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid #6c737a; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check input:checked + span { background: #22c7ea; border-color: #22c7ea; }
.check input:checked + span::after { content: ""; width: 10px; height: 5px; border: 2px solid #04161d; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.auto-steps { list-style: none; padding: 14px 0 0; margin: 0 0 14px; border-top: 1px solid var(--app-line); display: grid; gap: 9px; counter-reset: s; }
.auto-steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; font-size: .82rem; color: #7d848b; transition: color .3s; }
.auto-steps li::before { content: counter(s); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 .68rem/1 var(--mono); border: 1px solid #3a4046; transition: background .3s, color .3s, border-color .3s; }
.auto-steps li.now { color: #fff; }
.auto-steps li.now::before { background: #22c7ea; border-color: #22c7ea; color: #04161d; }
.auto-steps li.done { color: #b9bfc5; }
.auto-steps li.done::before { border-color: #4cc26a; color: #4cc26a; }
.auto-side .btn { margin-top: auto; align-self: flex-start; background: #262a2f; color: #fff; border-color: #3a4046; }
@media (max-width: 900px) { .auto { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .auto { margin-inline: -8px; border-radius: 18px; padding: 6px; } .auto-pic { border-radius: 12px; } .auto-state { font-size: .7rem; } }

/* ==========================================================================
   Anywhere
   ========================================================================== */
.section-dark { background: radial-gradient(70% 50% at 50% 0%, color-mix(in srgb, var(--glow-a) 70%, transparent), transparent 70%), var(--bg); border-block: 1px solid var(--line); }
.journey { border-radius: 28px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 80%, transparent); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.dist { position: relative; height: 74px; margin: 10px 26px 26px; }
.dist-track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; border-radius: 4px; background: var(--surface-2); translate: 0 -50%; overflow: hidden; }
.dist-fill { position: absolute; inset: 0 auto 0 0; width: 10%; background: var(--grad); border-radius: 4px; transition: width .9s var(--ease); }
.dist-fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 6px, transparent 6px 14px); animation: dash 1s linear infinite; mix-blend-mode: overlay; }
@keyframes dash { to { background-position: 14px 0; } }
.dist-cam { position: absolute; left: 0; top: 50%; translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); box-shadow: var(--shadow-sm); }
.dist-you { position: absolute; top: 50%; left: 10%; translate: -50% -50%; transition: left .9s var(--ease); }
.dist-you span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--text); color: var(--bg); font: 650 .86rem/1 var(--sans); white-space: nowrap; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent), var(--shadow-sm); }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.steps button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 0; border-radius: 12px; background: transparent; color: var(--text-2); font-size: .84rem; font-weight: 550; transition: background .2s, color .2s; }
.steps button b { font: 600 .7rem/1 var(--mono); color: var(--muted); }
.steps button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line-2), 0 6px 18px -8px rgba(0, 0, 0, .4); }
.steps button[aria-selected="true"] b { color: var(--accent); }
.chain { display: flex; align-items: center; justify-content: center; gap: 0; margin: 40px 0 26px; min-height: 130px; }
.node { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 150px; text-align: center; animation: pop .5s var(--ease) backwards; }
.node-ic { width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); color: var(--text); position: relative; }
.node-ic .ic { width: 30px; height: 30px; stroke-width: 1.5; }
.node.you .node-ic { background: var(--text); color: var(--bg); border-color: transparent; }
.node.cam-node .node-ic { color: var(--accent); }
.node b { font-size: .9rem; font-weight: 600; }
.node small { display: block; margin-top: -6px; font-size: .76rem; color: var(--muted); }
.node .tag { position: absolute; top: -8px; right: -10px; padding: 2px 7px; border-radius: 99px; background: var(--rec); color: #fff; font: 700 .58rem/1.4 var(--mono); }
.link { flex: 1; max-width: 190px; min-width: 50px; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: -42px; animation: pop .5s var(--ease) backwards; }
.link-line { width: 100%; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); background-size: 16px 3px; animation: flow .7s linear infinite; opacity: .9; }
.link.l-wifi .link-line { background-image: repeating-linear-gradient(90deg, var(--ok) 0 8px, transparent 8px 16px); }
.link.l-ts .link-line { background-image: repeating-linear-gradient(90deg, #8f7bff 0 8px, transparent 8px 16px); }
.link span { font-size: .74rem; color: var(--muted); white-space: nowrap; font-family: var(--mono); }
@keyframes flow { to { background-position: 16px 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.journey-copy { max-width: 640px; margin: 0 auto; text-align: center; }
.journey-copy h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.journey-copy p { margin-top: 10px; color: var(--text-2); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.duo .fine { margin-top: 14px; }
.duo h3 { margin-top: 14px; }
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.moment { margin: 0; }
.moment img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); background: #000; }
.moment figcaption { margin-top: 12px; font-size: .86rem; color: var(--muted); }
.moment figcaption b { display: block; color: var(--text); font-size: 1rem; }
.moments + .fine { margin-top: 20px; }
.speeds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.speed { padding: 26px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.speed-where { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .9rem; font-weight: 600; }
.speed-where .ic { width: 18px; height: 18px; color: var(--accent); }
.speed-num { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 6px; font: 700 clamp(3.4rem, 6vw, 4.8rem)/1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.speed-num small { font-size: .42em; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.speed > p:not(.fine):not(.speed-where) { color: var(--text); font-weight: 550; }
.speed .fine { margin-top: 12px; }
#speed .shot-wide + .fine { margin-top: 22px; }
@media (max-width: 860px) { .speeds { grid-template-columns: 1fr; } .moments { gap: 10px; } .moment figcaption { font-size: .78rem; } }
.glass { background: color-mix(in srgb, var(--surface) 75%, transparent); backdrop-filter: blur(10px); }
.rule { margin-top: 26px; text-align: center; color: var(--text-2); }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .chain { flex-direction: column; gap: 0; }
  .link { position: relative; margin: 8px 0; max-width: none; width: 100%; }
  .link-line { width: 3px; height: 46px; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 16px); background-size: 3px 16px; animation-name: flowv; }
  .link span { position: absolute; left: calc(50% + 16px); top: 50%; translate: 0 -50%; }
  .link.l-wifi .link-line { background-image: repeating-linear-gradient(180deg, var(--ok) 0 8px, transparent 8px 16px); }
  .link.l-ts .link-line { background-image: repeating-linear-gradient(180deg, #8f7bff 0 8px, transparent 8px 16px); }
  .node { width: auto; }
  .dist { margin-inline: 22px; }
}
@keyframes flowv { to { background-position: 0 16px; } }

/* ==========================================================================
   iPhone and iPad
   ========================================================================== */
.ios { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.ios-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.ios-copy .sub { margin-top: 18px; }
.ios-copy .cta { justify-content: flex-start; margin-top: 28px; }
.ios-copy .fine { margin-top: 18px; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .84rem; color: var(--text-2); }
.devices { position: relative; aspect-ratio: 1.12; }
.iphone { position: absolute; top: 9%; width: 34%; margin: 0; aspect-ratio: 9 / 19.5; border-radius: 13% / 6%; padding: 2.4%; background: linear-gradient(145deg, #3a3e45, #141619); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .16); }
.ip-l { left: 1%; transform: rotate(-7deg); }
.ip-r { right: 1%; transform: rotate(7deg); }
.ip-c { left: 31%; top: 0; width: 38%; z-index: 1; }
.dev-screen { position: relative; width: 100%; height: 100%; border-radius: 11% / 5.2%; overflow: hidden; background: #000; padding-top: 13%; }
.dev-screen > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.island { position: absolute; top: 4.2%; left: 50%; translate: -50% 0; width: 30%; height: 3.2%; border-radius: 99px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
@media (max-width: 900px) { .ios { grid-template-columns: 1fr; } .devices { max-width: 560px; width: 100%; margin-inline: auto; } }

/* ==========================================================================
   Bento
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 14px; }
.tile { position: relative; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-2); }
.tile:hover::after { opacity: 1; }
.tile .ic { color: var(--accent); width: 24px; height: 24px; }
.tile h3 { margin: 16px 0 6px; font-size: 1.06rem; }
.tile p { font-size: .9rem; color: var(--text-2); line-height: 1.5; }
.t-wide { grid-column: span 2; }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; padding: 18px 22px; border-radius: 16px; border: 1px dashed var(--line-2); font-size: .88rem; color: var(--text-2); }
.keys-h { font: 600 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.keys kbd { margin-right: 6px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .t-wide { grid-column: auto; } }

/* ==========================================================================
   Download
   ========================================================================== */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plat { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.plat:hover { transform: translateY(-3px); }
.plat.mine { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-sm); }
.plat .you { display: none; position: absolute; top: 18px; right: 18px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 .68rem/1.5 var(--mono); letter-spacing: .04em; }
.plat.mine .you { display: inline-block; }
.plat-ic { width: 40px; height: 40px; color: var(--text); }
.plat h3 { margin-top: 20px; font-size: 1.5rem; }
.plat .req { margin: 6px 0 22px; color: var(--muted); font-size: .92rem; }
.plat .btn { width: 100%; }
.sublink { margin-top: 12px; font-size: .86rem; }
.plat details { margin-top: 18px; width: 100%; border-top: 1px solid var(--line); padding-top: 14px; font-size: .9rem; color: var(--text-2); }
.plat summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; }
.plat summary::-webkit-details-marker { display: none; }
.plat summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform .2s; }
.plat details[open] summary::after { transform: rotate(45deg); }
.plat details ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.plat details p { margin-top: 10px; }
.nope { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; margin: 26px auto 18px; color: var(--muted); font-size: .88rem; }
.nope span { display: inline-flex; align-items: center; gap: 8px; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--rec) 70%, transparent); }
.nope .ic { width: 16px; height: 16px; }
@media (max-width: 900px) { .platforms { grid-template-columns: 1fr; } }

/* ==========================================================================
   Cameras
   ========================================================================== */
.checker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; margin-bottom: 26px; }
.search { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 60px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search .ic { color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 1.05rem/1 var(--text-font); }
.search input::placeholder { color: var(--muted); }
.verdict { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: .93rem; min-height: 60px; }
.verdict b { display: block; color: var(--text); font-size: 1rem; }
.verdict .st { width: 12px; height: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.st { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.st-tested { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.st-user { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.st-should { background: transparent; border: 1.5px solid var(--text-2); }
.st-no { background: var(--rec); opacity: .8; }
.cams { display: grid; gap: 10px; margin-bottom: 22px; }
.cam-group { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.cam-group h4 { font: 600 .74rem/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cam-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cam { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .9rem; color: var(--text); transition: opacity .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; cursor: default; }
.cam small { color: var(--muted); font-size: .76rem; }
.cam.tested { border-color: color-mix(in srgb, var(--ok) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 14%, transparent); }
.cam.user { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.cam.no { color: var(--muted); border-style: dashed; }
.cams.filtering .cam { opacity: .25; }
.cams.filtering .cam.match { opacity: 1; transform: scale(1.04); border-color: var(--accent); }
@media (max-width: 760px) { .checker { grid-template-columns: 1fr; } .cam-group { grid-template-columns: 1fr; gap: 10px; } }

/* ==========================================================================
   Setup
   ========================================================================== */
.timeline { max-width: 900px; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 10%, transparent)); }
.timeline > li { display: grid; grid-template-columns: 48px 1fr; gap: 22px; padding-bottom: 38px; }
.t-num { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--accent); color: var(--text); font: 650 1.1rem/1 var(--sans); box-shadow: 0 0 0 6px var(--bg); }
.timeline h3 { font-size: 1.4rem; margin: 10px 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.timeline h3 small { font: 500 .78rem/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.timeline p { color: var(--text-2); }
.timeline p + p { margin-top: 10px; }
.timeline .fine { margin-top: 12px; }
.menu-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.menu-list label { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.menu-list label:hover { border-color: var(--line-2); }
.menu-list input { position: absolute; opacity: 0; }
.menu-list .box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; margin-top: 1px; transition: background .2s, border-color .2s; }
.menu-list .box .ic { width: 15px; height: 15px; stroke-width: 3; color: var(--accent-ink); opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--ease); }
.menu-list input:checked + .box { background: var(--ok); border-color: var(--ok); }
.menu-list input:checked + .box .ic { opacity: 1; transform: none; color: #fff; }
.menu-list input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-list input:checked ~ span { color: var(--muted); }
.menu-list span { font-size: .95rem; color: var(--text-2); }
.menu-list code { display: block; margin-top: 6px; color: var(--accent); font-size: .78rem; }

.ai { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: center; margin-top: 30px; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ai h3 { font-size: 1.4rem; }
.ai p { margin-top: 8px; color: var(--text-2); }
.prompt { position: relative; border-radius: 16px; background: var(--app-bg); border: 1px solid var(--line-2); }
.prompt pre { margin: 0; padding: 20px 20px 60px; white-space: pre-wrap; overflow-wrap: anywhere; font: .82rem/1.65 var(--mono); color: #d9dee3; }
.ai > * { min-width: 0; }
.prompt .btn { position: absolute; right: 12px; bottom: 12px; background: #262a2f; color: #fff; border-color: #3a4046; }
.faq { margin-top: 56px; max-width: 900px; }
.faq h3 { font-size: 1.4rem; margin-bottom: 14px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--text-2); max-width: 760px; }
.faq > .fine { margin-top: 16px; }
@media (max-width: 860px) { .ai { grid-template-columns: 1fr; padding: 22px; } }
@media (max-width: 560px) { .timeline > li { grid-template-columns: 40px 1fr; gap: 14px; } .t-num { width: 40px; height: 40px; } .timeline::before { left: 19px; } .menu-list label { padding: 12px; gap: 12px; } }

/* ==========================================================================
   Trust, specs, honesty
   ========================================================================== */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust .card h3 { margin-top: 16px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }
.specs { margin-top: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); padding: 4px 26px; }
.specs summary { cursor: pointer; list-style: none; padding: 20px 0; font: 620 1.1rem/1 var(--sans); display: flex; justify-content: space-between; }
.specs summary::-webkit-details-marker { display: none; }
.specs summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform .25s; }
.specs[open] summary::after { transform: rotate(45deg); }
.specs dl { display: grid; grid-template-columns: 220px 1fr; margin: 0 0 22px; }
.specs dt, .specs dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.specs dt { color: var(--muted); font-weight: 500; }
.specs dd { color: var(--text-2); }
@media (max-width: 640px) { .specs { padding: 2px 18px; } .specs dl { grid-template-columns: 1fr; } .specs dd { border-top: 0; padding-top: 0; } }
.honest { margin-top: 26px; padding: 26px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 6%, var(--surface)); }
.honest h3 { font-size: 1.1rem; margin-bottom: 12px; }
.honest ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); font-size: .95rem; }

/* ==========================================================================
   Closer and footer
   ========================================================================== */
.closer { position: relative; padding: clamp(100px, 14vw, 180px) 0; overflow: hidden; isolation: isolate; }
.closer .hero-glow { inset: 0 -20%; height: auto; }
.closer-icon { width: 88px; height: 88px; margin: 0 auto 30px; border-radius: 22px; box-shadow: 0 30px 60px -18px var(--glow-a), 0 0 0 1px var(--line-2); }
.closer h2 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); letter-spacing: -.045em; }
.cta.center { justify-content: center; }

.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-2); }
.foot-in { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.foot-brand p { margin-top: 14px; color: var(--muted); font-size: .92rem; max-width: 300px; }
.socials { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a, .socials span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); transition: color .2s, border-color .2s, transform .2s var(--ease); }
.socials a:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-2px); }
.socials span { opacity: .45; border-style: dashed; cursor: help; }
.socials .ic { width: 19px; height: 19px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h4 { font: 600 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-cols a { display: block; padding: 5px 0; color: var(--text-2); font-size: .92rem; }
.foot-cols a:hover { color: var(--text); }
.foot-cols a.is-off { opacity: .5; }
.foot-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .78rem; color: var(--muted); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

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

/* ==========================================================================
   Viewfinder identity: clip numbers, brackets, on-screen readouts, grain
   ========================================================================== */
/* Each section is numbered like the camera's own clips: C0001, C0002… */
body { counter-reset: clip; }
.head .eyebrow::before, .split-copy .eyebrow::before, .ios-copy .eyebrow::before {
  counter-increment: clip; content: "C00" counter(clip, decimal-leading-zero);
  padding-right: 11px; margin-right: 2px; border-right: 1px solid var(--line-2); color: var(--text-2); letter-spacing: .06em;
}
.eyebrow { font-weight: 500; letter-spacing: .16em; }

/* Viewfinder corners around the hero window and the video */
.stage::before, .video::after {
  content: ""; position: absolute; pointer-events: none; z-index: 3;
  --vf: color-mix(in srgb, var(--text) 55%, transparent);
  background:
    linear-gradient(var(--vf), var(--vf)) left top / 34px 2px no-repeat,
    linear-gradient(var(--vf), var(--vf)) left top / 2px 34px no-repeat,
    linear-gradient(var(--vf), var(--vf)) right top / 34px 2px no-repeat,
    linear-gradient(var(--vf), var(--vf)) right top / 2px 34px no-repeat,
    linear-gradient(var(--vf), var(--vf)) left bottom / 34px 2px no-repeat,
    linear-gradient(var(--vf), var(--vf)) left bottom / 2px 34px no-repeat,
    linear-gradient(var(--vf), var(--vf)) right bottom / 34px 2px no-repeat,
    linear-gradient(var(--vf), var(--vf)) right bottom / 2px 34px no-repeat;
}
.stage::before { inset: -16px; }
@media (max-width: 1100px) { .stage::before { inset: -10px; } }
.video::after { inset: 14px; --vf: rgba(255, 255, 255, .6); }

/* The hero's on-screen readouts, like the camera's monitor */
.hero-copy { position: relative; }
.osd { position: absolute; inset: -34px -6px -10px; pointer-events: none; font: 500 .72rem/1 var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.osd span { position: absolute; display: flex; align-items: center; gap: 8px; }
.osd .tl { top: 0; left: 0; } .osd .tr { top: 0; right: 0; }
.osd .bl { bottom: 0; left: 0; } .osd .br { bottom: 0; right: 0; }
.osd b { color: var(--text-2); font-weight: 600; }
.osd .batt { width: 22px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.osd .batt::after { content: ""; position: absolute; inset: 1.5px; right: 45%; background: currentColor; }
@media (max-width: 1000px) { .osd { display: none; } }

/* A timecode ruler above and below the numbers */
.numbers {
  background-image:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 14px);
  background-size: 100% 7px, 100% 7px; background-position: top, bottom; background-repeat: no-repeat;
}

/* Film grain, very faint */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-transparency: reduce) { body::after { display: none; } }

/* Made by, follow along, tip jar: present, never in the way */
.maker { margin-top: 34px; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; font: 500 .78rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.maker b { color: var(--text-2); font-weight: 600; }
.maker .follow { display: inline-flex; gap: 4px; }
.maker .follow a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--text-2); transition: color .2s, background .2s; }
.maker .follow a:hover { color: var(--text); background: var(--surface); }
.maker .follow .ic { width: 16px; height: 16px; }
.maker > span + span { padding-left: 18px; border-left: 1px solid var(--line-2); }
.maker .tip { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.maker .tip:hover { color: var(--text); text-decoration-color: currentColor; }
.thanks { margin: 22px auto 0; max-width: 620px; text-align: center; color: var(--text-2); font-size: .95rem; animation: thanks-in .5s var(--ease) both; }
.thanks a { color: var(--accent); }
@keyframes thanks-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .thanks { animation: none; } }

/* How far away: rings around the camera */
.rings { display: block; width: min(100%, 680px); height: auto; margin: 0 auto 18px; overflow: visible; }
.ring-arc { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 3 7; cursor: pointer; transition: stroke .35s, stroke-width .35s; }
.ring-arc.in { stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-dasharray: none; }
.ring-arc.on { stroke: var(--accent); stroke-width: 3; stroke-dasharray: none; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent)); }
.ring-txt { text-anchor: middle; font: 600 13px var(--mono); letter-spacing: .14em; fill: var(--muted); cursor: pointer; transition: fill .3s; }
.ring-txt.on { fill: var(--text); }
.ring-cam { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.ring-cam-ic { color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.steps { grid-template-columns: repeat(4, 1fr); max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ring-txt { font-size: 17px; }
}

/* What it caught by itself */
.takes { margin-top: 56px; }
.takes-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.takes-top h3 { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1 var(--display); letter-spacing: -.005em; }
.take { margin: 0; }
.take-pic { position: relative; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.take-pic video { display: block; width: 100%; height: 100%; object-fit: cover; }
.take-osd { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; font: 600 .78rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.take-osd span { padding: 6px 9px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); }
.take-osd .take-rec { background: var(--rec); }
.take-osd .take-rec::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #fff; vertical-align: 1px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.take figcaption { margin-top: 14px; color: var(--text-2); max-width: 760px; }
.takes > .fine { margin-top: 8px; }

/* The detector comparison */
.detect { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 88px; }
.det-copy h3 { font: 700 clamp(1.6rem, 3vw, 2.4rem)/1 var(--display); }
.det-copy > p:first-of-type { margin-top: 12px; color: var(--text-2); }
.det-bars { list-style: none; padding: 0; margin: 26px 0 14px; display: grid; gap: 14px; }
.det-bars li { display: grid; grid-template-columns: 170px minmax(0, 1fr) 3.2ch 8ch; align-items: center; gap: 12px; font-size: .9rem; }
.det-name { color: var(--text-2); line-height: 1.2; }
.det-name small { display: block; font: 500 .68rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.det-bar { height: 10px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.det-bar i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--line-2); border-radius: 3px; }
.det-bars b { font: 700 1.25rem/1 var(--display); text-align: right; }
.det-bars em { font: 500 .74rem/1 var(--mono); font-style: normal; color: var(--muted); white-space: nowrap; }
.det-bars em.bad { color: var(--rec); }
.det-now .det-name { color: var(--text); font-weight: 600; }
.det-now .det-bar i { background: var(--accent); }
.det-now .det-name small { color: var(--accent); }
.det-lab .det-bar i { background: repeating-linear-gradient(135deg, var(--accent) 0 6px, color-mix(in srgb, var(--accent) 40%, transparent) 6px 12px); }
.det-vid { margin: 0; }
.det-vid video { display: block; width: 100%; height: auto; border-radius: 18px; background: #000; box-shadow: var(--shadow); }
.det-vid figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) {
  .detect { grid-template-columns: 1fr; }
  .det-bars li { grid-template-columns: 130px minmax(0, 1fr) 3.2ch; }
  .det-bars em { grid-column: 1 / -1; margin-top: -8px; }
}

/* Photo, time-lapse and long exposure examples: real pictures, any shape */
.photo-real .shot-pic { display: grid; grid-template-columns: auto minmax(0, 300px); gap: 28px; align-items: end; justify-content: center; }
.photo-real .shot-pic img, .photo-real .shot-pic video { width: auto; max-width: 100%; max-height: min(640px, 80vh); border-radius: 14px; }
.photo-real .shot-pic figcaption { margin: 0 0 6px; font-size: .92rem; color: var(--text-2); }
.photo-real .shot-pic figcaption b { display: block; margin-bottom: 6px; font: 600 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) {
  .photo-real .shot-pic { grid-template-columns: 1fr; gap: 14px; }
  .photo-real .shot-pic img, .photo-real .shot-pic video { margin: 0 auto; max-height: 70vh; }
}
.photo-real .shot-pic[hidden] { display: none; }
