/* Oz Driver Knowledge Test — marketing site
   Palette from oz_dkt_branding.pdf: navy #1A2E46, red #D12D33, cream #F4EBE1.
   No build step and no external requests, so the site deploys to any static
   host and loads on a slow connection. */

:root {
  --navy: #1a2e46;
  --navy-soft: #2a4260;
  --red: #d12d33;
  --cream: #f4ebe1;
  --cream-deep: #ece0d2;
  --ink: #1a2e46;
  --muted: #56606f;
  --card: #fffaf4;
  --line: #e2d5c5;
  --focus: #1d6fe0;
  --radius: 14px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #131a24;
    --cream-deep: #0e141c;
    --ink: #eef2f7;
    --muted: #a6b2c2;
    --card: #1b242f;
    --line: #2c3948;
    --navy: #eef2f7;
    --navy-soft: #c6d2e0;
    --focus: #6ea8ff;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--focus); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 0 0 14px; }
h3 { font-size: 1.12rem; margin: 0 0 8px; }

/* --- skip link --------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* --- header ------------------------------------------------------------ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.brand span { font-size: 1.02rem; letter-spacing: -0.01em; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav a:hover { color: var(--ink); }

/* --- hero -------------------------------------------------------------- */
.hero { padding: 68px 0 52px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.lede { font-size: 1.16rem; color: var(--muted); margin: 0 0 30px; max-width: 54ch; }
.hero-art { text-align: center; }
.hero-art img {
  width: min(100%, 320px);
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--line);
}

/* --- store buttons ----------------------------------------------------- */
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: var(--cream);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  min-height: 58px;
  border: 1px solid var(--navy);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (prefers-color-scheme: dark) {
  .store-btn { color: #131a24; }
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .l1 { display: block; font-size: 0.7rem; opacity: 0.82; line-height: 1.25; }
.store-btn .l2 { display: block; font-size: 1.02rem; font-weight: 700; line-height: 1.25; }

/* A store listing that is not live yet. Remove the class when it goes live. */
.store-btn.pending {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line);
  cursor: default;
  pointer-events: none;
}
.store-note { font-size: 0.86rem; color: var(--muted); margin: 14px 0 0; }

/* --- disclaimer strip -------------------------------------------------- */
/* Required by Google Play's Misleading Claims policy: the app presents
   government information, so the non-affiliation notice and a link to the
   official source must be visible. Do not remove. */
.disclaimer {
  background: var(--navy);
  color: var(--cream);
  padding: 20px 0;
  font-size: 0.93rem;
}
@media (prefers-color-scheme: dark) {
  .disclaimer { color: #131a24; }
}
.disclaimer a { color: inherit; text-decoration: underline; }
.disclaimer p { margin: 0; }

/* --- sections ---------------------------------------------------------- */
section { padding: 62px 0; }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head p { color: var(--muted); margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream-deep);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.alt { background: var(--cream-deep); }

/* --- states ------------------------------------------------------------ */
.states { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 16px; }
.state {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.state .abbr { font-weight: 800; font-size: 1.18rem; letter-spacing: -0.01em; }
.state .name { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.state .rule { font-size: 0.92rem; margin: 0; }
.state.soon { opacity: 0.62; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* --- pricing ----------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.price.feature { border-color: var(--red); border-width: 2px; }
.price .amount { font-size: 2rem; font-weight: 800; margin: 6px 0 4px; }
.price .per { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding-left: 27px; position: relative; margin-bottom: 9px; font-size: 0.97rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: rotate(-45deg);
}

/* --- faq --------------------------------------------------------------- */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
summary { cursor: pointer; font-weight: 650; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* --- footer ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-grid { display: flex; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.site-footer a { color: var(--muted); }

/* --- legal pages ------------------------------------------------------- */
.legal { padding: 52px 0 72px; max-width: 76ch; }
.legal h1 { margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 0.92rem; margin: 0 0 34px; }
.legal h2 { font-size: 1.28rem; margin: 38px 0 12px; }
.legal h3 { font-size: 1.02rem; margin: 24px 0 8px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.94rem; }
.legal th, .legal td { text-align: left; padding: 11px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--cream-deep); font-weight: 700; }
.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 22px 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; }

/* --- responsive -------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { order: -1; }
  .hero { padding: 42px 0 34px; }
  section { padding: 46px 0; }
  .nav { display: none; }
}
