/* aird3fense.com. The Flight Deck palette, the same values the product ships
   in aird3fense/src/index.css, so the site and the app read as one thing.
   --text-faint is lifted from the app's #565f70 (3.1:1) to 5.3:1, because
   here it carries small labels a visitor has to read. */
/* Self-hosted, Latin subset, both variable fonts under the SIL Open Font
   License (fonts/OFL-*.txt). No request leaves for a third party. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}
:root {
  --ground: #000000;
  --surface: #0b0f17;
  --surface-raised: #0f141e;
  --line: #1a2130;
  --line-strong: #273043;
  --text: #e9edf4;
  --text-muted: #8a8f98;
  --text-faint: #7a8394;
  --red: #e31b23;
  --red-hover: #c8141b;
  --red2: #ff4136;
  --blue: #1e5bff;
  --blue2: #5c86ff;
  --tele: #39d2e8;
  --ok: #2fbf71;
  --warn: #e0a63b;
  --white: #f4f6f9;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "Consolas", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 560px at 85% -8%, rgba(30, 91, 255, 0.14), transparent 60%),
    radial-gradient(800px 480px at -5% 105%, rgba(227, 27, 35, 0.08), transparent 55%);
}
main, header, footer { position: relative; z-index: 1; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  background: var(--white); color: var(--ground); padding: 8px 14px; border-radius: 4px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--tele); outline-offset: 3px; }

/* ── Type ─────────────────────────────────────────────────────────── */
.label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tele);
  margin: 0;
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 60px); font-weight: 800; margin-top: 18px; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; margin-top: 14px; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-muted); max-width: 60ch; margin-top: 18px; text-wrap: pretty; }
.muted { color: var(--text-muted); }

/* ── Wordmark ─────────────────────────────────────────────────────── */
/* Every mark here is a file from the logo kit, brand/ at the repository
   root, copied in by its build. Edit the kit, not these. */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { display: block; width: 64px; height: auto; }
.brand .rule { width: 1px; height: 22px; background: var(--line-strong); }
.wm-img { display: block; height: 14px; width: auto; }
.brand-foot { gap: 0; }
.foot-lockup { display: block; height: 42px; width: auto; max-width: 100%; }
.hero-mark { display: block; width: min(440px, 100%); height: auto; margin: 0 0 20px -8px; }
@media (max-width: 520px) {
  .brand .mark, .brand .rule { display: none; }
  .foot-lockup { height: auto; width: 260px; }
}

/* ── Header ───────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(4, 6, 10, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { text-decoration: none; font-size: 14px; color: var(--text-muted); }
.bar nav a:hover { color: var(--text); }
.bar .brand + .btn { margin-left: auto; }
@media (max-width: 900px) { .bar nav { display: none; } .bar .btn { margin-left: auto; } }

/* One call to action, in the brand red, everywhere. White on #e31b23 is
   4.8:1; the hover goes darker (5.9:1), never lighter. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 4px;
  font: 600 14px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn.cta { background: var(--red); color: #fff; }
.btn.cta:hover { background: var(--red-hover); }
.btn.ghost { border-color: var(--line-strong); color: var(--text); }
.btn.ghost:hover { border-color: var(--blue2); }
.bar .btn { height: 38px; padding: 0 16px; }

/* ── Sections ─────────────────────────────────────────────────────── */
section { padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }

/* ── Hero ─────────────────────────────────────────────────────────── */
section.hero { border-top: 0; padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(36px, 4.6vw, 54px); }
.hero h1 .accent { display: block; color: #1e5bff; }
.hero .lede { margin-top: 22px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.console {
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(92, 134, 255, 0.06);
  overflow: hidden;
}
.console-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--text-faint);
}
.console-body { padding: 22px 18px 18px; }
.clock-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--text-muted); }
.clock {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px); letter-spacing: 0.02em; margin: 6px 0 4px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.clock .t { color: var(--red2); }
.clock .unit { font-size: 0.42em; color: var(--text-faint); letter-spacing: 0.14em; margin: 0 12px 0 4px; }
.target { font-size: 13px; color: var(--text-muted); }

.progress { height: 6px; border-radius: 1px; background: var(--line-strong); margin: 22px 0 0; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--blue2); box-shadow: 0 0 12px rgba(92, 134, 255, 0.6); width: 43%; }  /* 9 of 21 milestones */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.tile { border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; background: rgba(4, 6, 10, 0.4); }
.tile .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--text-faint); }
.tile .v { font-family: var(--mono); font-size: 22px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .v .of { font-size: 14px; color: var(--text-muted); }
.tile .s { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .tele { color: var(--tele); }

/* Proof strip: true facts about the product, not customer claims. */
.proof {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: clamp(48px, 6vw, 72px) 0 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.proof div { padding: 22px 20px 22px 0; }
.proof div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.proof dt { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.proof dd { margin: 4px 0 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 860px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof div:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .proof { grid-template-columns: 1fr; }
  .proof div, .proof div + div { padding: 18px 0; border-left: 0; }
  .proof div + div { border-top: 1px solid var(--line); }
}

/* ── How it works ─────────────────────────────────────────────────── */
.beats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.beats li { background: var(--surface); padding: 26px 24px 28px; }
.beats .n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--blue2); }
.beats h3 { font-size: 22px; margin-top: 16px; }
.beats p { margin-top: 10px; color: var(--text-muted); font-size: 15px; }
.beatline {
  margin: 20px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-faint);
}
.beatline b { font-weight: 500; color: var(--warn); }
@media (max-width: 900px) { .beats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .beats { grid-template-columns: 1fr; } }

/* ── Assessment loop ──────────────────────────────────────────────── */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: 6px; padding: 26px 24px; background: var(--surface); display: flex; flex-direction: column; }
.step .who { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--text-faint); }
.step h3 { margin-top: 14px; font-size: 20px; }
.step p { margin-top: 12px; color: var(--text-muted); font-size: 15px; flex: 1; }
.step .out { font-family: var(--mono); font-size: 13px; color: var(--blue2); margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.step.human { border-color: rgba(47, 191, 113, 0.45); }
.step.human .out { color: var(--ok); }
@media (max-width: 860px) { .loop { grid-template-columns: 1fr; } }

.note { margin-top: 20px; font-size: 14px; color: var(--text-muted); max-width: 72ch; }

/* ── Deliverables ─────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 6px; padding: 24px; background: var(--surface); }
.card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--tele); }
.card h3 { margin-top: 10px; }
.card p { margin-top: 10px; color: var(--text-muted); font-size: 14.5px; }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.sprs { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; margin-top: 16px; }
.sprs > .card:first-child { display: flex; flex-direction: column; justify-content: center; }
.scale { margin-top: 34px; }
/* The mark sits at 81 on a scale from -203 to 110. */
.scale .track { position: relative; height: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--red) 0%, var(--warn) 62%, var(--ok) 100%); }
.scale .mark { left: 90.7%; position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--white); border-radius: 1px; }
.scale .mark b {
  position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--white);
}
.scale .ends { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-top: 8px; }
.worksheet { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.worksheet td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.worksheet td:last-child { text-align: right; color: var(--red2); font-variant-numeric: tabular-nums; }
.worksheet tr.total td { border-bottom: 0; color: var(--text); padding-top: 14px; }
.worksheet tr.total td:last-child { color: var(--text); font-size: 18px; }
@media (max-width: 860px) { .sprs { grid-template-columns: 1fr; } }

/* ── Providers ────────────────────────────────────────────────────── */

/* The provider note: one row, secondary to the contractor story. */
section.band { padding: clamp(40px, 5vw, 56px) 0; }
.band-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px 48px; align-items: end; }
.band-row h2 { font-size: clamp(24px, 2.6vw, 30px); }
.band-row p.muted { font-size: 16px; max-width: 52ch; }
@media (max-width: 760px) { .band-row { grid-template-columns: 1fr; } }

/* ── Principles ───────────────────────────────────────────────────── */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.principles div { background: var(--surface); padding: 26px 22px; }
.principles h3 { font-size: 16px; }
.principles p { margin-top: 10px; color: var(--text-muted); font-size: 14px; }
@media (max-width: 960px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ── Close ────────────────────────────────────────────────────────── */
.close { text-align: center; padding: clamp(72px, 10vw, 120px) 0; }
.close h2 { font-size: clamp(34px, 5vw, 56px); margin-top: 16px; }
.close .lede { margin: 20px auto 0; }
.close .ctas { justify-content: center; }
.close .or { margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.close .or a { color: var(--text); }

/* ── Footer ───────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-faint); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--text-muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ── Legal pages ──────────────────────────────────────────────────── */
.doc { max-width: 720px; padding: clamp(48px, 7vw, 88px) var(--gutter); margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); margin-top: 12px; }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc p, .doc li { color: var(--text-muted); margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--blue2); }
