:root {
  --page: #ffffff;
  --paper: #f6f7f9;
  --surface: #ffffff;
  --ink: #0f1720;
  --muted: #5b6570;
  --line: #e6e8ec;
  --navy: #0b2746;
  --navy-ink: #07192e;
  --teal: #1b6f86;
  --pink: #f0177a;
  --pink-ink: #fff;
  --gold: #e8c15a;
  --gold-ink: #1a1408;
  --focus: #ffdd00;
  --green: #1f8a57;
  --purple: #6d4aff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus);
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 80;
  background: var(--focus); color: var(--ink); font-weight: 700;
  padding: 8px 12px; border-radius: 6px;
}
.skip:focus { top: 8px; }

.court-disclaimer {
  background: #fff;
  text-align: center;
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--line);
}
.court-disclaimer img {
  margin: 0 auto;
  max-width: min(520px, calc(100% - 24px));
  max-height: 28px;
  width: auto; height: auto;
}

.site-header {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 28px;
  background: #fff;
}
.brand img { height: 42px; width: auto; }
.nav {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
  flex: 1;
}
.nav > li { position: relative; }
.nav a, .nav button.menu-link {
  display: block; background: none; border: 0;
  font: inherit; font-weight: 600; font-size: 14px;
  color: var(--ink); text-decoration: none;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.nav a:hover, .nav button.menu-link:hover { color: var(--teal); }
.sub {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 220px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; box-shadow: 0 12px 32px rgba(15,23,32,.1);
}
.nav > li:hover .sub, .nav > li:focus-within .sub { display: block; }
.header-tools { margin-left: auto; display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 14px;
  text-decoration: none; border: 0; cursor: pointer;
}
.btn-pink { background: var(--pink); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1.5px solid #d5d8de;
}
.btn-link {
  background: none; border: 0; color: var(--teal);
  font-weight: 700; padding: 0; min-height: auto; border-radius: 0;
}
.menu-btn {
  display: none; min-height: 44px; min-width: 44px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer;
}

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 28px 0 8px;
}
.hero-copy { grid-column: 1; grid-row: 1; }
.hero-photo { grid-column: 2; grid-row: 1; }
.kicker {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--muted); margin: 0 0 12px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 5.2vw, 4.35rem);
  line-height: .96;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.hero h1 em {
  font-family: Fraunces, "Source Serif 4", Georgia, serif;
  font-style: italic; font-weight: 500;
  color: var(--teal);
}
.lede-strong { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 22px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-actions .btn-pink {
  min-height: 52px;
  padding: 12px 28px;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(240, 23, 122, 0.26);
}
.fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.hero-photo {
  position: relative; border-radius: 20px; overflow: hidden;
  min-height: 460px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 460px; }
.hero-caption {
  position: absolute; right: 22px; top: 28%;
  max-width: 11ch;
  color: #fff; font-weight: 700; font-size: 1.45rem; line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

.toolbelt { padding: 8px 0 28px; }
.searchbar {
  display: grid;
  grid-template-columns: 1fr auto 220px;
  gap: 8px;
  background: var(--paper);
  border-radius: 16px;
  padding: 10px;
  align-items: center;
}
.searchbar input[type="search"] {
  width: 100%; min-height: 48px; border: 0; background: transparent;
  font: inherit; padding: 0 14px; color: var(--ink);
}
.searchbar select {
  width: 100%; min-height: 48px; border: 0; background: transparent;
  font: inherit; color: var(--muted);
}
label.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.jobs {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  margin-top: 12px;
}
.job {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  background: var(--paper); border-radius: 14px;
  padding: 16px 14px 18px; text-decoration: none; color: var(--ink);
  min-height: 96px; font-weight: 700; font-size: 14px;
}
.job svg { width: 22px; height: 22px; stroke: var(--navy); fill: none; stroke-width: 1.8; }
.job:hover { background: #eef1f5; }
.note { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; }

.band { padding: 56px 0; }
.band h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.03em; margin: 0 0 10px; font-weight: 800;
}
.lead { color: var(--muted); margin: 0 0 22px; max-width: 54ch; }
.eyebrow {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--muted); margin: 0 0 8px;
}

.purpose {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center;
}
.video {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #102033;
  min-height: 240px;
}
.video-frame {
  position: relative;
  padding-top: 56.25%;
}
.video-frame iframe,
.video-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #102033;
  object-fit: cover;
}
.houses { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 700; }
.houses a { text-decoration: none; }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #f3faf6; border-radius: 20px; overflow: hidden;
}
.step { padding: 22px 18px; }
.step .n {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center;
  color: #fff; font-weight: 700; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.share {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start;
  margin-top: 28px;
}
.share blockquote {
  margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
}
.share-links { display: flex; gap: 14px; margin-top: 10px; font-size: 13px; font-weight: 700; }

.books {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start;
}
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 4px 0 4px 22px; position: relative; }
.checks li:before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.tri { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 22px; }
.tri article {
  background: var(--paper); border-radius: 14px; padding: 16px;
}
.tri strong { display: block; font-size: 15px; margin-bottom: 4px; }
.muted { color: var(--muted); font-size: 13px; }

.panda {
  display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center;
  background: #fffaf3; border-radius: 22px; padding: 22px;
}
.panda { grid-template-columns: 1fr; }
.panda-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 16px;
}
.panda-grid a { display: block; border-radius: 14px; overflow: hidden; background: #111; }
.panda-grid img { width: 100%; height: 140px; object-fit: cover; object-position: center; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pills span {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font-size: 13px;
}
.pills b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }

.tour {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center;
}
.tour img { width: 220px; height: 220px; object-fit: cover; border-radius: 16px; }

.ask {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  flex-wrap: wrap;
}

.cta-band {
  background: var(--navy-ink); color: #fff; padding: 56px 0;
}
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 8px; letter-spacing: -0.03em; }
.cta-band p { color: rgba(255,255,255,.78); }

.site-footer {
  background: var(--navy-ink); color: #d7e0ea; padding: 28px 0 36px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; }
.foot-logo {
  display: inline-block; background: #fff; border-radius: 8px; padding: 6px 8px;
}
.foot-logo img { height: 36px; width: auto; }
.copy { opacity: .75; font-size: 13px; margin-top: 24px; }

/* inner pages */
.page-hero { padding: 36px 0 8px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 10px; letter-spacing: -0.03em; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card {
  display: grid; grid-template-columns: 140px 1fr;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink);
}
.card img { width: 140px; height: 100%; object-fit: cover; min-height: 120px; }
.card .body { padding: 16px 18px; }
.card strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.card span { color: var(--muted); }
.guide { width: min(72ch, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 64px; }
.callout { background: var(--paper); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.zip-box, .wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.ziprow { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.ziprow > div { flex: 1; min-width: 160px; }
input[type="text"], input[type="number"], input[type="search"], select, textarea {
  font: inherit; color: var(--ink);
}
input[type="text"], input[type="number"] {
  width: 100%; min-height: 48px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; padding: 10px 14px;
}

@media (max-width: 980px) {
  .hero, .purpose, .share, .books, .panda, .tour { grid-template-columns: 1fr; }
  .hero { padding-top: 8px; }
  .hero-copy, .hero-photo { grid-column: auto; grid-row: auto; }
  .panda-grid { grid-template-columns: 1fr 1fr; }
  .hero-photo, .hero-photo img { min-height: 240px; max-height: 46vh; }
  .hero-caption { top: auto; bottom: 16px; right: 16px; font-size: 1.1rem; }
  .jobs { grid-template-columns: 1fr 1fr; }
  .steps, .tri { grid-template-columns: 1fr 1fr; }
  .searchbar { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card { grid-template-columns: 110px 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 12px 16px;
    z-index: 40;
  }
  .site-header { position: relative; padding: 12px 16px; }
  .nav.open { display: flex; }
  .nav.open .sub { display: block; position: static; box-shadow: none; border: 0; padding-left: 8px; }
  .shell { width: min(1180px, calc(100% - 28px)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.faq { max-width: 720px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.faq details p { margin: 0 0 14px; color: var(--muted); }
html.embed .court-disclaimer { display: none; }

.dmv-v2-open {
  display: inline-block;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(18,20,26,0.28);
  background: transparent;
  color: #12141a;
  cursor: pointer;
}

/* Prime-time: wizard task picker + embed modal chrome */
.wizard-head { margin: 0 0 14px; }
.wizard-title { margin: 0 0 6px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; }
.wizard-sub { margin: 0; color: var(--muted); max-width: 52ch; }
.job {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 88px;
  padding: 14px 14px 12px;
}
.job svg { margin-bottom: 2px; }
.job-label { font-weight: 700; color: var(--ink); }
.job-hint { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
html.embed .court-disclaimer,
html.embed .site-footer .foot-grid,
html.embed .site-footer .copy { display: none; }
html.embed .site-header .menu-btn { display: none; }
html.embed body { background: #fff; }
html.embed .site-header { position: sticky; top: 0; z-index: 20; }
@media (max-width: 700px) {
  .hero-actions .btn { min-height: 48px; }
  .job { min-height: 96px; }
  .toolbelt { overflow-x: hidden; }
}

/* Titles hub stamp — unique hero + denser job cards */
.hub-hero {
  margin: 22px 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #102033;
  max-width: 920px;
}
.hub-hero img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  display: block;
}
.cards-dense .card {
  grid-template-columns: 180px 1fr;
  min-height: 132px;
}
.cards-dense .card img {
  width: 180px;
  min-height: 132px;
}
.titles-actions { margin: 0; padding-bottom: 8px; }
@media (max-width: 980px) {
  .cards-dense .card { grid-template-columns: 120px 1fr; }
  .cards-dense .card img { width: 120px; min-height: 110px; }
  .hub-hero img { max-height: 220px; }
}
