/* ─────────────────────────────────────────────────────────────────────────
   SBA marketing site — shared stylesheet.

   Design tokens MIRROR src/index.css in the app so the marketing site and
   the dashboard feel like one product. When the app rebrands, copy the
   token block from src/index.css and overwrite the :root block here.

   Loaded by every page so the brand stays consistent and we don't repeat
   ourselves.
   ───────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Instrument+Serif:wght@400&display=swap');

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

:root {
  /* ── Surfaces — match app exactly ── */
  --bg:              #08090a;
  --surface:         rgba(255,255,255,0.025);
  --surface-2:       rgba(255,255,255,0.045);
  --surface-grad:    linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 100%);

  /* ── Borders ── */
  --border:          rgba(255,255,255,0.05);
  --border-strong:   rgba(255,255,255,0.1);
  --border-focus:    rgba(255,255,255,0.2);

  /* ── Text scale (warm grays, matches app post-2026-05-19 update) ── */
  --text:            #fafafa;
  --text-2:          #e4e4e7;
  --muted:           #a1a1aa;
  --faint:           #71717a;
  --faintest:        #52525b;

  /* ── Brand accents — lavender, emerald, amber, coral ── */
  --accent:          #c4b5fd;   /* lavender — primary brand accent */
  --accent-bg:       rgba(167,139,250,0.10);
  --accent-border:   rgba(167,139,250,0.22);

  --green:           #34d399;   /* emerald — verified, live */
  --green-soft:      rgba(52,211,153,0.12);
  --green-border:    rgba(52,211,153,0.25);

  --amber:           #fbbf24;
  --red:             #f87171;

  /* ── Buttons (match app) ── */
  --btn-primary-bg:    #ffffff;
  --btn-primary-fg:    #08090a;
  --btn-primary-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 8px 24px rgba(255,255,255,0.08);

  /* ── Typography — Instrument Serif for display, Inter for body, exact match to app ── */
  --font:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:    'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --font-mono:       'SF Mono', Menlo, Monaco, Consolas, monospace;

  /* Aliases for previously-used token names (kept so old class refs keep working) */
  --serif:           var(--font-display);
  --blue:            var(--accent);   /* old "--blue" rebranded as lavender accent */
  --blue-hover:      var(--accent);

  /* ── Radius, shadows ── */
  --radius:          8px;
  --radius-lg:       12px;
  --shadow-card:     0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-elev:     0 12px 32px rgba(0,0,0,0.4);
}

html, body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.65; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Nav ─────────────────────────────────────────────────────────────── */
nav.site-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 2rem; border-bottom: 1px solid var(--border);
  max-width: 1100px; margin: 0 auto;
}
.logo { display: inline-flex; align-items: center; gap: .85rem; color: var(--text); }
.logo:hover { text-decoration: none; color: var(--text); }
.logo svg { width: 44px !important; height: 44px !important; }
.logo-wordmark { font-family: var(--font-display); font-size: 2rem; font-weight: 400; letter-spacing: -0.01em; color: var(--text); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: .92rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { padding: 10px 20px; background: var(--btn-primary-bg); border-radius: 7px; color: #08090a !important; font-size: .92rem; font-weight: 700; box-shadow: var(--btn-primary-shadow); }
.nav-cta:hover { text-decoration: none; opacity: .94; }
@media (max-width: 640px) { nav.site-nav { padding: 1rem 1.2rem; } .nav-links { display: none; } }

/* ─── Page hero ───────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 5rem 1.5rem 4rem; max-width: 760px; margin: 0 auto; }
.hero-badge { display: inline-block; background: var(--green-soft); border: 1px solid var(--green-border); color: var(--green); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 1.5rem; }
h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 400; color: var(--text); line-height: 1.1; margin-bottom: 1.25rem; letter-spacing: -0.022em; }
h1 span.accent { color: var(--accent); font-family: var(--font-display); font-style: italic; }
.hero-sub { font-size: 1.12rem; color: var(--muted); line-height: 1.7; margin-bottom: 2.25rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 1rem; justify-content: flex-start; flex-wrap: wrap; }
.btn-primary { padding: 13px 28px; background: var(--btn-primary-bg); border-radius: 8px; color: var(--btn-primary-fg); font-size: 1rem; font-weight: 600; display: inline-block; box-shadow: var(--btn-primary-shadow); letter-spacing: -0.005em; }
.btn-primary:hover { text-decoration: none; opacity: .94; }
.btn-ghost { padding: 13px 28px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text-2); font-size: 1rem; display: inline-block; background: transparent; }
.btn-ghost:hover { text-decoration: none; border-color: var(--text-2); color: var(--text); }
.hero-note { margin-top: 1.25rem; font-size: .82rem; color: var(--muted); }

/* ─── Section primitives ──────────────────────────────────────────────── */
section { padding: 4rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.section-label { font-size: .72rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .85rem; }
h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 400; color: var(--text); margin-bottom: 1rem; letter-spacing: -0.018em; line-height: 1.18; }
h3 { font-family: var(--font); font-size: 1.1rem; font-weight: 600; color: var(--text); margin-top: 1.75rem; margin-bottom: .6rem; letter-spacing: -0.005em; }
.section-sub { font-size: 1.02rem; color: var(--muted); max-width: 620px; line-height: 1.7; margin-bottom: 2.5rem; }
.prose p { margin-bottom: 1rem; color: var(--text-2); font-size: 1rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.25rem; color: var(--text-2); }
.prose li { margin-bottom: .45rem; line-height: 1.7; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text-2); }
.lead { font-size: 1.18rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1.5rem; }
.updated { font-size: .82rem; color: var(--faint); margin-bottom: 1.5rem; }
.updated strong { color: var(--muted); }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── Features grid ───────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; transition: border-color .2s; box-shadow: var(--shadow-card); }
.feature-card:hover { border-color: var(--border-strong); }
.feature-icon { font-size: 1.5rem; margin-bottom: .75rem; }
.feature-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; letter-spacing: -0.005em; }
.feature-desc { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ─── Pricing grid ────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.plan.popular { border: 1px solid var(--accent-border); background: linear-gradient(180deg, var(--accent-bg) 0%, rgba(255,255,255,0) 100%); position: relative; }
.popular-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--bg); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 14px; border-radius: 20px; white-space: nowrap; }
.plan-name { font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.plan-price { font-family: var(--font-display); font-size: 3.25rem; font-weight: 400; color: var(--text); line-height: 1; margin-bottom: .35rem; letter-spacing: -0.025em; }
.plan-price span { font-size: .85rem; color: var(--muted); font-weight: 400; font-family: var(--font); }
.plan-visitors { font-size: .78rem; color: var(--accent); font-weight: 500; margin-bottom: 1rem; letter-spacing: 0.01em; }
.plan-features { font-size: .85rem; color: var(--muted); line-height: 1.55; margin: .5rem 0 1.5rem; flex-grow: 1; }
.plan-cta { display: block; width: 100%; padding: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--text); font-size: .9rem; font-weight: 600; text-align: center; }
.plan.popular .plan-cta { background: var(--btn-primary-bg); border-color: var(--btn-primary-bg); color: var(--btn-primary-fg); box-shadow: var(--btn-primary-shadow); }
.plan-cta:hover { text-decoration: none; opacity: .94; }
.pricing-note { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 1.75rem; line-height: 1.7; }

/* ─── CTA band ────────────────────────────────────────────────────────── */
.cta-band { text-align: center; padding: 3rem 2rem; margin: 2.5rem auto 1rem; max-width: 680px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--muted); margin-bottom: 2rem; font-size: 1rem; }
/* Final CTA — SHARED so every page (home, install hub, etc.) gets it. Full-width
   block centering its own content, so it always tracks the window. */
.final-cta { text-align: center; padding: 5rem 1.5rem; }
.final-cta h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; font-weight: 400; margin: 0 auto 1rem; max-width: 640px; color: var(--text); }
.final-cta p { color: var(--muted); margin: 0 auto 2rem; max-width: 640px; font-size: 1.05rem; }

/* ─── Comparison table ────────────────────────────────────────────────── */
.compare-wrap { overflow-x: auto; margin: 2rem 0; }
.compare {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; min-width: 560px;
}
.compare th, .compare td {
  padding: .9rem 1rem; text-align: left; font-size: .92rem;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.compare th { background: rgba(255,255,255,0.03); color: var(--text); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td.attr { font-weight: 600; color: var(--text); width: 32%; }
.compare td.sba { color: var(--text); background: var(--accent-bg); }
.compare td.competitor { color: var(--muted); }
.compare .tick { color: var(--green); font-weight: 700; }
.compare .cross { color: var(--red); font-weight: 700; }

/* ─── FAQ block ──────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: .5rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem 1.3rem; }
.faq-q { font-weight: 600; color: var(--text); font-size: 1rem; margin-bottom: .5rem; letter-spacing: -0.005em; }
.faq-a { color: var(--text-2); font-size: .94rem; line-height: 1.7; }
.faq-a a { color: var(--accent); }

/* ─── Listicle ───────────────────────────────────────────────────────── */
.alt-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; margin-bottom: 1.1rem; box-shadow: var(--shadow-card); }
.alt-card h3 { margin-top: 0; margin-bottom: .35rem; }
.alt-card .alt-meta { font-size: .82rem; color: var(--muted); margin-bottom: .85rem; }
.alt-card .alt-meta strong { color: var(--text-2); }
.alt-card .alt-body { color: var(--text-2); font-size: .95rem; line-height: 1.65; margin-bottom: .85rem; }
.alt-card .pill { display: inline-block; font-size: .72rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); margin-right: .3rem; }
.alt-card .pill.ours { background: var(--green-soft); border-color: var(--green-border); color: var(--green); }

/* ─── Callout ────────────────────────────────────────────────────────── */
.callout { background: var(--accent-bg); border-left: 3px solid var(--accent); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.75rem 0; color: var(--text-2); font-size: .96rem; line-height: 1.7; }
.callout strong { color: var(--text); }

/* ─── Footer ─────────────────────────────────────────────────────────── */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.25rem; }
.foot-col h4 { font-family: var(--font); font-size: .76rem; color: var(--text); margin-bottom: .85rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: .5rem; }
.foot-col a { font-size: .86rem; color: var(--muted); }
.foot-col a:hover { color: var(--text); text-decoration: none; }
.foot-brand { font-size: .86rem; color: var(--muted); max-width: 280px; line-height: 1.65; }
.foot-brand .logo { margin-bottom: .8rem; display: inline-flex; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.foot-bar a { color: var(--muted); }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── Monthly / Yearly billing toggle (above the pricing cards) ───────────── */
.billing-toggle { display: flex; width: fit-content; gap: .25rem; padding: .3rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; margin: 0 auto 2.5rem; }
.bt-opt { border: none; background: transparent; color: var(--text-2); font: inherit; font-size: .9rem; padding: .5rem 1.15rem; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; transition: background .15s ease, color .15s ease; }
.bt-opt:hover { color: var(--text); }
.bt-opt.active { background: var(--text); color: var(--bg); font-weight: 600; }
.bt-save { font-size: .72rem; font-weight: 700; color: var(--green); letter-spacing: .02em; }
.bt-opt.active .bt-save { color: var(--bg); opacity: .75; }
.plan-billed { font-size: .78rem; color: var(--muted); min-height: 1rem; margin: -.4rem 0 .7rem; }

/* ─── Misc ───────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.tag-row { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0 1.5rem; }
.tag { display: inline-block; padding: 3px 10px; font-size: .72rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
