:root {
  --bg: #f8fafb;
  --surface: #ffffff;
  --surface-alt: #f1f5f8;
  --ink: #0f172a;
  --ink-secondary: #1e293b;
  --ink-muted: #475569;
  --border: #cbd5e1;
  --border-subtle: #dbe4ec;
  --primary: #0c4a6e;
  --primary-hover: #08334d;
  --primary-soft: #e0f2fe;
  --primary-border: #bae6fd;
  --accent-sage: #0f766e;
  --accent-sage-hover: #115e59;
  --accent-sage-bg: #f0fdfa;
  --accent-sage-border: #99f6e4;
  --accent-emerald: #0f766e;
  --accent-emerald-bg: #f0fdfa;
  --accent-emerald-border: #5eead4;
  --warn-amber: #b45309;
  --warn-amber-bg: #fffbeb;
  --warn-amber-border: #fcd34d;
  --danger-red: #b91c1c;
  --danger-red-bg: #fef2f2;
  --danger-red-border: #fca5a5;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-xs: 0 1px 2px rgba(12, 74, 110, 0.04);
  --shadow-sm: 0 1px 3px rgba(12, 74, 110, 0.05), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 2px 6px rgba(12, 74, 110, 0.05), 0 12px 28px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 4px 12px rgba(12, 74, 110, 0.06), 0 20px 40px rgba(15, 23, 42, 0.08);
  --max-w: 1140px;
}

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

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

html {
  overflow-x: clip;
  max-width: 100%;
}

em {
  padding-right: 0.09em;
}

h1,
h2,
.display-serif {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--ink);
}

code,
.mono-cite,
.docket-meta-val,
.receipt-pre {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

code {
  font-size: 0.86em;
  background: rgba(12, 74, 110, 0.07);
  color: var(--primary);
  padding: 0.12rem 0.38rem;
  border-radius: 5px;
  font-weight: 600;
}

.tabular-nums,
.price-tag,
.metric-val,
.step-num,
.intake-step-num,
.comparison-table td,
.comparison-table th {
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.35rem;
}

/* Top Regulatory Bar */
.compliance-bar {
  background: #082f49;
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 0.48rem 0;
  border-bottom: 1px solid rgba(186, 230, 253, 0.16);
}

.compliance-bar code {
  background: rgba(255, 255, 255, 0.12);
  color: #bae6fd;
}

.compliance-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
}

@media (min-width: 1024px) {
  .compliance-bar {
    font-size: 0.78rem;
  }

  .compliance-bar .container {
    flex-wrap: nowrap;
  }

  .compliance-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

.compliance-pill {
  background: rgba(15, 118, 110, 0.35);
  border: 1px solid rgba(94, 234, 212, 0.35);
  padding: 0.16rem 0.68rem;
  border-radius: 999px;
  font-weight: 600;
  color: #ccfbf1;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

/* Sticky Clinical Header */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0.5rem 0;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .header-inner {
    flex-wrap: nowrap;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.brand-sub {
  font-size: 0.73rem;
  color: var(--ink-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--primary);
  border-bottom-color: var(--accent-sage);
}

.header-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  gap: 0.48rem;
  padding: 0.78rem 1.38rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(12, 74, 110, 0.22);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(12, 74, 110, 0.28);
}

.btn-sage {
  background: var(--accent-sage);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.22);
}

.btn-sage:hover {
  background: var(--accent-sage-hover);
}

.btn-outline {
  background: var(--surface);
  color: var(--primary);
  border-color: #94a3b8;
}

.btn-outline:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.btn-sm {
  padding: 0.52rem 0.98rem;
  font-size: 0.87rem;
}

/* Hero Section */
.hero {
  padding: 3.75rem 0 3.25rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(15, 118, 110, 0.06) 0%, transparent 42%),
    radial-gradient(circle at 8% 16%, rgba(12, 74, 110, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 2.6rem;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0 0 1.05rem;
  color: var(--ink);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-muted);
  margin: 0 0 1.45rem;
  max-width: 64ch;
}

.hero-lead strong {
  color: var(--ink);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.55rem;
}

@media (min-width: 901px) and (max-width: 1220px) {
  .hero-ctas {
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .hero-ctas .btn {
    padding: 0.75rem 0.96rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.45rem;
}

.metric-chip {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.85rem;
  box-shadow: var(--shadow-xs);
}

.metric-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

.metric-label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
  margin-top: 0.15rem;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.62rem;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.check-icon {
  color: var(--accent-sage);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* Right Hero Qualification Card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.55rem;
  box-shadow: var(--shadow-md);
}

.hero-card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.22rem;
  line-height: 1.28;
}

.rule-split {
  display: grid;
  gap: 0.9rem;
}

.rule-box {
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.rule-box h3 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  font-weight: 800;
}

.rule-box ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.32rem;
}

.rule-yes {
  background: var(--accent-sage-bg);
  border: 1px solid var(--accent-sage-border);
}

.rule-yes h3 {
  color: #115e59;
}

.rule-no {
  background: var(--danger-red-bg);
  border: 1px solid var(--danger-red-border);
}

.rule-no h3 {
  color: #991b1b;
}

/* Sections & Answer Capsules */
.section {
  padding: 4.25rem 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  font-weight: 650;
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-header p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.03rem;
}

.answer-capsule {
  max-width: 820px;
  margin: -1.1rem auto 2.2rem;
  padding: 0.95rem 1.25rem;
  background: var(--accent-sage-bg);
  border: 1px solid var(--accent-sage-border);
  border-left: 4px solid var(--accent-sage);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: var(--ink-secondary);
  line-height: 1.58;
}

.answer-capsule strong {
  color: #0f172a;
}

/* Interactive Eligibility Checker */
.checker-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  box-shadow: var(--shadow-md);
}

.checker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  font-size: 0.91rem;
  color: var(--ink);
}

.field-hint {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.hipaa-note {
  color: var(--danger-red);
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 74, 110, 0.14);
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230c4a6e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px 16px;
}

textarea {
  resize: vertical;
  min-height: 98px;
}

.verdict-panel {
  margin-top: 1.5rem;
  padding: 1.45rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
}

.verdict-panel.verdict-eligible {
  background: var(--accent-sage-bg);
  border-color: var(--accent-sage);
}

.verdict-panel.verdict-wait,
.verdict-panel.verdict-review {
  background: var(--warn-amber-bg);
  border-color: var(--warn-amber);
}

.verdict-panel.verdict-ineligible {
  background: var(--danger-red-bg);
  border-color: var(--danger-red);
}

.verdict-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.68rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  background: rgba(15, 23, 42, 0.08);
}

.verdict-title {
  margin: 0 0 0.5rem;
  font-size: 1.18rem;
}

.verdict-body {
  margin: 0 0 0.72rem;
  font-size: 0.95rem;
}

.verdict-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

/* Illustrative Redacted Official Google Policy Escalation Brief Artifact */
.docket-artifact {
  max-width: 960px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.docket-topbar {
  background: linear-gradient(90deg, #082f49 0%, #0c4a6e 100%);
  color: #ffffff;
  padding: 0.95rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.docket-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(15, 118, 110, 0.45);
  border: 1px solid rgba(94, 234, 212, 0.5);
  color: #ccfbf1;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
}

.docket-char-pill {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: #bae6fd;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
}

.docket-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  padding: 1.15rem 1.5rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-subtle);
}

.docket-meta-item {
  font-size: 0.8rem;
}

.docket-meta-key {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
}

.docket-meta-val {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.82rem;
}

.docket-body {
  padding: 1.5rem;
}

.docket-text-box {
  background: #f8fafb;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.3rem;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.docket-text-box p {
  margin: 0 0 0.75rem;
}

.docket-text-box p:last-child {
  margin-bottom: 0;
}

.redacted-token {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 0.06rem 0.42rem;
  border-radius: 4px;
}

.docket-footer-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.83rem;
  color: var(--ink-muted);
}

/* How It Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.45rem;
  box-shadow: var(--shadow-xs);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  margin: 0 0 0.48rem;
  font-size: 1.04rem;
}

.step-card p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--ink-muted);
}

/* 60-Second Scoped GBP Manager Guide */
.gbp-guide-box {
  margin-top: 2.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.gbp-guide-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.45rem;
}

.gbp-guide-header h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.gbp-guide-header p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

.code-copy-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.48rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  box-shadow: var(--shadow-xs);
}

.code-copy-bar code {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.88rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.screenshot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg);
}

.screenshot-caption {
  padding: 1.05rem 1.15rem;
  font-size: 0.9rem;
}

.screenshot-caption h4 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.screenshot-caption p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.call-exception-note {
  margin-top: 1.3rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* Semantic AEO Comparison Table */
.table-scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.91rem;
  text-align: left;
}

.comparison-table caption {
  text-align: left;
  padding: 1rem 1.35rem;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink-muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th,
.comparison-table td {
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.comparison-table thead th {
  background: #082f49;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
}

.comparison-table thead th.col-featured {
  background: var(--accent-sage);
  color: #ffffff;
}

.comparison-table tbody th {
  font-weight: 700;
  color: var(--ink);
  width: 22%;
  background: #fbfcfd;
}

.comparison-table tbody td.col-featured {
  background: rgba(240, 253, 250, 0.7);
  font-weight: 600;
  color: var(--ink);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  position: relative;
}

.price-tag {
  font-family: var(--font-display);
  font-size: 2.45rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.35rem 0 0.25rem;
  letter-spacing: -0.02em;
}

.price-sub {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.65rem;
  font-size: 0.93rem;
}

.feature-list li {
  display: flex;
  gap: 0.58rem;
  align-items: flex-start;
}

.ach-callout {
  margin-top: 1.75rem;
  padding: 1.05rem 1.3rem;
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

/* Progressive 3-Step Intake Form */
.intake-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.15rem;
  box-shadow: var(--shadow-lg);
}

.intake-steps-stack {
  display: grid;
  gap: 1.5rem;
}

.intake-step-card {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.intake-step-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.intake-step-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.intake-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.intake-step-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--ink);
}

.intake-step-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-sage);
  background: var(--accent-sage-bg);
  border: 1px solid var(--accent-sage-border);
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.68rem;
  padding: 0.82rem 0.95rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.22rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.checkbox-group label {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.52;
}

.signature-box {
  background: var(--surface);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.15rem;
}

.intake-submit-bar {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

/* Polished D1 Receipt & Foldable Docket */
.receipt-box {
  margin-top: 1.65rem;
  padding: 1.6rem;
  background: var(--accent-sage-bg);
  border: 2px solid var(--accent-sage);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.receipt-box.receipt-mode-persisted {
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  border-color: var(--accent-sage);
}

.receipt-box.receipt-mode-backup {
  background: #fffdf7;
  border-color: var(--warn-amber);
}

.filing-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  border: 1.5px solid transparent;
}

.filing-status-pending {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #7dd3fc;
}

.filing-status-persisted {
  background: #ccfbf1;
  color: #115e59;
  border-color: var(--accent-sage);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.14);
}

.filing-status-backup {
  background: var(--warn-amber-bg);
  color: var(--warn-amber);
  border-color: var(--warn-amber-border);
}

.receipt-fold {
  margin: 0.9rem 0 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
}

.receipt-fold summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
  user-select: none;
}

.receipt-pre {
  background: #f8fafb;
  border: 1px solid var(--border-subtle);
  padding: 0.95rem;
  border-radius: 6px;
  font-size: 0.81rem;
  white-space: pre-wrap;
  overflow-x: auto;
  margin: 0.7rem 0 0;
  max-height: 320px;
  overflow-y: auto;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.error-msg {
  color: var(--danger-red);
  background: var(--danger-red-bg);
  border: 1px solid var(--danger-red-border);
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.85rem;
}

/* FAQ */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 1.3rem;
  box-shadow: var(--shadow-xs);
}

details.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
}

details.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Legal & 404 Pages */
.legal-doc {
  max-width: 840px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-doc h1 {
  margin-top: 0;
  font-size: 2.05rem;
}

.legal-doc h2 {
  font-size: 1.3rem;
  margin-top: 1.85rem;
}

/* Footer */
.site-footer {
  background: #082f49;
  color: #cbd5e1;
  padding: 3.2rem 0 2.3rem;
  font-size: 0.9rem;
}

.site-footer code {
  background: rgba(255, 255, 255, 0.12);
  color: #bae6fd;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr;
  gap: 2.2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 0.75rem;
}

.site-footer a {
  color: #bae6fd;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Responsive Breakpoints */
@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }

  .docket-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input,
  select,
  textarea {
    font-size: 1rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .docket-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 1rem;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    gap: 0.5rem;
    min-height: 60px;
  }

  .brand {
    gap: 0.48rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 1.04rem;
  }

  .brand-sub {
    display: none;
  }

  .header-cta {
    padding: 0.42rem 0.7rem;
    font-size: 0.79rem;
    white-space: nowrap;
  }

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

  .checker-card,
  .intake-card,
  .intake-step-card,
  .price-card,
  .gbp-guide-box,
  .legal-doc {
    padding: 1.3rem;
  }
}
