/* Adey: Near Miss: the game's own look (bold cartoon: ink outlines, road grey, Adey yellow). Fonts are served from
   this site, so visiting it sends nothing to a font service. */
@font-face { font-family: 'Lilita One'; src: url('fonts/LilitaOne-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito-Variable.ttf') format('truetype'); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #15172b; --road: #3b3d48; --yellow: #ffd21f; --cream: #fff7e6; --cream2: #f3e6c9;
  --coral: #ff6b5e; --green: #2e9e5b; --blue: #1877f2; --muted: #9a9fb5; --text: #e9eaf2;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 500 17px/1.6 Nunito, system-ui, sans-serif; }
a { color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.display { font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; letter-spacing: .5px; line-height: 1; }

/* the road: grey band with real-spacing lane dashes, used behind the hero */
.road { background:
    linear-gradient(90deg, transparent calc(33.3% - 2px), rgba(242,240,230,.35) calc(33.3% - 2px) calc(33.3% + 2px), transparent calc(33.3% + 2px)),
    linear-gradient(90deg, transparent calc(66.6% - 2px), rgba(242,240,230,.35) calc(66.6% - 2px) calc(66.6% + 2px), transparent calc(66.6% + 2px)),
    var(--road);
  -webkit-mask: none; position: relative; }
.road::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 70px, var(--road) 70px 240px); }
.road > * { position: relative; }

/* header / footer */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; border: 2px solid var(--ink); }
.brand span { font-family: 'Lilita One'; font-size: 22px; color: var(--yellow); }
.top nav a { color: #fff; font-weight: 800; text-decoration: none; margin-left: 18px; font-size: 15px; }
.top nav a:hover { color: var(--yellow); }
footer { border-top: 1px solid #2a2d48; margin-top: 64px; padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer a { color: #fff; font-weight: 800; text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--yellow); }

/* hero */
.hero { padding: 40px 0 70px; text-align: center; }
.hero .icon { width: 128px; height: 128px; margin: 0 auto 26px; border-radius: 30px; border: 4px solid var(--ink);
  box-shadow: 0 10px 0 rgba(0,0,0,.25); }
.lockup { display: inline-flex; flex-direction: column; align-items: stretch; }
.lockup .a { font-size: clamp(84px, 22vw, 150px); color: var(--yellow); }
.lockup .b { font-size: clamp(33px, 8.6vw, 59px); color: #fff; letter-spacing: 3px; margin-top: .06em; }
.tagline { font-size: clamp(18px, 4.6vw, 22px); font-weight: 800; color: #fff; max-width: 560px; margin: 22px auto 26px;
  text-shadow: 0 2px 0 var(--ink); }
.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--yellow); color: var(--ink); text-decoration: none;
  font-family: 'Lilita One'; font-size: 24px; padding: 12px 26px; border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 0 6px 0 var(--ink); }
.cta small { font-family: Nunito; font-weight: 900; font-size: 13px; background: var(--ink); color: var(--yellow);
  padding: 2px 8px; border-radius: 999px; }
.facts { margin-top: 18px; color: #fff; font-weight: 800; font-size: 14px; opacity: .85; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: -56px; position: relative; z-index: 1; }
.shots figure { margin: 0; }
/* a simple phone: dark bezel, rounded screen */
.shots .phone { background: #0b0c17; padding: 7px; border-radius: 30px; box-shadow: 0 18px 36px rgba(0,0,0,.45), inset 0 0 0 2px #2a2d48; }
.shots img { width: 100%; aspect-ratio: 540 / 1199; object-fit: cover; border-radius: 23px; }
.shots figcaption { text-align: center; color: var(--muted); font-weight: 800; font-size: 14px; margin-top: 10px; }
@media (max-width: 760px) {
  .shots { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: -16px; padding-right: 16px; }
  .shots figure { scroll-snap-align: start; }
}

/* features */
h2.section { font-size: clamp(32px, 7vw, 44px); color: var(--yellow); text-align: center; margin: 72px 0 26px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; padding: 18px 18px 16px;
  box-shadow: 0 6px 0 rgba(0,0,0,.3); }
.card h3 { font-family: 'Lilita One'; font-weight: 400; font-size: 23px; margin: 8px 0 6px; }
.card p { margin: 0; font-size: 16px; line-height: 1.5; color: #3a3550; }
.card img { width: 56px; height: 56px; }
.card .row { display: flex; gap: 6px; align-items: flex-end; height: 56px; }
.card .row img { width: auto; height: 100%; }

/* legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 10px 16px 0; }
.doc h1 { font-family: 'Lilita One'; font-weight: 400; font-size: clamp(36px, 8vw, 52px); color: var(--yellow); margin: 18px 0 4px; line-height: 1.05; }
.doc .date { color: var(--muted); font-weight: 800; font-size: 14px; margin-bottom: 26px; }
.doc h2 { font-family: 'Lilita One'; font-weight: 400; font-size: 26px; color: #fff; margin: 34px 0 8px; }
.doc p, .doc li { color: #d6d8e6; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: #fff; }
.summary { background: var(--cream); color: var(--ink); border: 3px solid #0b0c17; border-radius: 18px; padding: 16px 20px; margin: 10px 0 8px; }
.summary p, .summary li { color: var(--ink); margin: 4px 0; font-weight: 700; }
.summary strong { color: var(--ink); }

/* tester page */
.hero-test { padding-bottom: 56px; }
.test-title { font-size: clamp(56px, 15vw, 96px); color: var(--yellow); margin: 0; }
.steps { list-style: none; padding: 0; margin: -30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  position: relative; z-index: 1; }
.steps .card { display: flex; flex-direction: column; align-items: flex-start; padding-top: 14px; }
.steps .num { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink);
  display: grid; place-items: center; font-size: 26px; }
.steps .card p { margin-bottom: 14px; }
.steps .cta { margin-top: auto; font-size: 20px; padding: 10px 20px; }
.steps .note { margin: 12px 0 0; font-size: 14px; color: #6a6580; }
.keep { margin-top: 26px; }
.faq { padding: 0; }
.faq h2 { font-size: 22px; margin-top: 24px; }
.test-link { display: inline-block; margin-top: 10px; color: var(--yellow); font-weight: 900; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
