/* io.training landing. A light page with control-room dark bands (the hero,
   learners, mobile): small radii, hairlines, one accent, mono for tags. */

:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface-2: #fafaf8;
  --line: #e4e4e0;
  --line-2: #d2d2cd;
  --text: #474d55;
  --strong: #15181c;
  --muted: #7a8089;
  --accent: #ea580c;
  --accent-2: #fb923c;
  --accent-soft: #fff1e8;
  --ok: #22a06b;
  --alarm: #dc3b30;
  --dark: #0b1220;
  --dark-2: #111a2c;
  --dark-line: #1f2a40;
  --dark-text: #aeb7c7;
  --dark-strong: #eef1f6;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, 0.06), 0 24px 60px rgba(16, 24, 40, 0.14);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --r: 8px;
  --max: 1200px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111a2c;
  --surface-2: #0f1728;
  --line: #1f2a40;
  --line-2: #2a3752;
  --text: #aeb7c7;
  --strong: #eef1f6;
  --muted: #7d889c;
  --accent: #fb923c;
  --accent-soft: rgba(251, 146, 60, 0.12);
  --dark: #070c16;
  --dark-2: #0d1524;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--strong); margin: 0; letter-spacing: -0.02em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
code { font-family: var(--mono); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); color: var(--strong);
  font: 600 14.5px var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { border-color: var(--strong); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #c2410c; border-color: #c2410c; }
.btn-ink { background: var(--strong); border-color: var(--strong); color: var(--bg); }
.btn-ink:hover { opacity: 0.9; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; }
.btn-ghost-dark { background: transparent; border-color: rgba(255, 255, 255, 0.24); color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; }

/* ------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  height: 64px; padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: background 0.2s, border-color 0.2s;
}
.nav.on-dark { background: rgba(11, 18, 32, 0.55); border-color: rgba(255, 255, 255, 0.08); }
.nav.on-dark .nav-links a { color: rgba(255, 255, 255, 0.72); }
.nav.on-dark .nav-links a:hover { color: #fff; }
.nav.on-dark .btn-ink { background: #fff; border-color: #fff; color: #0b1220; }
.nav.on-dark .theme-toggle { border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--strong); }
.theme-toggle {
  width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: none; color: var(--strong); cursor: pointer; display: grid; place-items: center;
}
.theme-toggle span { width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative; min-height: max(680px, 100svh);
  background: radial-gradient(120% 80% at 70% 35%, #16233b 0%, #0b1220 60%), #0b1220;
  color: var(--dark-text); overflow: hidden; isolation: isolate;
}
.hero-stage { position: absolute; inset: 0; z-index: 0; }
.hero-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.hero-stage canvas:active { cursor: grabbing; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.7) 34%, rgba(11, 18, 32, 0) 62%),
              linear-gradient(0deg, rgba(11, 18, 32, 0.85) 0%, rgba(11, 18, 32, 0) 22%);
}
.hero-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tag3d {
  position: absolute; transform: translate(-50%, -100%);
  display: flex; align-items: center; gap: 6px;
  padding: 3px 8px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 4px;
  background: rgba(11, 18, 32, 0.78); color: #e7ebf3;
  font: 600 11px var(--mono); white-space: nowrap; backdrop-filter: blur(4px);
}
.tag3d em { font-style: normal; color: #8d97ab; font-weight: 500; }
.tag3d.is-on { border-color: rgba(251, 146, 60, 0.7); }
.tag3d.is-on em { color: var(--accent-2); }
.tag3d.is-alarm { border-color: rgba(220, 59, 48, 0.85); }
.tag3d.is-alarm em { color: #ff8a80; }

.hero-inner {
  position: relative; z-index: 3; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  max-width: var(--max); min-height: max(680px, 100svh); margin: 0 auto; padding: 110px 20px 90px;
}
.hero-inner > * { pointer-events: auto; }
.hero-gap { display: none; }
.hero-copy { max-width: 560px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-2); font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18); }
.hero h1 { margin: 18px 0 20px; color: #fff; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero-sub { margin: 0 0 32px; max-width: 520px; color: #b8c1d1; font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-foot {
  position: absolute; z-index: 3; inset: auto 0 22px 0;
  display: flex; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  color: #6b778c; font: 500 11.5px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; pointer-events: none;
}

/* The faceplate the visitor operates. */
.faceplate {
  width: 340px; flex: none; align-self: flex-end; margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px;
  background: rgba(13, 21, 36, 0.82); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  color: #c9d1de; font-size: 13px; overflow: hidden;
}
.faceplate header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font: 600 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: #8d97ab;
}
.fp-live { display: inline-flex; align-items: center; gap: 6px; color: #5ee0a0; }
.fp-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.fp-task { margin: 0; padding: 14px 14px 4px; color: #e7ebf3; font-size: 14px; line-height: 1.5; }
.fp-task b { color: #fff; font-family: var(--mono); font-weight: 600; }
.fp-levels { display: grid; gap: 8px; padding: 10px 14px; }
.fp-level { display: grid; grid-template-columns: 54px 1fr 46px; align-items: center; gap: 10px; font: 600 11.5px var(--mono); }
.fp-level code { text-align: right; color: #e7ebf3; }
.fp-bar { position: relative; height: 8px; border-radius: 2px; background: #1c2840; overflow: hidden; }
.fp-bar i { position: absolute; inset: 0 auto 0 0; width: 50%; background: #8d9bb3; transition: width 0.2s linear, background 0.2s; }
.fp-bar i.is-alarm { background: var(--alarm); }
.fp-bar b { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.45); }
.fp-bar b.lo { left: 10%; }
.fp-bar b.hi { left: 90%; }
.fp-pump {
  display: grid; grid-template-columns: 14px 1fr auto auto; align-items: center; gap: 10px;
  margin: 4px 14px 0; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; background: rgba(255, 255, 255, 0.03);
}
.fp-lamp { width: 12px; height: 12px; border-radius: 50%; background: #2b3650; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); transition: background 0.2s, box-shadow 0.2s; }
.fp-lamp.is-on { background: var(--accent-2); box-shadow: 0 0 12px rgba(251, 146, 60, 0.8); }
.fp-lamp.is-trip { background: var(--alarm); box-shadow: 0 0 12px rgba(220, 59, 48, 0.8); }
.fp-name { font: 600 13px var(--mono); color: #fff; }
.fp-name small { display: block; color: #8d97ab; font: 500 11px var(--font); }
.fp-btn {
  height: 30px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 5px;
  background: #1a2539; color: #e7ebf3; font: 600 12px var(--font); cursor: pointer;
}
.fp-btn:hover { border-color: rgba(255, 255, 255, 0.5); }
#fp-start { border-color: rgba(251, 146, 60, 0.6); color: #ffd2b0; }
#fp-start.is-pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(251, 146, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 146, 60, 0); } }
.fp-valve { display: grid; grid-template-columns: 54px 1fr 46px; align-items: center; gap: 10px; padding: 12px 14px 6px; font: 600 11.5px var(--mono); }
.fp-valve code { text-align: right; color: #e7ebf3; }
.fp-valve input { width: 100%; accent-color: var(--accent-2); }
.fp-gate {
  display: flex; align-items: center; gap: 10px; margin: 10px 14px 14px; padding: 10px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: 6px;
  font: 500 12px var(--mono); color: #8d97ab; transition: all 0.25s;
}
.fp-gate-dot { width: 8px; height: 8px; border-radius: 50%; background: #50607c; flex: none; }
.fp-gate.is-met { border-style: solid; border-color: rgba(94, 224, 160, 0.55); background: rgba(94, 224, 160, 0.08); color: #b6f2d2; }
.fp-gate.is-met .fp-gate-dot { background: #5ee0a0; }
.fp-gate.is-trip { border-style: solid; border-color: rgba(220, 59, 48, 0.6); background: rgba(220, 59, 48, 0.08); color: #ffb4ad; }
.fp-gate.is-trip .fp-gate-dot { background: var(--alarm); }

/* ------------------------------------------------------------ strip */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.strip div { padding: 28px 24px; border-left: 1px solid var(--line); }
.strip div:first-child { border-left: 0; padding-left: 0; }
.strip b { display: block; color: var(--strong); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.strip span { color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------------ sections */
.section { max-width: var(--max); margin: 0 auto; padding: 110px 20px; }
.section-dark { max-width: none; background: var(--dark); color: var(--dark-text); }
.section-dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-dark h2, .section-dark h3 { color: var(--dark-strong); }
.section-dark .points li { border-color: var(--dark-line); }
.section-dark .points b { color: var(--dark-strong); }
.section-head { max-width: 620px; margin-bottom: 48px; }
.split .section-head { margin-bottom: 0; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--accent); font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.section-dark .eyebrow { color: var(--accent-2); }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.section-head p { margin: 18px 0 0; font-size: 17px; line-height: 1.65; }
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.split-rev { grid-template-columns: 1.05fr 0.95fr; }
.points { list-style: none; margin: 28px 0 0; padding: 0; }
.points li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.points b { color: var(--strong); font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }

/* ------------------------------------------------------------ build one */
.builder { display: grid; grid-template-columns: 240px 1fr; overflow: hidden; padding: 0; }
.bd-palette { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-right: 1px solid var(--line); background: var(--surface-2); }
.bd-label { color: var(--muted); font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.bd-palette [data-type], .bd-chip {
  display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--strong); font: 600 13px var(--font); text-align: left;
  cursor: grab; touch-action: none; user-select: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.bd-palette [data-type]:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(234, 88, 12, 0.12); transform: translateY(-1px); }
.bd-palette img, .bd-chip img { width: 54px; height: 40px; object-fit: contain; border-radius: 5px; background: #eef0f2; flex: none; }
.bd-palette small, .bd-chip small { display: block; color: var(--muted); font: 500 11px var(--mono); margin-top: 2px; }
.bd-chip { position: fixed; left: 0; top: 0; z-index: 100; display: none; pointer-events: none; box-shadow: var(--shadow-lg); cursor: grabbing; }
.bd-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.bd-actions .btn { flex: 1; }
.bd-actions .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.bd-count { color: var(--muted); font: 500 11.5px var(--mono); text-align: center; }
.bd-view { position: relative; min-height: 520px; background: linear-gradient(180deg, #f3f4f6 0%, #e9ebee 100%); }
:root[data-theme="dark"] .bd-view { background: linear-gradient(180deg, #e9ecf0 0%, #dde1e6 100%); }
.bd-stage { position: absolute; inset: 0; }
.bd-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.bd-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bd-tag { position: absolute; transform: translate(-50%, -100%); padding: 2px 7px; border: 1px solid #c9ced5; border-radius: 4px; background: rgba(255, 255, 255, 0.92); color: #1b1f23; font: 600 11px var(--mono); white-space: nowrap; }
.bd-tag.is-on { border-color: #f97316; color: #c2410c; }
.bd-hint {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 7px 14px; border-radius: 999px; background: #1b1f23; color: #fff; font: 500 12.5px var(--font);
  box-shadow: var(--shadow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background 0.15s;
}
.bd-hint b { font-family: var(--mono); font-weight: 600; }
.bd-hint.is-snapped { background: #16a34a; }
.bd-corner { position: absolute; right: 14px; bottom: 12px; color: #7a8089; font: 500 11px var(--mono); }

/* ------------------------------------------------------------ tour */
.tour { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.tour-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tour-tabs button {
  position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start;
  padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); background: none;
  color: var(--muted); text-align: left; font: inherit; cursor: pointer;
}
.tour-tabs b { font: 600 12px var(--mono); color: var(--muted); padding-top: 3px; }
.tour-tabs strong { display: block; color: var(--muted); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; transition: color 0.2s; }
.tour-tabs small { display: block; max-height: 0; overflow: hidden; color: var(--text); font-size: 14px; line-height: 1.55; transition: max-height 0.35s ease, margin 0.35s; }
.tour-tabs [aria-selected="true"] strong { color: var(--strong); }
.tour-tabs [aria-selected="true"] b { color: var(--accent); }
.tour-tabs [aria-selected="true"] small { max-height: 120px; margin-top: 8px; }
.tour-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); }
.tour-tabs [aria-selected="true"] .tour-progress { animation: tourbar var(--tour-ms, 7000ms) linear forwards; }
.tour.is-paused .tour-progress { animation-play-state: paused; }
@keyframes tourbar { to { width: 100%; } }
.window { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.window-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.window-bar span { margin-left: 10px; color: var(--muted); font: 500 12px var(--mono); }
.tour-shot { margin: 0; }
.tour-shot img { width: 100%; height: auto; aspect-ratio: 1600 / 960; object-fit: cover; transition: opacity 0.25s; }
.tour-shot img.is-swapping { opacity: 0; }

/* ------------------------------------------------------------ learner shots */
.shot-stack { position: relative; margin: 0; padding-bottom: 28px; }
.shot-stack img { border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.shot-stack figcaption {
  position: absolute; left: 18px; bottom: 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid rgba(94, 224, 160, 0.4); border-radius: 6px; background: rgba(11, 18, 32, 0.92);
  color: #c9f2dc; font: 500 12.5px var(--mono);
}
.shot-stack figcaption b { color: #fff; }
.tick { color: #5ee0a0; font-weight: 700; }

/* ------------------------------------------------------------ assessment */
.gate-card { padding: 28px; }
.gate { display: flex; align-items: center; gap: 28px; }
.score {
  --score: 72; --ring: var(--accent);
  flex: none; width: 128px; height: 128px; border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--score) * 1%), var(--line) 0);
  display: grid; place-items: center; transition: background 0.2s;
}
.score-inner { width: 106px; height: 106px; border-radius: 50%; background: var(--surface); display: grid; place-content: center; text-align: center; }
.score-inner b { color: var(--strong); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.score-inner small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.gate-label { color: var(--muted); font: 500 12px var(--mono); }
.gate-body h3 { margin: 6px 0 4px; font-size: 22px; }
.gate-body p { margin: 0 0 14px; font-size: 14.5px; }
.gate-routes { display: flex; flex-wrap: wrap; gap: 8px; }
.gate-routes span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--strong); }
.gate-routes .go { background: var(--ok); border-color: var(--ok); color: #fff; }
.gate-items { display: grid; gap: 0; margin: 24px 0 18px; border-top: 1px solid var(--line); }
.gate-item { display: grid; grid-template-columns: 74px 1fr 22px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.gate-item code { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.gate-item .ok { color: var(--ok); font-weight: 700; }
.gate-item .no { color: var(--alarm); font-weight: 700; }
.gate-slider { display: grid; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.gate-slider input { width: 100%; accent-color: var(--accent); }

/* ------------------------------------------------------------ roles + tiles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { padding: 28px; display: flex; flex-direction: column; }
.role-tag { color: var(--accent); font: 600 11.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.role h3 { margin: 12px 0 10px; font-size: 21px; line-height: 1.25; }
.role p { margin: 0 0 18px; font-size: 15px; }
.role ul { list-style: none; margin: auto 0 0; padding: 0; }
.role li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line); font-size: 14px; position: relative; }
.role li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 8px; height: 8px; border: 1.6px solid var(--accent); border-radius: 2px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.tile { padding: 28px 24px 8px 0; }
.tile + .tile { padding-left: 24px; border-left: 1px solid var(--line); }
.tile svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin: 14px 0 6px; font-size: 17px; }
.tile p { margin: 0; font-size: 14.5px; }

/* ------------------------------------------------------------ brand */
.brand-form { display: grid; gap: 16px; margin-top: 32px; }
.brand-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.brand-form input[type="text"] { height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--strong); font: 500 15px var(--font); }
.brand-row { display: flex; align-items: center; gap: 16px; }
.brand-row > span { width: 64px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 26px; height: 26px; border-radius: 6px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); cursor: pointer; }
.swatches button[aria-pressed="true"] { border-color: var(--strong); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg button { height: 34px; padding: 0 16px; border: 0; background: var(--surface); color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--strong); color: var(--bg); }
.player-preview { --pv-bg: #0b1220; --pv-surface: #131c2e; --pv-text: #e7ebf3; --pv-muted: #8d97ab; --pv-accent: #fb923c;
  border-radius: 10px; overflow: hidden; background: var(--pv-bg); color: var(--pv-text); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.pv-path { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid color-mix(in srgb, var(--pv-text) 10%, transparent); font-size: 12.5px; overflow: hidden; white-space: nowrap; }
.pv-org { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; font-weight: 700; }
.pv-org-badge { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--pv-accent); color: #fff; font-size: 12px; font-weight: 700; }
.pv-step { display: inline-flex; align-items: center; gap: 6px; color: var(--pv-muted); }
.pv-step b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 10px; }
.pv-step.is-done b { background: var(--pv-accent); border-color: var(--pv-accent); color: #fff; }
.pv-step.is-current { color: var(--pv-text); font-weight: 600; }
.pv-step.is-current b { border-color: var(--pv-accent); color: var(--pv-accent); }
.pv-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.pv-stage img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; transform: scale(1.5); transform-origin: 62% 62%; }
.pv-card { position: absolute; left: 16px; bottom: 16px; width: min(300px, 70%); padding: 14px 16px; border-radius: 8px; background: var(--pv-surface); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); }
.pv-card small { color: var(--pv-accent); font: 700 10.5px var(--mono); letter-spacing: 0.06em; }
.pv-card h4 { margin: 4px 0 6px; color: var(--pv-text); font-size: 15px; }
.pv-card p { margin: 0 0 10px; color: var(--pv-muted); font-size: 12.5px; line-height: 1.5; }
.pv-card button { height: 28px; padding: 0 12px; border: 0; border-radius: 5px; background: var(--pv-accent); color: #fff; font: 600 12px var(--font); }

/* ------------------------------------------------------------ mobile (coming) */
.soon-pill { display: inline-flex; margin-top: 28px; padding: 6px 12px; border: 1px solid rgba(251, 146, 60, 0.45); border-radius: 999px; color: var(--accent-2); font: 600 11.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.phone-wrap { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.phone {
  position: relative; width: 290px; height: 590px; padding: 12px; border-radius: 44px;
  background: #05080f; box-shadow: 0 0 0 1px #2a3550, 0 0 0 7px #121a2b, 0 40px 90px rgba(0, 0, 0, 0.6);
}
.phone-notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #000; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 33px; overflow: hidden; background: #0d1421; display: flex; flex-direction: column; }
.cam { position: relative; flex: 1; background: radial-gradient(80% 60% at 50% 45%, #4a5568 0%, #1c2433 70%); overflow: hidden; }
.cam img { position: absolute; left: 50%; top: 48%; width: 120%; max-width: none; transform: translate(-50%, -50%); filter: grayscale(0.4) contrast(1.1) brightness(0.8); mix-blend-mode: luminosity; }
.cam-box {
  position: absolute; left: 12%; top: 30%; width: 76%; height: 38%;
  border: 2px solid var(--accent-2); border-radius: 6px; box-shadow: 0 0 0 9999px rgba(5, 8, 15, 0.25);
  animation: lock 3.6s ease-in-out infinite;
}
.cam-box span { position: absolute; left: -2px; top: -26px; padding: 3px 8px; border-radius: 4px 4px 0 0; background: var(--accent-2); color: #1b1006; font: 700 10.5px var(--mono); white-space: nowrap; }
@keyframes lock { 0%, 12% { transform: scale(1.12); opacity: 0.4; } 30%, 100% { transform: scale(1); opacity: 1; } }
.cam-reticle { position: absolute; left: 50%; top: 48%; width: 18px; height: 18px; margin: -9px; border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: 50%; }
.phone-sheet { padding: 16px 16px 22px; background: #121a2b; border-top: 1px solid #22304a; }
.sheet-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.sheet-row b { color: #fff; font-size: 14px; line-height: 1.3; }
.match { color: #5ee0a0; font: 700 12px var(--mono); white-space: nowrap; }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.sheet-meta span { padding: 3px 7px; border-radius: 4px; background: #1b263c; color: #aeb7c7; font: 500 10.5px var(--mono); }
.sheet-btn { width: 100%; height: 40px; border: 0; border-radius: 8px; background: var(--accent-2); color: #1b1006; font: 700 13px var(--font); cursor: pointer; }
.sheet-btn.is-done { background: #1f3a2f; color: #8af0bc; }
.phone-cards { position: absolute; right: 0; top: 50%; display: flex; flex-direction: column; gap: 10px; transform: translateY(-50%); }
.pc {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px;
  border: 1px solid var(--dark-line); border-radius: 8px; background: var(--dark-2);
  color: var(--dark-strong); font-size: 12.5px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translateX(16px); transition: opacity 0.4s, transform 0.4s;
}
.pc.is-in { opacity: 1; transform: none; }
.pc img { width: 40px; height: 30px; object-fit: contain; background: #e9ebee; border-radius: 4px; }

/* ------------------------------------------------------------ CTA + footer */
.cta-section { padding-top: 0; }
.cta {
  display: grid; justify-items: center; text-align: center; gap: 14px;
  padding: 72px 24px; border-radius: 14px;
  background: radial-gradient(90% 120% at 50% 0%, #1a2943 0%, #0b1220 70%); color: var(--dark-text);
}
.cta h2 { max-width: 640px; color: #fff; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; }
.cta p { margin: 0 0 12px; font-size: 17px; }
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 32px 20px 48px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px;
}
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--strong); }
.lockup { display: inline-flex; align-items: center; gap: 8px; }
.nav-brand svg, #foot-lockup svg, #cta-mark svg { display: block; }
#cta-mark { margin-bottom: 14px; }
.logo-short { display: none; }
.foot-parent { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#foot-parent svg { display: block; transform: translateY(1px); }
@media (max-width: 560px) {
  .logo-full { display: none; }
  .logo-short { display: block; }
}
/* The wordmark: io in bold, a gate-diamond for the dot, training in medium. */
.wordmark { display: inline-flex; align-items: baseline; font-size: var(--wm-size, 20px); letter-spacing: -0.035em; line-height: 1; }
.wordmark b { font-weight: 800; }
.wordmark i { display: inline-block; width: 0.2em; height: 0.2em; margin: 0 0.09em 0 0.11em; transform: rotate(45deg); border-radius: 1px; }
.wordmark span { font-weight: 500; }

/* ------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cam-box, .fp-live i, #fp-start.is-pulse { animation: none; }
}

/* ------------------------------------------------------------ sizes */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .nav-brand { margin-right: auto; }
  .tour { grid-template-columns: 1fr; }
  .tour-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .tour-tabs button { grid-template-columns: 1fr; padding: 14px 10px 14px 0; }
  .tour-tabs small { display: none; }
  .tour-tabs strong { font-size: 14.5px; }
  .phone-cards { display: none; }
  .builder { grid-template-columns: 1fr; }
  .bd-palette { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .bd-palette [data-type] { flex: 1 1 calc(50% - 8px); }
  .bd-label { width: 100%; }
  .bd-actions { width: 100%; margin-top: 4px; padding-top: 0; }
  .bd-count { width: 100%; }
}
@media (max-width: 960px) {
  .hero-inner { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-top: 96px; gap: 28px; }
  .hero-shade { background: linear-gradient(180deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.8) 36%, rgba(11, 18, 32, 0) 46%, rgba(11, 18, 32, 0) 64%, rgba(11, 18, 32, 0.9) 74%); }
  /* Narrow screens: the plant shows in a band between the copy and the faceplate. */
  .hero-gap { display: block; align-self: stretch; height: 280px; margin: -12px 0; pointer-events: none !important; }
  .faceplate { align-self: stretch; width: auto; max-width: 440px; margin: 0; }
  .hero-foot span:last-child { display: none; }
  .split, .split-rev { grid-template-columns: 1fr; gap: 44px; }
  .split-rev .gate-card { order: 2; }
  .roles { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip div:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile:nth-child(3) { border-left: 0; padding-left: 0; }
  .section { padding: 80px 20px; }
}
@media (max-width: 560px) {
  .nav { gap: 10px; padding: 0 16px; }
  .nav .btn-ink { display: none; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .hero-inner { padding-left: 16px; padding-right: 16px; }
  .strip { padding: 0 16px; }
  .strip div { padding: 18px 12px 18px 0; }
  .tour-tabs { grid-template-columns: repeat(2, 1fr); }
  .gate { flex-direction: column; align-items: flex-start; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile + .tile { padding-left: 0; border-left: 0; }
  .section { padding: 64px 16px; }
  .foot { padding: 28px 16px 40px; }
  .phone { width: 260px; height: 530px; }
  .bd-view { min-height: 400px; }
  .bd-palette img { width: 40px; height: 30px; }
  .bd-hint { white-space: normal; border-radius: 10px; text-align: center; }
}
