/* Data Rescue Squad — main.css
   Palette + type are canonical here; every page derives from these tokens.
   Rescue orange is reserved for deadlines and primary CTAs — nowhere else. */

:root {
  --ink: #13253C;        /* body text on light */
  --slate: #49596D;      /* secondary text */
  --paper: #F5F7FA;      /* page base (cool, not cream) */
  --card: #FFFFFF;
  --line: #D9E0E8;
  --navy: #10233D;       /* structural bands: header, hero, footer */
  --navy-deep: #0A1626;
  --navy-band-text: #E8EEF5;
  --navy-band-muted: #9FB0C4;
  --orange: #E85D26;     /* deadlines + primary CTA only */
  --orange-deep: #B8430F;   /* AA-safe: 5.5 on white, 5.0 on the deadline strip */
  --ok: #1D7A46;         /* validation check marks only */
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 6px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: underline; text-decoration-color: rgba(19,37,60,.35); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1.1rem;
  border-radius: 0 0 var(--radius) 0; text-decoration: none; font-weight: 650;
}
.skip-link:focus { left: 0; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 750; }
h3 { font-size: 1.17rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--slate); max-width: 46rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- eyebrow: the mono voice for anything that is data ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-bottom: .9rem;
}
.band-dark .eyebrow { color: var(--navy-band-muted); }
.eyebrow--alert { color: var(--orange-deep); }
.band-dark .eyebrow--alert { color: var(--orange); }  /* --orange passes AA on navy; --orange-deep does not */

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--navy-band-text); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { font-weight: 800; letter-spacing: -.01em; text-decoration: none; font-size: 1.06rem; white-space: nowrap; display: flex; align-items: baseline; gap: .55rem; }
.brand .brand-mark { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--orange); }
.site-nav { display: flex; gap: 1.15rem; align-items: center; margin-left: auto; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-size: .95rem; color: var(--navy-band-muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav .btn { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 650;
  text-decoration: none;
  border-radius: var(--radius);
  padding: .7rem 1.25rem;
  border: 1.5px solid transparent;
  font-size: 1rem;
  transition: background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--orange-deep); color: #fff; }  /* resting must pass AA */
.btn-primary:hover { background: #9C380C; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--slate); }
.band-dark .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.band-dark .btn-ghost:hover { border-color: #fff; }
.btn-small { padding: .45rem .9rem; font-size: .92rem; }

/* ---------- bands & sections ---------- */
.band-dark { background: var(--navy); color: var(--navy-band-text); }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lede { color: var(--navy-band-muted); }
.band-dark a { text-decoration-color: rgba(255,255,255,.4); }
section { padding: 4.2rem 0; }
section.tight { padding: 2.6rem 0; }
.hero { padding: 4.6rem 0 4.8rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: center; }
.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-note { font-size: .9rem; color: var(--navy-band-muted); margin-top: 1rem; }

/* ---------- the signature: manifest block ---------- */
.manifest {
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  font-family: var(--mono);
  font-size: .84rem;
  line-height: 2.05;
  color: var(--navy-band-text);
  box-shadow: 0 18px 40px rgba(4, 10, 20, .35);
}
.manifest-title {
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--navy-band-muted); margin-bottom: .6rem;
  display: flex; justify-content: space-between; gap: 1rem;
}
.manifest-row { display: flex; align-items: baseline; gap: .6rem; white-space: nowrap; }
.manifest-row .m-label { flex-shrink: 0; }
.manifest-row .m-dots { flex: 1; border-bottom: 1px dotted rgba(255,255,255,.25); transform: translateY(-4px); min-width: 12px; }
.manifest-row .m-val { flex-shrink: 0; }
.manifest-row .m-ok { color: #4CC47E; }
.manifest-row.m-exception .m-val { color: var(--orange); }
.manifest.manifest-light {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); box-shadow: none;
}
.manifest-light .manifest-title { color: var(--slate); }
.manifest-light .manifest-row .m-dots { border-bottom-color: var(--line); }
.manifest-light .manifest-row .m-ok { color: var(--ok); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem;
}
.card h3 { margin-top: .1rem; }
.card p { color: var(--slate); font-size: .98rem; margin-bottom: .4rem; }
.card .card-link { font-size: .95rem; font-weight: 650; }
.card-accent { border-top: 3px solid var(--orange); }

/* ---------- deadline strip (kit pages) ---------- */
.deadline-strip {
  background: #FFF3EC;
  border: 1px solid #F3C9B2;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  font-family: var(--mono);
  font-size: .92rem;
  display: flex; flex-wrap: wrap; gap: .4rem 2rem; align-items: baseline;
}
.deadline-strip strong { color: var(--orange-deep); font-weight: 700; }
.deadline-strip .countdown { font-weight: 700; color: var(--orange-deep); }

/* ---------- process steps (true sequence — numbering earned) ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.2rem;
  padding: 1.35rem 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: "0" counter(step);
  font-family: var(--mono); font-size: 1.05rem; font-weight: 600;
  color: var(--orange-deep); padding-top: .15rem;
}
.step h3 { margin-bottom: .25rem; }
.step p { color: var(--slate); margin-bottom: .3rem; }
.step .artifact { font-family: var(--mono); font-size: .8rem; color: var(--slate); }
.step .artifact::before { content: "→ you receive: "; color: var(--ok); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
td.num, th.num { font-family: var(--mono); font-size: .88rem; text-align: right; white-space: nowrap; }
.price { font-family: var(--mono); font-weight: 600; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: .2rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; padding: .9rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--slate); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--slate); margin: 0 0 1rem; max-width: 44rem; }

/* ---------- forms ---------- */
form.intake { display: grid; gap: 1rem; max-width: 34rem; }
label { font-weight: 650; font-size: .95rem; display: grid; gap: .35rem; }
input, select, textarea {
  font: inherit; padding: .6rem .75rem; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--card); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(232,93,38,.35); outline-offset: 0; border-color: var(--orange); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: .88rem; color: var(--slate); }

.rush-label {
  border: 1.5px solid #F3C9B2; background: #FFF3EC;
  border-radius: var(--radius); padding: .65rem .85rem;
}

/* ---------- misc ---------- */
.notice {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--slate);
  border-radius: var(--radius); padding: .9rem 1.2rem; font-size: .95rem; color: var(--slate);
}
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { padding: .35rem 0 .35rem 1.7rem; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.center { text-align: center; }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.cta-band { text-align: center; padding: 4.4rem 0; }
.cta-band .btn-primary { margin-top: 1.2rem; }
.smallprint { font-size: .84rem; color: var(--slate); }
.band-dark .smallprint { color: var(--navy-band-muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--navy-band-muted); padding: 3rem 0 2.4rem; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { color: #fff; font-size: .8rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .7rem; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; color: var(--navy-band-muted); }
.site-footer a:hover { color: #fff; }
.footer-brand p { max-width: 26rem; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.3rem; margin-top: .6rem; font-size: .82rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .hero .wrap > div { min-width: 0; }
  .manifest { overflow-x: auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  section { padding: 3rem 0; }
  .contact-grid .form-col { order: -1; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .site-header .wrap { gap: .75rem; }
  .site-nav { gap: .9rem; margin-left: 0; }
  .step { grid-template-columns: 2.4rem 1fr; gap: .8rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* ---------- verified-fact badge (GEO: make sourcing visible) ---------- */
.verified {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
  color: var(--ok); border: 1px solid #BFE3CD; background: #F0F9F3;
  border-radius: 4px; padding: .1rem .45rem; white-space: nowrap;
}

/* ---------- print ---------- */
.print-note { display: none; }
@media print {
  .site-header, .site-footer, .cta-band, .hero-ctas, .btn, .skip-link,
  .site-nav, .notice a.btn, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band-dark, section { background: #fff !important; color: #000 !important; padding: .8rem 0; }
  .band-dark h1, .band-dark h2, .band-dark h3, .band-dark .lede { color: #000 !important; }
  .manifest, .manifest.manifest-light { background: #fff; color: #000; border: 1px solid #888; box-shadow: none; }
  .manifest-row .m-dots { border-bottom-color: #888; }
  a { color: #000; text-decoration: none; }
  th, td { border-bottom: 1px solid #888; }
  .print-note {
    display: block; position: fixed; top: 0; right: 0;
    font: 700 9pt var(--mono); letter-spacing: .08em; color: #000;
    border: 1.5px solid #000; padding: 2pt 6pt;
  }
}
