/* PolicyFrontDesk (a division of HEIMS LLC) — Main-Street Fiduciary Authority Design System */
:root {
  --bg: #fcfcfd;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-subtle: #f8fafc;
  --navy-950: #0a192f;
  --navy-900: #0f2544;
  --navy-800: #1e3a5f;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;
  --amber-700: #b45309;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --red-700: #b91c1c;
  --red-100: #fee2e2;
  --red-50: #fef2f2;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --border: #cbd5e1;
  --border-light: #e2e8f0;
  --shadow-xs: 0 1px 2px rgba(10, 25, 47, 0.04);
  --shadow-sm: 0 1px 3px rgba(10, 25, 47, 0.06), 0 1px 2px rgba(10, 25, 47, 0.04);
  --shadow-md: 0 12px 28px -6px rgba(10, 25, 47, 0.08), 0 4px 10px -2px rgba(10, 25, 47, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(10, 25, 47, 0.18), 0 8px 20px -4px rgba(10, 25, 47, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-w: 1180px;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
}

h1,
.section-header h2,
.legal-doc h1,
.error-display-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

.mono-num,
.score-number,
.score-denom,
.score-grade,
.price-amount,
.dial-number,
.slider-badge,
.compat-tag-mono,
.provisioning-ref,
.comparison-table td.mono-col {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

section[id],
#main-content,
#start-autopilot,
#question-or-callback,
#chat-simulator {
  scroll-margin-top: 88px;
}

a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--navy-950);
}

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

.skip-link,
.sr-only {
  position: absolute;
  left: -9999px;
  top: 8px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 12px;
  width: auto;
  height: auto;
  background: var(--navy-950);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
  font-weight: 700;
}

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

/* Single-Row 72px Desktop Header & 56px Mobile Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(252, 252, 253, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-xs);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--navy-950);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--navy-950) 0%, var(--navy-800) 100%);
  box-shadow: 0 2px 6px rgba(10, 25, 47, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}

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

.main-nav a:not(.btn):hover {
  color: var(--blue-700);
}

/* P0 Contrast Guard: Enforce >= 4.5:1 crisp white text on primary & emerald buttons everywhere */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 13px 22px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  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,
a.btn-primary,
.main-nav a.btn-primary,
.site-header a.btn-primary {
  background-color: var(--blue-700);
  color: #ffffff;
  border-color: var(--blue-700);
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.24);
}

.btn-primary:hover,
a.btn-primary:hover,
.main-nav a.btn-primary:hover,
.site-header a.btn-primary:hover,
.main-nav a.btn-primary:visited,
.site-header a.btn-primary:visited {
  background-color: var(--navy-950);
  border-color: var(--navy-950);
  color: #ffffff;
}

.btn-emerald,
a.btn-emerald {
  background-color: var(--emerald-700);
  color: #ffffff;
  border-color: var(--emerald-700);
  box-shadow: 0 2px 10px rgba(4, 120, 87, 0.24);
}

.btn-emerald:hover,
a.btn-emerald:hover,
a.btn-emerald:visited {
  background-color: #065f46;
  border-color: #065f46;
  color: #ffffff;
}

.btn-secondary,
a.btn-secondary {
  background-color: #ffffff;
  color: var(--navy-950);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover,
a.btn-secondary:hover {
  border-color: var(--navy-950);
  background-color: var(--surface-alt);
  color: var(--navy-950);
}

.btn-sm,
.btn.btn-sm {
  padding: 9px 16px;
  font-size: 0.86rem;
  border-radius: 8px;
  white-space: nowrap;
}

.btn-block {
  width: 100%;
}

/* Mobile Header Actions & Collapsible Drawer (hidden on desktop) */
.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.mobile-menu {
  position: relative;
}

.mobile-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--navy-950);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu[open] summary {
  background: var(--navy-950);
  color: #ffffff;
  border-color: var(--navy-950);
}

.mobile-menu-panel {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 12px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 210;
}

.mobile-menu-panel a {
  display: block;
  padding: 10px 8px;
  text-decoration: none;
  color: var(--navy-950);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--surface-alt);
}

.mobile-menu-panel a:last-child {
  border-bottom: none;
}

/* Hero Section */
.hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(29, 78, 216, 0.08) 0%, rgba(29, 78, 216, 0) 48%),
    radial-gradient(circle at 12% 85%, rgba(4, 120, 87, 0.06) 0%, rgba(4, 120, 87, 0) 42%),
    linear-gradient(180deg, #fcfcfd 0%, #f1f5f9 100%);
  padding: 56px 0 0;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
  padding-bottom: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  font-weight: 700;
  font-size: 0.79rem;
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(2.05rem, 3.6vw, 2.95rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--navy-950);
  margin: 0 0 18px;
}

.hero-lead {
  font-size: 1.08rem;
  line-height: 1.62;
  color: var(--text-secondary);
  margin: 0 0 26px;
  max-width: 600px;
}

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

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

  .hero-actions .btn {
    white-space: nowrap;
  }
}

.trust-pills {
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
}

.trust-pills li {
  display: inline-flex;
  align-items: center;
}

.trust-pills li::before {
  content: "\2713";
  display: inline-block;
  margin-right: 6px;
  color: var(--emerald-700);
  font-weight: 800;
}

.eo-safe-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--emerald-700);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 580px;
}

/* Tangible Dual-Layer Hero Artifact: iPhone iMessage + Producer Quote-Summary Digest */
.hero-card {
  position: relative;
  background: linear-gradient(165deg, #0b182d 0%, #0a192f 65%, #102646 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: var(--shadow-lg);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.76rem;
}

.workflow-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.26);
  color: #e2e8f0;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6ee7b7;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.75rem;
}

.iphone-bezel {
  background: #060d18;
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  padding: 12px 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.iphone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  color: #cbd5e1;
  margin-bottom: 8px;
  padding: 0 4px;
}

.iphone-notch-pill {
  width: 58px;
  height: 13px;
  border-radius: 999px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.iphone-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(30, 41, 59, 0.72);
  border-radius: 10px;
  padding: 7px 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.iphone-contact-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fafc;
}

.iphone-contact-sub {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
}

.verified-10dlc-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.sms-bubble {
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.84rem;
  line-height: 1.42;
  margin-bottom: 8px;
}

.sms-missed {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.38);
  color: #fecaca;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.74rem;
  text-align: center;
  padding: 6px 10px;
  border-radius: 8px;
}

.sms-ai {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  margin-right: 20px;
  border-bottom-left-radius: 4px;
}

.sms-caller {
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  margin-left: 26px;
  border-bottom-right-radius: 4px;
}

/* Layer 2: Producer Quote-Summary Digest Card */
.producer-digest-card {
  margin-top: 12px;
  background: #fcfcfd;
  color: var(--navy-950);
  border-radius: 14px;
  padding: 13px 15px;
  border: 1.5px solid var(--emerald-600);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.digest-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.digest-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.digest-time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.digest-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy-950);
  margin: 0 0 6px;
}

.digest-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.digest-meta-grid strong {
  color: var(--navy-950);
}

/* AMS / VoIP Compatibility Trust Strip */
.compat-trust-strip {
  background: var(--navy-950);
  color: #e2e8f0;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compat-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
}

.compat-strip-copy {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: #cbd5e1;
}

.compat-strip-copy strong {
  color: #ffffff;
  font-weight: 700;
}

.compat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compat-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Sections & AEO Answer Capsules */
.section {
  padding: 76px 0;
}

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

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

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

.section-header h2 {
  font-size: clamp(1.72rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy-950);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

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

/* 3 Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pillars-grid .card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--navy-950);
  font-size: 1.16rem;
  letter-spacing: -0.015em;
}

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

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.pillar-metric {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--surface-alt);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--emerald-700);
}

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

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

.preset-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-950);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover,
.preset-btn.active {
  background: var(--navy-950);
  color: #ffffff;
  border-color: var(--navy-950);
  box-shadow: var(--shadow-xs);
}

.scorecard-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.form-group {
  margin-bottom: 15px;
}

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

label {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy-950);
  margin-bottom: 5px;
}

.label-hint {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.79rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

/* Custom SVG Chevron on <select> */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  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='%230a192f' stroke-width='2.25' 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 12px center;
  background-size: 16px 16px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Styled Range Sliders */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 8px 0 2px;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-700);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(10, 25, 47, 0.3);
  cursor: pointer;
}

.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-700);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(10, 25, 47, 0.3);
  cursor: pointer;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 0;
}

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

.score-result-card {
  background: #ffffff;
  border: 1.5px solid var(--navy-950);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.score-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.score-agency-title {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--navy-950);
  overflow-wrap: anywhere;
}

.score-city-sub {
  margin: 3px 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

/* SVG Radial Speedometer Arc + Score Readout */
.score-Dial {
  display: flex;
  align-items: center;
  gap: 14px;
}

.speedometer-wrap {
  position: relative;
  width: 124px;
  height: 76px;
  flex-shrink: 0;
}

.score-speedometer {
  display: block;
  width: 124px;
  height: 76px;
}

.gauge-track {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 10;
  stroke-linecap: round;
}

.gauge-fill {
  fill: none;
  stroke: #d97706;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.45s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.3s ease;
}

.speedometer-center {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  text-align: center;
  line-height: 1;
}

.score-number {
  font-size: 1.72rem;
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1;
}

.score-denom {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.score-grade {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
}

.grade-high {
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.grade-mid {
  background: var(--amber-100);
  color: var(--amber-700);
}

.grade-low {
  background: var(--red-100);
  color: var(--red-700);
}

.meter-track {
  width: 100%;
  height: 8px;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-700) 0%, var(--emerald-600) 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.competitor-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.competitor-box h4 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--navy-950);
}

.competitor-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.89rem;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.competitor-list li {
  margin-bottom: 4px;
}

.gaps-heading {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--navy-950);
}

.gaps-list {
  margin: 0 0 18px;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.gaps-list li {
  margin-bottom: 6px;
}

.impact-callout {
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-left: 4px solid var(--amber-700);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 18px;
}

/* Live Demo Section */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.dial-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.dial-number {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-950);
  text-decoration: none;
  margin: 4px 0;
}

.consent-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 14px 0;
}

.consent-text {
  font-size: 0.79rem;
  line-height: 1.48;
  color: var(--text-secondary);
}

.status-alert {
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 0.89rem;
  margin-top: 14px;
  display: none;
}

.status-alert.visible {
  display: block;
}

.status-alert.error {
  background: var(--red-50);
  border: 1px solid var(--red-100);
  color: var(--red-700);
}

.status-alert.success {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-700);
}

/* Provisioning & Invoice Dispatch Confirmation Card */
.status-alert.provisioning-card {
  background: #ffffff;
  border: 1.5px solid var(--emerald-600);
  border-top-width: 4px;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  color: var(--text-main);
  box-shadow: var(--shadow-md);
}

.prov-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.prov-badge {
  display: inline-block;
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.provisioning-ref {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

.prov-title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy-950);
}

.prov-sub {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.prov-steps {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.prov-steps li {
  margin-bottom: 6px;
}

.prov-footer {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 0.79rem;
  color: var(--text-muted);
}

/* Interactive Chat Simulator */
.chat-sim {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-sim.sim-active {
  border: 2px solid var(--emerald-600);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.14), var(--shadow-md);
}

.chat-sim-header {
  background: var(--navy-950);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 700;
}

.chat-log {
  padding: 18px;
  min-height: 280px;
  max-height: 350px;
  overflow-y: auto;
  background: var(--surface-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.89rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.chat-msg.bot {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--blue-700);
  color: #ffffff;
}

.chat-msg.event {
  align-self: stretch;
  max-width: 100%;
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  color: var(--amber-700);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  font-weight: 600;
  text-align: center;
}

.chat-msg.summary {
  align-self: stretch;
  max-width: 100%;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-700);
  font-size: 0.83rem;
  font-weight: 700;
}

.chat-quick-replies {
  padding: 10px 18px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-chip {
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-sans);
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-chip:hover {
  background: var(--blue-700);
  color: #ffffff;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.chat-input-bar input {
  flex: 1 1 auto;
  min-width: 0;
}

.chat-input-bar .btn {
  flex-shrink: 0;
}

/* Semantic AEO Cost & Operational Comparison Table */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.comparison-table caption {
  padding: 16px 22px 12px;
  text-align: left;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-subtle);
}

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

.comparison-table thead th {
  background: var(--navy-950);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
}

.comparison-table thead th.col-featured {
  background: var(--blue-700);
}

.comparison-table tbody th {
  font-weight: 700;
  color: var(--navy-950);
  background: var(--surface-subtle);
  width: 23%;
}

.comparison-table tbody td.col-featured {
  background: rgba(29, 78, 216, 0.035);
  font-weight: 600;
  color: var(--navy-950);
}

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

/* Pricing & Self-Serve Activation */
.pricing-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 30px;
  align-items: start;
}

.price-card {
  background: linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin: 10px 0 8px;
}

.price-amount span {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: #cbd5e1;
}

.price-setup {
  font-size: 0.95rem;
  color: #93c5fd;
  font-weight: 600;
  margin: 0 0 22px;
}

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.feature-checklist li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
  color: #f1f5f9;
}

.feature-checklist li::before {
  content: "\2713";
  display: inline-block;
  margin-right: 8px;
  color: #34d399;
  font-weight: 800;
}

.scope-note {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 0.83rem;
  color: #cbd5e1;
}

.onboarding-card {
  background: #ffffff;
  border: 1.5px solid var(--blue-700);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.onboarding-steps-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.onboarding-steps-strip div {
  background: var(--blue-50);
  color: var(--navy-950);
  border: 1px solid var(--blue-100);
  padding: 8px 6px;
  border-radius: 8px;
}

/* Optional Carrier Registration Pre-Fill Drawer */
.optional-drawer {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin: 6px 0 14px;
}

.optional-drawer summary {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-950);
  cursor: pointer;
  line-height: 1.4;
}

.optional-drawer-body {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.drawer-helper-note {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* FAQ & Quiet Question Request */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-xs);
}

details.faq-item summary {
  font-weight: 700;
  color: var(--navy-950);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.4;
}

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

.quiet-inquiry-box {
  max-width: 840px;
  margin: 28px auto 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.quiet-inquiry-box summary {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

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

.legal-doc {
  max-width: 840px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 42px;
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}

.legal-doc h1 {
  margin-top: 0;
  color: var(--navy-950);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
}

.legal-doc h2 {
  color: var(--navy-900);
  font-size: 1.22rem;
  margin-top: 28px;
}

.legal-highlight {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-700);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 18px 0;
  font-weight: 600;
}

.error-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  box-shadow: var(--shadow-md);
}

/* Mandatory Twilio TFV & HEIMS LLC Footer */
.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  padding: 48px 0 38px;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer h3,
.site-footer h4 {
  color: #ffffff;
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.site-footer a {
  color: #93c5fd;
}

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

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-fineprint {
  padding-top: 20px;
  font-size: 0.79rem;
  color: #94a3b8;
  line-height: 1.55;
}

.hero-grid > *,
.pillars-grid > *,
.scorecard-layout > *,
.demo-grid > *,
.pricing-grid > *,
.footer-grid > *,
.form-row-2 > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 960px) {
  .hero-grid,
  .pillars-grid,
  .scorecard-layout,
  .demo-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section[id],
  #main-content,
  #start-autopilot,
  #question-or-callback,
  #chat-simulator {
    scroll-margin-top: 152px;
  }

  .header-inner {
    height: 56px;
    min-height: 56px;
    padding-top: 0;
    padding-bottom: 0;
    gap: 10px;
  }

  .brand-tag {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .mobile-header-actions {
    display: inline-flex;
  }

  /* Stop iOS Safari auto-zoom on form focus */
  input,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  select,
  textarea {
    font-size: 1rem;
  }
}

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

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

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .hero {
    padding: 36px 0 0;
  }

  .hero-grid {
    padding-bottom: 36px;
    gap: 28px;
  }

  .section {
    padding: 52px 0;
  }

  .form-row-2,
  .onboarding-steps-strip,
  .digest-meta-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .hero-card,
  .score-result-card,
  .price-card,
  .onboarding-card,
  .legal-doc,
  .quiet-inquiry-box,
  .error-card {
    padding: 20px 16px;
  }

  .sms-caller {
    margin-left: 14px;
  }

  .sms-ai {
    margin-right: 10px;
  }

  .preset-btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .btn {
    padding: 12px 16px;
    font-size: 0.92rem;
  }

  .btn-sm,
  .btn.btn-sm {
    padding: 7px 11px;
    font-size: 0.79rem;
  }

  .chat-input-bar {
    padding: 10px 12px;
  }

  .chat-log,
  .chat-quick-replies {
    padding-left: 12px;
    padding-right: 12px;
  }
}

form,
[id] {
  scroll-margin-top: 92px;
}
