/* motorclue.com landing pages (/ and /en/), on top of style.css.
   Colours are the app's own (frontend/theme/tokens.ts): its light and dark backgrounds,
   the amber of a dashboard warning light, and the three risk colours. System fonts only;
   nothing loaded from elsewhere (the Content-Security-Policy allows only this site). */

body.landing {
  --paper: #f5f4f1;
  --ink: #1a1a1a;
  --ink-2: #4a4a48;
  --card: #ffffff;
  --line: #e2ded6;
  --amber: #f59e0b;
  --amber-text: #8f5300;
  --amber-bg: #fef3dc;
  --amber-line: #f0cf8c;
  --bezel: #1a1a1a;
  --high: #b42318;
  --high-bg: #fdecea;
  --medium: #5c5300;
  --medium-bg: #fbf6d0;
  --low: #136b36;
  --low-bg: #e6f4ea;
  background: var(--paper);
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  body.landing {
    --paper: #0a0a0a;
    --ink: #f5f5f5;
    --ink-2: #a3a3a3;
    --card: #141414;
    --line: #2a2a2a;
    --amber-text: #f59e0b;
    --amber-bg: #1a1400;
    --amber-line: #3a2e00;
    --bezel: #2a2a2a;
    --high: #ef4444;
    --high-bg: #2a0f0f;
    --medium: #fde047;
    --medium-bg: #262000;
    --low: #22c55e;
    --low-bg: #0b2414;
  }
}

body.landing header,
body.landing main,
body.landing footer { max-width: 68rem; }
body.landing main { padding-top: 0; }
body.landing a { color: var(--amber-text); }
body.landing a:focus-visible,
body.landing summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
body.landing h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}
body.landing section { padding: 3.5rem 0 0; }
body.landing section + section { margin-top: 1rem; }

/* Hero: the name lit like a warning light, the promise, one phone. */
body.landing .hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 2.5rem;
}
.hero h1 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1::before {
  content: "";
  flex: none;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0.18em color-mix(in srgb, var(--amber) 22%, transparent),
              0 0 1.1em 0.15em color-mix(in srgb, var(--amber) 55%, transparent);
}
.promise {
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 6.2vw, 3.6rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 16ch;
}
.intro {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34rem;
}
.soon {
  display: inline-block;
  margin: 0;
  padding: 0.55rem 1rem;
  border: 1px solid var(--amber-line);
  border-radius: 999px;
  background: var(--amber-bg);
  color: var(--amber-text);
  font-weight: 650;
}

/* A plain phone: a dark bezel round an iPhone SE screenshot (375 x 667 pt). */
.phone {
  justify-self: center;
  width: min(17.5rem, 78vw);
  padding: 0.55rem;
  border-radius: 1.6rem;
  background: var(--bezel);
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.45);
}
.phone img,
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.1rem;
  background: var(--card);
}

/* How it works: a real sequence, so numbered. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  margin: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: #1a1a1a;
  font-weight: 800;
}
.steps h3 { margin: 0 0 0.35rem; font-size: 1.15rem; line-height: 1.3; }
.steps p { margin: 0; color: var(--ink-2); }

/* The three risk levels, in the app's colours. */
.risk { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.risk li {
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 0.6rem;
  border-left: 0.3rem solid currentColor;
  line-height: 1.4;
}
.risk-name { font-weight: 750; margin-right: 0.35rem; }
.risk-answer { color: var(--ink); }
.risk-high { color: var(--high); background: var(--high-bg); }
.risk-medium { color: var(--medium); background: var(--medium-bg); }
.risk-low { color: var(--low); background: var(--low-bg); }

/* Features: name and one line, in columns. */
.features dl {
  margin: 0;
  display: grid;
  gap: 1.5rem 2.5rem;
}
.features dt { font-weight: 700; margin: 0 0 0.2rem; }
.features dd { margin: 0; color: var(--ink-2); }

/* Screenshots: a row that scrolls sideways on a phone, a grid on a wide screen. */
.shots ul {
  list-style: none;
  margin: 0 -1rem;
  padding: 0.25rem 1rem 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(15rem, 70vw);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  overscroll-behavior-x: contain;
}
.shots li { margin: 0; scroll-snap-align: start; }
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--line); }
.shots figcaption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--ink-2); }

/* Questions. */
.faq { max-width: 44rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 650;
  list-style-position: inside;
}
.faq details p { margin: 0 0 1.1rem; color: var(--ink-2); }

.notice {
  margin: 3.5rem 0 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--amber-line);
  border-radius: 0.75rem;
  background: var(--amber-bg);
  max-width: 44rem;
}

body.landing footer { margin-top: 2rem; }
body.landing footer p { margin: 0.5rem 0; }

@media (min-width: 48rem) {
  body.landing .hero { grid-template-columns: 1fr auto; gap: 3rem; padding-top: 4rem; }
  .phone { width: 18.5rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .features dl { grid-template-columns: repeat(2, 1fr); }
  .shots ul {
    margin: 0;
    padding: 0.25rem 0 0;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
}
@media (min-width: 64rem) {
  .features dl { grid-template-columns: repeat(3, 1fr); }
}
