/* Driver License & ID Scanner — landing page.
   Layout: Pure.css grids (css/grids-min.css + css/grids-responsive-min.css).
   Breakpoints follow Pure: md = 48em (768px), lg = 64em (1024px). */

:root {
  --ink: #16181D;
  --muted: #4F535C;
  --line: #CDD1D7;
  --line-tint: #C9CEDA;
  --gray: #EEF0F2;
  --tint: #E6E9F1;
  --accent: #475889;
  --white: #FFFFFF;
  --frame-edge: #A9A59D;
  --font-display: "Red Hat Display", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-standfirst: "Red Hat Text", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(24px, 4vw, 48px);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
/* Pure grids reset letter-spacing on .pure-g; restore the font on units */
.pure-g [class*="pure-u"] { font-family: var(--font-body); }

h1, h2, h3, p, figure, figcaption, ol, ul { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
img { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }

/* Gutters for Pure grid units */
.gutters { margin: 0 -16px; }
.gutters > [class*="pure-u"] { box-sizing: border-box; padding: 0 16px; }
.gutters-lg { margin: 0 -24px; }
.gutters-lg > [class*="pure-u"] { box-sizing: border-box; padding: 0 24px; }

/* ---------- Bands ---------- */
.band { padding: clamp(88px, 11vw, 136px) 0; }
.band--hero { padding: 0 0 clamp(56px, 6vw, 88px); background: linear-gradient(180deg, #FFFFFF 0%, #E9ECF2 100%); }
.band--white { background: var(--white); }
.band--tint { background: var(--tint); padding: clamp(80px, 10vw, 128px) 0; }
.band--accent { background: var(--accent); color: var(--white); padding: clamp(80px, 10vw, 128px) 0; }
.band--faq { padding: clamp(96px, 12vw, 152px) 0 clamp(88px, 11vw, 136px); }
.band--closing { background: var(--gray); padding: clamp(48px, 6vw, 80px) 0; }

.h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.lead { font-size: 17px; line-height: 1.65; color: var(--muted); }

/* ---------- Header ---------- */
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.brand img { display: block; width: 32px; height: 32px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { color: var(--ink); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero h1 { font-size: clamp(38px, 4.8vw, 62px); line-height: 1.04; letter-spacing: -0.015em; max-width: 17ch; }
.standfirst { margin-top: 18px; font-family: var(--font-standfirst); font-weight: 400; font-size: clamp(19px, 1.6vw, 21px); line-height: 1.4; }
.hero-intro { font-size: 17px; line-height: 1.6; color: var(--muted); }
.hero .pure-g { align-items: flex-end; }
.cta-row { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta-row p { font-size: 15px; color: var(--muted); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border-radius: 6px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-body); font-size: 15px; font-weight: 700; text-decoration: none;
}
.button:hover { color: var(--white); background: #3B4A75; }
.store-badge { display: inline-flex; border-radius: 8px; line-height: 0; }
.store-badge img { display: block; width: 162px; height: 48px; }
.store-badge:hover img { opacity: 0.85; }
.store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Device mockup ---------- */
.device {
  position: relative; padding: 3.4%;
  box-sizing: border-box; width: 100%;
  max-width: 334px; margin-left: auto; margin-right: auto; /* keeps every mockup at or under 700px tall */
  background: #0C0C0D; border-radius: 17.5% / 8.4%;
  box-shadow: 0 0 0 2px var(--frame-edge), inset 0 0 0 1px #3A3A3C;
}
.device__screen { position: relative; }
.device__screen img { display: block; width: 100%; height: auto; border-radius: 15.4% / 7.1%; }
.device::after {
  content: ""; position: absolute; top: 3%; left: 50%; transform: translateX(-50%);
  width: 29%; aspect-ratio: 3.4; background: #000; border-radius: 999px;
}
.marker {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--white); box-shadow: 0 0 0 2px var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* ---------- Annotated hero figure ---------- */
.anatomy-figure { margin-top: clamp(40px, 5vw, 72px); }
.anatomy { position: relative; width: 100%; max-width: 1044px; margin: 0 auto; }
.anatomy__device { position: absolute; top: 0; }
.callout { position: absolute; top: var(--y); width: 30%; transform: translateY(-11px); }
.callout--l { left: 0; text-align: right; }
.callout--r { right: 0; }
.callout__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 22px; }
.callout p + p { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.leader { position: absolute; top: var(--y); left: var(--x); width: var(--w); border-top: 1px solid var(--ink); }
.dot {
  position: absolute; left: var(--x); top: var(--y); width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--white); transform: translate(-50%, -50%); z-index: 2;
}
.anatomy-list { display: none; }
.anatomy-figure figcaption { margin-top: 28px; text-align: center; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Screens (desktop row / mobile tabs) ---------- */
.screens { margin-top: clamp(36px, 4vw, 52px); }
.screen__device { max-width: 300px; }
.screen__title { margin-top: 24px; font-size: 17px; }
.dot-list { margin: 8px 0 0; padding: 0; list-style: none; }
.dot-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; padding: 7px 0; }
.dot-list .num {
  width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.dot-list span:last-child { font-size: 15px; line-height: 1.55; color: var(--muted); }

.tabs { display: none; gap: 4px; padding: 4px; border-radius: 10px; background: #E3E6ED; }
.tabs button {
  flex: 1 1 0; min-height: 40px; padding: 0 10px; border: 0; border-radius: 7px; cursor: pointer;
  font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--muted); background: transparent;
}
.tabs button[aria-selected="true"] {
  background: var(--white); color: var(--ink); font-weight: 700;
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.10), 0 0 0 1px rgba(22, 24, 29, 0.06);
}
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Data section ---------- */
.data .pure-g { align-items: center; }
.data-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); max-width: 560px; margin: 0 auto; }
.fields { margin-top: 24px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); column-gap: 32px; border-bottom: 1px solid var(--line-tint); }
.fields li { padding: 11px 0; border-top: 1px solid var(--line-tint); font-size: 16px; }
.note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- Comparison (accent band) ---------- */
.band--accent h2, .band--accent p { color: var(--white); }
.band--accent .lead { color: var(--white); }
.ideas p { font-size: 17px; line-height: 1.65; }
.ideas p + p { margin-top: 18px; }
.ideas strong { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { padding: 20px 0; border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 17px; line-height: 1.35; }
.faq-item p { margin-top: 6px; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 62ch; }

/* ---------- Closing + footer ---------- */
.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.closing p.closing__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.site-footer { padding: 32px 0 40px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 48px; }
.site-footer .disclaimer { flex: 1 1 480px; min-width: 0; max-width: 680px; }
.site-footer .links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 24px; }
.site-footer a, .site-footer .links p { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }

/* Two-column sections sit side by side from Pure lg (64em / 1024px); below that each column is full width */
.stack > [class*="pure-u"] + [class*="pure-u"] { margin-top: 32px; }
@media screen and (min-width: 64em) {
  .stack > [class*="pure-u"] + [class*="pure-u"] { margin-top: 0; }
}
@media screen and (max-width: 63.99em) {
  .hero-intro, .band--accent .lead, .ideas, .faq-list { max-width: 680px; }
  .hero .stack > [class*="pure-u"] + [class*="pure-u"] { margin-top: 28px; }
}

/* ---------- Phones (below Pure md) ---------- */
@media screen and (max-width: 47.99em) {
  .site-nav .hide-sm { display: none; }
  .band, .band--tint, .band--accent, .band--faq { padding: 56px 0; }
  .band--hero { padding-bottom: 48px; }
  .anatomy-figure { margin-top: 40px; }

  /* screens become tabs, one screenshot at full width */
  .js .tabs { display: flex; }
  .screens .pure-g { margin-top: 24px; }
  .screen__device { max-width: none; }
  .js .screen { display: none; }
  .js .screen.is-active { display: block; }
  .js .screen__title { display: none; }
  .no-js .screen + .screen { margin-top: 48px; }
}

/* ---------- Annotated figure: leader lines only on wide screens (Pure xl, 80em / 1280px) ---------- */
@media screen and (max-width: 79.99em) {
  .anatomy { aspect-ratio: auto !important; }
  .anatomy__device { position: static; width: 100% !important; max-width: 334px; margin: 0 auto; }
  .callout, .leader, .dot { display: none; }
  .anatomy-list {
    display: block; max-width: 640px; margin: 32px auto 0; padding: 0; list-style: none;
    font-size: 16px; line-height: 1.55; color: var(--muted);
  }
  .anatomy-list li { padding: 10px 0; border-top: 1px solid var(--line); }
  .anatomy-list strong { color: var(--ink); }
}
@media screen and (max-width: 47.99em) {
  .anatomy-list { font-size: 15px; margin-top: 24px; }
}

/* ---------- Text pages (privacy) ---------- */
a.brand { color: var(--ink); text-decoration: none; }
.band--page { padding-bottom: clamp(48px, 6vw, 72px); }
.page-title { padding-top: clamp(32px, 5vw, 64px); }
.page-title h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.01em; }
.page-title .lead { margin-top: 12px; }
.band--policy { padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.policy__intro p { font-family: var(--font-standfirst); font-size: 19px; line-height: 1.5; max-width: 680px; }
.policy__intro p + p { margin-top: 16px; font-size: 17px; color: var(--muted); }
.policy__intro { padding-bottom: 32px; }
.policy__toc h2 { font-size: 17px; line-height: 1.3; margin-top: 2px; }
.policy__toc ul { margin: 8px 0 0; padding: 0; list-style: none; }
.policy__toc a { display: inline-flex; align-items: center; min-height: 34px; font-size: 15px; color: var(--muted); text-decoration: none; }
.policy__toc a:hover { color: var(--accent); }
@media screen and (min-width: 64em) {
  .policy__side { position: sticky; top: 32px; }
}
.policy { border-bottom: 1px solid var(--line); max-width: 680px; }
.policy__part { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.policy__part h2 { font-size: 21px; line-height: 1.3; }
.policy__part h3 { margin-top: 22px; font-size: 17px; line-height: 1.35; }
.policy__part p, .policy__part address, .policy__part li, .policy__terms dd { font-size: 16px; line-height: 1.7; color: var(--muted); font-style: normal; }
.policy__part p, .policy__part address { margin-top: 8px; }
.policy__part p + p { margin-top: 12px; }
.policy__part strong, .policy__terms dt { color: var(--ink); font-weight: 700; }
.policy__part ul { margin: 12px 0; padding-left: 20px; }
.policy__terms { margin: 12px 0 0; }
.policy__terms div { padding: 10px 0; }
.policy__terms div + div { border-top: 1px solid var(--gray); }
.policy__terms dt { font-size: 16px; line-height: 1.5; }
.policy__terms dd { margin: 2px 0 0; }
@media screen and (min-width: 48em) {
  .policy__terms div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
  .policy__terms dd { margin: 0; }
}
.policy__copy { font-size: 14px !important; }

/* ---------- Contact (inside the FAQ band) ---------- */
.contact { margin-top: clamp(72px, 9vw, 120px); }
.contact .lead { max-width: 52ch; }
.contact__email { display: inline-block; margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--accent); text-decoration: none; border-bottom: 2px solid currentColor; overflow-wrap: anywhere; }
.contact__email:hover { color: var(--ink); }
.contact .note { margin-top: 20px; max-width: 58ch; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media screen and (max-width: 47.99em) { .contact { margin-top: 56px; } }
@media screen and (max-width: 63.99em) {
  .policy__toc { padding-bottom: 8px; }
}