/* ==========================================================================
   TapeOut AI Circuit Designer — Design System (elayadesign/ai-design-skills)
   Two layer color tokens, strict Tailwind type scale, spacing table, nested
   radii, flat approved dark surfaces, and weighted cubic-bezier motion.
   ========================================================================== */

:root {
  /* Layer 1: Core Colors */
  --core-gray-00: #FFFFFF;
  --core-gray-100: #F5F5F5;
  --core-gray-200: #E5E5E5;
  --core-gray-300: #D4D4D4;
  --core-gray-400: #A3A3A3;
  --core-gray-500: #9B9B9B;
  --core-gray-600: #737373;
  --core-gray-700: #313131;
  --core-gray-800: #272727;
  --core-gray-850: #1F1F1F;
  --core-gray-900: #181818;
  --core-gray-950: #131209;
  --core-gray-1000: #000000;

  --core-green-400: #4ADE80;
  --core-green-500: #22C55E;
  --core-red-400: #F87171;
  --core-yellow-400: #FACC15;

  --core-alpha-surface: rgba(24, 24, 24, 0.82);
  --core-alpha-drawer: rgba(0, 0, 0, 0.92);
  --core-alpha-border: rgba(255, 255, 255, 0.10);
  --core-alpha-border-strong: rgba(255, 255, 255, 0.22);

  /* Layer 2: Semantic Color System (Dark Mode) */
  --surface-canvas: var(--core-gray-1000);
  --surface-primary: var(--core-gray-900);
  --surface-secondary: var(--core-gray-850);
  --surface-elevated: var(--core-gray-800);
  --surface-interactive: var(--core-gray-700);
  --surface-notice: var(--core-gray-950);

  --border-subtle: var(--core-alpha-border);
  --border-strong: var(--core-alpha-border-strong);
  --border-focus: var(--core-gray-00);

  --text-primary: var(--core-gray-00);
  --text-secondary: var(--core-gray-400);
  --text-muted: var(--core-gray-600);
  --text-inverted: var(--core-gray-1000);

  --action-primary-bg: var(--core-gray-00);
  --action-primary-bg-hover: var(--core-gray-200);
  --action-primary-text: var(--core-gray-1000);

  --action-secondary-bg: var(--core-gray-800);
  --action-secondary-bg-hover: var(--core-gray-700);
  --action-secondary-text: var(--core-gray-00);

  --status-success: var(--core-green-400);
  --status-error: var(--core-red-400);
  --status-warning: var(--core-yellow-400);

  /* B2. Spacing Tokens (ONLY these values) */
  --sp-0: 0px;
  --sp-25: 2px;
  --sp-50: 4px;
  --sp-75: 8px;
  --sp-100: 12px;
  --sp-200: 16px;
  --sp-300: 24px;
  --sp-400: 32px;
  --sp-500: 40px;
  --sp-600: 48px;
  --sp-700: 64px;
  --sp-800: 80px;
  --sp-900: 96px;

  /* B3. Tailwind Corner Radius Tokens */
  --r-none: 0px;
  --r-sm: 2px;
  --r-DEFAULT: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  /* B7. Motion */
  --ease-base: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-hover: 300ms;
  --dur-layout: 500ms;
  --dur-reveal: 650ms;

  /* B1. Fonts */
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: var(--sp-0);
  background-color: var(--surface-canvas);
  color: var(--text-primary);
  overflow-x: clip;
}

/* ==========================================================================
   B1. Named Text Styles (Exact Tailwind Scale & Line Heights)
   ========================================================================== */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; margin: var(--sp-0); }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; margin: var(--sp-0); }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; margin: var(--sp-0); }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; margin: var(--sp-0); }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; margin: var(--sp-0); }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; margin: var(--sp-0); }

.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; margin: var(--sp-0); }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; margin: var(--sp-0); }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; margin: var(--sp-0); }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; margin: var(--sp-0); }
.title-5 { font-size: 12px; line-height: 16px; font-weight: 500; margin: var(--sp-0); }

.body-1 { font-size: 16px; line-height: 24px; font-weight: 600; text-wrap: pretty; margin: var(--sp-0); }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; text-wrap: pretty; margin: var(--sp-0); }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; text-wrap: pretty; margin: var(--sp-0); }
.body-4 { font-size: 14px; line-height: 20px; font-weight: 600; text-wrap: pretty; margin: var(--sp-0); }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; text-wrap: pretty; margin: var(--sp-0); }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; text-wrap: pretty; margin: var(--sp-0); }

.button-lg { font-size: 18px; line-height: 28px; font-weight: 600; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.button-xsm { font-size: 12px; line-height: 16px; font-weight: 600; }

.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }

.mono { font-family: var(--font-mono); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.hidden { display: none !important; }

/* Skip to content (B10) */
.skip-link {
  position: fixed;
  top: var(--sp-200);
  left: var(--sp-200);
  z-index: 200;
  padding: var(--sp-75) var(--sp-100);
  border-radius: var(--r-lg);
  background-color: var(--action-primary-bg);
  color: var(--action-primary-text);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-hover) var(--ease-base);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* ==========================================================================
   B7. Floating Centered Translucent Navigation & Full Height Mobile Drawer
   ========================================================================== */
.nav-wrap {
  position: fixed;
  top: var(--sp-200);
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: var(--sp-0) var(--sp-200);
  pointer-events: none;
}

.floating-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-200);
  padding: var(--sp-75) var(--sp-100);
  background-color: var(--core-alpha-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-2xl);
  max-width: 100%;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  color: var(--text-primary);
  text-decoration: none;
  padding: var(--sp-50) var(--sp-75);
  border-radius: var(--r-lg);
  transition: background-color var(--dur-hover) var(--ease-base);
}
.nav-brand:hover { background-color: var(--surface-elevated); }
.nav-brand:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-50);
  list-style: none;
  margin: var(--sp-0);
  padding: var(--sp-0);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-75) var(--sp-100);
  border-radius: var(--r-lg);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-hover) var(--ease-base), background-color var(--dur-hover) var(--ease-base);
}
.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--surface-elevated);
}
.nav-link[aria-current="location"] {
  color: var(--text-primary);
  background-color: var(--surface-secondary);
}
.nav-link:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: var(--sp-0);
  background-color: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease-base), transform var(--dur-hover) var(--ease-base);
}
.menu-toggle:hover { background-color: var(--surface-elevated); }
.menu-toggle:active { transform: scale(0.98); }
.menu-toggle:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

.menu-bars {
  position: relative;
  width: 16px;
  height: 12px;
}
.menu-bar {
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background-color: var(--text-primary);
  border-radius: var(--r-full);
  transition: transform var(--dur-layout) var(--ease-base), opacity var(--dur-hover) var(--ease-base);
}
.menu-bar.top { top: 2px; }
.menu-bar.bottom { bottom: 2px; }
.menu-toggle[aria-expanded="true"] .menu-bar.top { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar.bottom { transform: translateY(-4px) rotate(-45deg); }

/* Full height mobile menu panel (B7) */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-800) var(--sp-300) var(--sp-400);
  background-color: var(--core-alpha-drawer);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-layout) var(--ease-base);
}
.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-list {
  list-style: none;
  margin: var(--sp-0);
  padding: var(--sp-0);
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
}
.mobile-drawer-item {
  opacity: 0;
  transform: translateY(var(--sp-300));
  transition: opacity var(--dur-layout) var(--ease-base), transform var(--dur-layout) var(--ease-base);
}
.mobile-drawer.open .mobile-drawer-item {
  opacity: 1;
  transform: translateY(0);
}
.mobile-drawer-link {
  display: inline-block;
  color: var(--text-primary);
  text-decoration: none;
  padding: var(--sp-75) var(--sp-0);
}

/* ==========================================================================
   Layout Containers & Buttons (B2, B3, B4, B9)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: var(--sp-0) auto;
  padding: var(--sp-0) var(--sp-300);
}

.section {
  padding: var(--sp-800) var(--sp-0);
  scroll-margin-top: var(--sp-900);
}

#designer, #workbench {
  scroll-margin-top: var(--sp-900);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-75);
  padding: var(--sp-75) var(--sp-100);
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-sans);
  transition: background-color var(--dur-hover) var(--ease-base),
              border-color var(--dur-hover) var(--ease-base),
              color var(--dur-hover) var(--ease-base),
              transform var(--dur-hover) var(--ease-base),
              opacity var(--dur-hover) var(--ease-base);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary {
  background-color: var(--action-primary-bg);
  color: var(--action-primary-text);
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--action-primary-bg-hover);
}

.btn-secondary {
  background-color: var(--action-secondary-bg);
  color: var(--action-secondary-text);
  border-color: var(--border-subtle);
}
.btn-secondary:hover:not(:disabled) {
  background-color: var(--action-secondary-bg-hover);
  border-color: var(--border-strong);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
.btn-ghost:hover:not(:disabled) {
  background-color: var(--surface-elevated);
  color: var(--text-primary);
}

/* ==========================================================================
   Hero Section (B5) — Only place a text gradient exists
   ========================================================================== */
.hero-section {
  padding: var(--sp-900) var(--sp-0) var(--sp-600);
  margin-top: var(--sp-500);
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-300);
  margin-bottom: var(--sp-600);
}

.hero-heading {
  max-width: 680px;
  background-image: linear-gradient(90deg, #FFFFFF 0%, #9B9B9B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 680px;
  color: var(--text-secondary);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-200);
}

.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  color: var(--text-secondary);
}

/* ==========================================================================
   Interactive Workbench Card (Nested Radii: outer 24px - 16px padding = 8px inner)
   ========================================================================== */
.workbench-outer {
  background-color: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-3xl);
  padding: var(--sp-200);
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
}

.workbench-inner {
  background-color: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-200);
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
}

.workbench-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-100);
  flex-wrap: wrap;
}

.example-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-75);
}

.example-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  padding: var(--sp-75) var(--sp-100);
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background-color var(--dur-hover) var(--ease-base),
              border-color var(--dur-hover) var(--ease-base),
              transform var(--dur-hover) var(--ease-base);
}
.example-chip:hover {
  background-color: var(--surface-interactive);
  border-color: var(--border-strong);
}
.example-chip:active { transform: scale(0.98); }
.example-chip:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.example-chip .chip-meta { color: var(--text-secondary); }

.prompt-field {
  width: 100%;
  min-height: 96px;
  padding: var(--sp-100);
  background-color: var(--surface-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  resize: vertical;
  transition: border-color var(--dur-hover) var(--ease-base);
}
.prompt-field::placeholder { color: var(--text-muted); }
.prompt-field:focus {
  outline: none;
  border-color: var(--border-focus);
}

.workbench-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-200);
  flex-wrap: wrap;
}

.inline-error {
  padding: var(--sp-100);
  border-radius: var(--r-lg);
  background-color: var(--surface-canvas);
  border: 1px solid var(--status-error);
  color: var(--status-error);
}

/* Safety notice (B4 approved #131209 dark surface, full 4 side border) */
.safety-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-100);
  padding: var(--sp-100) var(--sp-200);
  background-color: var(--surface-notice);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  color: var(--text-secondary);
}
.safety-notice svg { color: var(--status-warning); flex-shrink: 0; margin-top: var(--sp-25); }
.safety-notice strong { color: var(--text-primary); font-weight: 600; }

/* Composed Empty State (B9) */
.empty-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-100);
  padding: var(--sp-600) var(--sp-300);
  background-color: var(--surface-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
}
.empty-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-xl);
  background-color: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* Layout Shaped Skeleton Loader (B9 — never a circular spinner) */
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}
.skeleton-panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
}
.skel-bar {
  background-color: var(--surface-elevated);
  border-radius: var(--r-lg);
  animation: skeletonPulse 1400ms var(--ease-base) infinite;
}
.skel-banner { height: 48px; width: 100%; }
.skel-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-100);
}
.skel-metric { height: 72px; }
.skel-diagram { height: 240px; width: 100%; }

/* Verified / Failed Result Output */
.result-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
}

.verdict-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-200);
  flex-wrap: wrap;
  padding: var(--sp-100) var(--sp-200);
  border-radius: var(--r-lg);
  background-color: var(--surface-canvas);
  border: 1px solid var(--border-subtle);
}
.verdict-bar.pass { border-color: var(--status-success); }
.verdict-bar.fail { border-color: var(--status-error); }
.verdict-lead { display: inline-flex; align-items: center; gap: var(--sp-75); }
.verdict-bar.pass .verdict-lead { color: var(--status-success); }
.verdict-bar.fail .verdict-lead { color: var(--status-error); }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-100);
}
.metric-box {
  background-color: var(--surface-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-100) var(--sp-200);
  display: flex;
  flex-direction: column;
  gap: var(--sp-50);
}

.subcard {
  background-color: var(--surface-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-200);
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
}

.subcard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-100);
  flex-wrap: wrap;
}

.zoom-group, .export-group {
  display: flex;
  align-items: center;
  gap: var(--sp-75);
  flex-wrap: wrap;
}

.diagram-viewport {
  overflow: auto;
  background-color: var(--surface-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  max-height: 480px;
  padding: var(--sp-75);
}
.diagram-viewport svg {
  display: block;
  transform-origin: top left;
  transition: transform var(--dur-hover) var(--ease-base);
}

.code-block {
  margin: var(--sp-0);
  padding: var(--sp-100);
  background-color: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  color: var(--core-gray-200);
  overflow-x: auto;
  max-height: 240px;
  white-space: pre-wrap;
  word-break: break-all;
}

.table-scroll {
  overflow-x: auto;
  max-height: 320px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
}
th, td {
  padding: var(--sp-75) var(--sp-100);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}
th {
  background-color: var(--surface-primary);
  color: var(--text-secondary);
  position: sticky;
  top: 0;
}
tr.row-pass .cell-verdict { color: var(--status-success); }
tr.row-fail { background-color: var(--surface-primary); }
tr.row-fail .cell-verdict { color: var(--status-error); }

details summary {
  cursor: pointer;
  color: var(--text-secondary);
  padding: var(--sp-50) var(--sp-0);
}
details summary:hover { color: var(--text-primary); }

/* ==========================================================================
   Mid Page Sections: Benefits, Mandatory Tagline Reveal (B11), How It Works,
   Format Proof, FAQ, Final CTA, Footer
   ========================================================================== */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  max-width: 680px;
  margin-bottom: var(--sp-500);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-200);
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-200);
}

.info-card {
  background-color: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-2xl);
  padding: var(--sp-300);
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-lg);
  background-color: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* B11. Mandatory Tagline Reveal Section */
.tagline-section {
  padding: var(--sp-900) var(--sp-0);
}

.tagline-copy {
  max-width: 680px;
}

.tagline-word {
  display: inline-block;
  margin-right: 0.28em;
  opacity: 0.28;
  transition: opacity var(--dur-layout) var(--ease-base);
}
.tagline-word.is-lit {
  opacity: 1;
}

/* Step badge */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-lg);
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* Proof list */
.spec-list {
  list-style: none;
  margin: var(--sp-0);
  padding: var(--sp-0);
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-200);
  padding: var(--sp-75) var(--sp-100);
  background-color: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  max-width: 780px;
}

.faq-item {
  background-color: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-2xl);
  padding: var(--sp-100);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-200);
  padding: var(--sp-100);
  background-color: transparent;
  border: none;
  border-radius: var(--r-lg);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background-color var(--dur-hover) var(--ease-base);
}
.faq-trigger:hover { background-color: var(--surface-secondary); }
.faq-trigger:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.faq-chevron {
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform var(--dur-layout) var(--ease-base);
}
.faq-trigger[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: var(--sp-0) var(--sp-100) var(--sp-100);
  color: var(--text-secondary);
}

/* Final CTA */
.final-cta-card {
  background-color: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-3xl);
  padding: var(--sp-600) var(--sp-400);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-200);
}

/* Footer */
.site-footer {
  padding: var(--sp-600) var(--sp-0) var(--sp-700);
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-300);
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: var(--sp-200);
  flex-wrap: wrap;
}
.footer-link {
  background: transparent;
  border: none;
  padding: var(--sp-50) var(--sp-75);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: color var(--dur-hover) var(--ease-base);
}
.footer-link:hover { color: var(--text-primary); }
.footer-link:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

/* Dialog modal for Privacy & Terms (no dead links) */
dialog.legal-dialog {
  background-color: var(--surface-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  padding: var(--sp-300);
  max-width: 560px;
  width: calc(100% - 32px);
}
dialog.legal-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-200);
}

/* 404 Page */
.not-found-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-300);
}
.not-found-card {
  max-width: 480px;
  width: 100%;
  background-color: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-2xl);
  padding: var(--sp-400);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-200);
}

/* B7. Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(var(--sp-400));
  transition: opacity var(--dur-reveal) var(--ease-base), transform var(--dur-reveal) var(--ease-base);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive (Checked down to 390px with zero overflow)
   ========================================================================== */
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .floating-nav { width: 100%; justify-content: space-between; }
  .container { padding: var(--sp-0) var(--sp-200); }
  .hero-section { padding: var(--sp-800) var(--sp-0) var(--sp-500); }
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .section { padding: var(--sp-600) var(--sp-0); }
  .tagline-section { padding: var(--sp-700) var(--sp-0); }
  .final-cta-card { padding: var(--sp-400) var(--sp-300); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tagline-word { opacity: 1; transition: none; }
  .skel-bar { animation: none; opacity: 0.6; }
  .btn:active, .example-chip:active { transform: none; }
}
