/* Last Mile website. Colours and type follow the brand page: Night (dark, orange glow),
   Page (paper, like the app's reading screen) and Signal (flat orange), New York for
   the story and the system sans for everything that explains. No web fonts: Apple
   devices have New York, others fall back to Georgia. */

:root {
  color-scheme: light dark;
  --orange: #e8590c;
  --orange-deep: #b8440a;
  --charcoal: #211714;
  --night: #17171c;
  --night-warm: #291a14;
  --paper: #f7f5f2;
  --amber: #f9a94b;

  --bg: #f7f5f2;
  --surface: #ffffff;
  --text: #211714;
  --muted: #6e625a;
  --line: #e6dfd8;
  --accent-text: var(--orange-deep);

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --night-ground: radial-gradient(900px circle at 100% 0, rgba(232, 89, 12, 0.42), rgba(232, 89, 12, 0) 60%),
                  linear-gradient(135deg, var(--night), var(--night-warm));
  --wide: 1120px;
  --narrow: 680px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131114;
    --surface: #1d1a1c;
    --text: #f2efec;
    --muted: #a89e96;
    --line: #2e2a2a;
    --accent-text: #f08a4b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
h1, h2, h3.serif, .serif { font-family: var(--serif); font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(40px, 7vw, 68px); margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.6vw, 46px); margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 6px; line-height: 1.3; }
p { margin: 0 0 14px; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 34em; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

/* ---- Navigation ---- */
.site-nav {
  position: sticky; top: 0; z-index: 5;
  background: rgba(23, 23, 28, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.site-nav .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 19px var(--serif); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.site-nav ul a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 15px; }
.site-nav ul a:hover { color: #fff; }
.nav-cta { margin-left: auto; }
.site-nav ul ~ .nav-cta { margin-left: 8px; }
@media (max-width: 860px) {
  .site-nav ul { display: none; }
  .site-nav ul ~ .nav-cta { margin-left: auto; }
}

/* ---- Buttons and the waitlist form ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 12px;
  background: var(--orange); color: #fff;
  font: 600 16px var(--sans); text-decoration: none; cursor: pointer;
  transition: background 0.15s;
}
.button:hover { background: #d44f08; }
.button.small { min-height: 36px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.button.dark { background: var(--charcoal); }
.button.dark:hover { background: #3a2a25; }

.waitlist { max-width: 460px; }
.waitlist .row { display: flex; gap: 8px; }
.waitlist input[type=email] {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08); color: #fff;
  font: 16px var(--sans);
}
.waitlist input[type=email]::placeholder { color: rgba(255, 255, 255, 0.5); }
.waitlist input[type=email]:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.waitlist .button { min-height: 48px; white-space: nowrap; }
.waitlist .note { font-size: 14px; color: rgba(255, 255, 255, 0.6); margin: 10px 0 0; }
.waitlist .note a { color: rgba(255, 255, 255, 0.85); }
.waitlist .status { font-size: 15px; font-weight: 600; margin: 10px 0 0; }
.waitlist .status:empty { display: none; }
.waitlist .status.ok { color: var(--amber); }
.waitlist .status.error { color: #ffb4a0; }
.waitlist .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist.done .row { display: none; }
@media (max-width: 480px) {
  .waitlist .row { flex-direction: column; }
}
/* On orange (Signal): charcoal button, dark text. */
.signal .waitlist input[type=email] { background: rgba(255, 255, 255, 0.95); color: var(--charcoal); border-color: transparent; }
.signal .waitlist input[type=email]::placeholder { color: #8a7d74; }
.signal .waitlist input[type=email]:focus { outline-color: var(--charcoal); }
.signal .waitlist .note, .signal .waitlist .note a { color: var(--charcoal); }
.signal .waitlist .status.ok, .signal .waitlist .status.error { color: var(--charcoal); }

/* ---- Looks ---- */
.night { background: var(--night-ground); color: #fff; }
.night .eyebrow, .night .lead { color: rgba(255, 255, 255, 0.72); }
.night a:not(.button) { color: #fff; }
.page { background: var(--bg); }
.signal { background: var(--orange); color: #fff; }
.signal .lead { color: var(--charcoal); }
section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 68px 0; } }

/* ---- The phone ---- */
.phone {
  width: 100%; max-width: 300px;
  border-radius: 46px; padding: 9px;
  background: #0b0b0d;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone img { border-radius: 38px; width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; }
.page .phone { box-shadow: 0 24px 50px rgba(33, 23, 20, 0.18); }

/* ---- Hero ---- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero .phone { justify-self: center; transform: rotate(3deg); }
.hero .soon { font-size: 15px; color: rgba(255, 255, 255, 0.65); margin: 18px 0 0; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .phone { max-width: 250px; transform: none; }
}

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.step .phone { max-width: 260px; margin: 0 auto 28px; }
.step h3 { font: 600 34px var(--serif); margin-bottom: 8px; }
.step h3 span { color: var(--orange); }
.step p { color: var(--muted); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 56px; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ---- The story ---- */
.story .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.story .art { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4); }
.excerpt {
  background: var(--paper); color: var(--charcoal);
  border-radius: 20px; padding: 28px 30px; margin: 28px 0 0;
  font: 19px/1.6 var(--serif);
}
.excerpt p { margin: 0 0 12px; }
.excerpt .label { font: 600 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #6e625a; }
.excerpt .turn { color: var(--orange-deep); font-weight: 600; margin: 0; }
.story .facts-wrap { display: block; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.fact { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 16px; }
.fact strong { display: block; font: 600 34px var(--serif); color: #fff; }
.fact span { color: rgba(255, 255, 255, 0.7); font-size: 15px; }
@media (max-width: 860px) {
  .story .wrap { grid-template-columns: 1fr; }
  .story .art { max-width: 420px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Features ---- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 88px; }
.feature:first-of-type { margin-top: 56px; }
.feature .shots { display: flex; gap: 20px; justify-content: center; }
.feature .shots .phone { max-width: 260px; }
.feature .shots .phone + .phone { margin-top: 48px; }
.feature.flip .text { order: 2; }
.feature p { color: var(--muted); }
.feature ul { margin: 0; padding-left: 20px; color: var(--muted); }
.feature li { margin: 6px 0; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 36px; margin-top: 72px; }
  .feature.flip .text { order: 0; }
  .feature .shots .phone { max-width: 220px; }
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 88px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; }
.card h3 { font-size: 17px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-bottom: 14px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; max-width: 860px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.plan.whole { background: var(--night-ground); color: #fff; border: 0; }
.plan .price { font: 600 34px var(--serif); margin: 4px 0 2px; }
.plan .per { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.plan.whole .per { color: rgba(255, 255, 255, 0.7); }
.plan ul { padding-left: 20px; margin: 0; }
.plan li { margin: 6px 0; }
.small-print { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 860px; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq { max-width: var(--narrow); margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 28px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; font-weight: 400; color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* ---- Closing call ---- */
.closing h2 { max-width: 14em; }

/* ---- Footer ---- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.7); padding: 48px 0 56px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer .tagline { font: italic 17px var(--serif); color: #fff; margin: 6px 0 4px; }

/* ---- Text pages: support, press, privacy ---- */
header.doc { background: var(--night-ground); color: #fff; padding: 56px 20px 44px; }
header.doc .inner { max-width: var(--narrow); margin: 0 auto; }
main.doc { max-width: calc(var(--narrow) + 40px); margin: 0 auto; }
header.doc .eyebrow { color: rgba(255, 255, 255, 0.6); }
header.doc h1 { font-size: clamp(34px, 6vw, 44px); margin: 8px 0 12px; }
header.doc p { color: rgba(255, 255, 255, 0.8); margin: 0; }
header.doc .lang { margin-top: 20px; font-size: 15px; }
header.doc .lang a { color: #fff; }
main.doc { padding: 12px 20px 72px; }
main.doc > p:first-child { margin-top: 32px; }
main.doc h2 { font-size: 26px; margin: 44px 0 10px; }
main.doc h3 { font-size: 17px; margin: 24px 0 4px; }
main.doc ul { padding-left: 22px; }
main.doc li { margin: 4px 0; }
.summary { border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-top: 28px; }
.muted { color: var(--muted); }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 16px 0; }
.downloads a { display: block; text-decoration: none; color: var(--text); font-size: 14px; }
.downloads img { border-radius: 12px; border: 1px solid var(--line); margin-bottom: 6px; background: var(--surface); }
.downloads .icon img { border-radius: 22%; }
.downloads .mark img { padding: 18px; aspect-ratio: 1; object-fit: contain; }
.downloads .mark.orange img { background: var(--orange); }
.downloads .mark.dark img { background: var(--night); }
.downloads .mark.light img { background: var(--paper); }
.not-found { min-height: 100vh; display: flex; align-items: center; }
