/* Backseat: a sticker book of navigators.
   Every character is a flat sticker face on its own colour panel, with a label
   card underneath. Hard shadows, one ink colour. Per-character colours live in
   characters.css; the faces are faces/<slug>.svg. */

:root {
  --ground: #eef3ff;
  --ink: #15172b;
  --ink-soft: #4a4f6b;
  --label: #ffffff;
  --line: #15172b;
  --sun: #ffd23f;
  --good: #1f9d55;
  --shadow: 4px 4px 0 var(--line);
  --shadow-lg: 7px 7px 0 var(--line);
  --display: "Bagel Fat One", "Arial Black", system-ui, sans-serif;
  --body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --data: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.1rem; }

/* ---- the sticker vocabulary ---- */
.sticker {
  background: var(--label); border: 2.5px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.2rem; border: 2.5px solid var(--line); border-radius: 999px;
  background: var(--sun); color: var(--ink); box-shadow: var(--shadow);
  font: 700 1.02rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.btn svg {
  width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor;
  stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.btn.plain { background: var(--label); }

/* ---- top bar ---- */
.bar { padding: 1rem 0; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .85rem .45rem .6rem;
  font: 400 1.25rem/1 var(--display); letter-spacing: .01em; text-decoration: none;
}
.logo .lamp {
  width: .8rem; height: .8rem; border-radius: 50%; background: #ff8a00;
  border: 2px solid var(--line); animation: blink 1.2s steps(1) infinite;
}
@keyframes blink { 50% { background: var(--sun); } }
.bar nav a { font-weight: 600; text-decoration: none; padding: .4rem .2rem; }
.bar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- hero: all seven papers at once ---- */
.hero {
  background: var(--sun); border-block: 2.5px solid var(--line);
  padding: clamp(1.6rem, 6vw, 4.5rem) 0;
}
.hero .wrap {
  display: grid; gap: 1.4rem; align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

/* The cast, as stickers. Each one jumps to its card. */
.cast { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem; padding: .4rem 0; }
/* Twelve faces: a 4x3 block on phones, so nobody is left on a row of two. */
@media (max-width: 899px) { .cast { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; } }
.cast a {
  width: clamp(4.6rem, 20vw, 8.2rem); aspect-ratio: 1; margin: -.35rem;
  border-radius: 50%; background: var(--bg, #fff);
  border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--line);
  display: grid; place-items: center; overflow: hidden;
  transition: transform .15s ease;
}
.cast a img { width: 92%; height: 92%; }
.cast a:nth-child(odd) { transform: rotate(-6deg) translateY(4px); }
.cast a:nth-child(even) { transform: rotate(5deg) translateY(-4px); }
.cast a:hover { transform: scale(1.08) rotate(0); z-index: 1; }
.hero-card { max-width: 40rem; padding: clamp(1.3rem, 4vw, 2.2rem); display: grid; gap: 1rem; }
.kicker {
  margin: 0; justify-self: start; padding: .3rem .7rem; border: 2px solid var(--line);
  border-radius: 999px; background: var(--sun);
  font: 500 .72rem/1.2 var(--data); letter-spacing: .12em; text-transform: uppercase;
}
h1 {
  margin: 0; font: 400 clamp(3rem, 12vw, 6.2rem)/.92 var(--display);
  letter-spacing: -.01em; text-wrap: balance;
}
h1 .pop {
  display: inline-block; color: #ff5a1f; transform: rotate(-3deg);
  text-shadow: 3px 3px 0 var(--line);
}
.hero-card p.lede { margin: 0; font-size: 1.15rem; color: var(--ink-soft); max-width: 32ch; }
.hero-card .btn { justify-self: start; }

.inapp {
  margin: 1.5rem 0 0; padding: .95rem 1.1rem; background: var(--sun);
  display: grid; gap: .2rem; font-size: .96rem;
}

/* ---- the sample book ---- */
section.block { padding: clamp(2.8rem, 7vw, 4.5rem) 0 0; }
h2 { margin: 0 0 .4rem; font: 400 clamp(2rem, 6vw, 3.2rem)/1 var(--display); text-wrap: balance; }
.sub { margin: 0 0 1.6rem; color: var(--ink-soft); max-width: 46ch; }

.voices {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem 1.3rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr));
}
.voice {
  --bg: #d9dff0; --tone: var(--sun); --tone-ink: var(--ink);
  display: flex; flex-direction: column;
  border: 2.5px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--label); box-shadow: var(--shadow-lg);
  transition: transform .18s ease;
}
.voice:nth-child(3n+1) { transform: rotate(-.6deg); }
.voice:nth-child(3n+2) { transform: rotate(.5deg); }
.voice:hover { transform: rotate(0) translateY(-3px); }

.stage {
  height: 12rem; border-bottom: 2.5px solid var(--line);
  background: var(--bg); position: relative;
  display: grid; place-items: center; padding-top: .6rem;
}
.stage .face { width: 10rem; height: 10rem; transform-origin: 50% 90%; }
/* Playing: the face talks. */
.voice.playing .face { animation: talk .34s ease-in-out infinite alternate; }
/* Picked from the lineup or a #slug link: lifted and ringed in its colour. */
.voice.picked { outline: 4px solid var(--tone); outline-offset: 5px; }
@keyframes talk {
  from { transform: rotate(-2.5deg) scale(1, 1); }
  to { transform: rotate(2.5deg) scale(1.03, .97); }
}

.tag {
  position: absolute; left: .9rem; bottom: -1.05rem; z-index: 1;
  padding: .35rem .85rem; background: var(--label);
  border: 2.5px solid var(--line); border-radius: 999px; box-shadow: 3px 3px 0 var(--line);
  font: 400 1.35rem/1.1 var(--display);
}
.label { padding: 1.7rem 1rem 1.05rem; display: grid; gap: .8rem; }
.blurb { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.35; }

/* Captioned like the film: the Waze slot, not the words. */
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.clip {
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
  min-height: 3.9rem; padding: .55rem .55rem .5rem;
  background: var(--ground); border: 2px solid var(--line); border-radius: 12px;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: transform .1s ease, background .15s ease;
}
.clip:hover { background: #fff; }
.clip:active { transform: scale(.96); }
.clip.on { background: var(--tone); color: var(--tone-ink); }
.clip svg {
  width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.clip .cap {
  font: 500 .64rem/1.25 var(--data); letter-spacing: .05em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* What the character actually said: the product demo in one line. */
.said {
  margin: 0; min-height: 2.6em; padding: .45rem .7rem; border-radius: 12px;
  border: 2px dashed transparent; font-size: .96rem; line-height: 1.3; font-weight: 600;
  color: var(--ink-soft); display: flex; align-items: center;
}
.said:empty::before { content: "Tap a clip to hear it."; font-weight: 400; }
.voice.playing .said:not(:empty) { border-color: var(--line); color: var(--ink); background: #fffbe8; }

.install {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1rem; border: 2.5px solid var(--line); border-radius: 14px;
  background: var(--tone); color: var(--tone-ink); box-shadow: var(--shadow);
  font: 700 1.05rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.install:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.install:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.install svg {
  width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor;
  stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.install.ghost { background: var(--label); color: var(--ink); }

.qr {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: .9rem; align-items: center;
  padding: .75rem; background: var(--ground); border: 2px solid var(--line); border-radius: 14px;
}
.qr img { width: 7.5rem; height: 7.5rem; background: #fff; border-radius: 8px; border: 2px solid var(--line); }
.qr p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.qr strong { display: block; color: var(--ink); }

/* ---- install steps ---- */
.steps {
  list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.steps li { padding: 1.1rem; display: grid; gap: .35rem; }
.steps .n {
  justify-self: start; width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
  border: 2.5px solid var(--line); border-radius: 50%; background: var(--sun);
  font: 400 1.1rem/1 var(--display);
}
.steps b { font-size: 1.08rem; }
.steps span { color: var(--ink-soft); }
.textlink { font-weight: 600; text-underline-offset: 4px; }

/* ---- signup ---- */
.signup {
  padding: clamp(1.3rem, 4vw, 2rem); display: grid; gap: .9rem;
  background-color: var(--sun);
}
.signup h2 { margin: 0; }
.signup p { margin: 0; color: var(--ink-soft); max-width: 44ch; }
.signup form { display: flex; gap: .6rem; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 15rem; min-width: 0; padding: .85rem 1rem;
  background: #fff; color: var(--ink); border: 2.5px solid var(--line);
  border-radius: 999px; font: inherit;
}
.signup .btn { background: var(--ink); color: #fff; }
.signup .done { color: var(--good); font-weight: 700; }

/* ---- how it works ---- */
.pipe { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.pipe li { padding: .95rem 1rem; display: grid; gap: .2rem; }
.pipe b { font: 400 1.2rem/1.1 var(--display); }
.pipe span { color: var(--ink-soft); font-size: .95rem; }
.pipe code { font: 500 .85em var(--data); color: var(--ink); background: var(--ground); padding: .05em .3em; border-radius: 4px; }
@media (min-width: 900px) { .pipe { grid-template-columns: repeat(3, 1fr); } }

.builders {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.4rem; padding: 1.1rem 1.25rem; text-decoration: none;
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.builders b { display: block; font: 400 1.3rem/1.1 var(--display); }
.builders span { opacity: .75; font-size: .95rem; }
.builders svg {
  flex: none; width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

footer { margin-top: 4rem; padding: 1.5rem 0 2.5rem; border-top: 2.5px solid var(--line); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: var(--ink-soft); }

/* ---- did it work? ---- */
.ask {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  width: min(25rem, calc(100% - 1.5rem)); padding: 1.05rem 1.1rem;
  display: grid; gap: .8rem; z-index: 10; box-shadow: var(--shadow-lg);
}
.ask p { margin: 0; }
.ask .row { display: flex; gap: .55rem; }
.ask .row .btn { flex: 1; }
.ask .close {
  position: absolute; top: .3rem; right: .45rem; background: none; border: 0;
  color: var(--ink-soft); font-size: 1.4rem; cursor: pointer; padding: .2rem .45rem;
}

/* ---- install guide page ---- */
.guide { max-width: 44rem; }
.guide h3 { font: 400 1.35rem/1.15 var(--display); margin: 2.1rem 0 .45rem; }
.guide p, .guide li { color: var(--ink-soft); }
.guide ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.guide .store { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .7rem; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #ff5a1f; outline-offset: 3px;
}
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .voice, .cast a, .face { transform: none !important; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
