/* Livery — liveryclub.com
   Brand tokens match the app (src/styles.css). */

/* Fonts are hosted here (no requests to third parties). SIL Open Font License. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --oat: #f2ede5;
  --paper: #fbf8f3;
  --sand: #e8e0d4;
  --espresso: #2a231e;
  --ink-soft: #6b5f55;
  --leather: #8e5e3b;
  --leather-deep: #74492b;
  --olive: #4f5a43;
  --plate: #f3c32b;
  --plate-ink: #141414;
  --moss: #5f7a45;
  --ochre: #c2913a;
  --brick: #a5492f;
  --line: rgb(42 35 30 / 0.12);

  --bg: var(--oat);
  --surface: var(--paper);
  --text: var(--espresso);
  --muted: var(--ink-soft);
  --accent: var(--leather);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --display: "Barlow Condensed", "Instrument Sans", sans-serif;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1814;
    --surface: #26201b;
    --sand: #332b24;
    --text: #efe8dd;
    --muted: #b3a697;
    --accent: #c9a27a;
    --line: rgb(239 232 221 / 0.1);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--espresso);
  color: var(--oat);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 100;
}
.skip:focus {
  left: 12px;
}

/* ── Type ──────────────────────────────────────────────────────────── */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings:
    "SOFT" 60,
    "opsz" 120;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(46px, 7.4vw, 92px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
}

h3 {
  font-size: clamp(22px, 2.2vw, 27px);
  line-height: 1.2;
  font-variation-settings:
    "SOFT" 40,
    "opsz" 36;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.lede {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
}

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.4s var(--ease),
    background-color 0.3s;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--leather);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--leather-deep);
}
.btn-quiet {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-quiet:hover {
  box-shadow: inset 0 0 0 1.5px var(--text);
}

/* ── Header ────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 600 23px/1 var(--serif);
  font-variation-settings: "SOFT" 60;
}
.brand svg {
  width: 34px;
  height: 34px;
  border-radius: 23%;
  box-shadow: 0 0 0 1px var(--line);
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover {
  color: var(--text);
}
.site-header .btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}
@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .site-header .btn {
    margin-left: auto;
  }
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(36px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.hero h1 {
  max-width: 10ch;
}
.hero .lede {
  margin-top: 22px;
}

/* The number plate: type a registration, add the car. */
.plate-form {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.plate {
  display: flex;
  align-items: stretch;
  height: 64px;
  width: min(100%, 330px);
  border-radius: 10px;
  background: var(--plate);
  box-shadow:
    inset 0 0 0 2.5px var(--plate-ink),
    0 14px 30px -18px rgb(80 60 0 / 0.65);
  overflow: hidden;
}
.plate-band {
  flex: 0 0 44px;
  background: #1f4fa0;
  color: #fff;
  font: 700 15px/1 var(--display);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  border: 2.5px solid var(--plate-ink);
  border-right: 0;
  border-radius: 10px 0 0 10px;
}
.plate input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--plate-ink);
  font: 700 38px/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
  outline: none;
}
.plate input::placeholder {
  color: rgb(20 20 20 / 0.38);
}
.plate:focus-within {
  box-shadow:
    inset 0 0 0 2.5px var(--plate-ink),
    0 0 0 4px color-mix(in srgb, var(--accent) 40%, transparent);
}
.plate-form .btn {
  min-height: 64px;
  padding: 0 28px;
}
.plate-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* Phone frame */
.phone {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 390 / 844;
  border-radius: 48px;
  padding: 10px;
  background: #1b1714;
  box-shadow:
    inset 0 0 0 1.5px #4a4038,
    0 40px 80px -30px rgb(42 35 30 / 0.55),
    0 18px 30px -20px rgb(42 35 30 / 0.4);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 39px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.hero-visual .phone {
  z-index: 2;
  translate: 12% 0;
}

/* The livery stripes: the logo's three lines, at full scale. */
.stripes {
  position: absolute;
  top: -8%;
  bottom: -12%;
  left: -6%;
  width: 150%;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}
.stripes path {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.8s var(--ease) 0.15s forwards;
}
.stripes .s1 {
  stroke: var(--espresso);
}
.stripes .s2 {
  stroke: var(--leather);
  animation-delay: 0.3s;
}
.stripes .s3 {
  stroke: var(--olive);
  animation-delay: 0.45s;
}
@media (prefers-color-scheme: dark) {
  .stripes .s1 {
    stroke: #efe8dd;
  }
  .stripes .s2 {
    stroke: #c9a27a;
  }
  .stripes .s3 {
    stroke: #a3ad92;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    margin-top: 8px;
  }
  .hero-visual .phone {
    translate: 0 0;
  }
  .stripes {
    overflow: hidden;
    top: 0;
    bottom: -4%;
  }
  .hero h1 {
    max-width: 12ch;
  }
  .hero-visual {
    min-height: 0;
    padding: 24px 0 8px;
  }
  .hero-visual .phone {
    width: min(78%, 300px);
  }
  .stripes {
    left: -2%;
    width: 140%;
  }
}

/* ── Dates strip ──────────────────────────────────────────────────── */

.dates {
  padding: clamp(56px, 8vw, 104px) 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.dates .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}
.dates .lede {
  margin-top: 18px;
}
.dials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vw, 24px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.dial {
  text-align: center;
}
.dial svg {
  width: 100%;
  max-width: 132px;
  margin-inline: auto;
}
.dial circle {
  fill: none;
}
.dial .track {
  stroke: var(--sand);
}
.dial .value {
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.dial text {
  fill: var(--text);
  font-family: var(--display);
  font-weight: 700;
}
.dial .unit {
  font-family: var(--sans);
  font-weight: 500;
}
.dial strong {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}
.dial span {
  font-size: 14px;
  color: var(--muted);
}
.ok {
  stroke: var(--moss);
  fill: var(--moss);
}
.soon {
  stroke: var(--ochre);
  fill: var(--ochre);
}
.late {
  stroke: var(--brick);
  fill: var(--brick);
}
@media (max-width: 900px) {
  .dates .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .dials {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }
}

/* ── Feature chapters ─────────────────────────────────────────────── */

.chapters {
  padding: clamp(64px, 9vw, 130px) 0 clamp(32px, 5vw, 64px);
}
.chapters-intro {
  max-width: 760px;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.chapters-intro .lede {
  margin-top: 18px;
}

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 110px);
  padding-block: clamp(36px, 5vw, 64px);
}
.chapter + .chapter {
  border-top: 1px solid var(--line);
}
.chapter:nth-child(even) .chapter-copy {
  order: 2;
}
.chapter-copy {
  max-width: 470px;
}
.chapter-copy p {
  margin-top: 16px;
  color: var(--muted);
}
.chapter-copy ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.chapter-copy li {
  position: relative;
  padding-left: 26px;
}
.chapter-copy li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  rotate: -45deg;
  translate: 0 -50%;
}
.chapter-visual {
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-radius: 40px;
  background: var(--sand);
}
.chapter-visual .phone {
  width: min(70%, 300px);
}
@media (max-width: 820px) {
  .chapter {
    grid-template-columns: 1fr;
  }
  .chapter:nth-child(even) .chapter-copy {
    order: 0;
  }
}

/* ── Also included ────────────────────────────────────────────────── */

.extras {
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 120px);
}
.extras h2 {
  max-width: 14ch;
}
.extras-grid {
  margin-top: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 48px;
}
.extra h3 {
  font-size: 21px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.extra h3 svg {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  stroke: var(--accent);
}
.extra p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}
@media (max-width: 900px) {
  .extras-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .extras-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ── Privacy ───────────────────────────────────────────────────────── */

.privacy {
  background: var(--espresso);
  color: var(--oat);
  padding: clamp(64px, 9vw, 128px) 0;
}
@media (prefers-color-scheme: dark) {
  .privacy {
    background: #110e0b;
  }
}
.privacy .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.privacy .lede {
  color: rgb(242 237 229 / 0.72);
  margin-top: 20px;
}
.privacy dl {
  margin: 0;
  display: grid;
  gap: 26px;
}
.privacy dt {
  font: 500 22px/1.25 var(--serif);
  font-variation-settings: "SOFT" 40;
}
.privacy dd {
  margin: 6px 0 0;
  color: rgb(242 237 229 / 0.7);
}
.privacy a {
  color: #e4c49f;
}
@media (max-width: 820px) {
  .privacy .wrap {
    grid-template-columns: 1fr;
  }
}

/* ── Roadmap ───────────────────────────────────────────────────────── */

.roadmap {
  padding: clamp(64px, 9vw, 128px) 0;
}
.roadmap-head {
  max-width: 720px;
}
.roadmap-head .lede {
  margin-top: 18px;
}
.timeline {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
}
.stage {
  padding: 0 clamp(16px, 2.4vw, 32px) 0 0;
  position: relative;
}
.stage-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 3px solid var(--line);
  font: 700 26px/1 var(--display);
}
.stage:nth-child(1) .stage-head {
  border-bottom-color: var(--leather);
}
.stage-head .tag {
  font: 600 13px/1 var(--sans);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--muted);
}
.stage:nth-child(1) .tag {
  background: color-mix(in srgb, var(--leather) 16%, transparent);
  color: var(--accent);
}
.stage ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}
.stage h3 {
  font-size: 20px;
}
.stage p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}
.roadmap-note {
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 860px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── FAQ ───────────────────────────────────────────────────────────── */

.faq {
  padding: clamp(56px, 8vw, 110px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.faq .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 96px);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font: 500 20px/1.3 var(--serif);
  font-variation-settings: "SOFT" 40;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: 0 0 12px;
  height: 12px;
  margin-top: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  rotate: 45deg;
  transition: rotate 0.35s var(--ease);
}
.faq details[open] summary::after {
  rotate: 225deg;
  margin-top: 12px;
}
.faq details p {
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 38em;
}
@media (max-width: 820px) {
  .faq .wrap {
    grid-template-columns: 1fr;
  }
}

/* ── Final call ────────────────────────────────────────────────────── */

.closing {
  padding: clamp(72px, 10vw, 140px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing h2 {
  max-width: 15ch;
  margin-inline: auto;
}
.closing .lede {
  margin: 18px auto 0;
}
.closing .actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.stores {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  color: var(--muted);
  text-align: left;
  line-height: 1.25;
}
.store strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}
.store svg {
  width: 22px;
  height: 22px;
  stroke: var(--text);
}

/* ── Footer ────────────────────────────────────────────────────────── */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
}
.footer-links div {
  display: grid;
  gap: 10px;
  align-content: start;
}
.footer-links h4 {
  margin: 0 0 4px;
  font: 600 15px/1.3 var(--sans);
  color: var(--text);
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer-legal {
  margin-top: 40px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 70ch;
}

/* ── Motion ────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .stripes path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .btn,
  .faq summary::after {
    transition: none;
  }
}

@media (max-width: 520px) {
  .plate,
  .plate-form .btn {
    width: 100%;
  }
}

/* ── 404 ───────────────────────────────────────────────────────────── */

.lost {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}
.lost .plate {
  margin: 0 auto 32px;
  pointer-events: none;
}
.lost .plate span:last-child {
  flex: 1;
  display: grid;
  place-items: center;
  font: 700 38px/1 var(--display);
  letter-spacing: 0.08em;
  color: var(--plate-ink);
}
.lost .lede {
  margin: 16px auto 28px;
}
