/* ============================================================
   SMJSS — Design Tokens
   Palette: Navy / Gold / White / Grey (per founder specification)
   Display: Spectral (serif, editorial/legal register)
   Body: Public Sans (clean, government-report readability)
   Data/Reference: IBM Plex Mono (case IDs, numbers)
   ============================================================ */

:root {
  --navy-deep: #081627;
  --navy: #0F2647;
  --navy-light: #1E3A5F;
  --gold: #A9812E;
  --gold-light: #C9A227;
  --gold-pale: #E8DCC0;
  --white: #FFFFFF;
  --paper: #F8F7F4;
  --grey-900: #16202E;
  --grey-600: #5B6472;
  --grey-400: #8B93A0;
  --grey-200: #E4E2DD;
  --grey-100: #F1EFEA;
  --red: #8C3A3A;

  --font-display: 'Spectral', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1120px;
  --radius: 3px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--navy);
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--grey-600); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 12px;
}

/* Focus visibility (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   Letterhead rule — signature structural device.
   A thin gold double-rule, used at the top of the page and to
   separate major sections, echoing an official letterhead /
   certified-document border rather than a decorative divider.
   ============================================================ */
.letterhead-rule {
  height: 5px;
  background: var(--gold-light);
  position: relative;
}
.letterhead-rule::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--navy);
  opacity: 0.15;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 40px;
  width: auto;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.15;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 14.5px;
  color: var(--grey-900);
  font-weight: 500;
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--gold); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--navy);
  border: 1px solid var(--grey-200);
  padding: 8px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.header-phone svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 860px) {
  .main-nav { 
    position: fixed;
    top: 69px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--grey-200);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .main-nav.open { max-height: 400px; }
  .main-nav a {
    padding: 16px 24px;
    width: 100%;
    border-top: 1px solid var(--grey-100);
  }
  .header-phone { display: none; }
  .nav-toggle { display: block; }
}

/* ============================================================
   Disclaimer strip — transparency up front
   ============================================================ */
.disclaimer-strip {
  background: var(--navy-deep);
  color: var(--grey-200);
  font-size: 13px;
  text-align: center;
  padding: 9px 20px;
  letter-spacing: 0.01em;
}
.disclaimer-strip strong { color: var(--gold-light); font-weight: 600; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--paper);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-lede {
  font-size: 18px;
  color: var(--grey-600);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-note {
  font-size: 13.5px;
  color: var(--grey-600);
  border-left: 2px solid var(--gold-light);
  padding-left: 12px;
  max-width: 42ch;
}

.hero-seal {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-seal img {
  width: 100%;
  max-width: 260px;
  filter: drop-shadow(0 12px 24px rgba(15,38,71,0.14));
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .hero-seal { order: -1; }
  .hero-seal img { max-width: 140px; }
  .hero { padding: 40px 0 44px; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-light); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ============================================================
   Section scaffolding
   ============================================================ */
section { padding: 76px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.section-head p { font-size: 16.5px; }

.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy-deep); color: var(--grey-200); }
.bg-navy h2, .bg-navy h3, .bg-navy .eyebrow { color: var(--white); }
.bg-navy p { color: #B9C3D2; }

/* ============================================================
   Who it's for / not for — comparison
   ============================================================ */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.audience-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px;
}
.audience-card.is-for { border-top: 3px solid var(--gold); }
.audience-card.is-not { border-top: 3px solid var(--grey-400); }
.audience-card h3 { font-size: 17px; margin-bottom: 14px; }
.audience-card ul { margin: 0; padding-left: 20px; color: var(--grey-600); }
.audience-card li { margin-bottom: 8px; font-size: 15px; }

@media (max-width: 700px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   How it works — numbered ledger
   Numbers here are literal: this IS a sequence with dependency
   order (case ID → payment → document review → decision).
   ============================================================ */
.ledger {
  counter-reset: step;
  border-top: 1px solid var(--grey-200);
}
.ledger-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--grey-200);
  align-items: start;
}
.ledger-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--gold);
  font-weight: 500;
  line-height: 1;
}
.ledger-step h4 {
  font-size: 17px;
  margin-bottom: 6px;
}
.ledger-step p { margin: 0; font-size: 15px; }
.ledger-step .track-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.tag-free { background: var(--grey-100); color: var(--grey-600); }
.tag-paid { background: var(--gold-pale); color: #6B5320; }

@media (max-width: 600px) {
  .ledger-step { grid-template-columns: 50px 1fr; gap: 14px; }
  .ledger-step::before { font-size: 20px; }
}

/* ============================================================
   Two-track CTA cards (Share / Paid Assessment)
   ============================================================ */
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.track-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.track-card-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--grey-200);
}
.track-card-head.navy { background: var(--navy); }
.track-card-head.navy h3, .track-card-head.navy .track-price { color: var(--white); }
.track-card-head.navy p { color: #C9D3E0; }
.track-card-head.paper { background: var(--paper); }
.track-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: block;
}
.track-card-head.paper .track-price { color: var(--gold); }
.track-card-head h3 { font-size: 20px; margin-bottom: 4px; }
.track-card-head p { margin: 0; font-size: 14px; }
.track-card-head.paper p { color: var(--grey-600); }
.track-card-body { padding: 28px; }

@media (max-width: 860px) {
  .track-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Forms
   ============================================================ */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.field .optional-tag {
  font-weight: 400;
  color: var(--grey-400);
  font-size: 12.5px;
  text-transform: none;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--grey-900);
  background: var(--white);
  transition: border-color var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-hint {
  font-size: 12.5px;
  color: var(--grey-400);
  margin-top: 5px;
}
.field-error {
  font-size: 12.5px;
  color: var(--red);
  margin-top: 5px;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red);
}
.field.has-error .field-error { display: block; }

.char-counter {
  display: flex;
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey-400);
  margin-top: 5px;
}
.char-counter.is-near-limit { color: var(--gold); }
.char-counter.is-at-limit { color: var(--red); }

.honeypot { position: absolute; left: -9999px; top: -9999px; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}
.form-status.show { display: block; }
.form-status.success {
  background: #F0F4EE;
  border: 1px solid #C4D4BC;
  color: #3D5C34;
}
.form-status.error {
  background: #F7EFEF;
  border: 1px solid #E0BEBE;
  color: var(--red);
}
.form-status .ref-id {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
  margin: 6px 0;
}

/* ============================================================
   Founder note
   ============================================================ */
.founder-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.founder-mark {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 24px;
  background: rgba(255,255,255,0.03);
}
.founder-mark img { width: 100%; opacity: 0.92; }
.founder-block blockquote {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.55;
  color: var(--white);
  margin: 0 0 18px;
  font-style: normal;
  font-weight: 400;
}
.founder-block cite {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 780px) {
  .founder-block { grid-template-columns: 1fr; }
  .founder-mark { max-width: 140px; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: var(--grey-400);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.footer-brand img { height: 34px; }
.footer-brand-text { font-family: var(--font-display); color: var(--white); font-size: 17px; }
.footer-tagline { font-size: 14px; max-width: 34ch; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--grey-400);
  font-size: 14.5px;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--grey-400);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   Simple legal page layout (privacy / terms / disclaimer)
   ============================================================ */
.legal-page { padding: 56px 0 80px; }
.legal-page .container { max-width: 760px; }
.legal-page h1 { font-size: 30px; margin-bottom: 8px; }
.legal-updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--grey-400); margin-bottom: 40px; }
.legal-page h2 { font-size: 19px; margin-top: 36px; margin-bottom: 12px; }
.legal-page p, .legal-page li { color: var(--grey-600); font-size: 15.5px; }
.legal-page ul { padding-left: 20px; }

/* Utility */
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
