/* real-id.dmv.org — single-purpose REAL ID site.
   One stylesheet, no framework: the whole point of this subdomain is that it
   loads instantly on a phone in a DMV parking lot. */

:root {
  --navy: #003c71;
  --navy-dark: #002855;
  --navy-tint: #eef4fa;
  --ink: #1c2024;
  --ink-soft: #4a5560;
  --line: #dde3ea;
  --bg: #f6f8fb;
  --white: #fff;
  --green: #1a7f4b;
  --green-tint: #e8f6ee;
  --amber: #9a6400;
  --amber-tint: #fdf4e3;
  --red: #b3261e;
  --red-tint: #fdeceb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  /* 17px base: the audience skews older and reads this on a phone. */
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
small { font-size: 0.82rem; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 18px; }
.wrap--narrow { max-width: 720px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { height: 26px; width: auto; display: block; }
.brand span { font-weight: 700; font-size: 0.95rem; }
.brand small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.header-link { font-size: 0.9rem; font-weight: 600; text-decoration: none; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 40px 0 44px;
}
.hero h1 { color: var(--white); font-size: 2.1rem; }
.hero p { color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; max-width: 34em; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-fact { color: var(--white); }
.hero-fact b { display: block; font-size: 1.15rem; }
.hero-fact span { color: rgba(255, 255, 255, 0.75); font-size: 0.82rem; }

/* ── Cards & sections ───────────────────────────────────── */
section { padding: 34px 0; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }

.note {
  border-left: 4px solid var(--navy);
  background: var(--navy-tint);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 18px;
}
.note--warn { border-left-color: var(--amber); background: var(--amber-tint); }
.note--ok { border-left-color: var(--green); background: var(--green-tint); }
.note--alert { border-left-color: var(--red); background: var(--red-tint); }
.note p:last-child { margin-bottom: 0; }
.note strong { display: block; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--navy-dark); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--navy-tint); }
.btn--link { background: none; border: none; color: var(--navy); text-decoration: underline; min-height: 0; padding: 4px 0; }
.btn--wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
:focus-visible { outline: 3px solid #7aa7d2; outline-offset: 2px; }

/* ── State picker ───────────────────────────────────────── */
.state-search { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.state-grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
.state-grid a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  min-height: 48px;
}
.state-grid a:hover { border-color: var(--navy); background: var(--navy-tint); }
.state-grid .fee { font-weight: 500; color: var(--ink-soft); font-size: 0.85rem; }
.state-grid li[hidden] { display: none; }

/* ── Wizard ─────────────────────────────────────────────── */
.wizard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.wizard-head { padding: 18px 22px; background: var(--navy); color: var(--white); }
.wizard-head h2 { color: var(--white); margin: 0; font-size: 1.2rem; }
.wizard-head p { margin: 4px 0 0; color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; }
.wizard-progress { padding: 14px 22px; background: #f9fbfd; border-bottom: 1px solid var(--line); }
.wizard-track { display: flex; align-items: center; gap: 6px; }
.wizard-dot { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.wizard-dot.is-done { background: var(--navy); }
.wizard-dot.is-current { background: #6f9fc8; }
.wizard-count { margin: 8px 0 0; font-size: 0.8rem; color: var(--ink-soft); }
.wizard-body { padding: 22px; }
.wizard-body > h3 { margin-top: 0; }
.wizard-hint { color: var(--ink-soft); font-size: 0.9rem; }
.wizard-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); background: #f9fbfd; }
.wizard-foot .spacer { flex: 1; }

.choices { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }
.choices--two { grid-template-columns: 1fr 1fr; }
.choices legend { padding: 0 0 10px; font-weight: 600; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  font: inherit;
  text-align: left;
  min-height: 52px;
}
.choice:hover { border-color: #9dbdd8; }
.choice input { margin: 3px 0 0; width: 20px; height: 20px; flex: none; accent-color: var(--navy); }
.choice.is-selected { border-color: var(--navy); background: var(--navy-tint); }
.choice-label { font-weight: 600; }
.choice-sub { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.88rem; }
.choice--none { border-style: dashed; }

/* ── Result / checklist ─────────────────────────────────── */
.verdict { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 10px; margin-bottom: 20px; }
.verdict--ready { background: var(--green-tint); border: 1px solid #b9e0ca; }
.verdict--gap { background: var(--amber-tint); border: 1px solid #f0d9a8; }
.verdict h3 { margin: 0 0 4px; }
.verdict p { margin: 0; }
.verdict-icon { font-size: 1.6rem; line-height: 1; }

.checklist { list-style: none; margin: 0 0 18px; padding: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.checklist li:last-child { border-bottom: 0; }
.checklist .tick { color: var(--green); font-weight: 700; flex: none; }
.checklist .cat { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.facts li { margin: 0; padding: 12px 14px; background: #f9fbfd; border: 1px solid var(--line); border-radius: 10px; }
.facts dt, .facts .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.facts dd, .facts .v { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }

.gap-list { margin: 0 0 18px; padding-left: 1.2em; }
.gap-list li { color: var(--ink); }

/* ── "While you're at it" ────────────────────────────────
   Deliberately quieter than the checklist above it: the same row rhythm so it
   reads as a continuation of the job, but no card, no colour block, and no
   button — the moment it looks like an ad, it stops being read. These are
   optional steps and the styling should admit that. */
.next-steps { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.next-steps h3 { margin: 0 0 2px; }
.next-steps .wizard-hint { margin: 0 0 12px; }
.next-list { list-style: none; margin: 0; padding: 0; }
.next-list li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.next-list li:last-child { border-bottom: 0; }
.next-link { display: block; text-decoration: none; color: inherit; }
.next-label { display: block; color: var(--blue); font-weight: 600; }
.next-link:hover .next-label { text-decoration: underline; }
.next-label::after { content: " \2192"; }
.next-why { display: block; font-size: 0.88rem; color: var(--ink-soft); margin-top: 1px; }

/* A capture offer is still a list row: same type, no button chrome, so the
   list reads as next steps rather than sprouting a form in the middle. */
.next-link--button { width: 100%; text-align: left; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.next-link--button[aria-expanded="true"] .next-label::after { content: ""; }
.next-capture { margin-top: 10px; }
.capture-form, .capture-done { background: var(--wash, #f7f9fc); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.capture-promise { margin: 0 0 10px; font-size: 0.9rem; color: var(--ink-soft); }
.capture-field { margin-bottom: 8px; }
.capture-field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 3px; }
.capture-field input { width: 100%; box-sizing: border-box; padding: 8px 10px; font: inherit; font-size: 0.95rem; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.capture-field input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.capture-form .btn { margin-top: 4px; }
/* Consent sits under the button: visible before they act, without being the
   loudest thing in the box. */
.capture-consent { margin: 10px 0 0; font-size: 0.78rem; color: var(--ink-soft); }
.capture-status { margin: 8px 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.capture-status:empty { margin: 0; }
.capture-status--error { color: #b42318; }
.capture-done .btn { margin-top: 4px; }

/* ── Decision gate ("Do you even need a REAL ID?") ──────── */
.decide { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 10px 28px rgba(16,24,40,.06); overflow: hidden; }
.decide-head { background: var(--navy); color: var(--white); padding: 22px 24px 20px; }
.decide-head .eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); background: rgba(255,255,255,0.16); border-radius: 99px; padding: 4px 10px; margin-bottom: 10px; }
.decide-head h2 { margin: 0 0 6px; color: var(--white); font-size: 1.5rem; }
.decide-sub { margin: 0; color: rgba(255,255,255,0.9); max-width: 42em; }
.decide-panel { padding: 20px 24px 24px; }
.decide-body h3 { margin: 0 0 6px; }
.decide-foot { margin-top: 4px; }
.decide .verdict:last-child { margin-bottom: 16px; }

/* Compact variant — the sidebar card and the slim banner's drop-down panel.
   Narrower columns, smaller type, and a single-line title bar. */
.decide--compact { border-radius: 10px; box-shadow: none; }
.decide--compact .decide-head { padding: 12px 16px; }
.decide--compact .decide-head h2 { font-size: 1.05rem; margin: 0; }
.decide--compact .decide-panel { padding: 14px 16px 16px; }
.decide--compact .decide-body h3 { font-size: 1rem; }
.decide--compact .wizard-hint { font-size: 0.82rem; }
.decide--compact .choice { padding: 10px 12px; }
.decide--compact .choice-label { font-size: 0.92rem; }
.decide--compact .verdict { padding: 14px; gap: 10px; }
.decide--compact .verdict h3 { font-size: 1rem; }
.decide--compact .verdict p { font-size: 0.9rem; }
.decide--compact .btn { font-size: 0.92rem; padding: 10px 16px; }
.decide--compact .btn-row { gap: 8px; }

/* ── Table (state comparison) ───────────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.94rem; background: var(--white); }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { background: #f9fbfd; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details[open] summary { margin-bottom: 8px; }
.faq p:last-child { margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--ink-soft); font-size: 0.88rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.disclaimer { margin: 0; }

/* ── Embed / iframe mode ────────────────────────────────── */
body.is-embed { background: transparent; }
body.is-embed .site-header, body.is-embed .site-footer, body.is-embed .hero, body.is-embed .no-embed { display: none; }
body.is-embed .wizard { border-radius: 8px; box-shadow: none; }
body.is-embed section { padding: 0; }
body.is-embed .wrap { padding: 0; max-width: none; }

/* ── Print: the checklist is meant to be carried to the DMV ── */
@media print {
  body { background: var(--white); font-size: 12pt; }
  .site-header, .site-footer, .hero, .wizard-progress, .wizard-foot, .no-print, .btn-row { display: none !important; }
  .card, .wizard { border: 0; box-shadow: none; padding: 0; }
  .wizard-head { background: none; color: var(--ink); padding: 0 0 8pt; border-bottom: 2pt solid var(--ink); }
  .wizard-head h2, .wizard-head p { color: var(--ink); }
  .checklist li { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

@media (max-width: 560px) {
  h1, .hero h1 { font-size: 1.6rem; }
  .brand small { display: none; }
  .header-link { white-space: nowrap; font-size: 0.82rem; }
  .choices--two { grid-template-columns: 1fr; }
  .wizard-body, .wizard-head, .wizard-progress, .wizard-foot, .card { padding-left: 16px; padding-right: 16px; }
}
