:root {
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-dark: #0b1120;
  --bg-dark-elevated: #111c33;
  --bg-dark-card: #16233d;

  --text-main: #0b1120;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #cbd5e1;

  --brand-primary: #0f766e;
  --brand-primary-hover: #115e59;
  --brand-teal: #14b8a6;
  --brand-teal-bright: #2dd4bf;
  --brand-teal-soft: #ccfbf1;

  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #991b1b;
  --safe-bg: #f0fdf4;
  --safe-border: #bbf7d0;
  --safe-text: #166534;

  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;

  --shadow-xs: 0 1px 2px rgba(11, 17, 32, 0.05);
  --shadow-sm: 0 2px 8px -2px rgba(11, 17, 32, 0.07), 0 1px 3px rgba(11, 17, 32, 0.05);
  --shadow-md: 0 12px 28px -6px rgba(11, 17, 32, 0.09), 0 4px 12px -4px rgba(11, 17, 32, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(11, 17, 32, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max-w: 1180px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.62;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-main);
  letter-spacing: -0.025em;
}

.mono,
code,
.tabular-nums {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.loa-preview-box:focus-visible {
  outline: 3px solid var(--brand-teal);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--bg-dark);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  left: 14px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo:hover {
  color: var(--text-main);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 38px;
  height: 38px;
  display: block;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--brand-primary);
}

/* Explicit high-contrast override so navbar primary CTA stays crisp white (#ffffff on #0f766e) */
.nav-links a.btn-primary,
.site-header a.btn-primary,
.nav-links a.btn-primary:hover,
.site-header a.btn-primary:hover,
.nav-links a.btn-primary:focus-visible,
.site-header a.btn-primary:focus-visible {
  color: #ffffff;
}

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

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

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

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.32);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background-color: #f0fdfa;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 86% 18%, rgba(20, 184, 166, 0.11), transparent 38%),
    radial-gradient(circle at 8% 85%, rgba(15, 118, 110, 0.06), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 64px 0 58px;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0f766e;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.hero h1 {
  font-size: clamp(2.1rem, 3.85vw, 3.05rem);
  line-height: 1.11;
  letter-spacing: -0.032em;
  margin: 0 0 18px;
  color: var(--text-main);
}

.hero-lead {
  font-size: 1.09rem;
  color: var(--text-secondary);
  margin: 0 0 26px;
  max-width: 62ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

@media (min-width: 1024px) {
  .hero .hero-cta-group {
    flex-wrap: nowrap;
  }

  .hero .hero-cta-group .btn {
    white-space: nowrap;
  }
}

.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-trust-pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-check {
  color: var(--brand-primary);
  font-weight: 800;
}

/* Command-Navy Telemetry Proof Card */
.hero-proof-card {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 212, 191, 0.25);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-proof-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-teal), var(--brand-teal-bright));
}

.telemetry-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-teal-bright);
  margin-bottom: 10px;
}

.telemetry-status-pill {
  background: rgba(20, 184, 166, 0.16);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #5eead4;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
}

.hero-proof-card h2 {
  font-size: 1.18rem;
  margin: 0 0 16px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.proof-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.proof-stat {
  background: var(--bg-dark-card);
  padding: 14px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.proof-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.42rem;
  color: #5eead4;
  line-height: 1.2;
  margin-bottom: 3px;
}

.proof-stat span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  line-height: 1.35;
}

.proof-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
}

.proof-checklist li {
  padding: 9px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.proof-checklist li strong {
  color: #ffffff;
}

/* Dignified Slate Administrative Compliance Bar (Relocated Below Hero) */
.notice-banner {
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  padding: 13px 0;
  font-size: 0.84rem;
  color: #334155;
}

.notice-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notice-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #e2e8f0;
  color: #0b1120;
  padding: 4px 8px;
  border-radius: 5px;
  margin-top: 2px;
}

.notice-banner p {
  margin: 0;
  line-height: 1.5;
}

/* Sections & AEO Direct Answer Capsules */
#main-content,
section[id] {
  scroll-margin-top: 92px;
}

.section {
  padding: 72px 0;
}

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

.section-header {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.18;
  margin: 0 0 12px;
}

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

.aeo-capsule {
  max-width: 860px;
  margin: -18px auto 36px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

.aeo-capsule strong {
  color: var(--text-main);
}

/* Sample Friday Enforcement & Buy-Box Recovery Ledger Artifact */
.ledger-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.ledger-topbar {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.ledger-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ledger-dots {
  display: inline-flex;
  gap: 6px;
}

.ledger-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.ledger-dots span:nth-child(3) {
  background: var(--brand-teal);
}

.ledger-doc-title {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  font-weight: 600;
  color: #f8fafc;
}

.ledger-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ledger-meta-pill {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-dark-card);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #cbd5e1;
}

.ledger-meta-pill.emerald {
  background: rgba(15, 118, 110, 0.35);
  border-color: rgba(45, 212, 191, 0.45);
  color: #5eead4;
}

.ledger-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-dark-elevated);
  border-bottom: 1px solid var(--border-light);
}

.ledger-kpi {
  padding: 18px 22px;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
}

.ledger-kpi:last-child {
  border-right: none;
}

.ledger-kpi-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.ledger-kpi-value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.32rem;
  font-weight: 700;
  color: #ffffff;
}

.ledger-kpi-value.accent {
  color: #5eead4;
}

.ledger-kpi-sub {
  display: block;
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-top: 2px;
}

.ledger-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.ledger-table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.ledger-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  color: var(--text-secondary);
}

.ledger-table tr:last-child td {
  border-bottom: none;
}

.ledger-table tr.first-sale-row {
  background: #f8fafc;
}

.portal-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #0b1120;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}

.ledger-seller-meta {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: var(--text-muted);
}

.case-code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill.removed {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.status-pill.protected {
  background: #e2e8f0;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.ledger-footnote {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Interactive Calculator */
.calc-personalized-banner {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-weight: 600;
  font-size: 0.93rem;
}

.preset-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.preset-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.preset-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  padding: 8px 15px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover,
.preset-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.22);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: start;
}

.calc-inputs-card,
.calc-results-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.calc-results-card {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: rgba(45, 212, 191, 0.28);
  overflow: hidden;
}

.calc-results-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-teal-bright));
}

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

.input-row:last-child {
  margin-bottom: 0;
}

.input-label-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.input-label-line label {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--text-main);
}

.input-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 9px;
}

.slider-num-pair {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 14px;
  align-items: center;
}

/* Custom Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  background: #dbe3ee;
  border-radius: 999px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 3px solid #ffffff;
  box-shadow: 0 1px 5px rgba(11, 17, 32, 0.3);
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.08);
  background: var(--brand-primary-hover);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 3px solid #ffffff;
  box-shadow: 0 1px 5px rgba(11, 17, 32, 0.3);
  cursor: pointer;
}

/* Form Controls + Custom Select Chevron */
input[type="number"],
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="number"],
#ob-uspto-reg,
#ob-asins {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  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='%230b1120' 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 13px center;
  background-size: 16px 16px;
  cursor: pointer;
}

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

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-row label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.52;
}

.result-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #5eead4;
  font-weight: 700;
  margin: 0 0 6px;
}

.result-headline-number {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.12;
  margin: 0 0 6px;
}

.result-sub {
  font-size: 0.89rem;
  color: var(--text-on-dark-muted);
  font-variant-numeric: tabular-nums;
  margin: 0 0 20px;
}

.result-breakdown {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 14px 0;
  margin-bottom: 22px;
}

.result-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.92rem;
}

.result-line span {
  color: var(--text-on-dark-muted);
}

.result-line strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  font-weight: 700;
}

.result-line.highlight {
  background: rgba(20, 184, 166, 0.12);
  border-radius: 6px;
  padding: 9px 10px;
  margin: 4px -10px;
}

.result-line.highlight strong {
  color: #5eead4;
  font-size: 1.05rem;
}

/* First Sale Doctrine Comparison */
.triage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.triage-card {
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.triage-card.actionable {
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
  border-color: #fecaca;
  border-top: 4px solid #dc2626;
}

.triage-card.protected {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-color: #bbf7d0;
  border-top: 4px solid var(--brand-primary);
}

.triage-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.triage-card.actionable .triage-badge {
  background: #fee2e2;
  color: var(--danger-text);
}

.triage-card.protected .triage-badge {
  background: #dcfce7;
  color: var(--safe-text);
}

.triage-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.triage-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.triage-card li {
  margin-bottom: 9px;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

/* 3-Channel Portal Cards */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.channel-step {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.channel-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.channel-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* Semantic AEO Comparison Table + Pricing */
.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 auto 38px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.comparison-table caption {
  text-align: left;
  padding: 14px 20px;
  background: var(--bg-dark);
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.comparison-table thead th {
  background: #f8fafc;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border-strong);
}

.comparison-table thead th.highlight-col {
  background: #f0fdfa;
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.comparison-table tbody td.highlight-col {
  background: rgba(240, 253, 250, 0.65);
  font-weight: 600;
  color: var(--text-main);
}

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

.comparison-table tbody th {
  font-weight: 700;
  color: var(--text-main);
  width: 26%;
}

.pricing-box {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.pricing-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 22px;
  margin-bottom: 24px;
}

.price-tag {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 2.55rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.price-tag span {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 26px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.pricing-features li {
  font-size: 0.94rem;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: 800;
}

/* Self-Serve Onboarding & Formal Corporate LOA Certificate */
.onboarding-shell {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-lg);
}

.form-section {
  min-width: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 0 0 22px;
  background: #fcfdfe;
}

.form-section legend {
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  padding: 0 8px;
  color: var(--text-main);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-group {
  margin-bottom: 16px;
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-group label {
  display: block;
  font-weight: 700;
  font-size: 0.89rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.field-help {
  display: block;
  font-size: 0.79rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Formal Corporate Letter of Authorization Certificate Box */
.loa-preview-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 4px solid var(--bg-dark);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  font-size: 0.87rem;
  line-height: 1.62;
  color: #1e293b;
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 4px rgba(11, 17, 32, 0.05);
}

.loa-cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.loa-cert-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bg-dark);
}

.loa-cert-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-primary);
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  padding: 2px 8px;
  border-radius: 4px;
}

.loa-preview-box p {
  margin: 0 0 11px;
}

.loa-preview-box p:last-child {
  margin-bottom: 0;
}

.form-alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.form-alert.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
}

.form-alert.success {
  background: var(--safe-bg);
  border: 1px solid var(--safe-border);
  color: var(--safe-text);
}

/* Executed LOA Receipt Card with Clean Folded Preview */
.receipt-card {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border: 1.5px solid #86efac;
  border-left: 5px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 22px;
  box-shadow: var(--shadow-sm);
}

.receipt-card h3 {
  margin: 0 0 8px;
  color: var(--safe-text);
  font-size: 1.18rem;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.receipt-fold {
  margin-top: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 2px 14px;
}

.receipt-fold summary {
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.receipt-pre {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 14px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
  margin: 4px 0 12px;
}

.async-question-note {
  margin-top: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  padding: 4px 20px;
  box-shadow: var(--shadow-xs);
}

.faq-item summary {
  padding: 15px 0;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.02rem;
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.62;
}

/* Legal & 404 Pages */
.legal-main {
  padding: 58px 0 76px;
}

.legal-card {
  max-width: 840px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 42px;
  box-shadow: var(--shadow-sm);
}

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

.legal-card h2 {
  font-size: 1.22rem;
  margin-top: 28px;
}

.not-found-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.status-code-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f0fdfa;
  color: var(--brand-primary);
  border: 1px solid #99f6e4;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: 50px 0 38px;
  font-size: 0.89rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  margin-bottom: 20px;
}

.footer-brand-title {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: #5eead4;
  text-decoration: underline;
}

.footer-disclaimer {
  font-size: 0.81rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.55;
}

.hidden {
  display: none !important;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  #main-content,
  section[id] {
    scroll-margin-top: 124px;
  }

  .hero-grid,
  .calc-grid,
  .triage-grid,
  .channel-grid,
  .pricing-features,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .ledger-kpi-strip {
    grid-template-columns: 1fr 1fr;
  }

  .ledger-kpi {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }

  .hero {
    padding: 46px 0;
  }

  .onboarding-shell,
  .pricing-box,
  .legal-card,
  .not-found-card {
    padding: 26px 20px;
  }
}

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

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  #main-content,
  section[id] {
    scroll-margin-top: 20px;
  }

  .header-inner {
    min-height: 60px;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: nowrap;
  }

  .brand-logo {
    font-size: 1.02rem;
    gap: 8px;
  }

  .logo-mark,
  .logo-mark svg {
    width: 30px;
    height: 30px;
  }

  .logo-tag {
    display: none;
  }

  .nav-links {
    width: auto;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .nav-links .btn-sm {
    width: auto;
    justify-content: center;
    margin-top: 0;
    padding: 7px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .notice-inner {
    flex-direction: column;
    gap: 6px;
  }

  .ledger-kpi-strip {
    grid-template-columns: 1fr;
  }

  .ledger-kpi {
    border-right: none;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 16px;
  }

  .hero-cta-group .btn,
  .receipt-actions .btn {
    width: 100%;
  }

  .calc-inputs-card,
  .calc-results-card,
  .hero-proof-card,
  .triage-card,
  .channel-card {
    padding: 20px 16px;
  }

  .form-section,
  .receipt-card {
    padding: 16px 14px;
  }

  .result-line {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .slider-num-pair {
    grid-template-columns: 1fr;
  }

  .proof-stat-row {
    grid-template-columns: 1fr;
  }
}
