:root {
  --bg: #f6fbf8;
  --surface: #ffffff;
  --text: #17211c;
  --muted: #55645c;
  --accent: #157f5b;
  --accent-contrast: #ffffff;
  --border: #d9e5de;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1713;
    --surface: #17221c;
    --text: #e6efe9;
    --muted: #9db0a5;
    --accent: #3fc08f;
    --accent-contrast: #06130d;
    --border: #263a30;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav a { margin-left: 18px; text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--accent); }
.hero { padding: 56px 0 32px; display: grid; gap: 32px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.hero h1 { font-size: 2.4rem; line-height: 1.15; margin: 0 0 16px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
.hero img { width: 100%; max-width: 300px; justify-self: center; border-radius: 22px; border: 1px solid var(--border); }
.btn { display: inline-block; background: var(--accent); color: var(--accent-contrast); padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; margin: 0 8px 8px 0; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
section { padding: 24px 0; }
h2 { font-size: 1.5rem; margin: 0 0 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.shots img { width: 100%; border-radius: 16px; border: 1px solid var(--border); }
.demo { display: block; width: 100%; max-width: 300px; margin: 0 auto; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); }
main.doc { padding: 40px 0 24px; max-width: 720px; }
main.doc h1 { font-size: 2rem; margin: 0 0 8px; }
main.doc h2 { margin-top: 32px; }
main.doc .updated { color: var(--muted); margin: 0 0 24px; }
footer.site { border-top: 1px solid var(--border); margin-top: 40px; padding: 24px 0 40px; color: var(--muted); font-size: 0.93rem; }
footer.site a { color: var(--muted); margin-right: 16px; }
@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero h1 { font-size: 1.9rem; }
  nav a { margin: 0 14px 0 0; }
}

/* Signup form */
form { max-width: 720px; }
fieldset { border: 1px solid var(--border); border-radius: 14px; padding: 8px 18px 6px; margin: 0 0 20px; background: var(--surface); }
legend { padding: 0 8px; font-weight: 700; }
.field { margin: 14px 0; }
.row { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
label, .label { display: block; font-weight: 600; margin-bottom: 4px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 6px; flex: none; }
.choices { display: flex; gap: 18px; flex-wrap: wrap; }
.choices label { display: flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 6px 0 0; }
input[type="text"], input[type="email"], input[type="number"], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
input:focus-visible, textarea:focus-visible, button:focus-visible, .choices input:focus-visible, .check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[aria-invalid="true"] { border-color: #c0392b; }
.err-msg { color: #c0392b; font-size: 0.9rem; margin: 4px 0 0; }
@media (prefers-color-scheme: dark) { .err-msg { color: #ff8a7a; } [aria-invalid="true"] { border-color: #ff8a7a; } }
.notice { border-radius: 12px; padding: 14px 16px; margin: 0 0 20px; border: 1px solid var(--border); background: var(--surface); }
.notice.ok { border-color: var(--accent); }
.notice.err { border-color: #c0392b; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
button.btn:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 680px) { .row { grid-template-columns: 1fr; } }

/* Google Play badge */
.play { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 12px; padding: 9px 22px 9px 16px; text-decoration: none; margin: 0 0 16px; transition: transform .15s, box-shadow .15s; }
.play:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.play svg { width: 30px; height: 30px; flex: none; }
.play span { display: flex; flex-direction: column; font-size: 1.35rem; font-weight: 600; line-height: 1.1; letter-spacing: .01em; }
.play small { font-size: .62rem; font-weight: 500; letter-spacing: .08em; }
.cta { display: block; }

/* Supported cars */
.cars { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 12px; }
.car { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.car-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.car h3 { margin: 0; font-size: 1.05rem; }
.car .years { margin: 2px 0 8px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.car p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.tag { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--accent); color: var(--accent-contrast); }
.tag.exp { background: transparent; color: #a35f00; border: 1px solid #d99a3d; }
@media (prefers-color-scheme: dark) { .tag.exp { color: #f0b45a; border-color: #b9802c; } }
