/* Positioning Lab — marketing site.
   Single dark theme, monospace-as-display instrument aesthetic.
   Only rules the Hugo templates in site/layouts actually use live here —
   app-only styles (member shell, audit report, modals, forms) live in
   the Vite app's src/style.css instead. */

:root {
  --bg: #0b0a08;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-solid: #141110;
  --surface-2: #1f1b14;
  --border: rgba(244, 239, 231, 0.10);
  --border-strong: rgba(244, 239, 231, 0.18);
  --text: #f4efe7;
  --muted: #a79c8c;
  --muted-2: #7c7263;
  --orange: #ff7a00;
  --orange-bright: #ff8f1f;
  --orange-deep: #c74f00;
  --accent-wash: rgba(255, 122, 0, 0.10);
  --good: #34d399;
  --bad: #f87171;

  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --max: 1240px;

  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 900px 500px at 82% -6%, var(--accent-wash), transparent 60%),
    var(--bg);
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 2px;
}

.shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  background: rgba(11, 10, 8, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__logo {
  width: 36px;
  height: 36px;
  display: block;
  flex: 0 0 auto;
}

.brand__wordmark span:last-child { color: var(--orange); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { padding: 52px 0 44px; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.hero__grid--single { grid-template-columns: 1fr; max-width: 760px; }

.section,
.metric,
.quote,
.team-card,
.card {
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero__card {
  padding: 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow::before { content: "//"; opacity: 0.7; }

.hero h1 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.15rem, 4vw + 0.8rem, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 16ch;
  text-wrap: balance;
}

.hero h1 .accent,
.section h2 .accent,
.metric__big .accent { color: var(--orange); }

.hero p,
.metric__body,
.quote p,
.team-card p,
.section__lede,
.card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero p { max-width: 58ch; margin: 20px 0 0; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.button,
.button--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button {
  background: var(--orange);
  color: #1a0e00;
}
.button:hover { background: var(--orange-bright); transform: translateY(-1px); }

.button--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.button--ghost:hover { border-color: var(--orange); color: var(--orange-bright); }

/* ── Probe panel ("mini window") ─────────────────────────────────── */
.panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-solid);
}

.panel-chrome-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.panel-dots { display: flex; gap: 5px; }
.panel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
}

.panel-body { padding: 20px; flex: 1; }

.model-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  overflow-x: auto;
}
.model-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.model-chip.active { color: var(--orange-bright); border-color: var(--orange-deep); }

.prompt-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.prompt-line .prefix { color: var(--orange); }

.answer-block {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
  border-left: 2px solid var(--orange-deep);
  padding-left: 14px;
  margin-bottom: 18px;
  transition: opacity 0.18s ease;
}
.answer-block .cite {
  background: var(--accent-wash);
  color: var(--orange-bright);
  padding: 0 4px;
  border-radius: 2px;
}

.score-list { display: flex; flex-direction: column; gap: 9px; }
.score-row {
  display: grid;
  grid-template-columns: 9rem 1fr 2.2rem;
  align-items: center;
  gap: 10px;
}
.score-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.score-track {
  height: 5px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text);
}
.score-row.overall .score-label,
.score-row.overall .score-val { color: var(--text); font-weight: 700; }
.score-row.overall .score-fill { background: var(--orange-bright); }

.metric__kicker,
.card__index,
.team-card__role {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Sections ────────────────────────────────────────────────────── */
.section-wrap { padding: 16px 0 84px; }

.section {
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 22px;
}

.section.section--bare {
  background: none;
  padding: 0;
  border-radius: 0;
  border: 0;
}

.section--bare .card {
  background: var(--surface-solid);
  border-color: var(--border);
}

.section--bare .card--featured {
  border-color: var(--orange-deep);
  box-shadow: 0 0 0 1px var(--orange-deep) inset;
}

.section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 780px;
  margin: 0 auto 34px;
}

.section__header > * { width: 100%; }
.section__header .eyebrow { margin: 0; justify-content: center; }
.section__header h2 { margin: 0; overflow-wrap: anywhere; }
.section__lede { margin: 0 auto; max-width: 680px; }

.section h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw + 0.9rem, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ── Bento / metrics ─────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.metric,
.quote,
.team-card,
.card { border-radius: var(--radius-md); }

.metric,
.quote,
.team-card { padding: 22px; }

.metric--wide { grid-column: span 7; min-height: 260px; }
.metric--stack { grid-column: span 5; display: grid; gap: 16px; }

.metric__big {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 8px 0 0;
  font-variant-numeric: tabular-nums;
}

.metric__kicker { margin-bottom: 4px; display: block; }

/* ── Cards ───────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card { padding: 22px; position: relative; }

.card h3,
.quote h3,
.team-card h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  margin: 8px 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.card__index { display: block; margin-bottom: 4px; }

.quote { display: grid; gap: 14px; align-content: start; }

/* Pricing card extras */
.card--featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange) inset;
}

/* Hover feedback — .card had none at all; every other interactive
   element on the site (buttons, .probe-plaque) already lifts + shifts to
   orange on hover, this brings cards in line with that language. */
.card,
.team-card {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover,
.team-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 14px 32px rgba(255,122,0,.14);
}
.card--featured:hover {
  box-shadow: 0 0 0 1px var(--orange) inset, 0 14px 32px rgba(255,122,0,.24);
}

/* Monthly/Annual toggle (site/layouts/pricing/list.html) — the buttons'
   background/color are driven by inline styles set from JS on click, so
   the hover effect here sticks to border-color/box-shadow/transform,
   properties nothing else is setting inline, rather than fighting that
   with !important. */
.pricing-toggle__btn {
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pricing-toggle__btn:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(255,122,0,.18);
}

/* Exit-intent modal close/dismiss (site/layouts/index.html) — inline
   color:var(--muted), !important needed to beat that on hover since
   there's no class to hang a normal rule off of. */
#exit-intent-close:hover,
#exit-intent-dismiss:hover {
  color: var(--orange) !important;
}
.card__badge {
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--orange);
  color: #1a0e00;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.card__credits {
  margin-top: 0.2rem !important;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text) !important;
}
.card__tagline {
  margin: 0.35rem 0 0.9rem !important;
  font-size: 0.9rem !important;
  color: var(--muted);
}
.card__features {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  text-align: left;
}
.card__features li {
  position: relative;
  padding: 0.32rem 0 0.32rem 1.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ── Team / CTA cards ────────────────────────────────────────────── */
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.team--single { grid-template-columns: minmax(0, 1fr); }

.team-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.team-card img {
  width: 108px;
  height: 108px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

.team-card--cta {
  border-color: var(--border-strong);
  background: linear-gradient(135deg, var(--accent-wash), transparent 55%), var(--surface);
}

.team-card--cta img {
  background: var(--surface-solid);
  padding: 16px;
}

.team-card--cta h3 {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 6px 0 8px;
}

.team-card--cta .button { margin-top: 12px; }

/* ── Compare table ───────────────────────────────────────────────── */
.compare { margin: 3rem 0 1rem; }
.compare__title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin: 0 0 1rem;
  text-align: center;
}
.compare__wrap { overflow-x: auto; }
.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}
.compare__table th,
.compare__table td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare__table thead th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 700;
}
.compare__table thead th span {
  display: block;
  font-weight: 400;
  color: var(--muted-2);
  font-size: 0.72rem;
  margin-top: 2px;
}
.compare__table tbody th[scope="row"] { font-weight: 600; }
.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__table .is-featured { background: var(--accent-wash); }
.compare__table .compare__section th {
  padding-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--border-strong);
}
.compare__check { color: var(--good); font-weight: 700; font-family: var(--font-mono); }
.compare__dash { color: var(--muted-2); }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  padding: 18px 0 36px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.footer a:hover { color: var(--muted); }

/* ── Blog / prose ────────────────────────────────────────────────── */
.prose { max-width: 68ch; color: var(--text); font-size: 1rem; line-height: 1.7; }
.prose h2 { font-family: var(--font-mono); font-size: 1.4rem; margin: 2.2rem 0 0.6rem; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--font-mono); font-size: 1.1rem; margin: 1.6rem 0 0.4rem; color: var(--orange); }
.prose p { margin: 0 0 1em; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.25rem; color: var(--muted); }
.prose li { margin: 0.35rem 0; }
.prose a { color: var(--orange); border-bottom: 1px solid rgba(255, 122, 0, 0.3); }
.prose a:hover { border-bottom-color: var(--orange); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.post-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.post-list__item a {
  display: flex;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.post-list__item:last-child a { border-bottom: 1px solid var(--border); }
.post-list__item a:hover .post-list__title { color: var(--orange); }
.post-list__date {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  min-width: 6rem;
}
.post-list__title { font-weight: 700; font-size: 1.02rem; }

/* ── Forms (invite request / waitlist) ──────────────────────────── */
.waitlist-form {
  display: flex;
  gap: 10px;
}
.waitlist-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.waitlist-form input[type="email"]::placeholder { color: var(--muted-2); }
.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(0, 0, 0, 0.5);
}
.waitlist-form .button { flex: 0 0 auto; }

@media (max-width: 560px) {
  .waitlist-form { flex-direction: column; }
  .waitlist-form .button { width: 100%; }
}

/* ── Spot Check band ─────────────────────────────────────────────── */
.band {
  background: var(--surface-solid);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  padding: 40px 0;
  margin-top: 22px;
}
.band__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.band__grid h2 { max-width: 30ch; }
.band__grid p { color: var(--muted); margin-top: 10px; max-width: 50ch; }
.band__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.band__note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-2);
}

/* ── Exclusions list ─────────────────────────────────────────────── */
.exclude-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 56ch;
  margin: 0 auto;
}
.exclude-item {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: left;
}
.exclude-item .x {
  font-family: var(--font-mono);
  color: var(--bad);
  flex-shrink: 0;
}

/* ── Teardown showcase ───────────────────────────────────────────── */
.teardown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.teardown-card { background: var(--surface-solid); padding: 20px 22px; }
.teardown-brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--orange-bright);
}
.teardown-score {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
}
.teardown-finding { font-size: 0.9rem; color: var(--muted); margin-top: 10px; line-height: 1.55; }
.teardown-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-2);
  text-align: center;
  margin-top: 16px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
/* ── Live probe-flow diagram ─────────────────────────────────────── */
.flow.panel { border-radius: var(--radius-lg); }
.flow .panel-body { overflow-x: auto; }

.flow-svg {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
}

.flow-line {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}
.flow.is-visible .flow-line { stroke: var(--orange); }

.flow-packet {
  fill: var(--orange-bright);
  filter: drop-shadow(0 0 6px rgba(255, 143, 31, 0.8));
  opacity: 0;
  transition: opacity 300ms ease;
}
.flow.is-visible .flow-packet { opacity: 1; }

.flow-node__chip {
  fill: var(--surface-solid);
  stroke: var(--border-strong);
  stroke-width: 1.5;
  transition: stroke 250ms ease, fill 250ms ease;
}
.flow-node__icon {
  color: var(--muted-2);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 250ms ease;
}
.flow-node__num {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--muted-2);
  transition: fill 250ms ease;
}
.flow-node__label {
  font-family: var(--font-mono);
  font-size: 14px;
  fill: var(--muted);
  transition: fill 250ms ease;
}

.flow-node.is-done .flow-node__chip { stroke: var(--orange-deep); }
.flow-node.is-done .flow-node__icon { color: var(--orange-deep); }
.flow-node.is-done .flow-node__num { fill: var(--orange-deep); }

.flow-node.is-active .flow-node__chip { stroke: var(--orange-bright); fill: var(--surface-2); }
.flow-node.is-active .flow-node__icon { color: var(--orange-bright); }
.flow-node.is-active .flow-node__num { fill: var(--orange); }
.flow-node.is-active .flow-node__label { fill: var(--text); font-weight: 700; }

.flow-caption {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.flow-caption__prefix { color: var(--orange); }

@media (prefers-reduced-motion: no-preference) {
  .flow-node.is-active .flow-node__chip {
    animation: flow-pulse 1.7s ease infinite;
  }
  @keyframes flow-pulse {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 122, 0, 0)); }
    50% { filter: drop-shadow(0 0 7px rgba(255, 122, 0, 0.5)); }
  }
}

/* ── Multi-model probe diagram (flow2) ──────────────────────────── */
.flow2.panel { border-radius: var(--radius-lg); }
.flow2 .panel-body { overflow-x: auto; }
.flow2 .panel-chrome-label { min-width: 1px; }

.flow2-svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}

.flow2-line {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}
.flow2.is-visible .flow2-line { stroke: var(--orange); }

.flow2-packet {
  fill: var(--orange-bright);
  filter: drop-shadow(0 0 6px rgba(255, 143, 31, 0.8));
  opacity: 0;
  transition: opacity 300ms ease;
}
.flow2.is-visible .flow2-packet { opacity: 1; }

.flow2-origin__core { fill: var(--orange); }
.flow2-origin__ping {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.flow2-origin__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--muted-2);
}

.flow2-chip {
  fill: var(--surface-solid);
  stroke: var(--border-strong);
  stroke-width: 1.5;
  transition: stroke 250ms ease, fill 250ms ease;
}
.flow2-chip__label {
  font-family: var(--font-mono);
  font-size: 14px;
  fill: var(--muted);
  transition: fill 250ms ease;
}
.flow2-chip__count {
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  fill: var(--muted-2);
  transition: fill 250ms ease;
}

.flow2-node.is-active .flow2-chip { stroke: var(--orange-bright); fill: var(--surface-2); }
.flow2-node.is-active .flow2-chip__label { fill: var(--text); font-weight: 700; }
.flow2-node.is-active .flow2-chip__count { fill: var(--orange); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .flow2.is-visible .flow2-origin__ping {
    animation: flow2-ping 2.4s ease-out infinite;
  }
  @keyframes flow2-ping {
    0% { opacity: 0.55; transform: scale(0.55); }
    80%, 100% { opacity: 0; transform: scale(1.7); }
  }
}

/* ── Full-lifecycle trip diagram (flow3) ────────────────────────── */
.flow3.panel { border-radius: var(--radius-lg); }
.flow3 .panel-body { overflow-x: auto; }

.flow3-manifest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.flow3-manifest__item {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 11px;
  transition: background 250ms ease, border-color 250ms ease, color 250ms ease;
}
.flow3-manifest__item.is-collected {
  background: var(--orange);
  border-color: var(--orange);
  color: #1a0e00;
  font-weight: 700;
}

.flow3-svg {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
}

.flow3-line {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}
.flow3.is-visible .flow3-line { stroke: var(--orange); }

.flow3-packet {
  fill: var(--orange-bright);
  filter: drop-shadow(0 0 6px rgba(255, 143, 31, 0.8));
  opacity: 0;
  transition: opacity 300ms ease;
}
.flow3.is-visible .flow3-packet { opacity: 1; }

.flow3-node__chip {
  fill: var(--surface-solid);
  stroke: var(--border-strong);
  stroke-width: 1.5;
  transition: stroke 250ms ease, fill 250ms ease;
}
.flow3-node__icon {
  color: var(--muted-2);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 250ms ease;
}
.flow3-node__label {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--muted);
  transition: fill 250ms ease;
}

.flow3-node.is-done .flow3-node__chip { stroke: var(--orange-deep); }
.flow3-node.is-done .flow3-node__icon { color: var(--orange-deep); }

.flow3-node.is-active .flow3-node__chip { stroke: var(--orange-bright); fill: var(--surface-2); }
.flow3-node.is-active .flow3-node__icon { color: var(--orange-bright); }
.flow3-node.is-active .flow3-node__label { fill: var(--text); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .flow3-node.is-active .flow3-node__chip {
    animation: flow-pulse 1.7s ease infinite;
  }
}

/* ── Flow3 per-stage detail stage ───────────────────────────────── */
.flow3-detail-stage {
  position: relative;
  min-height: 44px;
  margin: 6px 0 4px;
}

.flow3-detail {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.flow3-detail.is-shown { opacity: 1; pointer-events: auto; }

.flow3-detail__tag,
.flow3-detail__agent,
.flow3-detail__fix {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 11px;
  color: var(--muted);
  background: var(--surface-solid);
}
.flow3-detail__agent { color: var(--orange-bright); border-color: var(--orange-deep); }

.flow3-detail__count {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--orange-bright);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.flow3-detail__count-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flow3-detail__spark { width: 100px; height: 30px; overflow: visible; }
.flow3-detail__spark path {
  fill: none;
  stroke: var(--orange-bright);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow3-detail__spark circle { fill: var(--orange-bright); }
.flow3-detail__delta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .flow3-detail__tag,
  .flow3-detail__agent,
  .flow3-detail__fix {
    opacity: 0;
    transform: translateY(4px);
  }
  .flow3-detail.is-shown .flow3-detail__tag,
  .flow3-detail.is-shown .flow3-detail__agent,
  .flow3-detail.is-shown .flow3-detail__fix {
    animation: flow3-pop-in 380ms ease forwards;
  }
  .flow3-detail.is-shown .flow3-detail__tag:nth-child(2),
  .flow3-detail.is-shown .flow3-detail__agent:nth-child(2),
  .flow3-detail.is-shown .flow3-detail__fix:nth-child(2) { animation-delay: 90ms; }
  .flow3-detail.is-shown .flow3-detail__tag:nth-child(3),
  .flow3-detail.is-shown .flow3-detail__agent:nth-child(3),
  .flow3-detail.is-shown .flow3-detail__fix:nth-child(3) { animation-delay: 180ms; }
  .flow3-detail.is-shown .flow3-detail__tag:nth-child(4),
  .flow3-detail.is-shown .flow3-detail__agent:nth-child(4) { animation-delay: 270ms; }

  @keyframes flow3-pop-in {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ── Mobile fallback lists (replace SVG diagrams below 760px) ────── */
.flow-mobile {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 6px;
}
.flow-mobile__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  transition: border-color 200ms ease, color 200ms ease;
}
.flow-mobile__num { color: var(--muted-2); font-size: 0.75rem; }
.flow-mobile__item.is-active { border-color: var(--orange-bright); color: var(--text); }
.flow-mobile__item.is-active .flow-mobile__num { color: var(--orange); }
.flow-mobile__item.is-done { border-color: var(--orange-deep); }

.flow2-mobile {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 6px;
}
.flow2-mobile__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  transition: border-color 200ms ease, color 200ms ease;
}
.flow2-mobile__count { font-variant-numeric: tabular-nums; color: var(--muted-2); }
.flow2-mobile__item.is-active { border-color: var(--orange-bright); color: var(--text); }
.flow2-mobile__item.is-active .flow2-mobile__count { color: var(--orange); font-weight: 700; }

@media (max-width: 980px) {
  .hero__grid,
  .section__header,
  .cards,
  .team { grid-template-columns: 1fr; }

  .bento { grid-template-columns: 1fr; }
  .metric--wide,
  .metric--stack { grid-column: auto; }

  .band__grid { grid-template-columns: 1fr; }
  .band__cta { align-items: flex-start; text-align: left; }

  .teardown-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav { flex-wrap: wrap; gap: 14px; }

  .section { padding: 22px; }

  .team-card { grid-template-columns: 1fr; }
  .team-card img { width: 100%; max-width: 160px; height: auto; }

  .compare__table { min-width: 560px; }

  /* Diagrams: SVG needs real width to stay legible -- below this
     breakpoint swap it for a plain vertical list driven by the same
     JS state, instead of forcing horizontal scroll on the whole page. */
  .flow-svg,
  .flow2-svg,
  .flow3-svg { display: none; }

  .flow .panel-body,
  .flow2 .panel-body,
  .flow3 .panel-body { overflow-x: visible; }

  .flow-mobile,
  .flow2-mobile { display: flex; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(6px);
    animation: reveal-in 0.5s ease forwards;
    animation-delay: 0.05s;
  }
  @keyframes reveal-in {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Probe Check homepage embed (#probe-check section in layouts/index.html).
   Reuses this file's existing tokens (--orange family, --good/--bad,
   --border, --surface, --radius-*, --font-mono) rather than the true-black
   treatment functions/probe-index.js uses standalone — this section lives
   inside the real homepage's existing dark-warm theme, not a separate
   product surface, so it should extend that system, not fight it.
   ══════════════════════════════════════════════════════════════════════ */
/* Header, homepage only — matches functions/probe-index.js's header
   exactly (background, border, padding, font sizes, logo glow), rather
   than this file's site-wide .topbar/.brand defaults used on every other
   page. Scoped to .is-home (set on <body> in baseof.html) so nothing else
   changes. */
.is-home header.topbar { background: rgba(0,0,0,.7); border-bottom-color: rgba(255,138,0,.15); }
.is-home .topbar__inner { padding: 18px 0; }
.is-home .brand { font-size: .92rem; }
.is-home .brand__logo { filter: drop-shadow(0 0 10px rgba(255,122,0,.35)); }
.is-home .nav { font-size: .78rem; }

.probe-embed { text-align: center; }
/* Button — pill-shaped gradient, matching /probe-index's .btn rather than
   the site's default rectangular .button. */
.probe-btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem;
  min-height: 46px; padding: 0 24px; border-radius: 999px; border: none; cursor: pointer;
  font-family: var(--font-sans); color: #170e05;
  background: linear-gradient(155deg, var(--orange-bright), var(--orange) 60%, var(--orange-deep));
  box-shadow: 0 10px 28px rgba(255,122,0,.3), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.probe-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,122,0,.42), inset 0 1px 0 rgba(255,255,255,.4); }
.probe-btn:disabled { opacity: .6; cursor: default; transform: none; }
.probe-eyebrow--live::after {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-left: 6px; background: var(--orange-bright); box-shadow: 0 0 8px var(--orange-bright);
  vertical-align: middle;
}
@media (prefers-reduced-motion: no-preference) {
  .probe-eyebrow--live::after { animation: probe-pulse 1.8s ease-in-out infinite; }
}
@keyframes probe-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--orange-bright); }
  50% { opacity: .55; box-shadow: 0 0 3px var(--orange-bright); }
}
.probe-glow { text-shadow: 0 0 18px rgba(255, 122, 0, .35); }

.probe-form { display: flex; gap: 10px; max-width: 480px; margin: 28px auto 0; flex-wrap: wrap; justify-content: center; }
.probe-form input {
  flex: 1; min-width: 220px; padding: 0 18px; min-height: 46px; border-radius: 12px;
  border: 1px solid rgba(255, 138, 0, .3); background: rgba(255, 178, 92, .06); color: var(--text);
  font-size: .95rem; font-family: var(--font-sans);
}
.probe-form input::placeholder { color: var(--muted-2); }
.probe-form input:focus { outline: none; border-color: var(--orange); }
/* Bouncing ">>>" nudge toward the domain input, sitting outside its left
   edge — scoped to .probe-input-wrap (index.html / index-glow.html only)
   so pages still using the old flat markup (input as a direct .probe-form
   child, no wrapper) are unaffected. */
.probe-input-wrap { position: relative; flex: 1; min-width: 220px; margin-left: 28px; }
.probe-input-wrap input { width: 100%; }
.probe-input-arrow {
  position: absolute; left: -28px; top: 50%;
  color: var(--orange-bright); font-family: var(--font-mono); font-weight: 700;
  letter-spacing: -2px; pointer-events: none; white-space: nowrap;
  transform: translateY(-50%);
  animation: probe-arrow-bounce 1s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .probe-input-arrow { animation: none; } }
@keyframes probe-arrow-bounce {
  0%, 100% { transform: translate(0, -50%); opacity: .5; }
  50%      { transform: translate(6px, -50%); opacity: 1; }
}
.probe-error { color: var(--bad); font-size: .85rem; margin-top: 10px; display: none; }
.probe-private-choice { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .85rem; color: var(--muted); cursor: pointer; }
.probe-private-choice input { accent-color: var(--orange); }
.probe-fine { margin-top: 14px; font-family: var(--font-mono); font-size: .72rem; color: var(--muted-2); letter-spacing: .02em; }

.probe-board-wrap { margin-top: 44px; text-align: left; }
.probe-board {
  border: 1px solid rgba(255,138,0,.22); border-radius: var(--radius-lg); background: rgba(255,178,92,.05);
  backdrop-filter: blur(16px); padding: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.probe-board--sim { border-style: dashed; }
.probe-board--empty { text-align: center; }
.probe-board__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.probe-board__head h3 { margin: 0; font-family: var(--font-mono); font-size: 1rem; font-weight: 700; }
.probe-board__link { display: inline-block; margin-top: 16px; font-family: var(--font-mono); font-size: .8rem; color: var(--orange-bright); }

.probe-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.probe-lane {
  position: relative; overflow: hidden; border: 1px solid rgba(255,138,0,.22); border-radius: var(--radius-md);
  padding: 14px 16px; background: rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 8px;
}
.probe-lane::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--bar, var(--muted-2)); opacity: .9; }
.probe-lane--good::before { --bar: var(--good); }
.probe-lane--warn::before { --bar: var(--orange); }
.probe-lane__name { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.probe-lane__state { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }

.probe-dot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; }
.probe-dot--good { background: var(--good); box-shadow: 0 0 8px rgba(52,211,153,.5); }
@media (prefers-reduced-motion: no-preference) { .probe-dot--good { animation: probe-dot-glow 2.4s ease-in-out infinite; } }
@keyframes probe-dot-glow { 0%,100% { opacity: 1; } 50% { opacity: .7; } }
.probe-dot--running { background: var(--orange-bright); box-shadow: 0 0 8px var(--orange-bright); }
@media (prefers-reduced-motion: no-preference) { .probe-dot--running { animation: probe-dot-run 1.1s ease-in-out infinite; } }
@keyframes probe-dot-run { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.probe-dot--pending { background: rgba(244, 239, 231, .18); }

.probe-pill { align-self: flex-start; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .03em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.probe-pill--good { color: var(--good); background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35); }
.probe-pill--warn { color: var(--orange-bright); background: rgba(255,122,0,.12); border: 1px solid rgba(255,122,0,.35); }

.probe-report-ready {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700; color: var(--muted);
  background: rgba(244,239,231,.04); border: 1px solid var(--border);
}
.probe-report-ready--go { color: var(--good); background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.35); }

.probe-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0 16px; }
.probe-feed-link { font-family: var(--font-mono); font-size: .8rem; color: var(--orange-bright); }
.probe-feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; text-align: left; }
.probe-plaque {
  position: relative; border: 1px solid rgba(255,138,0,.22); border-radius: var(--radius-md); background: rgba(255,178,92,.05);
  backdrop-filter: blur(14px); padding: 18px; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.probe-plaque::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--orange-bright), transparent); opacity: 0; transition: opacity .25s ease; }
.probe-plaque:hover { transform: translateY(-4px); border-color: rgba(255,138,0,.5); box-shadow: 0 18px 40px rgba(255,122,0,.16); }
.probe-plaque:hover::before { opacity: 1; }
.probe-plaque__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.probe-plaque__name { font-weight: 700; font-size: 1rem; }
.probe-plaque__domain { font-family: var(--font-mono); font-size: .76rem; color: var(--muted-2); margin-top: 2px; }
.probe-plaque__odds { margin-top: 14px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.probe-plaque__odds b { color: var(--good); }
.probe-plaque__date { font-family: var(--font-mono); font-size: .7rem; color: var(--muted-2); }
.probe-feed-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 24px 0; }
.probe-muted { color: var(--muted); }
