/* fleetpod.co.uk waitlist. Mobile first; dark navy + bright blue (Jamie's
   one-page mockup, 15 Nov). Fonts self-hosted (no third-party requests). */

@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/inter-400Regular.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/inter-600SemiBold.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/inter-700Bold.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 800; font-style: italic; font-display: swap; src: url(/fonts/inter-800ExtraBold_Italic.woff2) format('woff2'); }

:root {
  --bg: #07101f;
  --bg-2: #0b1a33;
  --panel: rgba(16, 30, 54, 0.82);
  --panel-solid: #0f1d34;
  --line: #24406b;
  --line-soft: #1b2f4f;
  --text: #f2f6fc;
  --muted: #a7b6cc;
  --faint: #73849e;
  --blue: #2f7dff;
  --blue-2: #1d63e8;
  --blue-glow: rgba(47, 125, 255, 0.35);
  --danger: #ff6b6b;
  --ok: #3ccf7a;
  --radius: 14px;
  --gutter: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Anything switched off stays off, whatever its display rule. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(120% 60% at 85% -10%, rgba(47, 125, 255, 0.28), transparent 60%),
    radial-gradient(90% 50% at -10% 20%, rgba(29, 99, 232, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 55%);
  background-color: var(--bg);
  min-height: 100vh;
}
a { color: #7fb0ff; }
a:focus-visible, button:focus-visible, input:focus-visible + svg, .option:focus-within {
  outline: 3px solid #9cc2ff;
  outline-offset: 2px;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px var(--gutter) 8px;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; }
.logo {
  margin: 0 0 14px;
  font-weight: 800;
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -1px;
}
.logo span, .accent { color: var(--blue); }
h1 {
  margin: 0;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(38px, 11vw, 68px);
  line-height: 1.02;
  letter-spacing: -1.5px;
}
.accent { display: inline-block; position: relative; padding-bottom: 6px; }
.accent::after {
  content: '';
  position: absolute; left: 0; right: 8%; bottom: 0; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), rgba(47, 125, 255, 0));
}
.subline { margin: 12px 0 14px; font-size: 17px; font-weight: 600; color: #dbe5f3; max-width: 34em; }

.ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #dbe5f3; }
.ticks svg, .option svg, .sample svg, .done svg, .button svg {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Image slots: Jamie's real app images only (showcase of 5 phones at the
   top; the Home screen beside the form). Plain frames until they arrive. */
.showcase, .home-shot { margin: 0; }
.showcase { margin: 4px 0 18px; }
.frame {
  border: 2px dashed var(--line);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--faint); font-size: 14px;
  background: rgba(15, 29, 52, 0.5);
}
.frame-wide { width: 100%; aspect-ratio: 16 / 9; }
.frame-phone { width: 240px; aspect-ratio: 9 / 19.5; border-radius: 28px; }
.showcase img, .home-shot img { display: block; width: 100%; height: auto; border-radius: 18px; }
.caption { margin-top: 6px; font-size: 12px; color: var(--faint); text-align: center; }
.home-shot { display: none; }

/* ---------- The form ---------- */
.join {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 16px;
  box-shadow: 0 0 0 1px rgba(47, 125, 255, 0.08), 0 20px 50px rgba(0, 0, 0, 0.35);
  scroll-margin-top: 12px;
}
.join h2, .done h2 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; }
.join h2::before {
  content: ''; display: inline-block; width: 5px; height: 22px; margin-right: 10px;
  background: var(--blue); border-radius: 2px; transform: skewX(-14deg); vertical-align: -3px;
}
.join-sub { margin: 4px 0 14px; color: var(--muted); font-size: 15px; }

.fields { display: grid; gap: 10px; }
.field { display: grid; gap: 4px; }
.label { font-size: 14px; font-weight: 600; color: #dbe5f3; }
.req { color: var(--blue); }
input[type='email'], input[type='text'] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--text);
  background: rgba(7, 16, 31, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
}
input[type='email']:focus, input[type='text']:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
input[aria-invalid='true'] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; }

.group { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.group legend { padding: 0; margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.option {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 16, 31, 0.55);
  font-size: 14px; line-height: 1.25;
  cursor: pointer;
  user-select: none;
}
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option:has(input:checked) { border-color: var(--blue); background: rgba(47, 125, 255, 0.16); box-shadow: inset 0 0 0 1px var(--blue); }
.option:has(input:checked) span::after { content: ' ✓'; color: var(--blue); font-weight: 700; }
.drivers { grid-template-columns: repeat(3, 1fr); }
.option.small { justify-content: center; text-align: center; min-height: 44px; }

.tester {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
  font-size: 15px; cursor: pointer;
}
.tester input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin-top: 12px; }
.turnstile:empty { margin: 0; }

.form-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--danger);
  border-radius: 10px;
  color: #ffd2d2;
  background: rgba(255, 107, 107, 0.08);
  font-size: 15px;
}

.button {
  margin-top: 16px;
  width: 100%;
  min-height: 54px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 18px; font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #3d8bff, var(--blue-2));
  border: 0;
  border-radius: 14px;
  box-shadow: 0 8px 24px var(--blue-glow);
  cursor: pointer;
}
.button svg { stroke: #fff; stroke-width: 2.4; }
.button:disabled { opacity: 0.7; cursor: progress; }
.consent { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.done { text-align: center; padding: 8px 4px 4px; outline: none; }
.done svg { width: 48px; height: 48px; stroke: var(--ok); stroke-width: 2; margin-bottom: 6px; }
.done p { color: #dbe5f3; margin: 10px 0 0; }
.done .done-small { color: var(--muted); font-size: 14px; }

/* ---------- Pricing, founder ---------- */
.pricing { margin-top: 18px; }
.pricing-plain {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-weight: 600;
  text-align: center;
}
.founding {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--panel);
}
.founding p { margin: 0; color: var(--muted); }
.founding strong { color: var(--text); }
.founding-tag {
  flex: none;
  padding: 6px 12px;
  font-weight: 800; font-style: italic;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
  transform: skewX(-8deg);
}

.founder {
  display: flex; flex-direction: column; gap: 14px;
  margin: 22px 0 8px;
}
blockquote { margin: 0; padding-left: 14px; border-left: 4px solid var(--blue); }
blockquote p { margin: 0; font-size: 18px; font-weight: 700; }
blockquote footer { color: var(--muted); font-style: italic; }
.sample { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: 1040px;
  margin: 24px auto 0;
  padding: 18px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}
.site-footer p { margin: 0 0 6px; }
.site-footer strong { color: var(--text); }

/* ---------- Wider screens ---------- */
@media (min-width: 560px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .drivers { grid-template-columns: repeat(5, 1fr); }
  .join { padding: 24px; }
}
@media (min-width: 860px) {
  .page { padding-top: 40px; }
  .hero { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
  .hero-text { flex: 1; }
  .showcase { margin: 0; }

  .ticks { grid-template-columns: repeat(3, auto); gap: 22px; }
  .ticks li { font-size: 14px; max-width: 12em; }
  .founder { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---------- Text pages (privacy, terms, confirm, unsubscribe) ---------- */
.text-page { max-width: 720px; }
.text-page .logo { display: inline-block; text-decoration: none; color: var(--text); margin-bottom: 24px; }
.text-page h1 { font-style: normal; font-weight: 700; font-size: 30px; letter-spacing: -0.5px; margin-bottom: 8px; }
.text-page h2 { font-size: 19px; margin: 26px 0 6px; }
.text-page p, .text-page li { color: #dbe5f3; }
.text-page .muted { color: var(--muted); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 18px;
  margin-top: 8px;
}
.card .button { max-width: 360px; }
.draft-note {
  padding: 10px 12px; border: 1px dashed #ffb84d; border-radius: 10px; color: #ffd9a0; font-size: 14px;
}
.result { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); color: #dbe5f3; }
.result.ok { border-color: var(--ok); }

/* ===== Look from Jamie's mockup (15 Nov, "Evidence That Protects (3)"):
   phones top right, two-part form box, pricing strip, founder strip.
   Words come from the brief only. ===== */
body {
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(47, 125, 255, 0.10) 62% 64%, transparent 64% 70%, rgba(47, 125, 255, 0.07) 70% 71%, transparent 71%) no-repeat,
    radial-gradient(70% 45% at 80% 8%, rgba(47, 125, 255, 0.30), transparent 70%),
    radial-gradient(60% 40% at 0% 100%, rgba(29, 99, 232, 0.18), transparent 70%),
    linear-gradient(180deg, #0b1a36 0%, var(--bg) 60%);
  background-color: var(--bg);
}
.showcase img { border-radius: 14px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5)); }
.showcase .caption { margin-top: 2px; }

/* The form box: heading (+ Home screen) | fields */
.join { display: block; }
.join-intro h2 { margin-bottom: 14px; }
.home-shot { display: none; }
.home-shot img { width: 100%; max-width: 220px; margin: 0 auto; border-radius: 22px; border: 1px solid var(--line); }
.join h2 { font-size: 26px; }

/* Pricing strip */
.pricing-plain, .founding {
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(47, 125, 255, 0.10), 0 0 30px rgba(47, 125, 255, 0.10);
}
.founding { flex-wrap: wrap; gap: 12px 18px; padding: 16px; border-color: var(--blue); }
.founding-tag { font-size: 18px; padding: 8px 16px; border-radius: 999px; transform: none; font-style: normal; background: transparent; border: 1.5px solid var(--blue); color: var(--text); }
.founding-tag span { color: var(--blue); }
.founding .price { font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.founding p { font-size: 16px; }

/* Founder strip */
.founder {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(15, 29, 52, 0.55);
}
blockquote { border-left-width: 4px; }

@media (min-width: 860px) {
  .hero { align-items: center; }
  .showcase { flex: 0 0 52%; }
  .join { display: grid; grid-template-columns: 240px 1fr; gap: 0 32px; padding: 28px; }
  .join-intro { border-right: 1px solid var(--line-soft); padding-right: 28px; }
  .home-shot { display: block; }
  .founding { flex-wrap: nowrap; padding: 18px 26px; }
  .founding .price { font-size: 38px; }
  .founder { padding: 22px 26px; }
}
