@import url("./design-tokens.css");

/* Self-hosted variable webfonts (was render-blocking Google Fonts CSS). */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched local fallbacks so the swap causes no layout shift (CLS). */
@font-face {
  font-family: "JetBrains Mono Fallback";
  src: local("Courier New");
  size-adjust: 100%;
  ascent-override: 102%;
  descent-override: 30%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial");
  size-adjust: 110.8%;
  ascent-override: 88.81%;
  descent-override: 26.35%;
  line-gap-override: 0%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.05); }
}

@keyframes scanning {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes grid-drift {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

.glassmorphism {
  background: rgba(13, 15, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bg-cyber-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 4s ease-in-out infinite; }
.animate-scanning { animation: scanning 3s linear infinite; }
.animate-grid-drift { animation: grid-drift 20s linear infinite; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

* {
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

/* Available to a screen reader, clipped for everyone else. Used where a control
   is unlabelled visually because its purpose is clear from context. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  /* clip is deprecated but still the only version older Safari honours, so both
     are declared; clip-path wins where it is supported. */
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  background: var(--bg);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  z-index: 100;
  border-radius: var(--radius-sm);
  font-family: var(--interface);
  font-size: 12px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 80% 55% at 50% -8%, rgb(255 255 255 / 0.04), transparent 62%);
  color: var(--text);
  font-family: var(--interface);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.02) 1px, transparent 1px);
}

/*
 * Film grain. The SVG carries width and height, not just a viewBox: without
 * intrinsic dimensions the browser resolves background-size: auto against the
 * positioning area and stretches one 256px tile over the whole viewport, so every
 * noise cell lands on roughly four device pixels and reads as low-res mush rather
 * than grain. Explicit background-size then tiles it 1:1, and the 2dppx rule
 * halves the CSS tile so one noise cell maps to one device pixel on retina
 * instead of two. Single octave: the extra octaves fractalNoise adds are
 * low-frequency, which is the blotchiness, not grain.
 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

@media (min-resolution: 2dppx) {
  body::before {
    background-size: 128px 128px;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

strong {
  color: var(--text);
  font-weight: 600;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(22px, 4vw, 30px);
  margin-top: clamp(32px, 6vw, 48px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

h3 {
  font-size: clamp(18px, 3vw, 22px);
  margin-top: 32px;
}

p {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--muted);
}

/* Layout */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  background: rgba(5, 5, 5, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .brand-mark {
  display: none;
}

.footer-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-sky));
  box-shadow: var(--glow-blue);
  flex-shrink: 0;
  position: relative;
}

.footer-brand .brand-mark::after {
  content: "⎇";
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--bg);
}

.brand-text {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--accent);
}

.page-hardware .brand-mark {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: var(--glow-amber);
}

/* Cross-site ecosystem bar */
.ecosystem-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ecosystem-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px clamp(20px, 4vw, 32px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.ecosystem-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--soft);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ecosystem-pill:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.ecosystem-pill.is-active {
  color: var(--text);
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: var(--glow-blue);
}

.page-hardware .ecosystem-pill.is-active {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: var(--glow-amber);
}

.ecosystem-pill-label {
  font-family: var(--interface);
  font-size: 12px;
  font-weight: 600;
}

.ecosystem-pill-detail {
  font-family: var(--interface);
  font-size: 11px;
  color: var(--soft);
}

.ecosystem-pill.is-active .ecosystem-pill-detail {
  color: color-mix(in srgb, var(--accent) 70%, var(--text));
}

.ecosystem-arrow {
  font-size: 11px;
  opacity: 0.75;
}

.ecosystem-sep {
  color: var(--soft);
  opacity: 0.45;
  font-size: 12px;
  user-select: none;
}

.nav {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px clamp(20px, 4vw, 32px);
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 20px);
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-family: var(--interface);
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
  text-decoration: none;
  border-bottom: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  font-weight: 600;
}

.nav-external {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, var(--line));
  background: color-mix(in srgb, var(--accent-2) 8%, transparent);
  color: var(--accent-2) !important;
  font-weight: 600 !important;
}

.nav-external:hover {
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
}

.nav-more {
  position: relative;
}

.nav-more summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-family: var(--interface);
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
  padding: 4px 2px;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more[open] summary,
.nav-more summary:hover {
  color: var(--text);
}

/* Same hook the nav links use, so the current section is signalled to both
   sighted readers and assistive technology while the panel stays closed. */
.nav-more summary[aria-current] {
  color: var(--text);
  font-weight: 600;
}

/* The panel sets an explicit display, which defeats the UA rule that hides
   details content, so the closed state has to be stated outright. Applies at
   every width: on mobile the panel is in flow, but still opens on tap. */
.nav-more:not([open]) .nav-more-panel {
  display: none;
}

.nav-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 200px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-2);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 50;
}

.nav-more-panel a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.nav-more-panel a:hover {
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
  padding: clamp(48px, 8vw, 80px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  position: relative;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 4vw, 48px);
  }
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-copy .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseGlow 2s ease-in-out infinite;
}

.hero-proof-card {
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(24px, 4vw, 32px);
  background: var(--panel);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 32px 80px rgba(8, 4, 18, 0.55);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof-code pre {
  margin: 0;
  max-height: 220px;
}

.band {
  padding: clamp(64px, 10vw, 120px) 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 85%, transparent);
}

.section-heading.compact {
  margin-bottom: 32px;
}

.section-heading h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 8px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.trust-ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 16, 28, 0.75);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.trust-ticker-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  padding: 14px 0;
  animation: trust-ticker-scroll 44s linear infinite;
}

.trust-ticker-item {
  flex: none;
  font-family: var(--interface);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  white-space: nowrap;
}

.trust-ticker-item::before {
  content: "◆";
  margin-right: 10px;
  color: var(--accent);
  font-size: 8px;
}

@keyframes trust-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.panel,
.flow-step,
.compat-card,
.status-card,
.signal-card,
.evidence-link,
.cta-panel,
.doc-callout,
.hero-proof-card {
  background: var(--panel);
}

.hero-subtitle {
  font-size: clamp(18px, 3.5vw, 22px);
  font-style: italic;
  color: var(--soft);
  margin-bottom: 24px;
}

.button-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.button:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: transparent;
  box-shadow: 0 0 25px -5px rgba(0, 242, 255, 0.4);
}

.button.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 32px -4px rgba(0, 242, 255, 0.5);
}

.button.primary-warm {
  background: var(--accent-warm);
  color: var(--bg);
  border-color: transparent;
  box-shadow: var(--glow-amber);
}

.button.primary-warm:hover {
  background: var(--accent-warm-hover);
}

.button.secondary {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.button.ghost {
  border-color: transparent;
  background: transparent;
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

/* Pre / Code Blocks */
pre, code {
  font-family: var(--mono);
  font-size: 12.5px;
}

pre {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(12px, 3vw, 20px);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 20px 0;
  color: var(--text);
}

code {
  background: var(--panel-2);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

pre code {
  background: transparent;
  padding: 0;
}

/* Verifier Result Box */
.result-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--soft);
  border-radius: var(--radius);
  padding: clamp(16px, 3.5vw, 24px);
  margin: 24px 0;
  background: var(--panel);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-box.valid {
  border-left-color: var(--accent-2);
  background: #f0fdf4;
  color: #14532d;
}

.result-box.invalid {
  border-left-color: var(--danger);
  background: #fef2f2;
  color: #7f1d1d;
}

.result-box h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.result-status {
  font-family: var(--interface);
  font-size: var(--type-micro);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  font-weight: 700;
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.result-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.result-detail-label {
  font-weight: 600;
  flex-shrink: 0;
}

.result-detail-value {
  min-width: 0;
}

/* Browser verifier layout */
.verify-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: start;
  gap: 16px;
  padding: 0 0 80px;
}

.verify-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.verify-card label {
  display: block;
  color: var(--accent);
  font-family: var(--interface);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.drop-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  margin-bottom: 16px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
  background: rgb(255 255 255 / 0.015);
  font-size: 13.5px;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--ok);
  color: var(--ok);
  background: rgb(62 207 110 / 0.04);
}

.verify-layout textarea {
  width: 100%;
  min-height: 400px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--panel-2);
  color: var(--text);
  outline: none;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  transition: border-color 150ms ease;
}

.verify-layout textarea:focus {
  border-color: var(--accent);
}

.verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.verifier-callout-panel {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid rgb(var(--ssx-accent-rgb) / 0.2);
  background: rgb(var(--ssx-accent-rgb) / 0.04);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

/*
 * Both tags. The callout is an h2 on /verify, where it is the first heading under
 * the page h1 and an h3 would skip a level, and an h3 on /mcp, where it follows
 * an h2 and is correctly nested. Matching only one tag left the other rendering
 * at default heading size.
 *
 * border-bottom and padding-bottom are reset because the global h2 rule draws a
 * section underline that a callout title should not have.
 */
.verifier-callout-text h2,
.verifier-callout-text h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 0;
  padding-bottom: 0;
}

.verifier-callout-text p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.verifier-callout-panel .button {
  flex-shrink: 0;
}

/* Grids & Cards */
.pillar-grid,
.flow-grid,
.doc-grid,
.compat-grid,
.status-grid,
.signal-grid,
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}


.panel,
.compat-card,
.status-card,
.signal-card,
.cta-panel {
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel,
.flow-step,
.compat-card,
.status-card,
.signal-card,
.evidence-link,
.cta-panel,
.doc-callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card titles are h2 so they do not skip a level under the page h1. They are
   card headings rather than section headings, so the global h2 rule above does
   not apply to them. */
.flow-step h2 {
  font-size: 17px;
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.panel:hover,
.flow-step:hover,
.compat-card:hover,
.status-card:hover,
.signal-card:hover,
.evidence-link:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

th, td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

th {
  background: var(--panel);
  font-weight: 700;
  font-family: var(--interface);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Details list inside verifier */
.details-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
}

.detail-item strong {
  display: block;
  font-family: var(--interface);
  font-size: var(--type-micro);
  text-transform: uppercase;
  color: var(--soft);
  letter-spacing: 0.1em;
}

/* Specific elements */
.eyebrow,
.panel-kicker {
  font-family: var(--interface);
  font-size: 11px;
  font-weight: 600;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
  margin-top: 64px;
  font-size: 14px;
}

.footer-brand-col > p {
  margin: 0;
  line-height: 1.65;
}

.footer-brand-col .footer-tagline {
  margin-top: 1rem;
  color: var(--muted);
}

.footer-brand-col .attribution {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
}

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.site-footer .footer-grid > div:not(:first-child) a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: none;
  font-family: var(--interface);
  transition: color 0.2s ease;
  font-size: 13px;
}

.site-footer .footer-grid > div:not(:first-child) a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer .footer-brand {
  display: inline-flex;
  margin-bottom: 0.75rem;
}

.site-footer .attribution {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer .attribution a {
  display: inline;
  margin-bottom: 0;
  color: inherit;
  text-decoration: underline;
  font-size: inherit;
}

.site-footer .attribution a:hover {
  color: var(--text);
}

.site-footer h2 {
  font-size: 11px;
  text-transform: uppercase;
  font-family: var(--interface);
  letter-spacing: 0.15em;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
  color: var(--soft);
}

/* Split view in home page */
.split-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(64px, 10vw, 120px) 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.hardware-ready-list {
  margin: 0 0 24px;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.8;
}

.hardware-ready-visual {
  margin: 0;
}

.hardware-ready-visual img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) + 6px);
  filter: drop-shadow(0 28px 64px rgba(124, 58, 237, 0.32));
}

/* Authority Dashboard Layout & Elements */
.authority-container {
  padding: clamp(32px, 5vw, 60px) 0 100px;
}

.auth-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.auth-header-row h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin: 0;
}

.status-badge {
  font-size: var(--type-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--interface);
  display: inline-block;
}

.status-badge.verified {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-badge.unverified {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.authority-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .verify-layout {
    grid-template-columns: 1fr;
  }

  .verifier-callout-panel {
    flex-direction: column;
    text-align: center;
  }

  .authority-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.auth-card {
  background: rgba(13, 15, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow);
}

/* Card title typography is fully specified here so it renders identically
   whether the view uses h1 (auth) or h2 (nested panels). */
.auth-card h1,
.auth-card h2 {
  font-size: clamp(18px, 3.5vw, 22px);
  letter-spacing: normal;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 11px;
  color: var(--soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--interface);
  font-weight: 600;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--interface);
  font-size: 14px;
  transition: all 150ms ease;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--text);
  background: var(--bg);
}

.auth-feedback {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  display: none;
  font-family: var(--interface);
}

/* Variants set colour only. Visibility is driven by state: the base rule keeps
   the box hidden until showError/showSuccess sets display, so an empty box
   never renders just because the markup carries a colour class. */
.auth-feedback.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.auth-feedback.error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.key-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.key-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  position: relative;
}

.key-item .key-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--soft);
  margin-bottom: 8px;
  font-family: var(--interface);
}

.key-item .key-val {
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
  color: var(--muted);
}

.key-item .btn-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  padding: 0;
  font-family: var(--interface);
}

.key-item .btn-remove:hover {
  text-decoration: underline;
}

.empty-keys-msg {
  color: var(--soft);
  font-size: 13px;
  text-align: center;
  padding: 32px 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}

.sim-control-panel {
  margin-top: 24px;
  border: 1px solid #a7f3d0;
  background: #f0fdf4;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sim-control-panel p {
  margin: 0;
  font-size: 13px;
  color: #14532d;
}

.sim-control-panel strong {
  color: var(--accent-2);
}

.sim-control-panel button {
  padding: 4px 10px;
  font-size: 11px;
}

.auth-prompt-card {
  text-align: center;
  max-width: 480px;
  margin: 60px auto;
}

/* Modal Overlay & Simulated Checkout */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line-strong) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.05) !important;
  animation: modalSlideUp 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  border-top-color: var(--text);
  animation: spin 800ms linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/*
 * The nav collapses to a toggle below 1080px.
 *
 * It used to collapse at 900px, but the desktop row needs 1060px to fit: 14 to 16
 * links plus the Scan MCP button. Everything from 901px to 1059px therefore
 * rendered a nav wider than the viewport and gave the whole page a horizontal
 * scrollbar, worst at 1024px where an iPad in landscape sits. Measured with the
 * fonts loaded; 1080px leaves headroom for the fallback face, which is wider.
 */
@media (max-width: 1079px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px clamp(20px, 4vw, 32px) 16px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a,
  .nav-more summary {
    padding: 12px 4px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  }

  .nav-more-panel {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 8px 12px;
  }

  .nav-external-desktop {
    display: none !important;
  }

  .site-header {
    position: relative;
  }

  .site-header .nav {
    position: relative;
    flex-wrap: nowrap;
  }
}

/*
 * The ecosystem bar stays on its own 900px breakpoint. It fits at 901px to
 * 1079px, so it has no reason to follow the nav down.
 */
@media (max-width: 900px) {
  .ecosystem-bar-inner {
    justify-content: center;
  }

  .ecosystem-sep {
    display: none;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0 40px;
    margin-top: 48px;
  }

  .footer-brand-col .attribution {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .sim-control-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .shell {
    padding-inline: 16px;
  }

  .footer-grid {
    gap: 24px;
    padding: 28px 0 36px;
  }

  .footer-brand-col .footer-tagline {
    margin-top: 0.875rem;
  }

  .footer-brand-col .attribution {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .site-header {
    min-height: 52px;
  }

  .hero {
    padding-top: clamp(32px, 6vw, 48px);
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.5rem);
    overflow-wrap: anywhere;
  }

  .nav-links a,
  .nav-more summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-cta,
  .button,
  .btn-primary {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-ticker-track,
  body::after {
    animation: none;
  }
  .reveal-up,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
  .animate-float,
  .animate-pulse-glow,
  .animate-scanning,
  .animate-grid-drift {
    animation: none;
  }
}

.amber-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
  margin: 0 0 2rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-bottom-color: var(--line-strong);
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  border-bottom: none;
  padding-bottom: 0;
}

.section-heading.compact h2 {
  margin-top: 0.5rem;
}

.panel,
.pricing-card,
.signal-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.panel:hover,
.pricing-card:hover,
.signal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), var(--glow-blue);
}

.partner-proof-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 16, 14, 0.55);
  padding: 12px 0;
}

.partner-proof-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.partner-proof-inner a {
  color: var(--accent);
}

.trust-ticker:hover .trust-ticker-track {
  animation-play-state: paused;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }

.button:hover,
.cta-button:hover {
  transform: translateY(-1px);
}

.home-teaser {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .home-teaser {
    grid-template-columns: 1fr 0.9fr;
  }
}

.home-teaser img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), var(--glow-amber);
}

/* ——— Missing component styles (SITE_UPGRADE pass) ——— */

.page-hero {
  padding: clamp(48px, 8vw, 80px) 0 clamp(32px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.page-hero .lead {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 52rem;
}

.page-hero.is-centered {
  text-align: center;
}

.page-hero.is-centered h1,
.page-hero.is-centered .lead {
  margin-left: auto;
  margin-right: auto;
}

.page-hero.is-centered .button-row {
  justify-content: center;
}

.lead {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}

.small-note {
  font-size: 13px;
  color: var(--soft);
  line-height: 1.6;
}

.compare-callout {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.compare-callout strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 14px;
}

.compare-callout p {
  margin: 0;
  font-size: 14px;
}

/* Console window (hero proof card) */
.console-window {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--obsidian-card);
  box-shadow: var(--shadow), var(--glow-blue);
  overflow: hidden;
  position: relative;
}

.console-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 242, 255, 0.03));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.console-window:hover::after {
  opacity: 1;
}

.console-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.console-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.console-dot.red { background: #ff5f56; }
.console-dot.amber { background: #ffbd2e; }
.console-dot.green { background: #27c93f; }

.console-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--soft);
  letter-spacing: 0.06em;
}

.console-body {
  padding: clamp(20px, 3vw, 28px);
}

.hero-proof-card.console-window .hero-proof-card-inner,
.console-window .hero-proof-card {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.hero-proof-card {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 32px);
  background: var(--panel);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), var(--glow-blue);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Trust badges bar */
.trust-badges-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(13, 15, 20, 0.6);
  backdrop-filter: blur(8px);
}

.trust-badges-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 20px 0;
}

@media (min-width: 768px) {
  .trust-badges-inner {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-badge:hover {
  border-color: rgba(0, 242, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}

.trust-badge-label {
  font-family: var(--mono);
  font-size: var(--type-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.trust-badge-detail {
  font-size: 11px;
  color: var(--soft);
  line-height: 1.4;
}

/* Pricing */
.pricing-section {
  padding-top: 16px;
}

.pricing-header {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto 40px;
}

.pricing-header h2 {
  border-bottom: none;
  margin-top: 8px;
}

.pricing-header .section-lead {
  max-width: 44rem;
  margin-inline: auto;
}

.billing-toggle-container {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--soft);
}

.billing-toggle-container span.active {
  color: var(--text);
  font-weight: 600;
}

.toggle-button {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.toggle-button.active {
  background: rgba(0, 242, 255, 0.2);
  border-color: rgba(0, 242, 255, 0.4);
}

.toggle-handle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.toggle-button.active .toggle-handle {
  transform: translateX(20px);
  background: var(--accent);
}

.discount-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 242, 255, 0.12);
  color: var(--accent);
  font-size: var(--type-micro);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  justify-content: center;
  justify-items: stretch;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 48rem;
  }

  .pricing-card:last-child:nth-child(3) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    justify-self: center;
  }
}

@media (min-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 72rem;
  }

  .pricing-card:last-child:nth-child(3) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
}

.pricing-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.pricing-card.popular {
  border-color: rgb(var(--ssx-accent-rgb) / 0.35);
  box-shadow: var(--glow-blue);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
}

.pricing-card h3 {
  margin: 8px 0 0;
  font-family: var(--display);
  width: 100%;
}

.pricing-card .description {
  font-size: 14px;
  color: var(--soft);
  margin: 0;
  flex: 1;
  width: 100%;
  line-height: 1.55;
}

.price-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  width: 100%;
  font-family: var(--display);
}

.price-container .currency {
  font-size: 18px;
  color: var(--soft);
}

.price-container .amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.price-container .period {
  font-size: 13px;
  color: var(--soft);
  margin-left: 4px;
}

.price-container .custom-price {
  font-size: 1.75rem;
  font-weight: 700;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
}

.cta-button.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: transparent;
  box-shadow: var(--glow-blue);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.05);
}

.features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card .features-list {
  width: 100%;
  max-width: 17.5rem;
  margin-inline: auto;
  padding-inline: 4px;
  text-align: left;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.pricing-card .cta-button {
  width: 100%;
  margin-top: 4px;
}

.check-icon {
  color: var(--ok);
  font-weight: 700;
  flex-shrink: 0;
}

.why-explainer {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(0, 242, 255, 0.04);
}

.why-explainer h4 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 16px;
}

.why-explainer p {
  margin: 0;
  font-size: 14px;
}

/* Code blocks & terminals */
.code-block {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--mono);
  font-size: var(--type-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

/* MCP terminal mockup (moved from inline) */
.terminal-mockup {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--obsidian-card);
  box-shadow: var(--shadow), var(--glow-blue);
  font-family: var(--mono);
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
  overflow: hidden;
}

.terminal-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  color: var(--soft);
  font-size: 11px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.terminal-body {
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  min-height: 320px;
  max-height: 480px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.25);
}

.terminal-line { margin-bottom: 12px; }
.command-line { color: var(--accent); }
.command-line .prompt { color: #ff7b72; font-weight: 700; margin-right: 8px; }
.output-line pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  color: rgba(0, 242, 255, 0.85);
  background: transparent;
  border: none;
  padding: 0;
}
.output-line .success-tag { color: var(--ok); font-weight: 700; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.tool-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tool-card:hover {
  border-color: rgba(0, 242, 255, 0.25);
  transform: translateY(-2px);
}

.tool-card h3 {
  margin-top: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 15px;
}

.tool-card p {
  color: var(--soft);
  font-size: 14px;
  margin-bottom: 0;
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  margin-left: 8px;
  border-radius: var(--radius-sm);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent);
  color: var(--bg) !important;
  border: none;
  box-shadow: 0 0 20px -6px rgba(0, 242, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px -4px rgba(16, 185, 129, 0.55);
}

.nav-pypi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--obsidian-card);
  font-family: var(--mono);
  font-size: var(--type-micro);
  color: var(--soft) !important;
  text-decoration: none;
  white-space: nowrap;
}

.nav-pypi:hover {
  color: var(--accent) !important;
  border-color: rgba(16, 185, 129, 0.3);
}

.nav-ssx360 {
  border-color: rgba(16, 185, 129, 0.3) !important;
  background: rgba(16, 185, 129, 0.08) !important;
  color: var(--accent) !important;
}

/* Footer status bar */
.footer-status-bar {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  background: rgba(0, 0, 0, 0.35);
}

.footer-status-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: var(--type-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
}

.footer-status-inner .status-ok {
  color: var(--ok);
}

.footer-status-inner .status-ok::before {
  content: "● ";
}

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.site-footer .footer-grid {
  border-top: none;
  margin-top: 0;
}

/* Ecosystem / AP2 page helpers */
.ecosystem-stack {
  display: grid;
  gap: 24px;
  margin: 32px 0;
}

@media (min-width: 768px) {
  .ecosystem-stack {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ecosystem-layer {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.ecosystem-layer.is-hardware {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.04);
}

.ecosystem-layer-protocol {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.04);
}

.roadmap-phase {
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 16px;
}

.roadmap-phase h3 {
  margin-top: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* AP2 page */
.ap2-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 48px 24px;
}

.ap2-header {
  text-align: center;
  margin-bottom: 48px;
}

.ap2-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  background: rgba(245, 158, 11, 0.06);
}

.spec-h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--text);
}

.spec-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  backdrop-filter: blur(12px);
}

.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
  text-align: center;
}

@media (min-width: 640px) {
  .partner-logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.partner-logo-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

/* Ecosystem layers */
.layers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.layer {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.layer.sub {
  border-left-color: var(--accent-warm);
}

/* Same reasoning as .phase: card titles are h2 under the page h1. */
.layer h2,
.layer h3 {
  margin: 4px 0 8px;
  font-size: 19px;
  font-weight: 700;
  border-bottom: 0;
  padding-bottom: 0;
}

.layer ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.layer li { margin: 4px 0; }
.layer li strong { color: var(--accent); }

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
}

.proof-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.proof-link:hover {
  color: var(--accent-hover);
}

/* Roadmap phases */
.phases {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.phase {
  border-left: 3px solid var(--line-strong);
  padding-left: 16px;
}

.phase.done { border-left-color: var(--ok); }
.phase.prog { border-left-color: var(--accent); }

.phase .top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/*
 * The phase cards sit directly under the page h1 with no section heading
 * between, so their titles are h2. Typography is stated in full here, and the
 * global h2 rule's underline and top margin are cancelled, so the card looks
 * the same whichever tag it carries.
 */
.phase h2,
.phase h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.badge.ok {
  color: var(--ok);
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--type-micro);
  text-transform: uppercase;
}

.badge.prog {
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--type-micro);
  text-transform: uppercase;
}

/* ——— Protocol homepage (developer guideline) ——— */

.glow-hover {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glow-hover:hover {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.hero-fullbleed {
  width: 100%;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 80px);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 4vw, 48px);
  }
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent-sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text);
  max-width: 36rem;
  margin-bottom: 12px;
}

.hero-detail {
  font-size: 14px;
  color: var(--soft);
  max-width: 36rem;
  margin-bottom: 0;
}

.eyebrow-purple {
  color: var(--accent-purple);
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.08);
}

.eyebrow-purple::before {
  background: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple);
}

.eyebrow-sky {
  color: var(--accent-sky);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.install-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--obsidian-card);
  font-family: var(--mono);
  font-size: 12px;
}

.install-cmd {
  color: var(--accent);
  background: transparent;
  padding: 0;
}

.install-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  color: var(--soft);
  cursor: pointer;
  font-size: 16px;
  padding: 0 10px;
  line-height: 1;
  transition: color 0.2s ease;
}

.install-copy-btn:hover,
.install-copy-btn .is-copied {
  color: var(--accent);
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--soft);
}

.trust-icon {
  color: var(--accent);
  margin-right: 4px;
}

.trust-icon.trust-sky {
  color: var(--accent-sky);
}

.trust-sep {
  opacity: 0.35;
}

.protocol-card {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: var(--obsidian-card);
  padding: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.protocol-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-sky));
}

.protocol-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.protocol-card-label {
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.protocol-badge {
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
}

.code-preview {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: var(--bg);
  padding: 12px;
  margin-bottom: 12px;
}

.code-preview-file {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: var(--type-micro);
}

.code-signed-label {
  color: var(--accent);
}

.code-line {
  padding: 1px 4px;
}

.code-line.muted {
  color: var(--soft);
}

.code-line.added {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border-left: 2px solid var(--accent);
}

.metadata-envelope {
  font-family: var(--mono);
  font-size: var(--type-micro);
  color: var(--soft);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: var(--bg);
  padding: 12px;
}

.metadata-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}

.metadata-verified {
  color: var(--accent-sky);
}

.meta-key {
  color: var(--accent);
}

.protocol-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--soft);
}

.protocol-card-footer a {
  color: var(--accent-sky);
  border-bottom: none;
}

.band-muted {
  background: rgba(17, 24, 39, 0.35);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading.is-centered {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 40px;
}

.section-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 12px;
}

.protocol-section {
  /* One section rhythm site-wide — matches .band */
  padding: clamp(64px, 10vw, 120px) 0;
}

.compare-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .compare-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-card h3 {
  margin-top: 8px;
  font-size: 18px;
}

.compare-card p {
  font-size: 13px;
  line-height: 1.65;
}

.compare-snippet {
  font-family: var(--mono);
  font-size: var(--type-micro);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.compare-snippet-danger {
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.15);
  background: rgba(248, 113, 113, 0.05);
}

.compare-snippet-ok {
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.15);
  background: rgba(16, 185, 129, 0.05);
}

.compare-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 8px;
}

.compare-card-icon-danger {
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
}

.compare-card-icon-ok {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
}

.anatomy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .anatomy-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.anatomy-manifest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--type-micro);
  color: var(--soft);
  gap: 12px;
  flex-wrap: wrap;
}

.anatomy-spec {
  color: var(--soft);
  opacity: 0.7;
}

.anatomy-keys {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.anatomy-key {
  width: 100%;
  text-align: left;
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(17, 24, 39, 0.5);
  color: var(--soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.anatomy-key:hover {
  background: rgba(17, 24, 39, 0.85);
}

.anatomy-key.is-active {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--text);
}

.key-purple { color: var(--accent-purple); }
.key-sky { color: var(--accent-sky); }

.anatomy-explainer {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.anatomy-explainer-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, var(--accent), var(--accent-sky));
  opacity: 0.1;
  border-bottom-left-radius: 100%;
  pointer-events: none;
}

.anatomy-desc {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  flex: 1;
}

.anatomy-explainer-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--type-micro);
  color: var(--soft);
}

.anatomy-aligned {
  color: var(--accent);
}

.cli-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .cli-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

.cli-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.5);
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cli-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.cli-btn.is-active {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.06);
  color: var(--text);
}

.cli-btn.is-active .cli-play {
  color: var(--accent);
  opacity: 1;
}

.cli-play {
  opacity: 0.5;
  font-size: var(--type-micro);
}

.cli-screen {
  padding: 20px;
  min-height: 220px;
  max-height: 280px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

.cli-muted { color: var(--soft); margin-bottom: 8px; }
.cli-cmd { color: var(--text); margin-bottom: 8px; }
.cli-out { color: var(--soft); margin-bottom: 4px; }
.cli-ok { color: #6ee7b7; font-weight: 700; margin-bottom: 4px; }
.cli-warn { color: #fca5a5; margin-bottom: 4px; }
.cli-fail { color: var(--danger); font-weight: 700; margin-bottom: 4px; }

@keyframes blink {
  50% { opacity: 0; }
}

.terminal-cursor {
  animation: blink 1s step-end infinite;
}

.verifier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .verifier-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.verifier-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-table-wrap {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

/* Generic scroll container for wide data tables (e.g. /compare "At a glance") */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.table-wrap .data-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

.comparison-scroll {
  overflow-x: auto;
}

.scroll-focus-region:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.comparison-table {
  width: 100%;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  vertical-align: top;
}

.comparison-table th {
  background: var(--panel-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.comparison-table .col-highlight {
  background: rgb(var(--ssx-accent-rgb) / 0.06);
  color: var(--accent);
}

.comparison-table .cell-preview {
  color: var(--ssx-hold);
  background: rgb(var(--ssx-accent-rgb) / 0.08);
  font-weight: 600;
}

.comparison-table thead .col-highlight {
  font-weight: 700;
}

.cell-danger {
  color: var(--danger);
  font-weight: 600;
}

.comparison-note {
  padding: 16px 20px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.enterprise-cta {
  /* One section rhythm site-wide — matches .band */
  padding: clamp(64px, 10vw, 120px) 0;
  border-top: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.2);
  text-align: center;
}

.enterprise-cta-inner {
  max-width: 48rem;
}

.enterprise-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0 32px;
  text-align: left;
}

@media (min-width: 640px) {
  .enterprise-split {
    grid-template-columns: 1fr 1fr;
  }
}

/* Same reasoning as .phase: card titles are h2 under the page h1. */
.enterprise-split-card h2,
.enterprise-split-card h3 {
  font-family: var(--mono);
  font-size: 13px;
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.enterprise-split-card p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.enterprise-split-ssx h2,
.enterprise-split-ssx h3 {
  color: var(--accent-sky);
}

.copy-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: copy-toast-in 0.25s ease;
}

@keyframes copy-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-home .site-header {
  background: rgba(8, 12, 20, 0.9);
}

.page-home .button.primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 25px -5px rgba(16, 185, 129, 0.4);
}

.page-home .button.primary:hover {
  background: var(--accent-hover);
}

.page-home .nav-cta {
  background: var(--accent);
  box-shadow: 0 0 20px -6px rgba(16, 185, 129, 0.45);
}

@media (max-width: 640px) {
  .hero-trust-strip .trust-sep {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .install-copy {
    width: 100%;
    justify-content: space-between;
  }
}

