/* obdtrip.com — public site.
   One stylesheet, no framework, no web fonts fetched from anywhere: the
   Worker's content security policy allows only same-origin assets, and a
   landing page that renders before the network settles is part of the point. */

:root {
  color-scheme: dark;

  --ink: #eaf1fb;
  --ink-dim: #9fb0c9;
  --ink-faint: #6d7f9b;

  --bg: #070b16;
  --bg-2: #0b1222;
  --panel: #0e1729;
  --line: rgba(122, 155, 205, 0.16);

  --blue: #6ba6f5;
  --blue-deep: #3d6fd6;
  --green: #4fd39a;
  --amber: #f5b93c;
  --red: #fb7359;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --page: 1120px;
  --radius: 20px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 660; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--page), calc(100% - 40px)); margin-inline: auto; }
.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-dim); max-width: 62ch; }
.eyebrow {
  font-size: 0.74rem;
  font-weight: 680;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}
.muted { color: var(--ink-dim); }

/* ------------------------------------------------------------------ nav --- */

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(7, 11, 22, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
header.site.stuck { border-bottom-color: var(--line); }

header.site .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
header.site .brand { display: flex; align-items: center; gap: 10px; font-weight: 680; color: var(--ink); }
header.site .brand:hover { text-decoration: none; }
header.site nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
header.site nav a { color: var(--ink-dim); font-size: 0.94rem; }
header.site nav a:hover { color: var(--ink); text-decoration: none; }

@media (max-width: 720px) {
  header.site nav a.hide-sm { display: none; }
}

/* ----------------------------------------------------------------- hero --- */

.hero { position: relative; padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }

.hero::before {
  content: '';
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 780px;
  background:
    radial-gradient(46% 52% at 22% 26%, rgba(61, 111, 214, 0.32), transparent 68%),
    radial-gradient(38% 46% at 80% 18%, rgba(79, 211, 154, 0.16), transparent 66%),
    radial-gradient(30% 40% at 62% 62%, rgba(251, 115, 89, 0.12), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

.hero .wrap { position: relative; display: grid; gap: clamp(36px, 5vw, 60px); grid-template-columns: 1fr; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }

.hero h1 span.grad {
  background: linear-gradient(103deg, var(--blue) 8%, var(--green) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 630;
  font-size: 0.97rem;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: linear-gradient(180deg, #7db1f8, var(--blue-deep)); color: #05101f; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.quiet { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.btn.quiet:hover { border-color: var(--blue); }

.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-size: 0.87rem; color: var(--ink-faint); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }

/* --------------------------------------------------------------- phone --- */

.phone-stage { position: relative; display: grid; place-items: center; }
.phone-stage svg { filter: drop-shadow(0 42px 70px rgba(2, 6, 16, 0.72)); }

/* -------------------------------------------------------------- section --- */

section.band { padding: clamp(60px, 9vw, 110px) 0; position: relative; }
section.band.tint { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }

.section-head { max-width: 66ch; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head p { margin-top: 16px; }

.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > *:first-child { order: 2; }
}

/* ---------------------------------------------------------------- cards --- */

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 9px; }
.card p { color: var(--ink-dim); font-size: 0.96rem; margin: 0; }
.card p + p { margin-top: 10px; }
.card .icon { margin-bottom: 16px; display: block; }

.figure {
  background: linear-gradient(160deg, rgba(107, 166, 245, 0.09), rgba(79, 211, 154, 0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 30px);
}
.figure figcaption { color: var(--ink-faint); font-size: 0.85rem; margin-top: 14px; text-align: center; }

/* -------------------------------------------------------------- privacy --- */

.ledger { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ledger { grid-template-columns: 1fr 1fr; } }

.ledger .col {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.02);
}
.ledger h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 1rem; }
.ledger ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ledger li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-dim); }
.ledger li svg { flex: none; margin-top: 3px; }
.ledger .stays h3 { color: var(--green); }
.ledger .never h3 { color: var(--red); }

/* ------------------------------------------------------------------ faq --- */

.faq { display: grid; gap: 10px; max-width: 78ch; }
details.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
  background: rgba(255, 255, 255, 0.02);
}
details.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  margin-left: auto;
  color: var(--blue);
  font-size: 1.3rem;
  line-height: 1;
}
details.faq-item[open] summary::after { content: '\2013'; }
details.faq-item p { color: var(--ink-dim); font-size: 0.96rem; padding-bottom: 6px; }

/* --------------------------------------------------------------- footer --- */

footer.site { border-top: 1px solid var(--line); padding: 52px 0 40px; margin-top: 40px; }
footer.site .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
footer.site h4 { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a { color: var(--ink-dim); font-size: 0.93rem; }
footer.site a:hover { color: var(--ink); }
footer.site .fine { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.85rem; display: flex; gap: 16px; flex-wrap: wrap; }

/* ------------------------------------------------------------- document --- */

article.doc { padding: clamp(48px, 7vw, 84px) 0; }
article.doc .wrap { width: min(760px, calc(100% - 40px)); }
article.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 10px; }
article.doc .updated { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 40px; }
article.doc h2 { font-size: 1.42rem; margin: 44px 0 14px; }
article.doc h3 { font-size: 1.06rem; margin: 28px 0 10px; }
article.doc p, article.doc li { color: var(--ink-dim); font-size: 1rem; }
article.doc ul, article.doc ol { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 20px; }
article.doc strong { color: var(--ink); font-weight: 620; }
article.doc code { font-family: var(--mono); font-size: 0.88em; background: var(--panel); padding: 2px 6px; border-radius: 5px; color: var(--ink); }
article.doc table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 0.95rem; }
article.doc th, article.doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-dim); }
article.doc th { color: var(--ink); font-weight: 620; }
article.doc .callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  background: rgba(107, 166, 245, 0.05);
  margin: 24px 0;
}
article.doc .callout p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- reveal --- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- misc ---- */

.center { text-align: center; }
.stack { display: grid; gap: 16px; }
.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.83rem;
  color: var(--ink-dim);
}

/* --------------------------------------------------------------- utility --- */
/* Small layout helpers, as classes rather than style attributes: the Worker
   sets style-src 'self', which forbids the attribute outright. Anything an
   element needs is spelled here instead. */

.figure-svg { width: 100%; height: auto; }
.flush { margin: 0; }
.mt-18 { margin-top: 18px; }
.mt-22 { margin-top: 22px; }
.mt-26 { margin-top: 26px; }
.mb-12 { margin-bottom: 12px; }
.mb-34 { margin-bottom: 34px; }

.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
  color: var(--ink-dim);
  font-size: 0.98rem;
}

.narrow { max-width: 720px; }
.lede-centred { margin: 18px auto 30px; }
.cta-centred { justify-content: center; }
.features-stack { gap: clamp(64px, 9vw, 118px); }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 680;
  margin-bottom: 12px;
}
.footer-blurb { font-size: 0.9rem; max-width: 30ch; }

/* 404 */
.void { min-height: 70vh; display: grid; place-items: center; }
.void h1 { font-size: 2rem; }
.void .mark { margin-bottom: 20px; }
.void .lede { margin: 14px auto 26px; }
