:root {
  --bg-void: #09090b;
  --surface-1: #111216;
  --surface-2: #171920;
  --surface-glass: rgba(17, 18, 22, 0.8);
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-strong: rgba(255, 255, 255, 0.18);
  --ink: #fafafa;
  --ink-muted: #a1a1aa;
  --cobalt: #3b82f6;
  --cobalt-bright: #60a5fa;
  --cobalt-deep: #2563eb;
  --champagne: #d4b475;
  --emerald-status: #34d399;
  --bg-paper: #fafafa;
  --bg-paper-alt: #f4f4f5;
  --ink-dark: #09090b;
  --ink-dark-muted: #52525b;
  --border-paper: #e4e4e7;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--ink);
  line-height: 1.62;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img, svg, canvas {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Hairline Cobalt Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--champagne));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 120;
  pointer-events: none;
  will-change: transform;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--bg-void);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

section[id], div[id] {
  scroll-margin-top: 96px;
}

/* Restraint Launch Strip */
.promo-strip {
  background: #0d0f14;
  color: #d4d4d8;
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 16px;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}
.promo-strip strong {
  color: var(--champagne);
  font-weight: 700;
}
.promo-strip a {
  color: #fafafa;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 8px;
  font-weight: 600;
}

/* Linear/Vercel Glass Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(9, 9, 11, 0.94);
  border-bottom-color: var(--hairline-strong);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.brand-title {
  font-weight: 700;
  font-size: 17.5px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #ffffff;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cobalt-bright);
  letter-spacing: 0.06em;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}
.nav-links a.is-active {
  box-shadow: inset 0 -1.5px 0 var(--cobalt-bright);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cmd-trigger {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cmd-trigger:hover {
  border-color: var(--hairline-strong);
  color: #ffffff;
}
.nav-phone {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: #e4e4e7;
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  white-space: nowrap;
}
.nav-phone:hover {
  border-color: var(--cobalt);
}

.nav-toggle {
  display: none;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(330px, 88vw);
  background: #0d0f14;
  border-left: 1px solid var(--hairline);
  padding: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 18px;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease), visibility 0.28s var(--ease);
}
.mobile-drawer.open { visibility: visible; transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.drawer-close {
  background: var(--surface-2);
  color: #fff;
  border: 1px solid var(--hairline);
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}
.drawer-links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.drawer-links a {
  display: block; padding: 11px 14px; border-radius: 9px;
  text-decoration: none; font-weight: 600; font-size: 15px; color: #e4e4e7;
}
.drawer-links a.is-active, .drawer-links a:hover {
  background: rgba(59, 130, 246, 0.14); color: #fff;
}

/* Command Palette Modal */
.cmd-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px;
  z-index: 140;
}
.cmd-modal.open { display: flex; }
.cmd-box {
  width: min(540px, 100%);
  background: var(--surface-1);
  border: 1px solid var(--hairline-strong);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
}
.cmd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-muted);
}
.cmd-list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 6px;
}
.cmd-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #fafafa;
  border: 1px solid transparent;
}
.cmd-list a:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}
.cmd-list span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

/* High-Authority Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  max-width: 100%;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #fafafa;
  color: #09090b;
  font-weight: 700;
}
.btn-primary:hover { background: #e4e4e7; }
.btn-cobalt {
  background: var(--cobalt);
  color: #ffffff;
  font-weight: 700;
}
.btn-cobalt:hover { background: var(--cobalt-deep); }
.btn-secondary, .btn-outline-light {
  background: rgba(255, 255, 255, 0.05);
  color: #fafafa;
  border-color: var(--hairline-strong);
}
.btn-secondary:hover, .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.34);
}
.btn-outline-paper {
  background: #ffffff;
  color: var(--ink-dark);
  border-color: #d4d4d8;
}
.btn-outline-paper:hover {
  border-color: var(--ink-dark);
  background: #f4f4f5;
}
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

/* Typography Scale */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.eyebrow-dark {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.eyebrow-paper {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.mono-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cobalt-bright);
}
.section-paper .mono-tag { color: #1d4ed8; }

h1 {
  font-size: clamp(2.4rem, 4.3vw, 3.85rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
h1 .accent {
  background: linear-gradient(120deg, #fafafa 10%, #93c5fd 60%, #d4b475 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.section-dark {
  background: var(--bg-void);
  color: var(--ink);
  padding: 84px 0;
  border-top: 1px solid var(--hairline);
}
.section-paper {
  background: var(--bg-paper);
  color: var(--ink-dark);
  padding: 88px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 42px;
}
.section-header p {
  margin-top: 12px;
  font-size: 16.5px;
  color: var(--ink-muted);
}
.section-paper .section-header p {
  color: var(--ink-dark-muted);
}

/* Luxury Obsidian Hero + Monolith 3D + Compact Studio Frame */
.hero {
  background:
    radial-gradient(ellipse 64% 50% at 72% 18%, rgba(59, 130, 246, 0.14), transparent 68%),
    radial-gradient(ellipse 40% 35% at 22% 88%, rgba(212, 180, 117, 0.07), transparent 65%),
    var(--bg-void);
  padding: 48px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 36px;
  align-items: center;
}

.hero-copy { min-width: 0; }
.hero-copy h1 { margin-top: 16px; color: #ffffff; }
.hero-lead {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 560px;
}
.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-metrics {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.hero-metric strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.hero-metric span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Right Column Sculptural 3D + Live Nominet Checker + Compact Thumbnails */
.hero-bento {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.monolith-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.prism-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prism-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.prism-pill.is-active {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.55);
  color: #ffffff;
}

.canvas-wrap {
  width: 100%;
  height: 235px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.12), rgba(9, 9, 11, 0.92));
  overflow: hidden;
}
#mr3dCanvas {
  width: 100%;
  height: 100%;
}

/* Live Nominet Domain Strip inside Bento */
.domain-widget {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px 16px;
}
.domain-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.domain-row input {
  flex: 1 1 200px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-void);
  color: #ffffff;
  font-size: 14px;
}
.domain-card {
  margin-top: 10px;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hairline);
}
.domain-card.is-free { background: rgba(16, 185, 129, 0.1); border-color: rgba(52, 211, 153, 0.35); }
.domain-card.is-taken { background: rgba(212, 180, 117, 0.1); border-color: rgba(212, 180, 117, 0.35); }
.domain-card.is-warn { background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.35); }
.domain-card h4 { font-size: 14px; color: #ffffff; margin-top: 2px; }
.domain-card p { font-size: 12.5px; color: var(--ink-muted); }

/* Modular Bento Grid + Spotlight Cards + Compact Framed Figures & Small Photos */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }

.bento-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 24px;
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(96, 165, 250, 0.1), transparent 60%);
  pointer-events: none;
}
.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}
.bento-card p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* Compact Tasteful Open-Source Photo Framing (Strictly <= 130px height!) */
.compact-media-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.compact-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-void);
  border: 1px solid var(--hairline);
  border-radius: 11px;
  padding: 8px;
}
.compact-thumb img {
  width: 78px;
  height: 58px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
  filter: saturate(0.85) contrast(1.06);
}
.compact-thumb strong {
  display: block;
  font-size: 12.5px;
  color: #fafafa;
  line-height: 1.2;
}
.compact-thumb span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

/* Compact Engineering SVG Figure Cards */
.mini-figure-box {
  margin-top: 16px;
  background: var(--bg-void);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
}
.vitals-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}
.vital-badge {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 6px;
  background: var(--surface-1);
}
.vital-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--emerald-status);
}
.vital-lbl {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.pipeline-fig {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.pipe-node {
  background: var(--surface-2);
  border: 1px solid var(--hairline-strong);
  padding: 6px 10px;
  border-radius: 8px;
  color: #e4e4e7;
}
.pipe-node.is-shield {
  border-color: rgba(59, 130, 246, 0.55);
  color: #93c5fd;
}

/* Shared Dark/Paper Checklists & Grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.check-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-muted);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cobalt-bright);
  font-weight: 700;
}
.section-paper .check-list li { color: var(--ink-dark-muted); }
.section-paper .check-list li::before { color: #1d4ed8; }

/* Live SERP Studio Section */
.serp-builder {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: stretch;
}
.serp-inputs, .serp-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px;
}
.serp-preview-inner {
  margin-top: 12px;
  background: #ffffff;
  color: #09090b;
  border-radius: 12px;
  padding: 18px;
}
.serp-url { font-size: 13px; color: #15803d; font-weight: 600; }
.serp-title { margin-top: 4px; font-size: 19px; font-weight: 700; color: #1d4ed8; line-height: 1.3; }
.serp-desc { margin-top: 6px; font-size: 14px; color: #3f3f46; }
.serp-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.serp-tag {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.28);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
}

/* Crisp Paper Pricing Term Sheet + Comparison Table */
.price-card {
  background: #ffffff;
  border: 1px solid var(--border-paper);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}
.price-card.is-popular {
  background: #09090b;
  color: #fafafa;
  border: 1.5px solid var(--cobalt);
  box-shadow: 0 24px 55px rgba(9, 9, 11, 0.16);
}
.popular-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--cobalt);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
}
.price-figure {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 10px 0 6px;
}
.price-note { font-size: 13px; font-weight: 600; color: #1d4ed8; }
.price-card.is-popular .price-note,
.price-card.is-popular .mono-tag { color: #93c5fd; }
.price-card.is-popular .check-list li { color: #d4d4d8; }
.price-card.is-popular .check-list li::before { color: #60a5fa; }
.price-card .check-list { margin-bottom: 24px; flex: 1; }

.matrix-wrap {
  margin-top: 36px;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border-paper);
  border-radius: 16px;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 14px;
}
.matrix-table th, .matrix-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-paper);
}
.matrix-table th { background: var(--bg-paper-alt); font-weight: 700; }
.matrix-table tr:last-child td { border-bottom: 0; }
.matrix-hl { background: #eff6ff; color: #1e3a8a; font-weight: 700; }

/* Proposal Configurator & Form Fields */
.workbench-paper {
  background: #ffffff;
  border: 1px solid var(--border-paper);
  border-radius: 18px;
  padding: 28px;
}
.workbench-dark {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 28px;
}
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; }

.section-paper .field input, .section-paper .field select {
  width: 100%; font-family: var(--font-body); font-size: 14.5px;
  padding: 11px 13px; border-radius: 9px; border: 1px solid #d4d4d8;
  background: #ffffff; color: #09090b;
}
.section-dark .field input, .section-dark .field select {
  width: 100%; font-family: var(--font-body); font-size: 14.5px;
  padding: 11px 13px; border-radius: 9px; border: 1px solid var(--hairline-strong);
  background: var(--bg-void); color: #fafafa;
}

.checkbox-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; align-items: center; }
.checkbox-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; cursor: pointer; }
.checkbox-pill input { width: 17px; height: 17px; accent-color: var(--cobalt); }

.quote-result {
  margin-top: 22px;
  background: #f4f4f5;
  border: 1px solid #d4d4d8;
  border-radius: 14px;
  padding: 20px;
}
.quote-summary-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e4e4e7;
}
.badge-blue {
  background: var(--cobalt); color: #ffffff;
  padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.quote-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; font-size: 14px; }
.quote-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Live Audit UI */
.audit-input-row { display: flex; gap: 10px; flex-wrap: wrap; }
.audit-input-row input {
  flex: 1 1 260px; padding: 13px 15px; border-radius: 10px;
  border: 1px solid var(--hairline-strong); background: var(--bg-void); color: #fff; font-size: 15px;
}
.sample-pills { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-muted); }
.sample-btn {
  background: var(--surface-2); border: 1px solid var(--hairline); color: #e4e4e7;
  border-radius: 999px; padding: 4px 11px; font-family: var(--font-mono); font-size: 12px; cursor: pointer;
}
.sample-btn:hover { border-color: var(--cobalt); color: #fff; }
.audit-result {
  margin-top: 20px; background: var(--bg-void); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 22px;
}
.audit-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.audit-sub { margin-top: 4px; color: var(--ink-muted); font-size: 14px; }
.score-ring {
  width: 78px; height: 78px; border-radius: 50%; border: 3px solid var(--cobalt-bright);
  background: rgba(59, 130, 246, 0.12); display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.score-num { font-size: 24px; font-weight: 800; line-height: 1; color: #fff; }
.score-lbl { font-family: var(--font-mono); font-size: 12px; color: #93c5fd; }
.audit-checks { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.audit-check { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 10px; padding: 13px; }
.audit-check.is-pass { border-color: rgba(52, 211, 153, 0.35); }
.audit-check.is-warn { border-color: rgba(212, 180, 117, 0.45); }
.audit-check-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 13.5px; }
.status-pill {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: rgba(52, 211, 153, 0.14); color: var(--emerald-status);
}
.is-warn .status-pill { background: rgba(212, 180, 117, 0.16); color: var(--champagne); }
.audit-check p { font-size: 13px; color: var(--ink-muted); }
.audit-cta-bar {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px;
}

/* FAQ & Footer */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #ffffff; border: 1px solid var(--border-paper); border-radius: 12px; overflow: hidden; }
.faq-btn {
  width: 100%; text-align: left; background: transparent; border: 0; padding: 18px 20px;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 700; color: var(--ink-dark);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer;
}
.faq-plus { font-size: 20px; color: var(--cobalt-deep); transition: transform 0.22s var(--ease); }
.faq-item.is-open .faq-plus { transform: rotate(45deg); }
.faq-panel { padding: 0 20px 18px; font-size: 14.5px; color: var(--ink-dark-muted); }

.page-hero {
  background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(59, 130, 246, 0.12), transparent 65%), var(--bg-void);
  padding: 58px 0 48px;
  border-bottom: 1px solid var(--hairline);
}
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--ink-muted); margin-bottom: 12px; }
.breadcrumb a { text-decoration: none; color: var(--cobalt-bright); }

.cta-banner {
  background: linear-gradient(135deg, #11131a 0%, #09090b 100%);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  padding: 40px 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-footer {
  background: #060608;
  color: var(--ink-muted);
  padding: 56px 0 28px;
  border-top: 1px solid var(--hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--hairline);
}
.footer-col h4 { font-size: 14px; color: #ffffff; margin-bottom: 12px; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; font-size: 13.5px; color: var(--ink-muted); }
.footer-links a:hover { color: #ffffff; }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #71717a;
}

.back-top {
  position: fixed; right: 20px; bottom: 20px;
  background: var(--surface-1); color: #fafafa; border: 1px solid var(--hairline-strong);
  border-radius: 999px; padding: 9px 14px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px);
  z-index: 50; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.back-top.is-shown { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Paper-section overrides inside reusable dark cards */
.section-paper .card-light {
  background: #ffffff;
  border: 1px solid var(--border-paper);
  border-radius: 16px;
  padding: 24px;
}

@media (max-width: 1120px) {
  .hero-grid, .serp-builder { grid-template-columns: 1fr; }
  .span-7, .span-5, .span-6, .span-4 { grid-column: span 12; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links, .nav-phone, .cmd-trigger { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 720px) {
  .grid-4, .grid-3, .grid-2, .form-grid, .quote-grid, .audit-checks, .footer-grid, .compact-media-row {
    grid-template-columns: 1fr;
  }
  .hero-metrics, .vitals-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-dark, .section-paper { padding: 60px 0; }
  .nav-cta-group .btn-primary { display: none; }
}
