/* Logbook website — look B2 "Night drive, logo blue" from the design canvas. */
:root {
  --bg: #0B1220;
  --bg-band: #0F172A;
  --card: #111A2E;
  --line: #1E293B;
  --line-strong: #334155;
  --text: #E2E8F0;
  --text-strong: #F8FAFC;
  --text-soft: #CBD5E1;
  --text-muted: #94A3B8;
  --accent: #54C5F8;
  --accent-hover: #8DDBFB;
  --on-accent: #0B1220;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; z-index: 10; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

h1, h2, h3 { color: var(--text-strong); margin: 0; }
h1, h2 { font-family: var(--display); letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; }
h3 { font-size: 18px; }
p { margin: 0; }

/* Header */
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--text-strong); text-decoration: none; }
.brand:hover { color: var(--text-strong); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 16px; }
.nav-links a { color: var(--text-soft); text-decoration: none; padding: 10px 0; }
.nav-links a:hover { color: var(--text-strong); }
.nav-links a.btn-ghost { border: 1px solid var(--accent); color: var(--accent); padding: 10px 18px; border-radius: 999px; font-weight: 600; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 18px; min-height: 44px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-outline { color: var(--text-strong); border: 1px solid var(--line-strong); font-weight: 600; }
.btn-outline:hover { color: var(--text-strong); border-color: var(--text-muted); }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-top: 80px; padding-bottom: 56px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--accent); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; }
.hero h1 { font-size: clamp(42px, 7vw, 72px); line-height: 1.02; max-width: 900px; }
.lead { font-size: 20px; color: var(--text-soft); max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fine { font-size: 15px; color: var(--text-muted); }

/* App preview cards */
.preview { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; padding-bottom: 72px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.preview .card { flex: 0 1 340px; }
.card-row { display: flex; justify-content: space-between; gap: 12px; font-family: var(--display); font-size: 18px; color: var(--text-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-soft); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip.solid { background: var(--line); border-color: var(--line); color: var(--text-strong); }

/* Sections */
section { scroll-margin-top: 16px; }
.band { background: var(--bg-band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 36px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid .card { padding: 24px; gap: 8px; }
.grid p, .muted { color: var(--text-soft); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps .card::before { counter-increment: step; content: counter(step); font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--accent); }

/* Pricing */
.prices { display: flex; flex-wrap: wrap; gap: 20px; }
.price { flex: 1 1 280px; border: 1px solid var(--line-strong); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.price.best { border: 2px solid var(--accent); }
.price h3 { color: var(--text-soft); }
.price.best h3 { color: var(--accent); }
.amount { font-family: var(--display); font-size: 44px; color: var(--text-strong); line-height: 1.1; }
.price p:last-child { color: var(--text-muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text-strong); padding: 14px 0; min-height: 44px; }
.faq details p { color: var(--text-soft); padding-bottom: 16px; }

/* Long-form pages (guide, privacy) */
.doc { max-width: 760px; padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.doc h1 { font-family: var(--display); font-size: clamp(36px, 6vw, 52px); line-height: 1.05; }
.doc h2 { font-size: 28px; margin-top: 24px; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--text-soft); }
.doc p { color: var(--text-soft); }
.doc strong { color: var(--text-strong); }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text-strong); background: var(--card); }
td { color: var(--text-soft); }
tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; font-size: 15px; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-soft); }
