/* BoostInAI — design tokens + marketing site styles.
   Brand: indigo/violet #5b3df5 with a cyan #0aa5b8 accent on a cool off-white ground.
   Type: Space Grotesk for headings and scores, Inter for body. */

/* Tokens — canonical set from "BoostInAI — Design Tokens (2026-09-08)".
   Full LIGHT palette on bare :root; dark redefines only what changes, once under
   prefers-color-scheme (guarded so an explicit light choice wins) and once under [data-theme="dark"]
   so a manual toggle wins both ways. No raw hex in components. */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --ink: #12141c;
  --muted: #5b6072;
  --faint: #8a90a2;
  --line: #e5e8f0;

  --brand: #5b3df5;
  --brand-ink: #4429d4;
  --brand-soft: #ece8ff;
  --cyan: #0aa5b8;
  --cyan-soft: #dcf5f8;
  --cyan-ink: #0b5d68;

  --good: #17a06a;   --good-soft: #d9f3e6;
  --warn: #d98a1f;   --warn-soft: #fbeed6;
  --bad:  #d94141;   --bad-soft:  #fbe0e0;

  /* Inverted panel (the closing CTA) — a deliberate constant in both themes. */
  --invert-bg: #10122a;
  --invert-ink: #ffffff;
  --invert-muted: #b9bcd4;
  /* Text on the brand gradient stays white in both themes — the gradient never inverts. */
  --on-brand: #ffffff;

  --grad: linear-gradient(135deg, var(--brand), var(--cyan));
  --grad-text: linear-gradient(120deg, var(--brand), var(--cyan));

  --radius: 15px;
  --radius-lg: 22px;
  --shadow: 0 2px 12px rgba(20, 22, 40, .06);
  --shadow-lg: 0 24px 60px rgba(20, 22, 40, .10);
  --ring: rgba(91, 61, 245, .13);
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0d14;
    --surface: #14161f;
    --surface-2: #1b1e2a;
    --ink: #eef0f7;
    --muted: #a2a8bd;
    --faint: #6d7288;
    --line: #262a38;
    --brand: #8b74ff;
    --brand-ink: #b3a4ff;
    --brand-soft: #241d47;
    --cyan: #3bc6d8;
    --cyan-soft: #123037;
    --cyan-ink: #8fe0ea;
    --good: #40c088;   --good-soft: #123528;
    --warn: #e6a445;   --warn-soft: #3a2c14;
    --bad:  #ec6060;   --bad-soft:  #3a1c1c;
    --shadow: 0 2px 12px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    --ring: rgba(139, 116, 255, .22);
  }
}
:root[data-theme="dark"] {
  --bg: #0c0d14;
  --surface: #14161f;
  --surface-2: #1b1e2a;
  --ink: #eef0f7;
  --muted: #a2a8bd;
  --faint: #6d7288;
  --line: #262a38;
  --brand: #8b74ff;
  --brand-ink: #b3a4ff;
  --brand-soft: #241d47;
  --cyan: #3bc6d8;
  --cyan-soft: #123037;
  --cyan-ink: #8fe0ea;
  --good: #40c088;   --good-soft: #123528;
  --warn: #e6a445;   --warn-soft: #3a2c14;
  --bad:  #ec6060;   --bad-soft:  #3a1c1c;
  --shadow: 0 2px 12px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  --ring: rgba(139, 116, 255, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Space Grotesk', Inter, sans-serif; letter-spacing: -.025em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 6px 12px; border-radius: 999px;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--faint); }
.small { font-size: 14px; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.brand img { height: 28px; width: auto; display: block; }
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a { text-decoration: none; font-size: 15px; color: var(--muted); font-weight: 500; }
.nav__links a:hover { color: var(--ink); }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 Inter, sans-serif; text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 11px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.btn--primary { background: var(--grad); color: var(--on-brand); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 28%, transparent); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 34%, transparent); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--faint); border-color: color-mix(in srgb, var(--line) 60%, var(--muted)); }
.btn--link { padding: 0; background: none; color: var(--muted); font-weight: 500; }
.btn--lg { padding: 17px 28px; font-size: 16px; border-radius: 13px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 24px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -240px 0 auto -10%;
  height: 620px; pointer-events: none;
  background:
    radial-gradient(560px 300px at 22% 40%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(440px 280px at 78% 30%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.hero h1 { margin: 20px 0 18px; }
.hero h1 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__honest {
  margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--cyan);
  background: var(--cyan-soft); border-radius: 0 10px 10px 0; font-size: 14.5px; color: var(--cyan-ink);
}

/* ---------- scan card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.scan { padding: 26px; box-shadow: var(--shadow-lg); }
.scan h3 { margin-bottom: 4px; }
.field { margin-top: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 13px 14px; font: 15px Inter, sans-serif; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; outline: none;
}
.field input:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px var(--ring); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scan .btn { width: 100%; margin-top: 18px; }
.scan__foot { margin-top: 12px; font-size: 13px; color: var(--faint); text-align: center; }
.formnote { margin-top: 12px; font-size: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.formnote.err { display: block; background: var(--bad-soft); color: var(--bad); }
.formnote.ok { display: block; background: var(--good-soft); color: var(--good); }

/* ---------- engine strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 20px 0; }
.strip__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.engine { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot--high { background: var(--brand); }
.dot--med { background: var(--cyan); }
.dot--low { background: var(--faint); }

/* ---------- generic grid ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.tile { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tile__num {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--brand); background: var(--brand-soft); width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 9px; margin-bottom: 16px;
}
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15px; }

/* ---------- source list ---------- */
.sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.source {
  display: flex; align-items: center; gap: 11px; padding: 15px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-weight: 500;
}
.source small { display: block; font-weight: 400; font-size: 12.5px; color: var(--faint); }
.source .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--grad); flex: none; }

/* ---------- honesty ---------- */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.honest__col { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.honest__col h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.honest ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.honest li { display: flex; gap: 11px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.mark { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 2px; }
.mark--yes { background: var(--good-soft); color: var(--good); }
.mark--no { background: var(--bad-soft); color: var(--bad); }

/* ---------- receipts ---------- */
.feed { padding: 8px; }
.feed__row { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.feed__row:last-child { border-bottom: 0; }
.feed__icon { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; }
.feed__t { font-weight: 600; font-size: 15px; }
.feed__d { font-size: 14px; color: var(--faint); margin-top: 2px; }
.feed__when { margin-left: auto; font-size: 13px; color: var(--faint); white-space: nowrap; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; max-width: 860px; margin: 0 auto; }
.plan { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plan--hero { border: 0; background: var(--grad); color: var(--on-brand); box-shadow: var(--shadow-lg); position: relative; }
.plan__name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.plan__price { font-family: 'Space Grotesk', sans-serif; font-size: 52px; font-weight: 700; letter-spacing: -.03em; margin: 12px 0 2px; }
.plan__price span { font-size: 17px; font-weight: 500; letter-spacing: 0; opacity: .8; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 11px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan--hero .btn { background: var(--on-brand); color: var(--brand-ink); box-shadow: none; width: 100%; }
.plan--hero .btn:hover { background: var(--brand-soft); }
.plan .btn--ghost { width: 100%; }
.guarantee { max-width: 860px; margin: 24px auto 0; padding: 20px 24px; border: 1px dashed var(--line);
  border: 1px dashed color-mix(in srgb, var(--line) 50%, var(--faint)); border-radius: var(--radius); font-size: 15px; color: var(--muted); }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-family: 'Space Grotesk', sans-serif; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 22px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }

/* ---------- cta + footer ---------- */
.cta { background: var(--invert-bg); color: var(--invert-ink); border-radius: var(--radius-lg); padding: 56px 48px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 340px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 50%, transparent), transparent); }
.cta > * { position: relative; }
.cta p { color: var(--invert-muted); margin: 14px auto 26px; max-width: 52ch; }

.foot { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 14px; color: var(--faint); }
.foot__top { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--ink); }
.foot__legal { max-width: 74ch; line-height: 1.7; }

@media (max-width: 900px) {
  .hero__inner, .honest, .plans, .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .sources { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .section { padding: 64px 0; }
  .cta { padding: 40px 24px; }
}
