/* ===========================================================
   Bizfylr Annual Filing — main stylesheet
   Clean, professional SaaS/compliance look. Mobile-first.
   =========================================================== */

:root {
  --brand: #1c2b4a;
  --brand-deep: #142039;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --text: #1c2b4a;
  --text-muted: #6b7591;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-soft-2: #eef2f9;
  --border: #e2e6ef;
  --shadow: 0 1px 3px rgba(20, 32, 57, 0.06), 0 4px 12px rgba(20, 32, 57, 0.04);
  --shadow-lg: 0 8px 24px rgba(20, 32, 57, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1180px;
  --max-w-narrow: 760px;
  --space: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--max-w-narrow); }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }

/* Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 11px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; text-decoration: none;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.35); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-soft); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.link-btn {
  background: none; border: 0; color: var(--accent);
  cursor: pointer; padding: 0; font: inherit;
}
.link-btn:hover { text-decoration: underline; }

/* Header & nav ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
brand-text { font-size: 17px; }
.brand-text { font-size: 17px; }
.brand-sub { color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.primary-nav { display: none; gap: 22px; }
.primary-nav a { color: var(--text); font-weight: 500; font-size: 14.5px; }
.primary-nav a:hover { color: var(--accent); text-decoration: none; }
.nav-cta { display: none; }
.nav-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: transparent; border: 0; cursor: pointer; gap: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--brand); margin: 2px 0; border-radius: 2px;
}
.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 24px 20px; border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-menu a { padding: 12px 4px; color: var(--text); font-weight: 500; }

@media (min-width: 920px) {
  .primary-nav { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* Hero --------------------------------------------------------- */
.hero {
  padding: 56px 0 40px;
  background: radial-gradient(60% 80% at 0% 0%, #eef2f9 0%, transparent 60%),
              radial-gradient(40% 70% at 100% 0%, #e8eefc 0%, transparent 60%),
              #fff;
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(37, 99, 235, 0.08); color: var(--accent);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.lede { color: var(--text-muted); font-size: 17px; max-width: 56ch; }
.price-anchor {
  margin: 22px 0 24px; display: inline-flex; align-items: baseline; gap: 10px;
  background: var(--bg-soft); padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--border);
}
.price { font-size: 28px; font-weight: 700; color: var(--brand); }
.price-meta { color: var(--text-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.trust { color: var(--text-muted); font-size: 13.5px; }
.hero-card {
  background: linear-gradient(160deg, #fff, var(--bg-soft));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow-lg);
}
.card-stack { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mini-card {
  display: grid; grid-template-columns: auto 80px 1fr; gap: 12px;
  align-items: center; padding: 12px 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
}
.mini-card strong { font-size: 14px; }
.mini-card span:last-child { color: var(--text-muted); font-size: 14px; }
.dot { width: 12px; height: 12px; border-radius: 999px; background: var(--bg-soft-2); }
.dot.ok { background: var(--success); }
.dot.pending { background: #d4d8e3; }

@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; }
  .card-stack { grid-template-columns: 1fr; }
}

/* Sections ----------------------------------------------------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 {
  font-size: clamp(26px, 4vw, 36px); margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--text-muted); margin: 0; }

.states { padding: 72px 0; }
.state-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .state-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 920px) { .state-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.state-card {
  display: grid; gap: 4px; padding: 18px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.state-card:hover {
  transform: translateY(-2px); border-color: var(--accent);
  text-decoration: none; box-shadow: var(--shadow);
}
.state-code { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.05em; }
.state-name { font-weight: 600; font-size: 16px; }
.state-meta { color: var(--text-muted); font-size: 13px; }
.state-fee { color: var(--brand); font-weight: 600; font-size: 13.5px; margin-top: 4px; }
.states-note { color: var(--text-muted); text-align: center; margin-top: 24px; }

.how { background: var(--bg-soft); padding: 72px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li {
  background: #fff; padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.steps h3 { margin: 6px 0 6px; font-size: 16px; }
.steps p { color: var(--text-muted); font-size: 14px; margin: 0; }
.step-num {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
}

.faq-teaser { padding: 72px 0; }
.faq-list { max-width: 760px; margin: 0 auto 24px; }
.faq-list details {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 10px;
}
.faq-list summary { font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; float: right; color: var(--text-muted); font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { color: var(--text-muted); margin: 12px 0 0; }
.faq-teaser .btn { display: block; max-width: 280px; margin: 28px auto 0; }

/* Premium FAQ page --------------------------------------------- */

.faq-page {
  padding: clamp(48px, 7vw, 84px) 0 clamp(72px, 8vw, 104px);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(106, 193, 75, 0.1), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.faq-page .container {
  max-width: 1180px;
}

.faq-hero {
  max-width: 860px;
  margin: 0 auto clamp(32px, 5vw, 52px);
  text-align: center;
}

.faq-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.faq-hero h1 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.faq-hero .lede {
  max-width: 740px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.75;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 32px);
  align-items: start;
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

.faq-category-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

@media (min-width: 960px) {
  .faq-category-card {
    position: sticky;
    top: 92px;
  }
}

.faq-category-title {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.faq-category-nav {
  display: grid;
  gap: 8px;
}

.faq-category-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.faq-category-nav a::after {
  content: '→';
  color: var(--text-muted);
  transition:
    transform 0.15s ease,
    color 0.15s ease;
}

.faq-category-nav a:hover,
.faq-category-nav a:focus-visible {
  background: var(--bg-soft);
  color: var(--accent);
  transform: translateX(2px);
  text-decoration: none;
}

.faq-category-nav a:hover::after,
.faq-category-nav a:focus-visible::after {
  color: var(--accent);
  transform: translateX(2px);
}

.faq-content {
  display: grid;
  gap: 24px;
}

.faq-group {
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
}

.faq-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.faq-group-head span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.faq-group-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.faq-premium-list {
  display: grid;
  gap: 10px;
}

.faq-premium-list details {
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 16px;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.faq-premium-list details[open] {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 10px 24px rgba(20, 32, 57, 0.06);
}

.faq-premium-list summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 17px 52px 17px 18px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
}

.faq-premium-list summary::-webkit-details-marker {
  display: none;
}

.faq-premium-list summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.faq-premium-list details[open] summary::after {
  content: '−';
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.faq-premium-list summary:hover,
.faq-premium-list summary:focus-visible {
  color: var(--accent);
}

.faq-premium-list p {
  margin: -4px 52px 18px 18px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.faq-support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(28px, 5vw, 44px);
  padding: clamp(22px, 4vw, 34px);
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(37, 99, 235, 0.16);
  background:
    radial-gradient(circle at top right, rgba(106, 193, 75, 0.12), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
  box-shadow: var(--shadow-lg);
}

.faq-support-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.faq-support-card h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.faq-support-card p {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-support-card .btn {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .faq-page {
    padding-top: 40px;
  }

  .faq-layout {
    gap: 18px;
  }

  .faq-category-card {
    padding: 14px;
  }

  .faq-category-nav {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .faq-category-nav a {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .faq-group {
    padding: 16px;
    border-radius: var(--radius);
  }

  .faq-group-head {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .faq-premium-list summary {
    min-height: 54px;
    padding: 15px 48px 15px 15px;
    font-size: 14px;
  }

  .faq-premium-list summary::after {
    right: 14px;
  }

  .faq-premium-list p {
    margin: -2px 44px 16px 15px;
    font-size: 14px;
  }

  .faq-support-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .faq-support-card .btn {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .faq-category-nav {
    grid-template-columns: 1fr;
  }
}

.cta-final { padding: 72px 0; }
.cta-card {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; padding: 48px 24px; border-radius: 16px; text-align: center;
}
.cta-card h2 { color: #fff; font-size: clamp(24px, 3.5vw, 36px); margin: 0 0 8px; }
.cta-card p { color: rgba(255,255,255,0.85); margin: 0 0 24px; }
.cta-card .btn-primary { background: #fff; color: var(--brand); }
.cta-card .btn-primary:hover { background: rgba(255,255,255,0.92); }

/* Content pages ------------------------------------------------ */
.content-page { padding: 56px 0 72px; }
.content-page h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; }
.content-page h2 { font-size: 22px; margin: 32px 0 12px; }
.content-page p { font-size: 16px; line-height: 1.7; }
.legal h2 { font-size: 18px; margin-top: 28px; }
.legal ul { padding-left: 22px; line-height: 1.7; }
.callout {
  background: #f0f6ff; border: 1px solid #c7dafc;
  border-left: 4px solid var(--accent);
  padding: 14px 18px; border-radius: var(--radius-sm);
  margin: 18px 0;
}
.callout.small { padding: 10px 14px; font-size: 13.5px; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--success); font-weight: 700;
}
.product-cards {
  display: grid; gap: 18px; margin-top: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .product-cards { grid-template-columns: 1fr 1fr; } }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.product-card .price { font-size: 22px; }
.product-card .price span { color: var(--text-muted); font-size: 14px; font-weight: 400; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--text-muted); font-size: 14px; }
.back-link:hover { color: var(--accent); }

/* Confirmation ------------------------------------------------- */
.confirm-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.confirm-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(22, 163, 74, 0.1); color: var(--success);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 12px;
}
.confirm-grid {
  display: grid; gap: 18px; grid-template-columns: 1fr; margin: 22px 0;
}
@media (min-width: 640px) { .confirm-grid { grid-template-columns: 1fr 1fr; } }
.confirm-grid h3 { margin: 0 0 6px; font-size: 14px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.confirm-grid .big { font-size: 26px; font-weight: 700; margin: 0; }
.next-steps { padding-left: 22px; line-height: 1.7; }

/* Pricing card / checkout -------------------------------------- */

.checkout-page {
  padding-top: clamp(32px, 5vw, 56px);
}

.checkout-page .narrow {
  max-width: 1080px;
}

.checkout-head {
  max-width: 760px;
  margin: 18px 0 clamp(24px, 4vw, 36px);
}

.checkout-eyebrow,
.checkout-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkout-head h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.checkout-head .lede {
  max-width: 700px;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
}

@media (min-width: 900px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  }
}

.checkout-summary-card,
.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.checkout-summary-card {
  padding: clamp(20px, 3vw, 30px);
}

.checkout-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.checkout-summary-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.checkout-info-block {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.checkout-info-block:first-of-type {
  padding-top: 0;
}

.checkout-info-block:last-of-type {
  border-bottom: 0;
}

.checkout-label {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.checkout-main-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.checkout-main-line strong {
  font-weight: 800;
}

.checkout-muted-line {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.checkout-security-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 15px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.16);
  border-radius: var(--radius-sm);
}

.checkout-security-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.checkout-security-strip p {
  margin: 0;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
}

.checkout-form-card {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.checkout-form-head {
  margin-bottom: 16px;
}

.checkout-form-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .checkout-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.checkout-form-grid label,
.checkout-consent-list .checkbox {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.checkout-form-grid input,
.checkout-form-grid select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.checkout-form-grid input:focus,
.checkout-form-grid select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.16),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.checkout-form-grid input[aria-invalid="true"],
.checkout-consent-list input[aria-invalid="true"] {
  border-color: var(--danger);
}

.checkout-consent-list {
  display: grid;
  gap: 8px;
}

.checkout-consent-list .checkbox {
  align-items: flex-start;
  grid-template-columns: 18px minmax(0, 1fr);
  font-weight: 500;
  line-height: 1.55;
}

.checkout-consent-list .checkbox input {
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
  accent-color: var(--accent);
}

.checkout-errors {
  margin: 0 0 18px;
  padding: 14px 15px;
  color: var(--danger);
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.14);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.55;
}

.checkout-errors ul {
  margin: 0;
  padding-left: 18px;
}

/* Legacy checkout summary compatibility */

.checkout-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
}

.checkout-summary h2 {
  margin: 26px 0 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkout-summary h2:first-child {
  margin-top: 0;
}

.checkout-summary p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.checkout-summary p strong {
  font-weight: 800;
}

/* Premium pricing card */

.pricing-card {
  padding: clamp(20px, 3vw, 28px);
}

.checkout-pricing-card {
  position: sticky;
  top: 22px;
}

@media (max-width: 899px) {
  .checkout-pricing-card {
    position: static;
  }
}

.pricing-card-head {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.pricing-card h2,
.pricing-card h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.pricing-card-head p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.price-rows {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 0 0 18px;
  padding: 0;
}

.price-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}

.price-rows li span:first-child {
  min-width: 0;
}

.price-rows li strong,
.price-rows li span:last-child {
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.price-rows li:last-child {
  border-bottom: 0;
}

.price-rows .total-row {
  margin-top: 4px;
  padding-top: 17px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  border-top: 1px solid var(--border);
}

.price-rows .total-row strong,
.price-rows .total-row span:last-child {
  color: var(--brand);
  font-size: 22px;
  letter-spacing: -0.025em;
}

.checkout-callout {
  margin: 18px 0;
  padding: 14px 15px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.checkout-callout p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.checkout-callout strong {
  color: var(--text);
}

.checkout-pay-btn,
.pricing-card #pay-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

.pay-msg {
  min-height: 1.45em;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.pay-msg.error {
  color: var(--danger);
}

.pay-msg.ok {
  color: var(--success);
}

.checkout-terms,
.pricing-card > .muted.small:last-child {
  margin: 14px 0 0;
  text-align: center;
  line-height: 1.6;
}

/* Mobile checkout polish */

@media (max-width: 560px) {
  .checkout-summary,
  .checkout-summary-card,
  .pricing-card {
    padding: 18px;
    border-radius: var(--radius);
  }

  .checkout-card-head,
  .pricing-card-head {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .checkout-info-block {
    padding: 15px 0;
  }

  .checkout-main-line {
    font-size: 15px;
  }

  .price-rows li {
    padding: 12px 0;
    font-size: 14px;
  }

  .price-rows .total-row {
    font-size: 16px;
  }

  .price-rows .total-row strong,
  .price-rows .total-row span:last-child {
    font-size: 20px;
  }
}

/* Portal timeline --------------------------------------------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 18px 0 30px;
}

.timeline li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 10px 0;
  align-items: center;
  opacity: 0.45;
}

.timeline li.reached {
  opacity: 1;
}

.timeline li.current {
  font-weight: 600;
}

.timeline .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d4d8e3;
}

.timeline li.reached .dot {
  background: var(--success);
}

.timeline li.current .dot {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  background: var(--accent);
}

.kv {
  list-style: none;
  padding: 0;
}

.kv li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.kv li:last-child {
  border-bottom: 0;
}

.docs {
  list-style: none;
  padding: 0;
}

.docs li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.audit {
  list-style: none;
  padding: 0;
  font-size: 14px;
}

.audit li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.correction-form textarea {
  width: 100%;
  padding: 12px;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  resize: vertical;
}

/* Footer ------------------------------------------------------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); margin-top: 48px; }
.footer-grid {
  display: grid; gap: 28px; padding: 56px 24px 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h4 { font-size: 13px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: var(--text); }
.footer-brand { font-weight: 700; color: var(--brand); }
.footer-brand span { color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.footer-blurb { color: var(--text-muted); margin: 8px 0 0; font-size: 14px; }
.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding: 22px 24px; color: var(--text-muted); font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-disclaimer p { margin: 0; }

/* State-led homepage / start flow ------------------------------------------ */

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(15, 76, 129, 0.12);
  background:
    radial-gradient(circle at top right, rgba(106, 193, 75, 0.18), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 18px 44px rgba(20, 32, 57, 0.08);
}

.hero-panel::after {
  content: '';
  position: absolute;
  inset: auto -40px -55px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(15, 76, 129, 0.06);
  pointer-events: none;
}

.hero-panel-head,
.hero-panel-copy,
.hero-panel-metrics {
  position: relative;
  z-index: 1;
}

.hero-panel-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #0f4c81;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-panel-head h2 {
  margin: 0;
  font-size: clamp(24px, 3.1vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-panel-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.hero-panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-panel-metrics div {
  display: grid;
  gap: 4px;
  padding: 16px 14px;
  border-radius: 16px;
  background: rgba(15, 76, 129, 0.05);
  border: 1px solid rgba(15, 76, 129, 0.08);
}

.hero-panel-metrics strong {
  color: #0f4c81;
  font-size: 24px;
  line-height: 1;
}

.hero-panel-metrics span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.state-map-selector {
  padding: 88px 0 96px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.state-map-selector .container {
  max-width: 1500px;
}

.state-map-selector-start {
  padding-top: 18px;
  background: transparent;
}

.state-map-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 42px clamp(24px, 4vw, 52px) 40px;
  border: 1px solid rgba(15, 76, 129, 0.09);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(106, 193, 75, 0.11), transparent 28%),
    radial-gradient(circle at 12% 14%, rgba(15, 76, 129, 0.05), transparent 22%),
    radial-gradient(circle at 88% 16%, rgba(15, 76, 129, 0.04), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 56px rgba(20, 32, 57, 0.08);
}

.state-map-shell-start {
  max-width: 1320px;
}

.state-map-header {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.state-map-header h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 3.8vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.state-map-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.desktop-copy {
  display: none;
}

.mobile-copy {
  display: block;
}

.state-map-stage {
  display: grid;
  gap: 30px;
  justify-items: center;
}

.state-map-canvas {
  width: min(100%, 1160px);
  margin: 0 auto;
}

.state-map-canvas svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.state-map-canvas svg g.is-covered {
  cursor: pointer;
  outline: none;
}

.state-map-canvas svg g.is-covered:focus-visible .state-area,
.state-map-canvas svg g.is-covered.is-hovered .state-area,
.state-map-canvas svg g.is-covered.is-active .state-area {
  filter: drop-shadow(0 8px 14px rgba(15, 76, 129, 0.14));
}

/* State label card list */

.state-map-list {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.state-map-list ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, 840px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  justify-content: center;
}

/*
 * Single state rule:
 * If only one active state exists in state_rules, center one professional CTA.
 */
.state-map-list.is-single ul,
.state-map-list ul.is-single,
.state-map-list[data-state-count='1'] ul,
.state-map-list ul[data-state-count='1'] {
  width: min(100%, 420px);
  grid-template-columns: minmax(280px, 420px);
}

/*
 * Multiple state rules:
 * If two or more active states exist, use a balanced two-column grid.
 */
.state-map-list.is-multi ul,
.state-map-list ul.is-multi,
.state-map-list:not([data-state-count='1']) ul[data-state-count] {
  width: min(100%, 720px);
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.state-map-list li {
  display: flex;
  min-width: 0;
}

.state-map-list a {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px 13px 18px;
  border-radius: 12px;
  background: #0f4c81;
  border: 1px solid #0d426f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(15, 76, 129, 0.11);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transform: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.state-map-list a:hover,
.state-map-list a:focus-visible,
.state-map-list a.is-hovered,
.state-map-list a.is-active {
  background: #0d426f;
  border-color: #0b365c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 9px 20px rgba(15, 76, 129, 0.15);
  color: #ffffff;
  text-decoration: none;
  transform: none;
}

.state-map-list a:active {
  background: #0a3154;
  border-color: #0a3154;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.16),
    0 5px 14px rgba(15, 76, 129, 0.12);
  transform: none;
}

.state-map-list a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.state-map-list-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.state-map-list-badge {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(106, 193, 75, 0.42);
  color: #4aa52d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.state-map-empty {
  margin: 6px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Flow rail */

.flow-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.flow-step {
  padding: 28px 22px;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.9) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.flow-step + .flow-step {
  border-left: 1px solid var(--border);
}

.flow-step h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.flow-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.wizard-page-start {
  padding-top: 28px;
}

.wizard-page-start .back-link {
  margin-bottom: 10px;
}

@media (min-width: 900px) {
  .desktop-copy {
    display: block;
  }

  .mobile-copy {
    display: none;
  }
}

@media (max-width: 919px) {
  .hero-panel-metrics {
    grid-template-columns: 1fr;
  }

  .state-map-selector {
    padding: 64px 0;
  }

  .state-map-shell {
    border-radius: 24px;
    padding: 28px 18px;
  }

  .state-map-list ul,
  .state-map-list.is-single ul,
  .state-map-list.is-multi ul,
  .state-map-list ul.is-single,
  .state-map-list ul.is-multi,
  .state-map-list[data-state-count] ul,
  .state-map-list ul[data-state-count] {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .flow-rail {
    grid-template-columns: 1fr;
  }

  .flow-step + .flow-step {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}