/* DRVN public site. Dark by default, like the app; a light variant for
   people who prefer it. Colours match the app's theme. */
:root {
  --cyan: #3cc8ea;
  --cyan-deep: #0e8cad;
  --orange: #ff8a2b;
  --bg: #0a1016;
  --raised: #121a22;
  --raised-2: #18222c;
  --line: #263340;
  --text: #f3f7fa;
  --muted: #9fb0bc;
  --accent: var(--cyan);
  --on-accent: #00151d;
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f9fb;
    --raised: #ffffff;
    --raised-2: #eef3f6;
    --line: #dbe4ea;
    --text: #0a1016;
    --muted: #4d5f6b;
    --accent: var(--cyan-deep);
    --on-accent: #ffffff;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
}
.top.solid { position: static; border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.top.solid .brand { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 15px; }
.top.solid nav a { color: var(--muted); }
.top nav a:hover { color: #fff; }
.top.solid nav a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end;
  color: #fff; background: #0a1016 url("/img/hero.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,22,.55) 0%, rgba(10,16,22,.15) 35%, rgba(10,16,22,.85) 75%, #0a1016 100%);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero::before {
    background: linear-gradient(180deg, rgba(10,16,22,.55) 0%, rgba(10,16,22,.15) 35%, rgba(10,16,22,.85) 80%, rgba(10,16,22,.95) 100%);
  }
}
.hero .wrap { position: relative; padding-bottom: 72px; width: 100%; }
.eyebrow { color: var(--orange); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; margin: 0 0 18px; max-width: 13ch; letter-spacing: -.02em; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: #d6e1e8; max-width: 38ch; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 16px; border: 1px solid transparent;
}
.btn.primary { background: var(--cyan); color: #00151d; }
.btn.ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn.soon { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); cursor: default; }
.btn svg { width: 20px; height: 20px; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--raised); border-block: 1px solid var(--line); }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.01em; }
.sub { color: var(--muted); max-width: 56ch; margin: 0 0 40px; font-size: 18px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
section.alt .card { background: var(--bg); }
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }
.icon.warm { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }

.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 26px 58px; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--on-accent); background: var(--accent);
}
.steps strong { display: block; font-size: 18px; }
.steps span { color: var(--muted); }

.band { text-align: center; }
.band .sub { margin: 0 auto 28px; }
.band .ctas { justify-content: center; }
.band .btn.soon { color: var(--text); background: var(--raised-2); border-color: var(--line); }

/* Long-form pages (privacy, terms, support) */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 6px; letter-spacing: -.01em; }
.doc .updated { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.note { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  .top nav { gap: 16px; }
  .top nav a.hide-sm { display: none; }
  section { padding: 64px 0; }
  .hero .wrap { padding-bottom: 48px; }
}
