/* LDTT Phase B mock — mobile-first (~390px primary). $0 box-only. */
:root {
  --navy: #0B1F3A;
  --navy-mid: #1B4F8A;
  --ink: #122033;
  --muted: #5A6B80;
  --line: #D5DEE9;
  --bg: #F7F9FC;
  --card: #FFFFFF;
  --accent: #1B4F8A;
  --cta: #0E6B4E;
  --cta-hover: #0A5540;
  --warn: #8A4B00;
  --warn-bg: #FFF6E8;
  --hold: #9B1C1C;
  --hold-bg: #FDECEC;
  --chip-bg: #E8F0FA;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(11, 31, 58, 0.08);
  --header-h: 64px;
  --max: 720px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--navy-mid);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
}
.brand img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
  border-radius: 4px;
}
.brand-text { font-size: 0.95rem; letter-spacing: 0.02em; }

.header-cta {
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle {
  position: relative;
}
.nav-toggle > summary {
  list-style: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0 0.75rem;
}
.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.nav-panel a {
  display: block;
  padding: 0.75rem 0.85rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 500;
}
.nav-panel a:hover, .nav-panel a[aria-current="page"] {
  background: var(--chip-bg);
  color: var(--navy);
}

/* Buttons / CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--cta);
  color: #fff;
}
.btn-primary:hover { background: var(--cta-hover); color: #fff; }
.btn-secondary {
  background: var(--card);
  color: var(--navy);
  border: 2px solid var(--navy-mid);
}
.btn-secondary:hover { background: var(--chip-bg); }
.btn-sm { min-height: 40px; padding: 0.45rem 0.85rem; font-size: 0.85rem; }

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.cta-block.center { align-items: center; text-align: center; }
.honesty-chip {
  white-space: nowrap;
  font-size: 0.75rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--chip-bg);
  border: 1px solid #C5D6EC;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  line-height: 1.3;
}

/* Layout */
main { max-width: var(--max); margin: 0 auto; padding: 0 1rem 3rem; }
.section { margin: 1.75rem 0; }
.section-title {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
.lede { color: var(--muted); margin: 0 0 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 0.75rem; }
.grid-3 { display: grid; gap: 0.75rem; }
.bullets { margin: 0; padding-left: 1.2rem; }
.bullets li { margin: 0.4rem 0; }

/* Hero */
.hero {
  position: relative;
  margin: 0 0 1.5rem; /* r2: hero sits outside main; no negative bleed, so hero-body 1rem side padding stays on-screen */
  background: var(--navy);
  color: #E8EEF7;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.85;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,31,58,0.25) 0%, rgba(11,31,58,0.75) 55%, rgba(11,31,58,0.92) 100%);
}
.hero-body {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1rem calc(1.25rem + 72px);
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 800;
}
.hero .sub {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #C9D6E8;
}
.hero .cta-block { margin-top: 0.25rem; }
.hero .honesty-chip {
  white-space: nowrap;
  font-size: 0.75rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(232, 240, 250, 0.95);
  color: var(--navy);
}

/* Observe strip */
.observe-strip {
  display: grid;
  gap: 1rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.stamp-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.stamp-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--navy);
  background: #fff;
  box-shadow: var(--shadow);
}
.stamp-badge.large {
  width: 120px;
  height: 120px;
}
.stamp-caption {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
.hold-note {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hold);
  background: var(--hold-bg);
  border: 1px solid #F0B4B4;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  margin: 0;
  max-width: 280px;
}

/* Callouts */
.callout {
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  margin: 1rem 0;
}
.callout-honesty {
  background: var(--chip-bg);
  border-color: #C5D6EC;
}
.callout-hold {
  background: var(--hold-bg);
  border-color: #F0B4B4;
}
.callout-warn {
  background: var(--warn-bg);
  border-color: #F0D9A8;
}
.callout h2, .callout h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--navy);
}
.callout p { margin: 0.35rem 0; }

/* Step cards */
.steps { counter-reset: step; display: grid; gap: 0.75rem; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 3.25rem;
  position: relative;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Checklist */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  min-height: 44px;
}
.checklist input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Trust lists */
.is-not { color: var(--hold); }
.do-not li { margin: 0.35rem 0; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #C9D6E8;
  padding: 1.75rem 1rem 2.5rem;
  margin-top: 2rem;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.footer-brand img {
  height: 28px;
  width: auto;
  border-radius: 3px;
  object-fit: contain;
}
.footer-disclaimer {
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}
.footer-disclaimer a { color: #9EC5F0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.footer-links a { color: #9EC5F0; }
.footer-meta { font-size: 0.75rem; color: #8FA3BF; margin: 0; }
.hook-blog {
  font-size: 0.75rem;
  color: #6F849C;
  margin: 0.75rem 0 0;
  font-style: italic;
}

/* Page hero (non-home) */
.page-hero {
  padding: 1.25rem 0 0.5rem;
}
.page-hero h1 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  color: var(--navy);
  line-height: 1.2;
}
.badge-lockup {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy-mid);
  background: var(--chip-bg);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.5rem;
}

.link-out {
  word-break: break-word;
}

/* Desktop enhancement */
@media (min-width: 768px) {
  .header-inner { padding: 0.65rem 1.25rem; }
  .brand img { height: 40px; width: auto; }
  .nav-toggle > summary { display: none; }
  .nav-toggle { position: static; margin-left: 0.5rem; }
  .nav-toggle[open] .nav-panel,
  .nav-toggle .nav-panel {
    display: flex !important;
    position: static;
    flex-direction: row;
    border: none;
    box-shadow: none;
    min-width: 0;
    padding: 0;
    gap: 0.15rem;
    background: transparent;
  }
  /* Keep details open on desktop via always-visible panel */
  .nav-toggle { display: contents; }
  .desktop-nav {
    display: flex;
    gap: 0.15rem;
    margin-left: 0.5rem;
    flex: 1;
  }
  .desktop-nav a {
    padding: 0.5rem 0.65rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .desktop-nav a:hover, .desktop-nav a[aria-current="page"] {
    background: var(--chip-bg);
    color: var(--navy);
  }
  .mobile-nav-only { display: none; }
  .hero { min-height: 480px; margin: 0 0 1.75rem; border-radius: 0 0 var(--radius) var(--radius); }
  .hero h1 { font-size: 1.85rem; }
  .observe-strip {
    grid-template-columns: 140px 1fr;
    padding: 1.35rem;
  }
  .stamp-badge.large { width: 140px; height: 140px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .desktop-nav { display: none; }
}

/* Jobs strip (S1–S3) */
.jobs-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
.jobs-strip figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.jobs-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.jobs-strip figcaption {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
@media (min-width: 600px) {
  .jobs-strip { grid-template-columns: repeat(3, 1fr); }
}

.honesty-chip-header {
  font-size: 0.62rem;
  padding: 0.15rem 0.4rem;
  max-width: 11.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.2;
}
.header-cta .cta-block {
  align-items: flex-end;
}
@media (max-width: 380px) {
  .honesty-chip-header { display: none; } /* footer + body CTAs still carry chip; avoids crush */
}

.header-cta .honesty-chip {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.7rem;
  line-height: 1.2;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-brand img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.logo-thumb {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 4px;
}
