/*
  GetMotors marketing site. One stylesheet, no build step, no JavaScript.

  Visual language from the Revline prototype ("Revline SaaS.html") and the
  storefront's Showroom tokens (apps/storefront/src/app/globals.css): Archivo,
  square corners, ink rules, one red. The single exception to square corners
  is the number plate, because it is a number plate.

  Contrast (WCAG 2.2 AA): #ec3013 is 4.2:1 on white, so it is used only for
  fills, rules and display text. Small red text uses --signal-ink (#ae1800);
  buttons with a white label use --signal-fill (#e32e12).
*/

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #201e1d;
  --ink-muted: #524e4c;
  --paper: #f3f2f2;
  --card: #ffffff;
  --well: #eae9e9;
  --rule: #201e1d;
  --rule-soft: #8f8b89;
  --signal: #ec3013;
  --signal-fill: #e32e12;
  --signal-ink: #ae1800;
  --plate: #f7cf1d;
  --live: #1d7a4d;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1rem + 0.6vw, 1.3125rem);
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --step-3: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.75rem, 1.5rem + 5.6vw, 6rem);

  --gutter: 16px;
  --measure: 66ch;
  --page: 1240px;

  color-scheme: light;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-weight: 400;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p, li, dd { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--signal-ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: var(--step--1);
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; outline-color: var(--signal); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--signal-fill);
  background: var(--signal-fill);
  color: #fff;
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover { background: var(--signal-ink); border-color: var(--signal-ink); }

.button-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.button-quiet:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.button-small { min-height: 40px; padding: 8px 14px; font-size: var(--step--1); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 2px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  min-height: 60px;
}

@media (min-width: 720px) {
  .site-header .wrap { min-height: 68px; }
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.035em;
  text-decoration: none;
  line-height: 1;
}
.wordmark::after {
  content: "";
  width: 0.24em;
  height: 0.24em;
  margin-left: 0.06em;
  background: var(--signal);
}

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px 22px;
  list-style: none;
  font-size: 0.9375rem;
}
.site-nav a:not(.button) { text-decoration: none; padding: 6px 0; }
.site-nav a:not(.button):hover { text-decoration: underline; }
.site-nav a:not(.button) { display: inline-block; padding: 8px 0; }

/* Small screens keep Pricing and Sign in; the hero's own button is the demo
   link there, and the section links are one scroll away. */
.site-nav .nav-section,
.site-nav .nav-cta { display: none; }

@media (min-width: 560px) {
  .site-nav .nav-cta { display: list-item; }
}

@media (min-width: 900px) {
  .site-nav .nav-section { display: list-item; }
}

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

.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 104px); }

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
}

.hero h1 {
  font-size: var(--step-4);
  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: 11ch;
}

.hero-lede {
  margin-top: 28px;
  max-width: 36em;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-price {
  margin-top: 20px;
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.hero-price strong { color: var(--ink); }

/* The reg lookup: the admin's "Add a car", as an object. */

.lookup {
  background: var(--card);
  border: 2px solid var(--rule);
  box-shadow: 6px 6px 0 var(--ink);
  max-width: 460px;
  width: 100%;
  justify-self: center;
}

@media (min-width: 980px) {
  .lookup { justify-self: end; box-shadow: 10px 10px 0 var(--ink); }
}

.lookup-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 2px solid var(--rule);
  font-size: var(--step--1);
  font-weight: 700;
}
.lookup-bar span:last-child { font-weight: 400; color: var(--ink-muted); }

.lookup-body { padding: 20px 16px 8px; }

@media (min-width: 480px) {
  .lookup-body { padding: 24px 24px 8px; }
  .lookup-bar { padding-inline: 24px; }
}

.lookup-label {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  margin-bottom: 8px;
}

.plate {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--plate);
  overflow: hidden;
}
.plate-reg {
  flex: 1;
  padding: 8px 12px 6px;
  text-align: center;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  word-spacing: 0.12em;
  white-space: nowrap;
  transform: scaleY(1.14);
}

.lookup-fields { margin-top: 20px; }
/* Narrow: label with its source under it, value on the right.
   Wider: label | value | source, one line each. */
.lookup-fields > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label value" "source value";
  gap: 0 12px;
  align-items: center;
  padding: 8px 0;
  line-height: 1.3;
  border-top: 1px solid var(--rule-soft);
}
.lookup-fields dt { grid-area: label; font-size: var(--step--1); color: var(--ink-muted); }
.lookup-fields dd { grid-area: value; font-weight: 700; text-align: right; }
.lookup-fields .source {
  grid-area: source;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-muted);
  text-align: left;
}
.lookup-fields .yours dd { color: var(--signal-ink); }

@media (min-width: 480px) {
  .lookup-fields > div {
    grid-template-columns: 9.5rem minmax(0, 1fr) auto;
    grid-template-areas: "label value source";
    align-items: baseline;
    padding: 10px 0;
  }
  .lookup-fields dd { text-align: left; }
  .lookup-fields .source { text-align: right; }
}

.lookup figcaption {
  padding: 14px 16px 18px;
  border-top: 2px solid var(--rule);
  font-size: var(--step--1);
  color: var(--ink-muted);
  line-height: 1.5;
}
@media (min-width: 480px) { .lookup figcaption { padding-inline: 24px; } }

/* The one orchestrated moment: the looked-up fields arrive in order, once. */
@media (prefers-reduced-motion: no-preference) {
  .lookup-fields > div {
    animation: arrive 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(500ms + var(--i, 0) * 110ms);
  }
  .lookup-fields > div:nth-child(1) { --i: 0; }
  .lookup-fields > div:nth-child(2) { --i: 1; }
  .lookup-fields > div:nth-child(3) { --i: 2; }
  .lookup-fields > div:nth-child(4) { --i: 3; }
  .lookup-fields > div:nth-child(5) { --i: 4; }
  .lookup-fields > div:nth-child(6) { --i: 5; }
  .lookup-fields > div:nth-child(7) { --i: 6; }
  .lookup-fields > div:nth-child(8) { --i: 7; }
  .lookup-fields > div:nth-child(9) { --i: 8; }
}
@keyframes arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ── Sections ────────────────────────────────────────────────────────── */

.section { padding-block: clamp(56px, 8vw, 112px); border-top: 2px solid var(--rule); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 18px; font-size: var(--step-1); line-height: 1.45; color: var(--ink-muted); max-width: var(--measure); }

/* Problem → answer: a two-column ledger. */

.ledger { list-style: none; border-top: 2px solid var(--rule); }
.ledger > li {
  display: grid;
  gap: 8px 48px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule-soft);
}
.ledger-today { color: var(--ink-muted); }
.ledger-today strong { display: block; color: var(--ink); font-size: var(--step-1); line-height: 1.25; font-weight: 700; margin-bottom: 4px; }
.ledger-answer { position: relative; padding-left: 26px; }
.ledger-answer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  background: var(--signal);
}
.ledger-columns { display: none; }

@media (min-width: 820px) {
  .ledger > li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .ledger-columns {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
    padding-bottom: 10px;
    font-size: var(--step--1);
    font-weight: 700;
  }
  .ledger-answer { padding-top: 2px; }
}

/* Features: three columns in one ruled frame. */

.parts { display: grid; border: 2px solid var(--rule); background: var(--card); }
.part { padding: 28px 22px 32px; }
.part + .part { border-top: 2px solid var(--rule); }
.part h3 { font-size: var(--step-2); }
.part > p { margin-top: 10px; color: var(--ink-muted); }
.part ul { list-style: none; margin-top: 20px; }
.part li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--rule-soft); }
.part li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(9px + 0.5em);
  width: 9px;
  height: 9px;
  background: var(--signal);
}
.part h4 { margin: 28px 0 0; font-size: var(--step-0); font-weight: 700; }
.part h4 + ul { margin-top: 10px; }

/* Channel status: a filled square is working today, an open one is not yet. */
.channels { margin-top: 20px; }
.channels > div { padding: 9px 0 9px 22px; border-top: 1px solid var(--rule-soft); position: relative; }
.channels > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(9px + 0.5em);
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink-muted);
}
.channels > .is-live::before { border-color: var(--live); background: var(--live); }
.channels dt { font-weight: 700; }
.channels dd { font-size: var(--step--1); color: var(--ink-muted); line-height: 1.45; }
.channels > .is-live dd { color: var(--live); }

@media (min-width: 980px) {
  .parts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .part { padding: 32px 28px 36px; }
  .part + .part { border-top: 0; border-left: 2px solid var(--rule); }
}

/* Onboarding: a real sequence, so it is numbered. */

.steps { list-style: none; counter-reset: step; display: grid; gap: 0; border-top: 2px solid var(--rule); }
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 4px 16px;
  padding-block: 22px 26px;
  border-bottom: 1px solid var(--rule-soft);
}
.steps > li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--signal);
}
.steps h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.01em; }
.steps p { color: var(--ink-muted); max-width: var(--measure); }

@media (min-width: 980px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
  .steps > li {
    grid-template-columns: none;
    align-content: start;
    padding: 0 28px 0 0;
    border-bottom: 0;
    border-top: 2px solid var(--rule);
  }
  .steps > li + li { padding-left: 0; }
  .steps > li::before { grid-row: auto; padding-top: 20px; margin-bottom: 18px; font-size: var(--step-4); }
}

/* ── Pricing ─────────────────────────────────────────────────────────── */

.pricing { background: var(--ink); color: #fff; border-top: 0; }
.pricing .section-head p { color: #d6d2d0; }

.plans { display: grid; gap: 24px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.plan {
  display: flex;
  flex-direction: column;
  background: var(--card);
  color: var(--ink);
  border: 2px solid #fff;
}
.plan-top { padding: 26px 24px 22px; border-bottom: 2px solid var(--rule); }
.plan h3 { font-size: var(--step-2); letter-spacing: -0.02em; }
.plan-for { margin-top: 6px; color: var(--ink-muted); }

.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 22px; }
.plan-amount {
  font-size: clamp(3.5rem, 2.6rem + 3.6vw, 5.25rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.plan-period { font-size: var(--step-0); color: var(--ink-muted); line-height: 1.3; }
.plan-period strong { display: block; color: var(--ink); }

.plan-terms {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  font-size: var(--step--1);
  font-weight: 700;
}

.plan-features { list-style: none; padding: 8px 24px 4px; flex: 1; }
.plan-features li { padding: 12px 0; border-top: 1px solid var(--rule-soft); }
.plan-features li:first-child { border-top: 0; }
.plan-features .limit { font-weight: 700; font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.01em; }
.plan-features .detail { display: block; font-size: var(--step--1); color: var(--ink-muted); margin-top: 2px; }
.plan-features .none { color: var(--ink-muted); }

.plan-action { padding: 20px 24px 24px; }
.plan-action .button { width: 100%; }

.plan-pro { border-color: var(--signal); box-shadow: 0 -8px 0 var(--signal); }

.included {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 28px 24px 20px;
  border: 2px solid #fff;
}
.included h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
.included ul { list-style: none; display: grid; gap: 0 32px; }
.included li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid #5f5a58; }
.included li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(8px + 0.5em);
  width: 9px;
  height: 9px;
  background: var(--signal);
}
@media (min-width: 640px) { .included ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .included ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 24px;
  padding: 24px;
  background: #2f2c2b;
  border: 2px solid #fff;
}
.group h3 { font-size: var(--step-2); }
.group p { color: #d6d2d0; margin-top: 4px; max-width: 40em; }
.group .button-quiet { color: #fff; border-color: #fff; }
.group .button-quiet:hover { background: #fff; color: var(--ink); }

.small-print { margin-top: 40px; display: grid; gap: 14px 48px; color: #d6d2d0; font-size: 0.9375rem; }
.small-print p { max-width: var(--measure); }
.small-print strong { color: #fff; }
@media (min-width: 860px) { .small-print { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pricing a:not(.button) { color: #fff; }
.pricing :focus-visible { outline-color: #fff; }
.pricing .plan :focus-visible { outline-color: var(--ink); }

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

.faq-list { border-top: 2px solid var(--rule); max-width: 56rem; }
.faq-list details { border-bottom: 1px solid var(--rule-soft); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  width: 1em;
  text-align: center;
  font-size: 1.6em;
  font-weight: 400;
  line-height: 0.8;
  color: var(--signal-ink);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.faq-answer { padding: 0 0 24px; max-width: var(--measure); color: var(--ink-muted); }
.faq-answer p + p { margin-top: 12px; }
.faq-answer a { color: var(--signal-ink); }

/* ── Closing call to action ─────────────────────────────────────────── */

.cta { background: var(--signal-fill); color: #fff; border-top: 0; }
.cta .wrap { display: grid; gap: 28px; align-items: end; }
.cta h2 { font-size: var(--step-4); line-height: 0.95; letter-spacing: -0.045em; max-width: 12ch; }
.cta p { font-size: var(--step-1); max-width: 34em; line-height: 1.45; }
.cta .button {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.cta .button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta a:not(.button) { color: #fff; }
.cta :focus-visible { outline-color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 28px; }
@media (min-width: 980px) { .cta .wrap { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }

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

.site-footer { padding-block: 40px 48px; border-top: 2px solid var(--rule); font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 28px; }
.site-footer p { color: var(--ink-muted); max-width: 34em; margin-top: 10px; }
.footer-links { display: grid; gap: 24px; }
.footer-links h2 { font-size: var(--step--1); font-weight: 700; letter-spacing: 0; margin-bottom: 8px; }
.footer-links ul { list-style: none; }
.footer-links li { padding: 3px 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
@media (min-width: 720px) {
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-links { grid-template-columns: repeat(2, auto); gap: 48px; }
}

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

.lost { padding-block: clamp(56px, 10vw, 140px); }
.lost h1 { font-size: var(--step-4); line-height: 0.94; letter-spacing: -0.045em; max-width: 12ch; }
.lost p { margin-top: 24px; font-size: var(--step-1); color: var(--ink-muted); max-width: 34em; }
.lost .plate { display: inline-flex; margin-bottom: 36px; }
.lost .plate-reg { padding-inline: 20px; }
