﻿/* YProbe website stylesheet
   Fonts are loaded from the document <head> (preconnect + non-blocking
   stylesheet) — an @import here would serialise the request behind this file. */

:root {
  --bg: #0a0e1a;
  --bg-alt: #0e1424;
  --card: #131b2e;
  --card-hover: #17203a;
  --border: #223052;
  --border-light: #2c3d66;
  --text: #eef2fa;
  --text-dim: #8b98b8;
  --text-faint: #5c6a8a;
  --accent: #38b6ff;
  --accent-2: #26e0c0;
  --accent-dark: #1b8fd6;
  --good: #3ecf8e;
  --warn: #f0b23e;
  --bad: #f26d6d;
  --grad: linear-gradient(120deg, #38b6ff, #26e0c0);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Sticky header is 68px — keep anchor targets clear of it. */
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #6cc9ff; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

::selection { background: rgba(56, 182, 255, 0.35); }

/* Visible focus ring on every interactive element, keyboard users only. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Screen-reader-only text (table captions, form labels). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--accent);
  color: #04121f;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 0 0 10px 10px;
  transition: transform 0.15s;
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: #04121f;
}

/* ---------- Background decoration ---------- */

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 70% -8%, rgba(56, 182, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 45% 40% at 12% 12%, rgba(38, 224, 192, 0.08), transparent 60%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 182, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 182, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 620px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 620px);
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, 0.78);
  border-bottom: 1px solid rgba(34, 48, 82, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
}

.logo:hover { color: var(--text); }

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { width: 20px; height: 20px; }

.logo em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links > a {
  color: var(--text-dim);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links > a:hover { color: var(--text); }

.nav-links > a.current { color: var(--text); }

.nav-cta { display: flex; gap: 12px; align-items: center; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  padding: 6px;
}

.nav-toggle svg { width: 24px; height: 24px; display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 9px;
  font-size: 0.94rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad);
  color: #04121f;
  box-shadow: 0 8px 24px -8px rgba(56, 182, 255, 0.55);
}

.btn-primary:hover {
  color: #04121f;
  box-shadow: 0 10px 30px -6px rgba(56, 182, 255, 0.7);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border-light);
  color: var(--text);
  background: rgba(56, 182, 255, 0.04);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(56, 182, 255, 0.1);
}

.btn-ghost { color: var(--text-dim); background: transparent; }
.btn-ghost:hover { color: var(--text); }

.btn-small { padding: 8px 16px; font-size: 0.86rem; }
.btn-large { padding: 14px 32px; font-size: 1.02rem; }

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 40px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-2);
  background: rgba(38, 224, 192, 0.08);
  border: 1px solid rgba(38, 224, 192, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1.5px;
  max-width: 820px;
  margin: 0 auto 22px;
}

.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.sub {
  font-size: 1.14rem;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .note {
  margin-top: 20px;
  font-size: 0.84rem;
  color: var(--text-faint);
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .note span { display: inline-flex; align-items: center; gap: 7px; }
.hero .note svg { width: 15px; height: 15px; color: var(--good); flex-shrink: 0; }

/* ---------- App mockup ---------- */

.mockup-wrap {
  margin: 64px auto 0;
  max-width: 960px;
  position: relative;
  padding: 0 28px;
}

.mockup-wrap::after {
  content: "";
  position: absolute;
  inset: 40% -8% -18%;
  background: radial-gradient(ellipse at 50% 0%, rgba(56, 182, 255, 0.16), transparent 65%);
  z-index: -1;
}

/* ---------- App mockup ----------
   A recreation of the real YProbe main window. Colours are lifted from
   ui/theme.py and the inline stylesheets in ui/main_window.py, so this block
   deliberately uses raw hex rather than the site's --accent/--card tokens:
   the point is to look like the app, not like the website. */

.mockup {
  --app-bg: #1a1a2e;        /* theme.BG_WINDOW   */
  --app-input: #101020;     /* theme.BG_INPUT    */
  --app-alt: #14142a;       /* theme.BG_ALT      */
  --app-primary: #1a3a5c;   /* theme.BG_PRIMARY  */
  --app-ai: #4a3a6e;        /* theme.BG_AI       */
  --app-text: #ccccee;      /* theme.TEXT_MAIN   */
  --app-hdr: #aaaacc;       /* theme.TEXT_HEADER */
  --app-muted: #8888a0;     /* theme.TEXT_MUTED  */
  --app-border: #444;
  --app-border-dim: #333;
  --app-ch1: #40c8ff;       /* waveform_widget._CH_COLORS[1] */

  background: var(--app-bg);
  border: 1px solid var(--app-border-dim);
  border-radius: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(56, 182, 255, 0.06);
  overflow: hidden;
  text-align: left;
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: 11px;
  line-height: 1.45;
  color: var(--app-text);
}

/* ── Title bar ───────────────────────────────────────────────── */

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  background: #14142a;
  border-bottom: 1px solid var(--app-border-dim);
}

.app-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-icon svg { width: 11px; height: 11px; }

.app-title { flex: 1; font-size: 11.5px; color: var(--app-hdr); }

.app-winbtns { display: flex; gap: 14px; color: var(--app-muted); font-size: 11px; font-style: normal; }
.app-winbtns i { font-style: normal; }

/* ── Toolbar ─────────────────────────────────────────────────── */

.app-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 7px 10px;
  background: var(--app-bg);
  border-bottom: 1px solid var(--app-border-dim);
}

.app-toolbar .lbl { color: var(--app-hdr); font-size: 10.5px; }

.app-toolbar .sep {
  width: 1px;
  height: 17px;
  background: var(--app-border-dim);
  margin: 0 3px;
}

/* Force the wrap between instrument controls and actions, so the toolbar
   breaks on purpose instead of orphaning the last two buttons. */
.app-toolbar .brk { flex-basis: 100%; height: 0; }

.app-toolbar .combo,
.app-toolbar .stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--app-input);
  border: 1px solid var(--app-border);
  border-radius: 3px;
  padding: 3px 7px;
  font-family: var(--mono);
  font-size: 10px;
  color: #bbb;
  white-space: nowrap;
}

.app-toolbar .combo.sm { gap: 10px; }
.app-toolbar .combo b { color: var(--app-muted); font-weight: 400; }
.app-toolbar .stepper i { font-style: normal; color: var(--app-muted); }
.app-toolbar .stepper b { color: var(--app-text); font-weight: 600; }

.app-toolbar .btn-p,
.app-toolbar .btn-ai {
  background: var(--app-primary);
  color: var(--app-text);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 10.5px;
  white-space: nowrap;
}

.app-toolbar .btn-ai { background: var(--app-ai); color: #fff; font-weight: 600; }
.app-toolbar .btn-p.on { background: #1a5f9e; }

/* ── Guidance strip (main_window: #1b2530 / #2c3e50 / #b8c6d4) ── */

.app-guidance {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 8px;
  padding: 5px 8px;
  background: #1b2530;
  border: 1px solid #2c3e50;
  border-radius: 4px;
}

.app-guidance .g-text { flex: 1; color: #b8c6d4; font-size: 11px; }
.app-guidance .g-text b { color: #e2ecf5; font-weight: 600; }

.app-guidance .g-btn {
  background: #2a2a32;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  padding: 2px 10px;
  color: #ddd;
  font-size: 10.5px;
}

/* ── Expected-signal summary bar ─────────────────────────────── */

.app-expected {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 8px 6px;
  padding: 5px 8px;
  background: var(--app-alt);
  border: 1px solid var(--app-border-dim);
  border-radius: 4px;
}

.app-expected .btn-p {
  background: var(--app-primary);
  color: var(--app-text);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 10.5px;
}

.app-expected .cell { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; }
.app-expected .ch {
  background: var(--app-primary);
  color: var(--app-text);
  border-radius: 3px;
  padding: 1px 7px;
  font-family: var(--mono);
  font-size: 10px;
}
.app-expected .pipe { color: var(--app-border); }
.app-expected .net { font-family: var(--mono); color: var(--app-ch1); font-size: 10px; }
.app-expected .cb { color: var(--app-ch1); }
.app-expected .desc { color: var(--app-muted); }

/* ── Body: three columns, as in the real window ──────────────── */

.app-body {
  display: grid;
  grid-template-columns: 178px 1fr 196px;
  gap: 6px;
  padding: 0 8px 8px;
  align-items: stretch;
}

/* Left — session panel. Like the Qt panel it copies, the tree sits at the top
   and the count footer is pinned to the bottom of whatever height it gets. */

.app-left {
  background: var(--app-bg);
  border: 1px solid var(--app-border-dim);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-left .p-foot { margin-top: auto; }

.p-tabs, .v-tabs, .r-tabs { display: flex; background: #222; }

.p-tabs span, .v-tabs span, .r-tabs span {
  padding: 4px 9px;
  font-size: 10px;
  color: #888;
  border-right: 1px solid var(--app-border-dim);
  border-top: 2px solid transparent;
}

.p-tabs span.on, .v-tabs span.on, .r-tabs span.on {
  background: var(--app-bg);
  color: var(--app-text);
  border-top-color: var(--app-ch1);
}

.p-search {
  margin: 5px;
  padding: 3px 7px;
  background: var(--app-input);
  border: 1px solid var(--app-border);
  border-radius: 3px;
  color: #777;
  font-size: 10px;
}

.p-tree { width: 100%; border-collapse: collapse; font-size: 9.5px; }

.p-tree th {
  text-align: left;
  padding: 3px 5px;
  color: var(--app-hdr);
  font-size: 9px;
  font-weight: 700;
  background: var(--app-bg);
  border-bottom: 1px solid var(--app-border-dim);
}

.p-tree td {
  padding: 3px 5px;
  color: #b0b0c8;
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 74px;
}

.p-tree tbody tr:nth-child(even) { background: var(--app-alt); }

/* Row status colours — session_panel._STATUS_BG */
.p-tree tbody tr.good { background: #0d5c2a; }
.p-tree tbody tr.susp { background: #5c4500; }
.p-tree tbody tr.bad  { background: #6b0f0f; }
.p-tree tbody tr.good td, .p-tree tbody tr.susp td, .p-tree tbody tr.bad td { color: #e6e6f2; }
.p-tree tbody tr.sel { outline: 1px solid var(--app-ch1); outline-offset: -1px; }

.p-foot {
  padding: 4px 6px;
  color: var(--app-muted);
  font-size: 9px;
  border-top: 1px solid var(--app-border-dim);
}

/* Centre — view tabs + plot */

.app-center {
  border: 1px solid var(--app-border-dim);
  border-radius: 3px;
  overflow: hidden;
  background: var(--app-bg);
}

.v-tabs span.plus { color: #666; border-right: none; }
.v-plot { background: #191d2e; }
.v-plot svg { display: block; width: 100%; height: auto; }

/* Right — comparison results + AI */

.app-right { display: flex; flex-direction: column; gap: 5px; }

.r-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #c8e8ff;
}

.r-clear {
  background: #2a3a55;
  border: 1px solid #4a5a80;
  border-radius: 3px;
  padding: 0 6px;
  color: #ccd;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
}

.r-tabs { border-radius: 3px 3px 0 0; overflow: hidden; }
.r-tabs span { padding: 3px 8px; font-size: 9.5px; }

.r-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
  background: #0d1320;
  border: 1px solid #28324a;
  font-family: var(--mono);
}

.r-table th {
  text-align: left;
  padding: 3px 4px;
  background: #1a2336;
  color: #99a;
  font-size: 8.5px;
  font-weight: 400;
}

.r-table td { padding: 3px 4px; color: #ccd; border-top: 1px solid #28324a; }
.r-table tbody tr:nth-child(even) { background: #101726; }
.r-table td.pass { color: #5cdc5c; font-weight: 700; }
.r-table td.fail { color: #ff6b6b; font-weight: 700; }

.r-health {
  background: #1a3a4a;
  border: 1px solid #335;
  border-radius: 4px;
  padding: 4px 8px;
  color: #c8e8ff;
  font-size: 10px;
  text-align: center;
}

.r-next {
  background: var(--app-ai);
  border-radius: 4px;
  padding: 4px 8px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
}

.r-ai {
  background: var(--app-bg);
  border: 1px solid var(--app-border-dim);
  border-radius: 4px;
  padding: 6px 7px;
  color: #c8c8e8;
  font-size: 9.5px;
  line-height: 1.5;
  /* Never shrink below the diagnosis text — .mockup clips overflow, so a
     shrunk box silently truncates the sentence mid-word. */
  flex-shrink: 0;
}

.r-ai .ai-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: #b9a6e8;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}

.r-ai .ai-head .spark { font-size: 10px; letter-spacing: 0; }

.r-ai code {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--app-ch1);
}

.r-ai b { color: #e6e6f6; }

.mockup-caption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 14px;
}

/* ---------- Logo strip ---------- */

.strip {
  padding: 54px 0 30px;
  text-align: center;
}

.strip p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 26px;
}

.strip .logos {
  display: flex;
  justify-content: center;
  gap: 54px;
  flex-wrap: wrap;
  align-items: center;
}

.strip .logos span {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-faint);
  opacity: 0.85;
  letter-spacing: 0.5px;
}

.strip .strip-note {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-faint);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* ---------- Sections ---------- */

section { padding: 96px 0; position: relative; }

/* Sections that follow a related one and shouldn't double up the gap. */
.section-tight { padding-top: 36px; }

.section-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 56px;
  font-size: 1.03rem;
}

/* ---------- Feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.grid .card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  background: var(--card-hover);
}

.card h3 { font-size: 1.07rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.2px; }
.card p { font-size: 0.92rem; color: var(--text-dim); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(56, 182, 255, 0.1);
  border: 1px solid rgba(56, 182, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg { width: 22px; height: 22px; color: var(--accent); }

.card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.card-tags li {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-faint);
  background: rgba(56, 182, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.step::before {
  content: attr(data-n);
  position: absolute;
  top: -18px;
  right: 6px;
  font-size: 5.6rem;
  font-weight: 800;
  color: rgba(56, 182, 255, 0.07);
  line-height: 1;
  font-family: var(--mono);
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #04121f;
  font-weight: 800;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.step h3 { font-size: 1.02rem; margin-bottom: 8px; font-weight: 700; }
.step p { font-size: 0.9rem; color: var(--text-dim); }

/* ---------- Spotlight (alternating rows) ---------- */

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}

.spotlight:last-child { margin-bottom: 0; }
.spotlight.flip .spot-visual { order: 2; }

/* Grid items default to min-width:auto, so the event log's nowrap rows would
   force the whole row wider than a phone viewport. Let them shrink. */
.spot-copy, .spot-visual { min-width: 0; }

.spot-copy .section-eyebrow { text-align: left; }
.spot-copy h3 { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.spot-copy p { color: var(--text-dim); margin-bottom: 18px; font-size: 0.98rem; }

.spot-copy ul { list-style: none; }
.spot-copy ul li {
  padding: 7px 0 7px 30px;
  position: relative;
  font-size: 0.94rem;
  color: var(--text);
}

.spot-copy ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(62, 207, 142, 0.15) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%233ecf8e" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 11px no-repeat;
}

.spot-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.spot-visual svg { display: block; width: 100%; height: auto; }

/* Event-log look */
.event-log { font-family: var(--mono); font-size: 0.76rem; }
.event-log .row {
  display: flex;
  gap: 12px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.event-log .row:last-child { border-bottom: none; }
.event-log .t { color: var(--text-faint); flex-shrink: 0; }
.event-log .k { font-weight: 600; flex-shrink: 0; width: 84px; }
.event-log .k.droop { color: var(--warn); }
.event-log .k.dropout { color: var(--bad); }
.event-log .k.glitch { color: var(--accent); }
.event-log .k.recover { color: var(--good); }
/* min-width:0 lets the flex item actually shrink so the ellipsis can engage. */
.event-log .d { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Rework log — the event log's rows with a different keyword palette. Its
   labels are longer ("CUT AT PIN"), so the keyword column is wider. Declared
   before the phone override below so that rule still wins there. */
.rework-log { margin-bottom: 22px; }
.rework-log .k { width: 92px; }
.rework-log .k.mod { color: var(--warn); }
.rework-log .k.cut { color: var(--bad); }
.rework-log .k.wire { color: var(--accent); }

/* On a phone the detail column ellipsises down to a useless "b…" — give it
   its own line instead. */
@media (max-width: 560px) {
  .event-log { font-size: 0.72rem; }
  .event-log .row { flex-wrap: wrap; row-gap: 2px; padding: 8px 6px; }
  .event-log .k { width: auto; }
  .event-log .d { white-space: normal; overflow: visible; flex-basis: 100%; }
}

/* Section caption inside a spotlight visual (two stacked panels need naming). */
.visual-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 10px 7px;
}

/* The conclusion the two panels above add up to. */
.visual-attrib {
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(62, 207, 142, 0.32);
  border-radius: 8px;
  background: rgba(62, 207, 142, 0.07);
  font-family: var(--mono);
  font-size: 0.71rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.visual-attrib strong { color: var(--good); font-weight: 600; }

/* Rework diff look */
.diff-table { font-family: var(--mono); font-size: 0.78rem; width: 100%; border-collapse: collapse; }
.diff-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
.diff-table tr:last-child td { border-bottom: none; }
.diff-table .s { font-weight: 700; text-align: right; }
.diff-table .s.fixed { color: var(--good); }
.diff-table .s.regressed { color: var(--bad); }
.diff-table .s.still { color: var(--warn); }
.diff-table .s.new { color: var(--accent); }
.diff-table .dim { color: var(--text-faint); }

/* ---------- Under the hood (verifiable claims) ---------- */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.proof {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  padding-left: 30px;
}

/* A hairline accent instead of a badge: reads as a spec sheet, not a brag. */
.proof::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 2px;
  border-radius: 2px;
  background: var(--grad);
  opacity: 0.65;
}

.proof h3 {
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}

.proof p { font-size: 0.92rem; color: var(--text-dim); }

/* ---------- Pricing ---------- */

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 46px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.billing-toggle .save {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--good);
  background: rgba(62, 207, 142, 0.12);
  padding: 2px 10px;
  border-radius: 20px;
}

.switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 20px;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  flex-shrink: 0;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s;
}

.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }

.billing-toggle .opt.active { color: var(--text); font-weight: 600; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  align-items: stretch;
}

.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.plan:hover { transform: translateY(-4px); }

.plan.featured {
  border-color: rgba(56, 182, 255, 0.55);
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(140deg, rgba(56,182,255,0.7), rgba(38,224,192,0.7)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 20px 60px -18px rgba(56, 182, 255, 0.35);
}

.plan .badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #04121f;
  background: var(--grad);
  border-radius: 20px;
  padding: 4px 16px;
  white-space: nowrap;
}

.plan h3 { font-size: 1.18rem; font-weight: 700; }
.plan .desc { color: var(--text-dim); font-size: 0.88rem; margin: 4px 0 20px; }

.plan .price {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.plan .price small { font-size: 0.88rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0; }
.plan .price-note { font-size: 0.78rem; color: var(--text-faint); margin: 4px 0 22px; min-height: 1.2em; }

.plan ul { list-style: none; margin-bottom: 28px; flex-grow: 1; }

.plan ul li {
  font-size: 0.9rem;
  padding: 7px 0 7px 28px;
  position: relative;
}

.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(62, 207, 142, 0.14) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%233ecf8e" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 10px no-repeat;
}

.plan ul li.no { color: var(--text-faint); }
.plan ul li.no::before {
  background: rgba(139, 152, 184, 0.1) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235c6a8a" stroke-width="3" stroke-linecap="round"><line x1="5" y1="12" x2="19" y2="12"/></svg>') center / 10px no-repeat;
}

/* neutral, informational bullet (e.g. data-sharing note) */
.plan ul li.muted { color: var(--text-dim); }
.plan ul li.muted::before {
  background: none;
  border: 1.5px solid var(--border-light);
  width: 15px;
  height: 15px;
  top: 12px;
}

/* Provisional note under the billing toggle */
.billing-note {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-faint);
  max-width: 460px;
  margin: -32px auto 42px;
}

/* Six-tier layout: compact cards, three across on desktop */
.plans-6 {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.plan.compact { padding: 30px 26px; }
.plan.compact .price { font-size: 2.3rem; }
.plan .price.price-text { font-size: 1.85rem; letter-spacing: -0.5px; }
.plan.compact ul { margin-bottom: 24px; }
.plan.compact ul li { font-size: 0.86rem; padding: 6px 0 6px 26px; }

@media (max-width: 940px) {
  .plans-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .plans-6 { grid-template-columns: 1fr; }
}

/* ---------- Free-technician-clients callout ---------- */

.callout {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(56, 182, 255, 0.09), rgba(38, 224, 192, 0.06));
  border: 1px solid rgba(56, 182, 255, 0.32);
}

.callout-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(56, 182, 255, 0.14);
  color: var(--accent);
}
.callout-icon svg { width: 24px; height: 24px; }

.callout h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; }
.callout p { color: var(--text-dim); font-size: 0.92rem; margin: 0; }
.callout strong { color: var(--text); font-weight: 600; }

/* ---------- Feature comparison table ---------- */

.compare-wrap {
  margin-top: 44px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 16px;
}

table.compare {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

table.compare th,
table.compare td {
  padding: 13px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td { border-bottom: none; }

table.compare thead th {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

table.compare tbody th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.82rem;
  white-space: nowrap;
}

table.compare td.c { color: var(--good); font-weight: 700; }
table.compare td.x { color: var(--text-faint); }

table.compare .hi {
  background: rgba(56, 182, 255, 0.06);
}
table.compare thead th.hi { color: var(--accent); }
table.compare tbody tr:hover td,
table.compare tbody tr:hover th { background: rgba(255, 255, 255, 0.02); }
table.compare tbody tr:hover .hi { background: rgba(56, 182, 255, 0.09); }

/* ---------- FAQ (accordion) ---------- */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.99rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
}

.faq-q .chev {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  transition: transform 0.25s;
}

.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--accent); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  padding: 0 24px 20px;
  font-size: 0.93rem;
  color: var(--text-dim);
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(ellipse 70% 120% at 50% -20%, rgba(56, 182, 255, 0.18), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-band .section-sub { margin-bottom: 34px; }

/* ---------- Waitlist form ---------- */

.waitlist-form { max-width: 560px; margin: 0 auto; text-align: left; }

.waitlist-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.waitlist-row .form-group { flex: 1; margin-bottom: 0; }
.waitlist-row .btn { flex-shrink: 0; }

.waitlist-context { margin: 12px 0 0; }

.waitlist-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 9px;
  border: 1px solid var(--border-light);
  background: rgba(10, 14, 26, 0.7);
  color: var(--text);
  font-size: 0.96rem;
  font-family: var(--font);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.waitlist-form input::placeholder { color: var(--text-faint); }

.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.15);
}

.waitlist-status {
  font-size: 0.86rem;
  margin-top: 14px;
  min-height: 1.3em;
  color: var(--text-dim);
}

.waitlist-status.ok { color: var(--good); }
.waitlist-status.err { color: var(--bad); }

.waitlist-fineprint {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 6px;
}

@media (max-width: 560px) {
  .waitlist-row { flex-direction: column; }
  .waitlist-row .btn { width: 100%; }
}

/* ---------- Footer ---------- */

footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 14px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 5px 0;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.83rem;
}

.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--text-dim); }
.footer-bottom .muted-note { color: var(--text-faint); opacity: 0.8; }

/* The "Cookie settings" opener is an action, not navigation, so it is a button
   — styled to sit in the row of footer links without looking foreign. */
.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text-faint);
  cursor: pointer;
}
.linklike:hover { color: var(--text-dim); }

/* ---------- Cookie consent banner ---------- */

/* Injected by js/consent.js at the end of <body>, and fixed to the bottom of
   the viewport — DOM order and visual order agree, so tab order is sane. It is
   deliberately NOT a modal: nothing is blocked while the choice is open. */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(14, 20, 36, 0.97);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -18px 50px -20px rgba(0, 0, 0, 0.8);
  color: var(--text-dim);
  font-size: 0.86rem;
}

@supports (backdrop-filter: blur(8px)) {
  .consent {
    background: rgba(14, 20, 36, 0.86);
    backdrop-filter: blur(10px);
  }
}

.consent[hidden] { display: none; }

.consent-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.consent-text { max-width: 720px; }
.consent-text strong {
  display: block;
  color: var(--text);
  font-size: 0.94rem;
  margin-bottom: 3px;
}
.consent-text p { line-height: 1.55; }

.consent-status {
  margin-top: 6px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.consent-status[hidden] { display: none; }

.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Refusing must be exactly as easy as accepting, so the two buttons are the
   same size, shape and weight. Accept is tinted, not enlarged. */
.consent-btn {
  padding: 9px 22px;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  background: rgba(56, 182, 255, 0.05);
  border: 1px solid var(--border-light);
  transition: border-color 0.15s, background 0.15s;
}

.consent-btn:hover {
  border-color: var(--accent);
  background: rgba(56, 182, 255, 0.12);
}

.consent-btn-yes {
  border-color: rgba(56, 182, 255, 0.55);
  background: rgba(56, 182, 255, 0.12);
}

.consent-btn-yes:hover { background: rgba(56, 182, 255, 0.2); }

@media (max-width: 760px) {
  .consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 20px;
  }
  /* Equal width so neither answer is the easier target on a phone. */
  .consent-actions > .consent-btn { flex: 1; }
}

/* ---------- Inline notice banner ---------- */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 30px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text-dim);
  background: rgba(240, 178, 62, 0.07);
  border: 1px solid rgba(240, 178, 62, 0.3);
}

.notice svg { width: 20px; height: 20px; color: var(--warn); flex-shrink: 0; margin-top: 2px; }
.notice strong { color: var(--text); font-weight: 600; }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* Without JS nothing ever adds .visible — the page must not be blank. */
.no-js .reveal { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .skip-link { transition: none; }
}

/* ---------- Account page ---------- */

.account-wrap { padding: 70px 0 90px; }

.auth-box {
  max-width: 430px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 38px 36px;
  box-shadow: var(--shadow-lg);
}

.auth-box h2 { text-align: center; font-size: 1.45rem; letter-spacing: -0.4px; margin-bottom: 6px; }
.auth-box .auth-sub { text-align: center; color: var(--text-dim); font-size: 0.9rem; margin-bottom: 26px; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.94rem;
  font-family: var(--font);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.15);
}

.form-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  margin-bottom: 18px;
  color: var(--text-dim);
}

.form-row-between label { display: flex; align-items: center; gap: 7px; cursor: pointer; }

.auth-box .btn { width: 100%; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--text-faint);
  font-size: 0.78rem;
}

.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-switch { text-align: center; margin-top: 22px; font-size: 0.88rem; color: var(--text-dim); }

/* A control that reads as a link but isn't one — used where the demo has no
   destination to navigate to. Avoids shipping dead href="#" anchors. */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
}

.link-btn:hover { color: #6cc9ff; text-decoration: underline; }

/* Account dashboard */

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 14px;
}

.account-header .user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-header .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad);
  color: #04121f;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.account-header h2 { font-size: 1.4rem; letter-spacing: -0.4px; line-height: 1.25; }
.account-header .sub { color: var(--text-dim); font-size: 0.88rem; }

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.account-grid .card.full { grid-column: 1 / -1; }

.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.91rem;
}

.kv:last-of-type { border-bottom: none; }
.kv .k { color: var(--text-dim); }
.kv .v { font-weight: 500; text-align: right; }
.kv .v.mono { font-family: var(--mono); font-size: 0.84rem; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}

.tag.pro { background: rgba(56, 182, 255, 0.14); color: var(--accent); }
.tag.ok { background: rgba(62, 207, 142, 0.14); color: var(--good); }

.usage-bar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
  margin: 8px 0 6px;
}

.usage-bar .fill {
  height: 100%;
  background: var(--grad);
  border-radius: 8px;
}

.usage-label { font-size: 0.82rem; color: var(--text-dim); }

.card h3.card-title {
  margin-bottom: 16px;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h3.card-title svg { width: 18px; height: 18px; color: var(--accent); }

.card .actions-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

table.simple { width: 100%; border-collapse: collapse; font-size: 0.89rem; }

table.simple th, table.simple td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

table.simple tr:last-child td { border-bottom: none; }

table.simple th {
  color: var(--text-faint);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hidden { display: none; }

/* ---------- Demo / product tour ---------- */

/* The screenshots are 1920px wide UI captures — the 1140px reading column is
   too narrow for them, so the tour gets a container of its own. */
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 28px; }

.mono { font-family: var(--mono); font-size: 0.9em; color: var(--text); }

.demo-hero { padding: 62px 0 8px; text-align: center; }

.demo-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -1.3px;
  max-width: 780px;
  margin: 0 auto 20px;
}

.demo-hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.demo-hero p.sub {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto;
}

.tour-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.tour-nav a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.tour-nav a:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: var(--card-hover);
}

.shot { margin-bottom: 96px; }
.shot:last-child { margin-bottom: 0; }

.shot-intro {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px 56px;
  align-items: start;
  margin-bottom: 30px;
}

/* Grid children default to min-width:auto — let the long mono strings shrink
   instead of forcing the row wider than the viewport. */
.shot-copy, .shot-points { min-width: 0; }

.shot-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.shot-kicker .section-eyebrow { text-align: left; margin-bottom: 0; }

.shot-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  background: rgba(140, 155, 190, 0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 11px;
  white-space: nowrap;
}

.shot-badge.real { color: var(--good); background: rgba(62, 207, 142, 0.09); border-color: rgba(62, 207, 142, 0.28); }
.shot-badge.sim { color: var(--accent); background: rgba(56, 182, 255, 0.09); border-color: rgba(56, 182, 255, 0.28); }
.shot-badge.tech { color: var(--accent-2); background: rgba(38, 224, 192, 0.09); border-color: rgba(38, 224, 192, 0.28); }

.shot-copy h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.shot-copy p { color: var(--text-dim); font-size: 0.97rem; margin-bottom: 14px; }
.shot-copy p:last-child { margin-bottom: 0; }
.shot-copy em { color: var(--text); font-style: normal; }

.shot-points { list-style: none; padding-top: 4px; }

.shot-points li {
  padding: 7px 0 7px 30px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text);
}

.shot-points li b { color: var(--text); font-weight: 600; }

.shot-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(56, 182, 255, 0.14) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2338b6ff" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 11px no-repeat;
}

.shot-frame {
  display: block;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1220;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.2s;
}

.shot-frame:hover { border-color: var(--border-light); }
.shot-frame img { display: block; width: 100%; height: auto; }

/* The smaller dialogs (794–1242 px) would go soft if stretched to the full
   container — cap them at their native width (passed in as --shot-w) and only
   ever scale them down. The frame keeps a percentage width so the image's
   width/height attributes still reserve its height before it lazy-loads. */
.shot-figure.narrow .shot-frame {
  width: 100%;
  max-width: var(--shot-w, 100%);
  margin: 0 auto;
}

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(10, 14, 26, 0.82);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 5px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0.72;
  transition: opacity 0.2s;
}

.zoom-hint svg { width: 14px; height: 14px; }
.shot-frame:hover .zoom-hint, .shot-frame:focus-visible .zoom-hint { opacity: 1; }

/* Expansion panel under a shot — the depth behind what the screenshot shows. */
.det-note {
  max-width: 940px;
  margin: 28px auto 0;
  padding: 22px 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.det-note p { font-size: 0.94rem; color: var(--text-dim); }
.det-note p + p { margin-top: 16px; }
.det-note strong { color: var(--text); font-weight: 700; }
.det-note .card-tags { margin-top: 16px; }
/* A flex item won't shrink below max-content on its own — without this the
   longest pills push past the panel on a narrow phone once the webfont loads. */
.det-note .card-tags li { color: var(--text-dim); max-width: 100%; }
.det-note sub { font-size: 0.8em; }

.shot-figure figcaption {
  margin: 14px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--text-faint);
}

/* ---------- Screenshot viewer (lightbox) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  background: rgba(4, 8, 18, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox[hidden] { display: none; }

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 18px;
  background: rgba(10, 14, 26, 0.9);
  border-bottom: 1px solid var(--border);
}

.lightbox-title {
  font-size: 0.85rem;
  color: var(--text-dim);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.lb-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.lb-btn.wide { font-size: 0.8rem; font-weight: 600; padding: 0 14px; }
.lb-btn:hover { color: var(--text); border-color: var(--border-light); background: var(--card-hover); }
.lb-btn[disabled] { opacity: 0.35; cursor: default; }
.lb-btn[disabled]:hover { color: var(--text-dim); border-color: var(--border); background: var(--card); }

.lb-count { font-family: var(--mono); font-size: 0.75rem; color: var(--text-faint); }

.lightbox-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}

/* Actual size: the stage scrolls instead of fitting the image to it. */
.lightbox.actual .lightbox-stage { display: block; text-align: center; }

.lightbox.actual .lightbox-stage img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  /* Drop the board tree first — the capture and the verdicts carry the story. */
  .app-body { grid-template-columns: 1fr 190px; }
  .app-left { display: none; }
  .spotlight { grid-template-columns: 1fr; gap: 34px; }
  .spotlight.flip .spot-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .shot-intro { grid-template-columns: 1fr; gap: 18px; }
}

/* The header link row needs ~950px to lay out the five links and two CTA
   buttons on one line; below that the flex items shrink and "How it works" /
   "Under the hood" wrap mid-phrase. The drawer therefore takes over well
   before the phone breakpoint (1000px leaves a 1024-wide window on the
   horizontal nav with room to spare). */
@media (max-width: 1000px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 10px 28px 18px;
  }

  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 14px; }
  .nav-toggle { display: block; }
}

@media (max-width: 760px) {
  section { padding: 66px 0; }
  .hero { padding: 56px 0 30px; }

  /* Single column: capture on top, verdicts and the AI's call underneath. */
  .app-body { grid-template-columns: 1fr; }
  .app-toolbar { gap: 5px 6px; }
  .app-toolbar .sep { display: none; }

  .account-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .auth-box { padding: 30px 24px; }

  .demo-hero { padding: 46px 0 4px; }
  .tour-nav { gap: 8px; margin-top: 26px; }
  .tour-nav a { font-size: 0.8rem; padding: 6px 13px; }
  .shot { margin-bottom: 64px; }
  .shot-figure figcaption { text-align: left; }
  /* The longest check pills are ~265px — keep the gutters off them. */
  .det-note { padding: 18px 16px; }

  /* The shot title is the least useful thing on a phone-width toolbar. */
  .lightbox-bar { padding: 9px 12px; }
  .lightbox-title { display: none; }
  .lightbox-tools { width: 100%; justify-content: space-between; }
  .lightbox-stage { padding: 10px; }
}
