/* PreFlightSec — landing page styles
   Design tokens (light + dark via prefers-color-scheme), layout, and
   components for index.html. No external fonts or assets. */

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --fg: #0f172a;
  --fg-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #1e3a8a;
  --accent-fg: #ffffff;
  --accent-hover: #1c3576;
  --accent-soft: #eef2fb;
  --warn: #b45309;
  --danger: #9f1239;
  --ok: #15803d;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.10);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #161922;
    --surface-2: #1b1f2a;
    --fg: #e8ebf1;
    --fg-2: #c3cad6;
    --muted: #9099a8;
    --border: #262b36;
    --border-strong: #333a48;
    --accent: #60a5fa;
    --accent-fg: #0b1220;
    --accent-hover: #7cb4fb;
    --accent-soft: #17233a;
    --warn: #f2b25a;
    --danger: #fb7185;
    --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
/* Let grid/flex text children shrink instead of forcing the page wider than
   the viewport (default min-width:auto is what causes horizontal overflow). */
.hero-grid > *, .stats > *, .cmp > *, .cmp-col li, .grid3 > *, .steps > *,
.tiers > *, .scan-line, .scan-line > span { min-width: 0; }
.loc, .finding, .hero h1, .pull { overflow-wrap: anywhere; word-break: break-word; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent);
}
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.5rem; border-radius: 10px; border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.92rem; border-radius: 9px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 750; letter-spacing: -0.02em; font-size: 1.08rem; text-decoration: none; color: var(--fg); }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a.link { text-decoration: none; color: var(--fg-2); font-size: 0.95rem; font-weight: 550; }
.nav-links a.link:hover { color: var(--accent); }
@media (max-width: 720px) { .nav-links .link { display: none; } }

/* Hero */
.hero { padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 52px 0 44px; } }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.15rem); margin: 18px 0 20px; }
.hero h1 .hl { color: var(--accent); }
.hero .sub { font-size: 1.16rem; color: var(--fg-2); max-width: 40ch; }
.hero .cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero .reassure { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }

/* Hero demo card */
.scan-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.scan-card .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.scan-card .bar .tag { margin-left: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.scan-body { padding: 18px 18px 20px; }
.scan-line { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 0.95rem; }
.scan-line .ico { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.scan-pass { color: var(--ok); font-weight: 650; }
.scan-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.scan-divider span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--danger); white-space: nowrap; }
.scan-divider .rule { height: 1px; background: var(--border); flex: 1; }
.finding { color: var(--fg); }
.finding b { color: var(--fg); font-weight: 650; }
.finding .loc { color: var(--muted); font-size: 0.82rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Sections */
section { padding: 68px 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); margin: 12px 0 14px; }
.section-head p { font-size: 1.1rem; color: var(--fg-2); }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr; } }
.stat {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.stat .num { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--warn); line-height: 1; }
.stat .lbl { margin-top: 12px; color: var(--fg-2); font-size: 1rem; }
.stats-src { margin-top: 20px; font-size: 0.82rem; color: var(--muted); }

/* Differentiation */
.pull {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.35; max-width: 22ch;
}
.pull .accent { color: var(--accent); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
@media (max-width: 820px) { .cmp { grid-template-columns: 1fr; } }
.cmp-col { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: var(--shadow); }
.cmp-col .cmp-head { padding: 16px 20px; font-weight: 700; font-size: 0.98rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 9px; }
.cmp-col.scanner .cmp-head { color: var(--muted); background: var(--surface-2); }
.cmp-col.human .cmp-head { color: var(--accent); background: var(--accent-soft); }
.cmp-col ul { list-style: none; margin: 0; padding: 10px 20px 20px; }
.cmp-col li { display: flex; gap: 11px; align-items: flex-start; padding: 10px 0; font-size: 0.97rem; color: var(--fg-2); border-bottom: 1px solid var(--border); }
.cmp-col li:last-child { border-bottom: none; }
.cmp-col li .ico { flex: none; width: 19px; height: 19px; margin-top: 2px; }

/* Coverage grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } }
.cov { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px 20px 18px; box-shadow: var(--shadow); }
.cov h3 { font-size: 1.02rem; margin-bottom: 6px; display: flex; gap: 9px; align-items: center; }
.cov h3 .ico { width: 18px; height: 18px; color: var(--accent); flex: none; }
.cov p { color: var(--muted); font-size: 0.92rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 22px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); box-shadow: var(--shadow); }
.step .n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 0.95rem; }
.step h3 { font-size: 1.02rem; margin: 12px 0 6px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* Pricing */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } }
.tier { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.tier.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.tier .flag { position: absolute; top: -12px; right: 22px; background: var(--accent); color: var(--accent-fg); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.tier .name { font-size: 1.28rem; font-weight: 750; }
.tier .price { margin: 12px 0 2px; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.tier .price small { font-size: 0.98rem; font-weight: 600; color: var(--muted); }
.tier .turn { font-size: 0.9rem; color: var(--muted); }
.tier ul { list-style: none; margin: 20px 0 0; padding: 0; flex: 1; }
.tier li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 0.96rem; color: var(--fg-2); }
.tier li .ico { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.tier .btn { margin-top: 24px; width: 100%; }
.scope-note { margin-top: 22px; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--warn); border-radius: 10px; padding: 14px 18px; font-size: 0.9rem; color: var(--fg-2); }

/* Proof placeholder */
.proof {
  border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 34px 28px; text-align: center;
  background: repeating-linear-gradient(45deg, transparent, transparent 12px, color-mix(in srgb, var(--surface) 60%, transparent) 12px, color-mix(in srgb, var(--surface) 60%, transparent) 24px);
}
.proof .ph { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.proof h3 { font-size: 1.3rem; margin-bottom: 8px; }
.proof p { color: var(--muted); max-width: 54ch; margin: 0 auto; }

/* Final CTA */
.final { text-align: center; }
.final-card { background: var(--accent); color: var(--accent-fg); border-radius: 20px; padding: 52px 32px; box-shadow: var(--shadow-lg); }
.final-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); color: var(--accent-fg); }
.final-card p { color: color-mix(in srgb, var(--accent-fg) 82%, transparent); font-size: 1.12rem; margin: 14px auto 28px; max-width: 48ch; }
.final-card .btn-primary { background: var(--bg); color: var(--accent); }
.final-card .btn-primary:hover { background: var(--surface); }
.final-card .fine { margin-top: 16px; font-size: 0.86rem; color: color-mix(in srgb, var(--accent-fg) 70%, transparent); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 34px 0 44px; color: var(--muted); font-size: 0.9rem; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot .brand { font-size: 1rem; }

.ico { stroke-width: 2; }
