/* Scooter IAP landing — dark engineering. No external fonts, no CDN. */

:root {
  --bg: #0b0f14;
  --bg-2: #0e141b;
  --panel: #10161f;
  --panel-2: #131b25;
  --line: #1c2431;
  --line-strong: #2a3543;
  --fg: #d9e0ea;
  --dim: #93a0b0;
  --mute: #5f6b7a;
  --acc: #4fe3a4;
  --acc-ink: #07271b;
  --warn: #e2b25c;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
  --rad: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono { font-family: var(--mono); }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

section { border-top: 1px solid var(--line); padding: 72px 0; scroll-margin-top: 64px; }
main > section:first-of-type { border-top: 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); text-decoration: none;
  font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
}
.brand-mark { color: var(--acc); flex: none; }
.head-nav { display: flex; gap: 22px; margin-left: auto; }
.head-nav a {
  color: var(--dim); text-decoration: none; font-size: 14px;
}
.head-nav a:hover { color: var(--fg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 700; }
.btn-primary:hover { background: #63efb3; border-color: #63efb3; }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-wide { display: block; margin-top: 18px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 14px; letter-spacing: -0.01em; font-weight: 700; }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: 17px; }
h4 { font-size: 16px; }

.kicker {
  font-family: var(--mono);
  color: var(--acc);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.sec-tag {
  font-family: var(--mono);
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.sec-lead { color: var(--dim); max-width: 640px; margin: 0 0 34px; }
.sub-h {
  font-size: 18px;
  margin: 40px 0 18px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.prose p { color: var(--dim); max-width: 74ch; margin: 0 0 14px; }
.prose strong { color: var(--fg); font-weight: 600; }
.note {
  border-left: 2px solid var(--warn);
  background: var(--panel);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  color: var(--dim);
  font-size: 14.5px;
  max-width: 74ch;
}

/* ---------- hero ---------- */
.hero { padding: 84px 0 76px; background: var(--bg); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 18px; }
.lead { color: var(--dim); font-size: 17.5px; max-width: 56ch; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-meta { color: var(--mute); font-size: 12.5px; letter-spacing: 0.04em; margin: 0; }

.term {
  border: 1px solid var(--line-strong);
  border-radius: var(--rad);
  background: var(--bg-2);
  overflow: hidden;
}
.term-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--mute); font-size: 11.5px; letter-spacing: 0.06em;
}
.term-dot { color: var(--line-strong); letter-spacing: 2px; }
.term pre {
  margin: 0;
  padding: 18px 16px;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--dim);
  white-space: pre-wrap;
  word-break: break-word;
}
.term pre .mono { color: inherit; }

/* ---------- feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--rad);
  padding: 20px;
}
.card-top {
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.card h3 { color: var(--fg); }
.card p { color: var(--dim); font-size: 14.5px; margin: 0; }
.card p + p { margin-top: 8px; }

/* ---------- errors ---------- */
.err-card h4 { display: flex; align-items: baseline; gap: 12px; color: var(--fg); }
.err-card p { font-size: 14px; }
.err-card strong { color: var(--fg); font-weight: 600; }
.code { color: var(--acc); font-weight: 700; }
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--warn);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  vertical-align: 1px;
  white-space: nowrap;
}

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--rad); }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--panel); }
caption { text-align: left; }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute);
  background: var(--bg-2);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody td { color: var(--dim); font-size: 14px; }
tbody td:first-child { white-space: nowrap; }
tbody tr:hover { background: var(--panel-2); }

/* ---------- pricing ---------- */
.price-grid { align-items: stretch; max-width: 860px; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--acc); background: var(--panel-2); }
.flag {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 2px 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--acc);
  border: 1px solid var(--acc);
  border-radius: 99px;
}
.price { font-size: 34px; font-weight: 700; margin: 0 0 14px; }
.price .per { font-size: 14px; font-weight: 400; color: var(--mute); }
.price-card ul { list-style: none; margin: 0; padding: 0; color: var(--dim); font-size: 14.5px; }
.price-card li { padding: 7px 0 7px 20px; position: relative; }
.price-card li::before { content: "—"; position: absolute; left: 0; color: var(--mute); }
.pay-note {
  margin: 22px 0 0;
  color: var(--mute);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  padding: 16px 40px 16px 0;
  position: relative;
  color: var(--fg);
  font-weight: 600;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 8px; top: 14px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--acc);
  transition: transform 0.15s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--dim); margin: 0; padding: 0 0 18px; max-width: 70ch; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0 28px; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 32px;
  margin-bottom: 30px;
}
.foot-logo { color: var(--acc); font-weight: 700; letter-spacing: 0.1em; margin: 0 0 10px; }
.foot-brand p { color: var(--dim); font-size: 14px; margin: 0 0 10px; max-width: 40ch; }
.foot-copy { color: var(--mute); font-size: 12.5px; }
.foot-h { color: var(--mute); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 12px; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a, .foot-dl a { color: var(--dim); text-decoration: none; font-size: 14px; }
.foot-nav a:hover, .foot-dl a:hover { color: var(--acc); }
.foot-dl a { font-family: var(--mono); font-size: 13px; }
.foot-note { color: var(--mute); font-size: 13px; margin: 10px 0 0; }
.legal {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--mute);
  font-size: 12.5px;
  margin: 0;
  max-width: 90ch;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .term { max-width: 640px; }
}
@media (max-width: 700px) {
  section { padding: 52px 0; }
  .hero { padding: 56px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .head-nav { display: none; }
  .head-row { justify-content: space-between; }
  .btn { width: 100%; }
  .cta-row .btn, .head-row .btn-sm { width: auto; }
  .price { font-size: 30px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
}
