/* BAIFPO — marketing site design system */
:root {
  --ink: #0c1f15;
  --ink-soft: #23382c;
  --muted: #4d6255;
  --surface: #f4f9f5;
  --surface-2: #eaf3ec;
  --brand: #0e6f3d;
  --brand-2: #14a05b;
  --brand-ink: #09522d;
  --accent-glow: #dcf5e4;
  --accent-sky: #e8f3fb;
  --accent-amber: #fdf3e2;
  --line: #d9e4da;
  --line-soft: #e6ede7;
  --white: #ffffff;
  --danger: #b3261e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 31, 21, .06);
  --shadow-md: 0 10px 30px -12px rgba(12, 31, 21, .18);
  --shadow-lg: 0 24px 60px -20px rgba(12, 31, 21, .25);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --grad-brand: linear-gradient(135deg, #0e7a45, #16a45f);
  --grad-ink: linear-gradient(120deg, #0c1f15, #1c5c38 55%, #0e7a45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.62 var(--font);
  display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
.shell { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.shell-narrow { width: min(860px, calc(100% - 40px)); margin-inline: auto; }

/* Header */
header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--grad-brand);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 14px;
  box-shadow: 0 4px 10px -3px rgba(14,111,61,.5); }
nav.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
nav.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .92rem;
  padding: 8px 12px; border-radius: 8px; transition: background .15s, color .15s; }
nav.nav-links a:hover { background: var(--surface); color: var(--brand-ink); }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: .95rem; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .15s ease; cursor: pointer; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(14,111,61,.55); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(14,111,61,.6); }
.btn-secondary { background: var(--white); color: var(--brand-ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--brand); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand-ink); }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; border-radius: 12px; }

/* Sections & type */
section { padding: 78px 0; }
.section-alt { background: var(--surface); }
.section-divider { border-top: 1px solid var(--line-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); text-transform: uppercase;
  letter-spacing: .1em; font-size: .76rem; font-weight: 800; margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand-2); border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); margin: 0 0 20px; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin: 0 0 14px; }
h3 { font-size: 1.14rem; margin: 0 0 8px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 700px; margin: 0 0 26px; }
.center { text-align: center; } .center .lead { margin-inline: auto; }
.text-gradient { background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); } .small { font-size: .9rem; } .smaller { font-size: .82rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 92px 0 96px;
  background: radial-gradient(1100px 520px at 12% -8%, var(--accent-glow) 0%, rgba(255,255,255,0) 55%),
              radial-gradient(900px 460px at 92% 0%, var(--accent-sky) 0%, rgba(255,255,255,0) 50%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(14,111,61,.07) 1px, transparent 1px); background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero-sub { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 620px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .88rem; align-items: center; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { flex: none; }
.badge-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid var(--line);
  color: var(--brand-ink); font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }

/* Product mock panel */
.mock { position: relative; border-radius: 18px; background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #fbfdfb; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-row { display: grid; gap: 10px; }
.mock-kicker { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.mock-score { display: flex; align-items: baseline; gap: 6px; }
.mock-score b { font-size: 1.9rem; letter-spacing: -.03em; }
.mock-line { height: 8px; border-radius: 6px; background: var(--surface-2); }
.mock-line.w70 { width: 70%; } .mock-line.w50 { width: 50%; } .mock-line.w90 { width: 90%; }
.mock-finding { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--ink-soft); }
.mock-finding::before { content: "✓"; color: var(--brand); font-weight: 900; flex: none; }
.mock-cta { background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: .85rem; color: var(--brand-ink); font-weight: 700; text-align: center; }
.mock-tag { display: inline-block; background: var(--accent-glow); color: var(--brand-ink); font-size: .76rem;
  font-weight: 700; padding: 3px 9px; border-radius: 999px; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .22s ease, border-color .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c4d8c8; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.card p { color: var(--muted); margin: 6px 0 0; font-size: .95rem; }
.card-feature .card-icon { background: var(--accent-glow); }

/* Provider cards */
.provider-grid { grid-template-columns: repeat(3, 1fr); }
.provider-card { display: flex; flex-direction: column; gap: 10px; }
.provider-name { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.provider-badge { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--accent-amber); color: #7a5510; }
.provider-badge.free { background: var(--accent-glow); color: var(--brand-ink); }
.provider-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.provider-link { font-size: .85rem; font-weight: 700; }

/* Before / After */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ba-panel { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-md); }
.ba-head { padding: 12px 18px; font-weight: 800; font-size: .9rem; display: flex; justify-content: space-between; align-items: center; }
.ba-before .ba-head { background: var(--surface-2); color: var(--ink-soft); }
.ba-after .ba-head { background: var(--grad-brand); color: #fff; }
.ba-body { padding: 20px; background: var(--white); display: grid; gap: 14px; }
.ba-field { font-size: .95rem; }
.ba-label { display: flex; justify-content: space-between; font-size: .74rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.ba-value { background: var(--surface); border-radius: 8px; padding: 10px 12px; color: var(--ink-soft); }
.ba-after .ba-value { background: #f2faf5; }
.ba-metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.ba-metric { font-size: .78rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--ink-soft); font-weight: 600; }
.note-illustrative { display: inline-flex; gap: 6px; font-size: .8rem; color: var(--muted); margin-top: 14px; align-items: center; }

/* Steps */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; align-items: start; }
.step-num { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.3rem; }
.step h3 { margin-bottom: 2px; }
.step p { color: var(--muted); margin: 4px 0 0; font-size: .95rem; }

/* Callouts / FAQ */
.callout { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); background: var(--surface);
  display: flex; gap: 12px; align-items: flex-start; }
.callout.warn { background: var(--accent-amber); border-color: #f0dfc0; }
.callout-icon { font-size: 1.2rem; flex: none; }
details.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0; }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; display: flex;
  justify-content: space-between; gap: 12px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq > div { padding: 0 20px 18px; color: var(--muted); font-size: .95rem; }

/* Pricing */
.plans-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; background: var(--white); box-shadow: var(--shadow-sm); }
.plan-card .plan-name { font-weight: 800; font-size: 1.02rem; }
.plan-card .plan-price, .plan-card .plan-capacity { text-align: center; justify-content: center; display: flex; }
.plan-all-features { display: inline-block; margin: 2px auto 0; font-size: .78rem; font-weight: 800; color: var(--brand-ink);
  background: var(--accent-glow); border-radius: 999px; padding: 3px 10px; align-self: center; }
.plan-price { font-size: 2.1rem; font-weight: 900; letter-spacing: -.03em; display: flex; align-items: baseline; gap: 4px; }
.plan-price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.plan-capacity { color: var(--brand-ink); font-weight: 800; font-size: .95rem; }
.plan-desc { color: var(--muted); font-size: .9rem; flex: 1; }
.plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .87rem; color: var(--ink-soft); }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; }
.plan-features li::before { content: "✓"; color: var(--brand); font-weight: 900; flex: none; }
.plan-card.free { background: linear-gradient(180deg, #fbfdfb, #fff); }
.plan-card.cta-card { background: var(--grad-brand); color: #fff; border: none; }
.plan-card.cta-card .btn { background: #fff; color: var(--brand-ink); }
.plan-card .btn { align-self: center; }
.plan-card { align-items: stretch; }

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .92rem; }
table.compare th, table.compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.compare thead th { background: var(--surface); font-weight: 800; }
table.compare thead th { background: var(--surface); font-weight: 800; text-align: center; }
table.compare thead th:first-child, table.compare td:first-child { text-align: left; }
table.compare td { text-align: center; font-variant-numeric: tabular-nums; }
table.compare .yes { color: var(--brand); font-weight: 900; }
table.compare .no { color: #b0b9b2; }

/* Docs */
.docs-grid { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
.docs-nav { position: sticky; top: 90px; display: grid; gap: 2px; max-height: calc(100vh - 110px); overflow: auto; }
.docs-nav a { text-decoration: none; color: var(--ink-soft); font-size: .92rem; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.docs-nav a:hover { background: var(--surface); color: var(--brand-ink); }
.docs-nav .docs-nav-h { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; margin: 14px 0 4px; padding: 0 12px; }
.docs-body h2 { margin-top: 44px; }
.docs-body h2:first-child { margin-top: 0; }
.docs-body ol li, .docs-body ul li { margin: 6px 0; }
.docs-body code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .88em; }
.step-guide { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.step-guide ol { margin: 8px 0 0; padding-left: 20px; }

/* Footer */
footer { margin-top: auto; background: #0c1f15; color: #cfe0d4; padding: 44px 0 36px; }
footer .shell { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer a { color: #cfe0d4; text-decoration: none; }
footer a:hover { color: #fff; }
footer .foot-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: .9rem; }

/* Prose (legal / docs articles) */
.prose { max-width: 820px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 34px; }
.prose p, .prose li { color: var(--ink-soft); }

/* Utility */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .gap-0 { gap: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
* { transition-duration: .18s; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-nav { position: static; max-height: none; }
}
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .shell { width: min(100% - 32px, 1140px); }
  .grid-2, .grid-3, .grid-4, .provider-grid, .plans-grid, .ba-grid { grid-template-columns: 1fr; }
  .nav { flex-direction: column; align-items: flex-start; padding: 14px 0; gap: 10px; }
  .nav-links { width: 100%; }
  .nav-cta { width: 100%; }
  .nav-cta .btn { flex: 1; }
  h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .hero { padding: 64px 0 70px; }
  .step { grid-template-columns: 44px 1fr; }
  .step-num { width: 44px; height: 44px; font-size: 1.1rem; }
  footer .shell { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .hero-actions .btn { width: 100%; }
  .plan-card { padding: 20px; }
}

/* mobile hardening */
.provider-card .provider-name { flex-wrap: wrap; }
.provider-badge { white-space: normal; text-align: center; }
.plan-card .plan-name { overflow-wrap: anywhere; }
.table-wrap { -webkit-overflow-scrolling: touch; }
@media (max-width: 480px) {
  .hero-sub, .lead { font-size: 1rem; }
  .plan-price { font-size: 1.8rem; }
  .foot-links { gap: 10px 14px; }
}
