/* =========================================================
   SAB Lead — design tokens
   ========================================================= */
:root {
  /* color */
  --navy-950: #0B1B33;
  --navy-800: #142A4D;
  --navy-700: #1B3B66;
  --blue-600: #175FCC;
  --blue-500: #2B7FE0;
  --teal-500: #13B0A6;
  --teal-400: #3FCBBF;
  --amber-500: #E8A33D;
  --green-600: #1D9A6C;

  --bg: #F5F8FB;
  --surface: #FFFFFF;
  --surface-tint: #EFF4FA;
  --ink: #14213A;
  --ink-soft: #3C4A66;
  --muted: #64748B;
  --border: #E1E8F0;
  --border-strong: #C7D3E3;

  /* gradient (from logo mark) */
  --grad-brand: linear-gradient(135deg, #175FCC 0%, #13B0A6 100%);

  /* type */
  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* layout */
  --wrap: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(20,33,58,0.04), 0 12px 32px -16px rgba(20,33,58,0.16);
  --shadow-card-hover: 0 4px 10px rgba(20,33,58,0.06), 0 24px 48px -20px rgba(20,33,58,0.22);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--navy-950); margin: 0; }

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(23,95,204,0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(23,95,204,0.6); }
.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-tint); }
.btn-outline {
  background: #fff;
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn-outline:hover { background: var(--surface-tint); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand-logo { height: 30px; width: auto; }
.brand { flex-shrink: 0; }
.main-nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--blue-600); }
.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 76px 0 96px;
  background:
    radial-gradient(680px 420px at 88% -6%, rgba(19,176,166,0.14), transparent 60%),
    radial-gradient(560px 360px at 8% 0%, rgba(23,95,204,0.10), transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow, .section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  font-weight: 600;
  margin: 0 0 14px;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.05rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.accent-underline {
  background: linear-gradient(180deg, transparent 62%, rgba(19,176,166,0.34) 62%);
}
.hero-sub {
  font-size: 1.09rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-note {
  font-size: 0.87rem;
  color: var(--muted);
}

/* --- hero funnel visual (signature element) --- */
.funnel-card {
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  padding: 30px 28px 24px;
  box-shadow: 0 30px 60px -24px rgba(11,27,51,0.55);
  position: relative;
  overflow: hidden;
}
.funnel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 200px at 100% 0%, rgba(19,176,166,0.22), transparent 70%);
  pointer-events: none;
}
.funnel-card-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  margin: 0 0 18px;
  position: relative;
}
.funnel-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.funnel-row {
  --w: 100%;
  position: relative;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  overflow: hidden;
}
.funnel-row::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w);
  background: linear-gradient(90deg, var(--blue-600), var(--teal-500));
  border-radius: 8px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(.2,.7,.3,1);
}
.funnel-row.is-visible::before { transform: scaleX(1); }
.funnel-row-final::before { background: linear-gradient(90deg, var(--teal-500), var(--green-600)); }
.funnel-stage, .funnel-num { position: relative; z-index: 1; }
.funnel-num { font-family: var(--font-mono); }
.funnel-card-footer {
  position: relative;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}
.funnel-card-footer strong {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--teal-400);
}

/* =========================================================
   Section shared
   ========================================================= */
.section { padding: 92px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.22;
  max-width: 22ch;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 1.03rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 44px;
}

/* --- problem cards --- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}
.problem-mark {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal-500);
  font-weight: 700;
  margin-bottom: 14px;
}
.problem-card h3 { font-size: 1.08rem; margin-bottom: 10px; font-weight: 700; }
.problem-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* =========================================================
   Tabs / features
   ========================================================= */
.tab-buttons {
  display: inline-flex;
  background: var(--surface-tint);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 36px;
  gap: 4px;
}
.tab-btn {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.tab-btn.is-active {
  background: var(--navy-950);
  color: #fff;
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.tab-panel-note {
  font-size: 0.94rem;
  color: var(--muted);
  margin: -8px 0 28px;
}

.feature-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.feature-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 26px 24px;
}
.feature-group h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--navy-950);
}
.feature-group ul { display: flex; flex-direction: column; gap: 10px; }
.feature-group li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.feature-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
}
.feature-group li strong { color: var(--navy-950); }

.feature-group-highlight {
  grid-column: 1 / -1;
  background: var(--navy-950);
  border-color: var(--navy-950);
}
.feature-group-highlight h4 { color: #fff; }
.feature-group-highlight p { color: rgba(255,255,255,0.72); font-size: 0.92rem; margin: 14px 0 0; }

.stage-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.stage-chain span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 12px;
  border-radius: 999px;
}
.stage-chain i { color: var(--teal-400); font-style: normal; }
.stage-final { background: var(--teal-500) !important; border-color: var(--teal-500) !important; }

/* =========================================================
   Funnel detail section
   ========================================================= */
.funnel-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.funnel-detail-row {
  display: grid;
  grid-template-columns: 150px 1fr 74px;
  align-items: center;
  gap: 16px;
}
.funnel-detail-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-950);
}
.funnel-detail-track {
  height: 14px;
  background: var(--surface-tint);
  border-radius: 999px;
  overflow: hidden;
}
.funnel-detail-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600), var(--teal-500));
  transition: width 1s cubic-bezier(.2,.7,.3,1);
}
.funnel-detail-final .funnel-detail-fill { background: linear-gradient(90deg, var(--teal-500), var(--green-600)); }
.funnel-detail-value {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
  color: var(--navy-950);
}
.funnel-conversion {
  margin: 26px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.funnel-conversion strong { color: var(--green-600); font-family: var(--font-mono); }

/* =========================================================
   Pricing
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  position: relative;
}
.price-card-featured {
  background: var(--navy-950);
  border-color: var(--navy-950);
  box-shadow: 0 30px 60px -28px rgba(11,27,51,0.5);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--teal-500);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.price-card-featured h3 { color: #fff; }
.price-tag {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy-950);
  margin: 0 0 4px;
}
.price-card-featured .price-tag { color: #fff; }
.price-tag span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price-card-featured .price-tag span { color: rgba(255,255,255,0.55); }
.price-sub { font-size: 0.85rem; color: var(--muted); margin: 0 0 22px; }
.price-card-featured .price-sub { color: rgba(255,255,255,0.55); }
.price-limits {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.price-limits li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--surface-tint);
  color: var(--navy-800);
  padding: 6px 12px;
  border-radius: 999px;
}
.price-card-featured .price-limits li {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.price-features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.price-features li {
  font-size: 0.93rem;
  padding-left: 24px;
  position: relative;
  color: var(--ink-soft);
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 700;
}
.price-card-featured .price-features li { color: rgba(255,255,255,0.82); }
.price-card-featured .price-features li::before { color: var(--teal-400); }

.addon-block { margin-top: 64px; }
.addon-title { font-size: 1.3rem; margin-bottom: 10px; }
.addon-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
}
.addon-table { width: 100%; border-collapse: collapse; }
.addon-table th, .addon-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}
.addon-table th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface-tint);
}
.addon-table td:last-child { font-family: var(--font-mono); color: var(--navy-800); }
.addon-table tr:last-child td { border-bottom: none; }

/* =========================================================
   Log table
   ========================================================= */
.log-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.log-table { width: 100%; border-collapse: collapse; }
.log-table th, .log-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.log-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface-tint);
}
.log-table td:first-child { font-weight: 600; color: var(--navy-800); }
.log-table td:last-child { font-family: var(--font-mono); color: var(--ink-soft); font-size: 0.85rem; }
.log-table tr:last-child td { border-bottom: none; }

/* =========================================================
   Order / register section
   ========================================================= */
.section-order {
  background: var(--navy-950);
  background-image: radial-gradient(600px 380px at 10% 10%, rgba(19,176,166,0.16), transparent 60%);
}
.order-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.section-eyebrow-light { color: var(--teal-400); }
.section-title-light { color: #fff; }
.order-lead { color: rgba(255,255,255,0.68); font-size: 1rem; max-width: 42ch; margin-bottom: 26px; }
.order-points { display: flex; flex-direction: column; gap: 12px; }
.order-points li {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  padding-left: 24px;
  position: relative;
}
.order-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-400);
  font-weight: 700;
}

.order-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 34px 34px 30px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.5);
}
.form-row { margin-bottom: 18px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row label, .form-row legend {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
  padding: 0;
}
.form-row label span, .form-row legend span { color: #D14343; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(43,127,224,0.15);
  outline: none;
}
.form-row textarea { resize: vertical; }
fieldset.form-row { border: none; padding: 0; margin: 0 0 22px; }

.plan-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 13px 14px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.plan-option input { position: absolute; top: 14px; right: 14px; }
.plan-option:has(input:checked) {
  border-color: var(--blue-500);
  background: rgba(43,127,224,0.06);
}
.plan-option-name { font-weight: 700; font-size: 0.9rem; color: var(--navy-950); padding-right: 20px; }
.plan-option-desc { font-size: 0.8rem; color: var(--muted); font-family: var(--font-mono); }

.form-fineprint { font-size: 0.78rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

.form-success {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(29,154,108,0.1);
  border: 1px solid rgba(29,154,108,0.3);
}
.form-success strong { color: var(--green-600); display: block; margin-bottom: 4px; }
.form-success p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.65); padding-top: 56px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { max-width: 280px; }
.brand-logo-footer { filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; }
.footer-links { display: flex; gap: 56px; }
.footer-links h5 { color: #fff; font-size: 0.85rem; margin-bottom: 14px; }
.footer-links a { display: block; font-size: 0.88rem; margin-bottom: 10px; color: rgba(255,255,255,0.6); transition: color 0.15s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding: 20px 24px; font-size: 0.8rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .order-wrap { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .feature-groups { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 20px 24px 26px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  .site-header.nav-open .header-cta {
    display: block;
    position: absolute;
    top: 240px;
    left: 24px;
    right: 24px;
  }
  .form-row-split { grid-template-columns: 1fr; }
  .plan-choice { grid-template-columns: 1fr; }
  .funnel-detail-row { grid-template-columns: 100px 1fr 60px; gap: 10px; }
}
