/* License Plate Bingo by DanCo Worldwide: shared styles for the home, support and privacy pages.
   Self-hosted only (the hub's CSP): system fonts, no inline styles or scripts, no external resources.
   Palette mirrors PlateBingo/Views/Theme.swift (asphalt, interstate green, lane yellow, shield blue). */

:root {
  --asphalt: #16181c;
  --asphalt-2: #24272d;
  --night: #0e1a2b;
  --green: #00704a;
  --green-dark: #00563a;
  --yellow: #ffc72c;
  --blue: #003f87;
  --red: #c8102e;
  --stamp: #d7263d;
  --white: #f7f7f2;
  --text-dim: rgba(247, 247, 242, 0.74);
  --text-faint: rgba(247, 247, 242, 0.5);
  --line: rgba(247, 247, 242, 0.14);
  --panel: rgba(255, 255, 255, 0.05);
  --radius: 18px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sign: "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: linear-gradient(var(--night), var(--asphalt) 38%, #0c0d10);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, .gallery:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  padding: 10px 16px; border-radius: 10px;
  background: var(--yellow); color: #000; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
section { padding: 88px 0; }

/* ---------- type ---------- */

.kicker {
  font-family: var(--sign);
  font-stretch: condensed;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.01em; font-weight: 850; }
h1 { font-size: clamp(40px, 6.6vw, 76px); }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
h3 { font-size: 20px; }
.hl { color: var(--yellow); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-dim); max-width: 34em; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .kicker { margin-bottom: 14px; }
.section-head .lede { margin: 16px auto 0; }

/* ---------- guide-sign panels ---------- */

.sign {
  position: relative;
  background: var(--green);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.sign::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2.5px solid var(--white);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 16, 20, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 18px; flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 15px; font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 8px 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--asphalt-2);
  text-decoration: none; font-weight: 800; font-size: 16px;
}
a.btn:hover { border-color: var(--yellow); }
.btn svg { width: 20px; height: 20px; flex: none; }
/* "Coming soon" App Store badge: not a link until the app is live. */
.badge-soon { background: var(--yellow); color: #000; border: 0; cursor: default; }
.badge-soon .store-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.badge-soon .store-text small { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; opacity: 0.75; text-transform: uppercase; }

/* ---------- hero ---------- */

.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.title-sign { padding: 26px 30px 30px; text-align: center; }
.title-sign .small { font-family: var(--sign); font-stretch: condensed; font-weight: 800; font-size: clamp(18px, 2.4vw, 24px); letter-spacing: 0.12em; }
.title-sign h1 { font-family: var(--sign); font-stretch: condensed; font-weight: 900; letter-spacing: 0.06em; margin: 2px 0 6px; }
.title-sign .route { font-family: var(--sign); font-stretch: condensed; font-weight: 700; font-size: 15px; letter-spacing: 0.1em; }
.posts { display: flex; justify-content: center; gap: 120px; }
.posts span { width: 10px; height: 34px; background: #8a8f98; }
.hero .lede { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { margin-top: 22px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--text-faint); text-transform: uppercase; }

.warning {
  display: flex; align-items: center; gap: 12px;
  margin-top: 26px; padding: 12px 16px;
  border-radius: 12px; background: var(--yellow); color: #000; font-weight: 800;
}
.warning svg { width: 22px; height: 22px; flex: none; }

/* ---------- CSS plates (our own stylized drawings) ---------- */

.plates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 8px; }
.plate {
  --bg: #fff; --fg: #111; --ac: #555;
  position: relative;
  aspect-ratio: 2;
  display: grid; align-content: center; justify-items: center; gap: 2%;
  background: linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 92%, #000));
  border: 4px solid var(--ac);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
  container-type: inline-size;
}
.plate::before, .plate::after {
  content: ""; position: absolute; top: 8%; width: 4%; aspect-ratio: 1; border-radius: 50%; background: rgba(0, 0, 0, 0.18);
}
.plate::before { left: 7%; }
.plate::after { right: 7%; }
.plate .st { font-family: var(--sign); font-stretch: condensed; font-weight: 900; font-size: 11cqi; letter-spacing: 0.04em; color: var(--ac); text-transform: uppercase; line-height: 1; }
.plate .ab { font-weight: 900; font-size: 30cqi; line-height: 1; color: var(--fg); letter-spacing: 0.02em; }
.plate .sl { font-family: var(--sign); font-stretch: condensed; font-weight: 700; font-size: 7.5cqi; color: var(--fg); opacity: 0.85; line-height: 1; }
.plate.stamped::after {
  content: "\2713";
  top: 50%; left: 50%; right: auto; width: 40%;
  translate: -50% -50%; rotate: -14deg;
  display: grid; place-items: center;
  border: 4px solid var(--stamp); background: transparent;
  color: var(--stamp); font-weight: 900; font-size: 26cqi;
}
.plate:nth-child(odd) { rotate: -2deg; }
.plate:nth-child(even) { rotate: 1.5deg; }
.p-az { --bg: #f5d7a1; --fg: #1f4d2b; --ac: #6b4c8c; }
.p-fl { --bg: #ffffff; --fg: #0b6b3a; --ac: #f28c1e; }
.p-ny { --bg: #ffffff; --fg: #1a3c8b; --ac: #e8b321; }
.p-on { --bg: #ffffff; --fg: #1a3c8b; --ac: #4f6fb5; }
.p-qc { --bg: #ffffff; --fg: #1b2f6e; --ac: #2a4d9b; }
.p-co { --bg: #ffffff; --fg: #1e5631; --ac: #0f4d2a; }

/* ---------- steps, features ---------- */

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { padding: 26px 24px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--yellow); color: #000; font-weight: 900;
}
.steps p, .feature p { margin-top: 8px; color: var(--text-dim); }
.features { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px 24px; }
.feature .icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 16px; color: #000; background: var(--yellow); }
.feature:nth-child(3n+2) .icon { background: var(--white); color: var(--blue); }
.feature:nth-child(3n) .icon { background: var(--green); color: var(--white); }
.feature .icon svg { width: 24px; height: 24px; }
.code-demo { display: inline-block; margin: 2px 0; padding: 2px 10px; border-radius: 8px; border: 2px solid var(--blue); background: var(--white); color: #111; font-family: ui-monospace, Menlo, monospace; font-weight: 900; letter-spacing: 0.12em; }

/* ---------- screenshots ---------- */

.gallery {
  display: flex; gap: 18px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 16px 22px; scroll-padding-inline: 16px;
}
.gallery li { flex: none; scroll-snap-align: start; }
.gallery img { width: min(230px, 66vw); border-radius: 22px; border: 1px solid var(--line); }
@media (min-width: 1240px) { .gallery { justify-content: center; } }

/* ---------- CTA ---------- */

.cta { padding: 56px 28px; text-align: center; }
.cta img { width: 112px; height: 112px; border-radius: 25px; margin: 0 auto 24px; position: relative; z-index: 1; }
.cta h2, .cta p, .cta .btn { position: relative; z-index: 1; }
.cta .lede { margin: 14px auto 28px; color: rgba(247, 247, 242, 0.88); }

/* ---------- content pages ---------- */

.page-head { padding: 80px 0 36px; }
.page-head h1 { font-size: clamp(38px, 5.6vw, 60px); margin-top: 14px; }
.page-head .lede { margin-top: 16px; }
.page-head .updated { margin-top: 14px; }
.prose { padding: 38px; max-width: 820px; margin-bottom: 88px; }
.prose h2 { font-size: 25px; margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-dim); font-size: 17px; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0 22px; display: grid; gap: 8px; }
.prose a, .faq a, .more a { color: var(--yellow); }
.prose strong, .faq strong { color: var(--white); }
.summary { padding: 18px 20px; margin: 16px 0 6px; border-radius: 14px; border: 1px solid rgba(255, 199, 44, 0.45); background: rgba(255, 199, 44, 0.08); }
.updated { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--text-faint); text-transform: uppercase; }

.support-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 22px; align-items: start; }
.contact { padding: 30px; position: sticky; top: 92px; }
.contact p { color: rgba(247, 247, 242, 0.88); margin: 12px 0 22px; }
.contact .btn { background: var(--white); color: var(--green-dark); border: 0; max-width: 100%; position: relative; z-index: 1; overflow-wrap: anywhere; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  font-weight: 800; font-size: 18px;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow); font-size: 24px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-dim); padding-bottom: 20px; margin-top: -4px; }
.block-head { margin: 64px 0 22px; }
.block-head .kicker { margin-bottom: 10px; }
.pad-bottom { padding-bottom: 88px; }
.more { margin-top: 20px; text-align: center; color: var(--text-dim); }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); padding: 38px 0 46px; color: var(--text-faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer a { text-decoration: none; color: var(--text-dim); }
footer a:hover { color: var(--white); }
footer .fine-print { flex-basis: 100%; font-size: 12px; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap, .support-grid { grid-template-columns: 1fr; }
  .steps, .features { grid-template-columns: repeat(2, 1fr); }
  .contact { position: static; }
}
@media (max-width: 640px) {
  section { padding: 68px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .prose { padding: 24px 20px; }
  .contact { padding: 26px 22px; }
  .faq details { padding: 0 16px; }
  .faq summary { font-size: 17px; }
  .posts { gap: 90px; }
  footer nav { margin-left: 0; }
}
@media (max-width: 480px) {
  .nav .wrap { gap: 10px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
  .nav-links .wide { display: none; }
  .brand { font-size: 16px; }
  .plates { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
