/* Layout: full-screen "sheets" that snap; copy on the left, a live product scene on the right; a drawing title block tracks the current sheet.
   One theme, dark, in the visual language of the promo video: graphite, almost monochrome; blue is structure, mint is "all good"
   (and the dot of the logo), orange is an alert. Pins and other marks on drawings keep their fixed paper colours. */
:root {
  color-scheme: dark;
  --bg: #0F1114;
  --surface: #181B20;
  --surface-2: #1F2329;
  --ink: #ECEEF2;
  --ink-2: #C4C9D1;
  --ink-3: #848C98;
  --line: #2A2E35;
  --line-soft: #20242A;
  --accent: #2980FF;
  --accent-2: #6EA8FF;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(41, 128, 255, .14);
  --signal: #2EE6A6;
  --signal-deep: #0FA878;
  --alert: #FF8A3D;
  --warm: #FFC687;
  --ok: var(--signal);
  --dot: rgba(236, 238, 242, .06);
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, .85);
  --display: "Inter", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  /* product interface (graphite), as in the app; the accent fill is a shade darker so white text on it reads (4.7:1) */
  --g-base: #0F1114; --g-raised: #1A1D22; --g-overlay: #20242A; --g-border: #2A2E35;
  --g-text: #E9EBEF; --g-text-2: #C4C9D1; --g-muted: #8A909C; --g-accent: #1F6FE5; --g-accent-strong: #6EA8FF; --g-selected: #182842;
  /* paper: marks on drawings, fixed */
  --p-pending: #94A3B8; --p-inst: #F59E0B; --p-installed: #2563EB; --p-comm: #16A34A; --p-issue: #DC2626;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
@media (min-width: 960px) and (min-height: 660px) { html { scroll-snap-type: y mandatory; } }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background-color: var(--bg); color: var(--ink-2); font: 400 16px/1.55 var(--body); font-feature-settings: "cv11", "ss01";
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(110, 140, 190, .06), transparent 70%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .5) 100%),
    radial-gradient(circle, var(--dot) 1px, transparent 1.6px);
  background-size: 100% 100%, 100% 100%, 30px 30px;
  background-attachment: fixed; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
/* fine grain, as in the film; static, and only on large screens */
@media (min-width: 960px) {
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}
a { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.sig { color: var(--signal); }
.skip { position: fixed; left: 16px; top: 12px; z-index: 90; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 600 14px var(--body); text-decoration: none; transform: translateY(-160%); transition: transform .2s var(--ease-out); }
.skip:focus-visible { transform: none; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--ink); }
.lead, .points li, .promise, .faq details p, .feat-grid span, .flow p { text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; height: var(--header-h);
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: 24px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 22px; width: auto; display: block; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { color: var(--ink-3); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .top-right { margin-left: 0; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang button { font: 600 12.5px var(--body); border: 0; background: transparent; color: var(--ink-3); padding: 5px 10px; border-radius: 999px; cursor: pointer; min-height: 28px; }
.lang button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 8px; font: 600 15px var(--body); letter-spacing: -.005em; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
/* primary: snow on graphite, with the dot of the logo */
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal-deep); }
.btn-primary:hover { background: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
/* the way into the app, for people who already have an account */
.signin { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font: 500 14px var(--body); text-decoration: none; white-space: nowrap; transition: color .2s; }
.signin svg { transition: transform .2s var(--ease-out); }
.signin:hover { color: var(--ink); }
.signin:hover svg { transform: translateX(2px); }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: 500 14px var(--body); cursor: pointer; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--ink); border-color: var(--ink-3); }
.menu {
  position: absolute; top: 100%; right: max(12px, env(safe-area-inset-right, 0px)); width: min(280px, calc(100vw - 24px)); margin-top: 8px; padding: 6px;
  display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .8);
}
.menu[hidden] { display: none; }
.menu a { color: var(--ink-2); text-decoration: none; font: 500 15px var(--body); padding: 12px 14px; border-radius: 8px; min-height: 44px; }
.menu a:hover { color: var(--ink); background: var(--surface-2); }
.menu .menu-signin { display: none; border-top: 1px solid var(--line-soft); border-radius: 0 0 8px 8px; margin-top: 4px; }
@media (max-width: 1080px) { .nav { display: none; } .nav + .top-right { margin-left: auto; } .menu-btn { display: inline-flex; } }
@media (max-width: 520px) {
  .top { gap: 12px; }
  .top-right { gap: 8px; }
  .top .btn-sm, .top .signin { display: none; }
  .menu .menu-signin { display: block; }
}

/* ---------- scenes ---------- */
.scene { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding-block: calc(var(--header-h) + 36px) 72px; scroll-snap-align: start; }
.scene-in {
  width: 100%; max-width: 1280px; margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 84px); align-items: center;
}
.copy { display: grid; gap: 20px; min-width: 0; max-width: 520px; }
.copy h2 { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.points { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); }
.points li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--accent-2); }
.demo { min-width: 0; position: relative; }
.stage { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.caption { margin-top: 14px; font: 400 13px var(--body); color: var(--ink-3); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.caption b { color: var(--ink); font-weight: 500; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); flex-wrap: wrap; }
.tabs button { font: 500 13px var(--body); color: var(--ink-3); background: transparent; border: 0; padding: 7px 14px; border-radius: 7px; cursor: pointer; min-height: 34px; }
@media (pointer: coarse) {
  .tabs button, .steps-nav button { min-height: 44px; }
  .lang button { min-height: 40px; min-width: 40px; }
}
.tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
@media (max-width: 959px) {
  .scene { min-height: auto; padding-block: calc(var(--header-h) + 28px) 56px; }
  .scene-in { grid-template-columns: minmax(0, 1fr); }
  .copy { max-width: 640px; }
}

/* ---------- sheet index ---------- */
.index { position: fixed; left: max(18px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 6px; }
.index button { width: 26px; height: 18px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.index button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink-3); transition: all .3s; }
.index button[aria-current="true"]::before { background: var(--signal); border-color: var(--signal); transform: scale(1.3); }
.more {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  font: 500 13px var(--body); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .6); transition: opacity .3s;
}
.more svg { animation: nudge 1.8s ease-in-out infinite; }
.more.gone { opacity: 0; pointer-events: none; }
@keyframes nudge { 50% { transform: translateY(3px); } }
@media (max-width: 1279px) { .index { display: none; } }
.motion {
  position: fixed; left: max(20px, env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 6px; cursor: pointer;
  font: 500 13px var(--body); color: var(--ink-3);
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.motion:hover { color: var(--ink); border-color: var(--ink-3); }
.motion .i-play, .motion[aria-pressed="true"] .i-pause { display: none; }
.motion[aria-pressed="true"] .i-play { display: block; }
.mbar { display: none; }
@media (max-width: 959px) { .motion { min-height: 44px; min-width: 44px; justify-content: center; padding: 0 12px; } .motion span { display: none; } }
@media (max-width: 520px) {
  .mbar {
    display: block; position: fixed; z-index: 45; left: calc(max(16px, env(safe-area-inset-left, 0px)) + 52px); right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  }
  .mbar .btn { width: 100%; min-height: 44px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8); }
  .mbar.gone { opacity: 0; transform: translateY(12px); pointer-events: none; }
  .motion { left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .motion { display: none; } .mbar { left: max(16px, env(safe-area-inset-left, 0px)); } }
@media (max-width: 959px), (max-height: 659px) { .more { display: none; } }

/* ---------- opening: the film ---------- */
.vsl { padding-block: calc(var(--header-h) + 18px) 30px; overflow: hidden; }
.vsl-net {
  position: absolute; inset: 0; pointer-events: none; opacity: .6;
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 50% 52%, transparent 38%, #000 78%);
  mask-image: radial-gradient(ellipse 62% 78% at 50% 52%, transparent 38%, #000 78%);
}
.vsl-net canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vsl-in {
  position: relative; z-index: 1; width: 100%; max-width: 1080px; margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  display: grid; justify-items: center; text-align: center; gap: clamp(12px, 2.1svh, 22px);
}
.vsl h1 { font-size: clamp(36px, min(5.4vw, 7.4svh), 78px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; }
.vsl h1 .sig { display: block; }
.lamp { position: relative; color: transparent; }
.lamp::before {
  content: ""; position: absolute; left: .03em; bottom: .13em; width: .18em; height: .18em; border-radius: 50%;
  background: #E6FFF5; box-shadow: 0 0 0 .025em var(--signal), 0 0 .12em var(--signal), 0 0 .45em rgba(46, 230, 166, .75), 0 0 1.2em rgba(46, 230, 166, .35);
  animation: lamp-on 1.1s .5s var(--ease-out) backwards;
}
/* the light it throws: a wide, soft pool on the graphite, behind the words and the film */
.lamp::after {
  content: ""; position: absolute; left: .12em; bottom: .22em; width: 1500px; height: 1500px; transform: translate(-50%, 50%); z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(46, 230, 166, .34) 0, rgba(46, 230, 166, .16) 7%, rgba(46, 230, 166, .07) 18%, rgba(46, 230, 166, .025) 34%, transparent 55%);
  animation: lamp-on 1.8s .7s var(--ease-out) backwards, lamp-breathe 6s 2.5s ease-in-out infinite;
}
@keyframes lamp-on { from { opacity: 0; } }
@keyframes lamp-breathe { 50% { opacity: .78; } }
@media (max-width: 959px) { .lamp::after { width: 900px; height: 900px; } }
.promise { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.player { width: min(100%, 960px, max(520px, calc((100svh - 520px) * 16 / 9))); margin-top: 4px; }
@media (min-width: 1280px) { .vsl-net { left: 64px; } }
.frame { position: relative; }
.tick { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink-3); opacity: .65; }
.tick.k-tl { left: -11px; top: -11px; border-left-width: 1px; border-top-width: 1px; }
.tick.k-tr { right: -11px; top: -11px; border-right-width: 1px; border-top-width: 1px; }
.tick.k-bl { left: -11px; bottom: -11px; border-left-width: 1px; border-bottom-width: 1px; }
.tick.k-br { right: -11px; bottom: -11px; border-right-width: 1px; border-bottom-width: 1px; }
.screen-16x9 {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg);
  border: 1px solid var(--line); box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .95);
}
.screen-16x9 video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--bg); }
.screen-16x9 video::cue { font-family: var(--body); font-size: .9em; background: rgba(15, 17, 20, .82); color: #ECEEF2; }
.play {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 0; border: 0; cursor: pointer;
  color: var(--ink); font: inherit; background: radial-gradient(ellipse at center, rgba(15, 17, 20, .2), rgba(15, 17, 20, .62)); transition: opacity .35s var(--ease-out);
}
.play-dot {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: var(--signal);
  background: rgba(15, 17, 20, .62); border: 1.5px solid var(--signal); box-shadow: 0 0 44px rgba(46, 230, 166, .2);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.play-dot svg { width: 24px; height: 24px; margin-left: 3px; }
.play:hover .play-dot, .play:focus-visible .play-dot { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(46, 230, 166, .08), 0 0 56px rgba(46, 230, 166, .28); }
.play:focus-visible { outline-offset: -4px; }
.play-txt { display: grid; gap: 5px; }
.play-txt b { font: 600 16px var(--body); letter-spacing: -.01em; }
.play-txt small { font: 400 13px var(--body); color: var(--ink-2); }
.player.playing .play { opacity: 0; pointer-events: none; }
.vsl .ctas { justify-content: center; margin-top: 2px; }
@media (max-width: 959px) {
  .vsl-net { display: none; }
  .vsl { padding-block: calc(var(--header-h) + 32px) 48px; }
  .player { width: 100%; }
}
@media (max-width: 520px) {
  .play-dot { width: 58px; height: 58px; }
  .play-txt small { display: none; }
  .vsl .ctas { width: 100%; display: grid; }
  .tick { display: none; }
}

/* ---------- paper (drawings) ---------- */
.paper { background: #FFFFFF; position: relative; }
.paper svg { display: block; width: 100%; height: auto; }
.pin-b { transform-box: fill-box; transform-origin: center; }
.playing .pin-b { animation: drop .55s cubic-bezier(.2, .9, .3, 1.35) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-26px) scale(.4); } }
.ring { transition: stroke .5s; }
.pin-tag { font: 500 13px var(--mono); fill: #0F172A; paint-order: stroke; stroke: #fff; stroke-width: 4px; }

/* ---------- hero ---------- */
.overview h2 em { font-style: normal; color: var(--accent-2); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-sheet { padding: 14px; background: var(--surface); }
.hero-sheet .paper { border: 1px solid #D8DDE6; }
.tblock { display: grid; grid-template-columns: 1.1fr 2.2fr .7fr .9fr; border: 1px solid #D8DDE6; border-top: 0; background: #FFFFFF; font: 400 11px/1.25 var(--mono); color: #5B6475; text-transform: uppercase; letter-spacing: .05em; }
.tblock > div { padding: 6px 9px; border-left: 1px solid #D8DDE6; min-width: 0; }
.tblock > div:first-child { border-left: 0; }
.tblock b { display: block; color: #0F172A; font-weight: 500; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .tblock { grid-template-columns: 1fr 1fr; } .tblock > div:nth-child(3) { border-left: 0; } .tblock > div:nth-child(n+3) { border-top: 1px solid #D8DDE6; } .tblock b { white-space: normal; } }
.counts { display: flex; gap: 6px 18px; flex-wrap: wrap; padding: 12px 4px 2px; font: 400 13px var(--body); color: var(--ink-3); }
.counts span { display: inline-flex; gap: 7px; align-items: center; }
.counts i { width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--c); }
.counts b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.toast {
  position: absolute; right: 26px; top: 26px; background: var(--g-overlay); color: var(--g-text); border: 1px solid var(--g-border); border-radius: 10px;
  padding: 10px 12px; font: 400 12px/1.4 var(--body); display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); transition: opacity .35s, transform .35s; max-width: 260px;
}
.toast i { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--c, var(--p-installed)); }
.toast b { font-weight: 600; }
.toast small { color: var(--g-muted); font-size: 11px; }
.toast.hide { opacity: 0; transform: translateY(-8px); }

/* ---------- drawings ---------- */
.dw { aspect-ratio: 16 / 11; padding: 18px; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.crumbs { font: 400 12px var(--mono); color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs b { color: var(--ink); font-weight: 500; }
.dw-body { position: relative; display: grid; grid-template-columns: 30% 1fr; gap: 18px; min-height: 0; }
.pdf { position: relative; align-self: center; aspect-ratio: 3 / 4; }
.pdf div { position: absolute; inset: 0; background: #FFFFFF; border: 1px solid #CDD3DE; border-radius: 3px; transition: transform .6s, opacity .6s; }
.pdf div:nth-child(1) { transform: translate(10px, 10px); }
.pdf div:nth-child(2) { transform: translate(5px, 5px); }
.pdf div:nth-child(3) { display: grid; place-items: center; padding: 10px; text-align: center; }
.pdf .file { font: 500 11px var(--mono); color: #0F172A; word-break: break-all; }
.pdf .file small { display: block; font-size: 11px; color: #6B7383; font-weight: 400; margin-top: 4px; }
.pdf .badge { position: absolute; top: 8px; left: 8px; background: #DC2626; color: #fff; font: 600 11px var(--mono); padding: 2px 5px; border-radius: 3px; }
[data-step="1"] .pdf, [data-step="2"] .pdf { opacity: .55; }
.sheets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-content: center; }
.sh { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: grid; gap: 5px; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .5s; transition-delay: calc(var(--i) * 70ms); }
.sh .paper { border: 1px solid #DDE1E8; border-radius: 2px; }
.sh-meta { display: flex; justify-content: space-between; align-items: center; gap: 4px; font: 500 11px var(--mono); color: var(--ink); }
.sh-meta span { font-weight: 400; color: var(--ink-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rev { font: 500 11px var(--mono); padding: 1px 5px; border-radius: 3px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); white-space: nowrap; }
[data-step="0"] .sh { opacity: 0; transform: translateX(-60%) scale(.5); transition-delay: 0s; }
[data-step="2"] .rev { background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
.rev .b { display: none; }
[data-step="2"] .rev .a { display: none; }
[data-step="2"] .rev .b { display: inline; }
.dw-status { font: 400 12px var(--mono); color: var(--ink-3); display: flex; gap: 10px; align-items: center; }
.dw-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.dw-status span { display: none; }
[data-step="0"] .dw-status .s0, [data-step="1"] .dw-status .s1, [data-step="2"] .dw-status .s2 { display: inline; }
@media (max-width: 640px) { .dw { aspect-ratio: auto; } .dw-body { grid-template-columns: 1fr; } .pdf { width: 34%; justify-self: center; } .sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- product window (graphite) ---------- */
.win { background: var(--g-base); color: var(--g-text); border-color: #262B33; font: 400 12px/1.4 var(--body); }
.win-top { height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--g-raised); border-bottom: 1px solid var(--g-border); }
.win-top .mk { width: auto; height: 14px; display: block; }
.win-top .sel { border: 1px solid #3E444D; border-radius: 6px; padding: 3px 9px; color: var(--g-text-2); font-size: 11.5px; }
.win-top .crumb { color: var(--g-muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.office { aspect-ratio: 16 / 11; display: grid; grid-template-rows: 38px 1fr; }
.office-body { display: grid; grid-template-columns: clamp(118px, 26%, 178px) minmax(0, 1fr); min-height: 0; }
.palette { background: var(--g-raised); border-right: 1px solid var(--g-border); padding: 10px 8px; display: grid; align-content: start; gap: 2px; overflow: hidden; }
.palette .ph { margin: 8px 6px 4px; font: 600 11px var(--body); color: var(--g-muted); }
.palette .ph:first-child { margin-top: 0; }
.prow { display: grid; grid-template-columns: 14px 1fr auto; gap: 7px; align-items: center; padding: 5px 6px; border-radius: 6px; font-size: 11.5px; color: var(--g-text-2); white-space: nowrap; }
.prow span { overflow: hidden; text-overflow: ellipsis; }
.prow em { font-style: normal; font-size: 11px; color: var(--g-muted); font-variant-numeric: tabular-nums; }
.prow.on em { color: var(--g-accent-strong); }
.prow.on { background: var(--g-selected); color: var(--g-accent-strong); box-shadow: inset 0 0 0 1px rgba(110, 168, 255, .35); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); border: 1.5px solid #fff; }
.dot.sq { border-radius: 3px; }
.canvas { position: relative; display: grid; place-items: center; padding: 14px; min-width: 0; background: #2A2F37; }
.planbox { position: relative; width: 100%; aspect-ratio: 1000 / 600; }
.planbox > .paper { position: absolute; inset: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.cursor { position: absolute; width: 20px; height: 20px; left: 8%; top: 52%; transition: left 1s cubic-bezier(.5, 0, .2, 1), top 1s cubic-bezier(.5, 0, .2, 1); z-index: 3; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.office[data-step="0"] .cursor { left: -22%; top: 4%; }
.newpin { opacity: 0; transition: opacity .3s; }
.office[data-step="2"] .newpin, .office[data-step="3"] .newpin { opacity: 1; }
.office[data-step="2"] .newpin .pin-b { animation: drop .5s cubic-bezier(.2, .9, .3, 1.35) both; }
.link { stroke-dasharray: 8 6; opacity: 0; transition: opacity .5s; }
.office[data-step="3"] .link { opacity: 1; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.ppanel {
  position: absolute; right: 12px; top: 12px; width: min(200px, 46%); background: var(--g-overlay); border: 1px solid var(--g-border); border-radius: 10px;
  padding: 12px; display: grid; gap: 8px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6); transform: translateX(110%); opacity: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; z-index: 2;
}
.office[data-step="2"] .ppanel, .office[data-step="3"] .ppanel { transform: none; opacity: 1; }
.ppanel .pt { margin: 0; font: 600 13px var(--body); color: var(--g-text); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 11px; }
.kv dt { color: var(--g-muted); }
.kv dd { margin: 0; color: var(--g-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--g-text-2); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
@media (max-width: 640px) { .office { aspect-ratio: 4 / 4.2; } .office-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; } .palette { grid-auto-flow: column; grid-auto-columns: max-content; border-right: 0; border-bottom: 1px solid var(--g-border); } .palette .ph { display: none; } .office[data-step="0"] .cursor { left: 10%; top: -20%; }
  .ppanel { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; padding: 10px; transform: translateY(120%); }
  .ppanel .kv { grid-template-columns: auto 1fr auto 1fr; }
  .ppanel .kv dt:nth-of-type(3), .ppanel .kv dd:nth-of-type(3), .ppanel .kv dt:nth-of-type(5), .ppanel .kv dd:nth-of-type(5) { display: none; } }

/* ---------- status ---------- */
.st { aspect-ratio: 16 / 11; display: grid; grid-template-columns: 44% 1fr; }
.st-plan { background: #2A2F37; display: grid; place-items: center; padding: 16px; position: relative; }
.st-plan .zoom { width: 100%; aspect-ratio: 1; overflow: hidden; position: relative; border-radius: 4px; }
.st-plan .zoom svg { position: absolute; width: 330%; left: -10%; top: -105%; }
.st-ring { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 5px solid var(--sc, var(--p-pending)); transition: border-color .5s; }
.st-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #E8833A; border: 2.5px solid #fff; }
.st-card { background: var(--g-overlay); padding: 18px; display: grid; grid-template-rows: auto auto 1fr; gap: 14px; min-width: 0; border-left: 1px solid var(--g-border); }
.st-head .pt { margin: 0; font: 600 15px var(--body); color: var(--g-text); }
.st-head small { color: var(--g-muted); font-size: 11.5px; }
.pill { display: inline-flex; gap: 7px; align-items: center; font: 500 12px var(--body); padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sc) 18%, transparent); color: var(--g-text); border: 1px solid color-mix(in srgb, var(--sc) 55%, transparent); justify-self: start; transition: all .4s; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-content: start; overflow: hidden; }
.hist li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; padding-bottom: 12px; position: relative; transition: opacity .45s, transform .45s; }
.hist li::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 0; width: 1px; background: var(--g-border); }
.hist li:last-child::before { display: none; }
.hist li > i { width: 11px; height: 11px; margin: 3px 0 0 2px; border-radius: 50%; border: 2.5px solid var(--c); }
.hist b { color: var(--g-text); font-weight: 600; font-size: 12px; }
.hist small { color: var(--g-muted); font-size: 11px; display: block; }
.hist p { color: var(--g-text-2); font-size: 11.5px; margin-top: 3px; }
.photo { display: flex; gap: 8px; margin-top: 6px; }
.photo svg { width: 64px; height: 44px; border-radius: 4px; }
.st[data-step="0"] .hist li:nth-child(n+2), .st[data-step="1"] .hist li:nth-child(n+3), .st[data-step="2"] .hist li:nth-child(n+4) { opacity: 0; transform: translateY(10px); }
@media (max-width: 640px) { .st { aspect-ratio: auto; grid-template-columns: 1fr; } .st-plan { height: 150px; } .st-plan .zoom { width: 130px; } }

/* ---------- field (phone) ---------- */
.field-demo { display: grid; justify-items: center; gap: 18px; }
.phone { height: min(540px, calc(100svh - 230px)); min-height: 420px; width: auto; max-width: 78vw; aspect-ratio: 9 / 18.6; border-radius: 40px; background: #05070C; padding: 10px; box-shadow: var(--shadow), inset 0 0 0 1.5px #2B303A; position: relative; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 12px; background: #05070C; z-index: 5; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--g-base); color: var(--g-text); font: 400 13px/1.4 var(--body); }
.scr { position: absolute; inset: 0; display: grid; grid-template-rows: 78px 1fr; opacity: 0; transform: translateX(16px); transition: opacity .45s, transform .45s; }
.field-demo[data-step="0"] .scr:nth-child(1), .field-demo[data-step="1"] .scr:nth-child(2), .field-demo[data-step="2"] .scr:nth-child(3), .field-demo[data-step="3"] .scr:nth-child(4) { opacity: 1; transform: none; }
.fh { display: flex; align-items: flex-end; gap: 10px; padding: 0 14px 10px; background: var(--g-raised); border-bottom: 1px solid var(--g-border); }
.fh b { font: 600 15px var(--body); }
.fh small { display: block; color: var(--g-muted); font-size: 11px; }
.fb { padding: 14px; display: grid; gap: 12px; align-content: start; }
.fbtn { min-height: 48px; border-radius: 9px; display: grid; place-items: center; font: 600 15px var(--body); background: var(--g-raised); border: 1px solid #3E444D; color: var(--g-text); }
.fbtn.pri { background: var(--g-accent); border-color: var(--g-accent); color: #fff; }
.geo { position: relative; aspect-ratio: 1; border-radius: 12px; background: #161A20; overflow: hidden; border: 1px solid var(--g-border); }
.geo::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#20252d 1px, transparent 1px), linear-gradient(90deg, #20252d 1px, transparent 1px); background-size: 22px 22px; }
.geo .rad { position: absolute; left: 50%; top: 50%; width: 72%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px dashed rgba(110, 168, 255, .7); background: rgba(0, 95, 220, .12); }
.geo .site { position: absolute; left: 50%; top: 50%; width: 30px; height: 20px; transform: translate(-50%, -50%); background: #E9EBEF; border-radius: 3px; }
.geo .me { position: absolute; left: 63%; top: 38%; width: 14px; height: 14px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 6px rgba(52, 211, 153, .25); animation: me 2s infinite; }
@keyframes me { 50% { box-shadow: 0 0 0 11px rgba(52, 211, 153, .08); } }
.okline { color: #34D399; font-size: 12.5px; }
.gear { display: grid; place-items: center; gap: 10px; text-align: center; padding-top: 6px; }
.gear svg { width: 112px; height: 112px; }
.gear b { font: 600 17px/1.3 var(--body); }
.gear small { color: var(--g-muted); font-size: 11.5px; }
.fplan { position: relative; background: #2A2F37; overflow: hidden; }
.fplan svg { position: absolute; width: 250%; left: -60%; top: 6%; }
.fcard { position: absolute; left: 10px; right: 10px; top: 10px; background: var(--g-overlay); border: 1px solid var(--g-border); border-radius: 12px; padding: 12px; display: grid; gap: 10px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); }
.fcard .row { display: flex; justify-content: space-between; align-items: center; }
.fcard b { font-size: 14px; }
.zoombtns { position: absolute; right: 10px; bottom: 12px; display: grid; gap: 6px; }
.zoombtns span { width: 40px; height: 40px; border-radius: 9px; background: var(--g-raised); border: 1px solid #3E444D; display: grid; place-items: center; color: var(--g-text-2); font-size: 18px; }
.ffield { min-height: 48px; border-radius: 9px; border: 1px solid #646B76; background: var(--g-raised); display: flex; align-items: center; padding: 0 12px; font-size: 15px; gap: 2px; }
.ffield .caret { width: 1.5px; height: 18px; background: var(--g-accent-strong); animation: pulse 1s steps(2) infinite; }
.match { border: 1px solid var(--g-border); border-radius: 9px; overflow: hidden; }
.match div { padding: 10px 12px; border-top: 1px solid var(--g-border); font-size: 12.5px; color: var(--g-text-2); display: flex; justify-content: space-between; gap: 8px; }
.match div:first-child { border-top: 0; }
.match em { font-style: normal; color: var(--g-muted); white-space: nowrap; }
.steps-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.steps-nav button { font: 500 12.5px var(--body); color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; min-height: 34px; }
.steps-nav button[aria-selected="true"] { color: var(--ink); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; margin-top: 4px; }
.feat-grid div { display: grid; gap: 3px; border-top: 1px solid var(--line); padding-top: 10px; }
.feat-grid b { font: 600 14.5px var(--body); color: var(--ink); }
.feat-grid span { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 420px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- labels ---------- */
.lb { aspect-ratio: 16 / 11; display: grid; place-items: center; background: var(--surface-2); position: relative; padding: 24px; }
.printer { position: absolute; top: 0; left: 50%; width: min(400px, 76%); height: 30px; transform: translateX(-50%); background: #08090B; box-shadow: inset 0 0 0 1px var(--line); border-radius: 0 0 14px 14px; z-index: 2; }
.printer::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 8px; height: 4px; border-radius: 2px; background: #000; opacity: .5; }
.label { position: relative; width: min(380px, 72%); aspect-ratio: 2 / 1; background: #FFFFFF; border-radius: 8px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); display: grid; grid-template-columns: 42% 1fr; gap: 14px; padding: 14px; transition: transform 1.2s cubic-bezier(.3, .7, .2, 1); color: #0F172A; }
.lb[data-step="0"] .label { transform: translateY(-115%); transition-duration: 0s; }
.qr { width: 100%; aspect-ratio: 1; align-self: center; position: relative; }
.qr svg { width: 100%; height: 100%; display: block; }
.lbl-txt { display: grid; align-content: center; gap: 4px; min-width: 0; }
.lbl-txt .id { font: 600 clamp(18px, 2.6vw, 26px)/1 var(--mono); letter-spacing: -.01em; }
.lbl-txt .t { font: 600 12px var(--body); }
.lbl-txt small { font: 400 11px var(--mono); color: #5B6475; }
.lbl-txt .mk { width: auto; height: 20px; margin-bottom: 4px; }
.scan { position: absolute; inset: -9%; border-radius: 10px; opacity: 0; transition: opacity .4s; }
.scan::before, .scan::after { content: ""; position: absolute; width: 26%; height: 26%; border: 3px solid var(--accent); }
.scan::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; box-shadow: calc(var(--w, 0px)) 0 0 0 transparent; }
.scan::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.scan i { position: absolute; left: 4%; right: 4%; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); top: 10%; animation: scanl 1.4s ease-in-out infinite alternate; }
@keyframes scanl { to { top: 88%; } }
.lb[data-step="2"] .scan { opacity: 1; }
.found { position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 10px); opacity: 0; transition: all .4s; background: var(--g-overlay); color: var(--g-text); border: 1px solid var(--g-border); border-radius: 10px; padding: 9px 14px; font: 500 12.5px var(--body); white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.found i { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--p-installed); }
.lb[data-step="2"] .found { opacity: 1; transform: translate(-50%, 0); transition-delay: .6s; }
@media (max-width: 640px) { .lb { aspect-ratio: 4 / 3.4; } .label { width: 86%; } }

/* ---------- project management ---------- */
.pm { padding: 16px; display: grid; gap: 14px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); min-width: 0; }
.tile small { display: block; font-size: 11.5px; color: var(--ink-3); }
.tile b { font: 600 clamp(15px, 1.6vw, 20px) var(--body); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 520px; }
.tbl th { text-align: right; font: 500 11px var(--body); color: var(--ink-3); padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .grp td { font: 600 11.5px var(--body); color: var(--ink); background: color-mix(in srgb, var(--surface-2) 60%, transparent); padding-top: 9px; }
.tbl .grp td i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 7px; }
.tbl td.buy { color: var(--accent-2); font-weight: 600; }
.tbl td.z { color: var(--ink-3); }
.bar { display: inline-block; width: 46px; height: 5px; border-radius: 3px; background: var(--line-soft); vertical-align: middle; margin-left: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--p-comm); transition: width 1.2s; }
.tbl em { font-style: normal; font-size: 11px; color: var(--ink-3); margin-left: 6px; }
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl { min-width: 0; }
  .tbl th:nth-child(3), .tbl td:nth-child(3), .tbl th:nth-child(4), .tbl td:nth-child(4), .tbl th:nth-child(5), .tbl td:nth-child(5) { display: none; }
  .tbl .grp td { display: table-cell; }
  .tbl td:first-child { white-space: normal; }
  .tbl .bar { display: none; }
}

/* ---------- riser ---------- */
.rs { aspect-ratio: 16 / 11; position: relative; background: var(--surface-2); }
.rs-view { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .5s; pointer-events: none; }
.rs[data-step="0"] .v-3d, .rs[data-step="1"] .v-dia, .rs[data-step="2"] .v-rack { opacity: 1; pointer-events: auto; }
.iso-wrap { width: min(400px, 64%); aspect-ratio: 1000 / 600; perspective: 1600px; margin-top: 10%; }
.iso { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(57deg) rotateZ(-38deg); }
.floor { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--l) * var(--gap, 64px))); }
.floor .paper { position: absolute; inset: 0; opacity: .84; box-shadow: 0 0 0 1px #C5CCD8, 0 10px 24px rgba(0, 0, 0, .4); }
.floor .lv { position: absolute; left: -15%; top: 0; font: 600 22px var(--mono); color: var(--ink-3); }
.shaft { position: absolute; left: 57%; top: 79%; width: 5px; margin-left: -2.5px; height: calc(var(--gap, 64px) * 3); transform-origin: top center; transform: rotateX(90deg); background: repeating-linear-gradient(0deg, var(--accent) 0 10px, transparent 10px 16px); background-size: 100% 32px; animation: flow 1s linear infinite; }
@keyframes flow { to { background-position: 0 -32px; } }
.glow { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #E8833A; box-shadow: 0 0 0 5px rgba(232, 131, 58, .35), 0 0 0 10px rgba(232, 131, 58, .15); animation: me 1.6s infinite; }
.rs-legend { position: absolute; left: 16px; top: 14px; display: grid; gap: 6px; font: 400 11.5px var(--mono); color: var(--ink-3); }
.rs-legend span { display: flex; gap: 8px; align-items: center; }
.rs-legend i { width: 18px; height: 3px; background: var(--c); border-radius: 2px; }
.v-dia svg, .v-rack svg { width: 92%; height: 90%; }
.trace { stroke-dasharray: 10 7; animation: dash 1s linear infinite; }
.rs-tabs { margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .rs-legend { display: none; } .rs { aspect-ratio: 4 / 3.6; } .iso-wrap { width: 70%; --gap: 44px; } .floor { --gap: 44px; } .shaft { --gap: 44px; } }

/* ---------- tools ---------- */
.tl { aspect-ratio: 16 / 11; position: relative; background: #2A2F37; display: grid; place-items: center; padding: 16px; }
.tl .planbox { max-height: 100%; }
.tl canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; mix-blend-mode: multiply; }
.tl[data-step="0"] canvas { opacity: .85; }
.tl .ov { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.tl[data-step="0"] .ov-w, .tl[data-step="1"] .ov-m, .tl[data-step="2"] .ov-k { opacity: 1; }
.legend { position: absolute; left: 14px; bottom: 14px; background: var(--g-overlay); color: var(--g-text-2); border: 1px solid var(--g-border); border-radius: 8px; padding: 8px 10px; font: 400 11px var(--mono); display: grid; gap: 6px; opacity: 0; transition: opacity .5s; }
.tl[data-step="0"] .legend { opacity: 1; }
.legend .ramp { width: 150px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #DC2626, #F59E0B, #EAB308, #84CC16, #16A34A); }
.legend .ends { display: flex; justify-content: space-between; color: var(--g-muted); }
.legend b { color: var(--g-text); font-weight: 500; }
.comment { position: absolute; background: #FFF7D6; color: #3B2F05; border: 1px solid #E8CF6A; border-radius: 8px; padding: 8px 10px; font: 400 11.5px/1.35 var(--body); max-width: 180px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .4); }
.comment b { display: block; font-size: 11px; color: #7A6110; margin-top: 3px; font-weight: 500; }
@media (max-width: 640px) { .tl { aspect-ratio: auto; gap: 10px; } .legend { position: static; justify-self: start; } .legend .ramp { width: 120px; } .comment { max-width: 140px; font-size: 11px; } }

/* ---------- AI ---------- */
.ai { aspect-ratio: 16 / 11; display: grid; grid-template-rows: 38px 1fr 56px; }
.chat { padding: 16px; display: grid; gap: 12px; align-content: start; overflow: hidden; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; transition: opacity .4s, transform .4s; }
.msg.me { justify-self: end; background: var(--g-accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { background: var(--g-raised); border: 1px solid var(--g-border); color: var(--g-text-2); border-bottom-left-radius: 4px; }
.msg.bot b { color: var(--g-text); font-weight: 600; }
.src { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.src span { font: 400 11px var(--mono); padding: 2px 7px; border-radius: 5px; background: var(--g-selected); color: var(--g-accent-strong); }
.doc { margin-top: 8px; border: 1px solid var(--g-border); border-radius: 8px; padding: 9px 10px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; background: var(--g-base); }
.doc svg { width: 28px; height: 34px; }
.doc small { display: block; color: var(--g-muted); font-size: 11px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--g-muted); animation: pulse 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
.ai[data-step="0"] .m2, .ai[data-step="0"] .m3, .ai[data-step="0"] .m4, .ai[data-step="0"] .m5,
.ai[data-step="1"] .m3, .ai[data-step="1"] .m4, .ai[data-step="1"] .m5,
.ai[data-step="2"] .m4, .ai[data-step="2"] .m5,
.ai[data-step="3"] .m5 { display: none; }
.ai[data-step="0"] .t2, .ai[data-step="1"] .t1, .ai[data-step="2"] .t1, .ai[data-step="2"] .t2, .ai[data-step="3"] .t1, .ai[data-step="4"] .t1, .ai[data-step="4"] .t2 { display: none; }
.ai[data-step="2"] .t1b { display: none; }
.compose { border-top: 1px solid var(--g-border); display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--g-raised); }
.compose span { flex: 1; border: 1px solid #3E444D; border-radius: 8px; padding: 8px 10px; color: var(--g-muted); font-size: 12px; }
.compose i { width: 32px; height: 32px; border-radius: 8px; background: var(--g-accent); display: grid; place-items: center; }
@media (max-width: 640px) { .ai { aspect-ratio: auto; height: 470px; } .msg { max-width: 92%; } }

/* ---------- access ---------- */
.ac { padding: 18px; display: grid; gap: 14px; }
.mx { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.mx th, .mx td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.mx th { font: 600 12px var(--body); color: var(--ink); transition: background .4s, color .4s; border-radius: 8px 8px 0 0; }
.mx th:first-child, .mx td:first-child { text-align: left; color: var(--ink-2); font-weight: 400; }
.mx td { color: var(--ink-3); font-size: 12.5px; transition: background .4s; }
.mx .y { color: var(--signal); font-weight: 600; }
.mx .n { color: var(--ink-3); }
.mx td.hl, .mx th.hl { background: var(--accent-soft); }
.mx th.hl { color: var(--accent-2); }
.term { background: #0A0B0E; color: var(--ink-2); border-radius: 10px; padding: 12px 14px; font: 400 12px/1.6 var(--mono); border: 1px solid var(--line); overflow-x: auto; }
.term .k { color: var(--accent-2); }
.term .e { color: var(--alert); }
.term .g { color: var(--signal); }
.term div { white-space: nowrap; }

/* ---------- flow ---------- */
.flow-scene .scene-in { grid-template-columns: 1fr; gap: 28px; }
.flow-scene .copy { max-width: 760px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; counter-reset: s; }
.flow::before { content: ""; position: absolute; left: 4%; right: 4%; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.flow li { position: relative; display: grid; gap: 10px; align-content: start; counter-increment: s; }
.flow .n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line); font: 600 15px var(--body); font-variant-numeric: tabular-nums; color: var(--ink); position: relative; z-index: 1; transition: all .4s; }
.flow li.on .n { background: var(--surface-2); color: var(--ink); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.flow h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.flow p { font-size: 14px; color: var(--ink-3); }
.flow .mods { display: flex; flex-wrap: wrap; gap: 5px; }
.flow .mods span { font: 500 12px var(--body); color: var(--ink-2); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; background: var(--surface); }
.filebox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 18px 20px; }
.filebox h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.filebox p { font-size: 15px; }
.code { background: #0A0B0E; color: var(--ink-2); border-radius: 10px; padding: 12px 14px; font: 400 11.5px/1.5 var(--mono); overflow-x: auto; border: 1px solid var(--line); margin: 0; }
.code .k { color: var(--accent-2); } .code .s { color: var(--warm); } .code .c { color: var(--ink-3); }
@media (max-width: 959px) { .flow { grid-template-columns: 1fr; gap: 18px; } .flow::before { left: 22px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); } .flow li { grid-template-columns: 46px 1fr; column-gap: 16px; } .flow li > :not(.n) { grid-column: 2; } .flow .n { grid-row: span 3; } .filebox { grid-template-columns: 1fr; } }

/* ---------- FAQ + contact ---------- */
.faq-scene .scene-in { align-items: start; }
#contact { scroll-margin-top: calc(var(--header-h) + 16px); }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 36px 17px 0; position: relative; font: 600 16px var(--body); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 18px; font-size: 15px; color: var(--ink-2); max-width: 62ch; }
.contact { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.contact h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.02em; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.fl { display: grid; gap: 6px; font: 500 13px var(--body); color: var(--ink); min-width: 0; }
.fl input, .fl select, .fl textarea { font: 400 15px var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; min-height: 46px; width: 100%; box-sizing: border-box; }
.fl textarea { min-height: 96px; resize: vertical; }
.fl ::placeholder { color: var(--ink-3); opacity: 1; }
.fl .opt { font: 400 13px var(--body); color: var(--ink-3); margin-left: 4px; }
.fl [aria-invalid="true"] { border-color: var(--alert); }
.ferr { font: 400 13px/1.4 var(--body); color: var(--alert); }
.fl input:focus, .fl select:focus, .fl textarea:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; border-color: transparent; }
.form-note { font-size: 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
@media (max-width: 520px) { .frow { grid-template-columns: 1fr; } }
footer { scroll-snap-align: end; border-top: 1px solid var(--line); background: #0B0D10; }
.foot { max-width: 1280px; margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--ink-3); }
.foot img { height: 22px; width: auto; display: block; }
.foot-brand { display: grid; gap: 10px; }
.tagline { font: 600 15px var(--display); letter-spacing: -.01em; color: var(--ink); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }

html.still *, html.still *::before, html.still *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
