/*
  Copyright (c) 2026 Velocity Drip LLC. All rights reserved.
  Proprietary and confidential -- see LICENSE.md.

  velocitydrip.com. The tokens are the app's (static/vd.css): dark on
  purpose, the same brand reps see on their phones. No web fonts: Inter if
  the visitor has it, else the system face. No inline styles anywhere (the
  Content-Security-Policy is style-src 'self').
*/

:root {
  color-scheme: dark;

  --bg:          #05070d;
  --bg-elev:     #0a0e18;
  --surface:     #0d1220;
  --surface-2:   #121a2b;
  --surface-3:   #18223a;

  --line:        rgba(148, 163, 184, 0.10);
  --line-2:      rgba(148, 163, 184, 0.18);
  --line-3:      rgba(148, 163, 184, 0.30);

  --text:        #e8edf6;
  --text-2:      #a4afc3;
  --text-3:      #7d88a1;

  --accent:      #38bdf8;
  --accent-hi:   #7dd3fc;
  --accent-ink:  #03121d;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-line: rgba(56, 189, 248, 0.38);
  --brand:       linear-gradient(135deg, #38bdf8 0%, #6366f1 62%, #8b5cf6 100%);

  --success:      #34d399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --success-line: rgba(52, 211, 153, 0.32);
  --danger:       #f87171;
  --danger-soft:  rgba(248, 113, 113, 0.10);
  --danger-line:  rgba(248, 113, 113, 0.32);

  --r-xl: 22px;
  --r-lg: 16px;
  --r:    12px;
  --r-sm: 10px;

  --shadow:    0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px -18px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 28px 70px -24px rgba(0, 0, 0, 0.85);

  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --gutter: 20px;
  --header-h: 64px;
}

/* ─── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 720px;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 420px at 72% -120px, rgba(99, 102, 241, 0.16), transparent 70%),
    radial-gradient(820px 380px at 18% -160px, rgba(56, 189, 248, 0.13), transparent 70%);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-hi); text-decoration: none; }
a:hover { color: #fff; }
p a, li a, .fine a { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--text); letter-spacing: -0.022em; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 479px) { :root { --gutter: 16px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink); font-weight: 650;
}
.skip:focus { top: 12px; color: var(--accent-ink); }

/* ─── Brand ────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.logo-mark {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 28%;
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 8px 22px -8px rgba(56, 189, 248, 0.6);
}
.logo-mark svg { width: 56%; height: 56%; }
.logo-sm { width: 22px; height: 22px; box-shadow: none; }
.brand-word { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; color: var(--text); }
.brand-word b { font-weight: 650; color: var(--accent); }

/* ─── Header ───────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 13, 0.76);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.top-nav { display: flex; gap: 26px; margin-left: 12px; }
.top-nav a { color: var(--text-2); font-size: 14.5px; font-weight: 520; }
.top-nav a:hover { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (max-width: 899px) { .top-nav { display: none; } }
@media (max-width: 479px) {
  .btn.btn-hide-xs { display: none; }
  .top-row { gap: 12px; }
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font: 600 14.5px/1.2 var(--font); letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: var(--r); }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 28px -12px rgba(56, 189, 248, 0.7); }
.btn-primary:hover { background: var(--accent-hi); color: var(--accent-ink); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost { border-color: var(--line-3); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); color: #fff; }
.btn-quiet { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }
.btn-quiet:hover { background: var(--surface-3); color: #fff; }
@media (max-width: 479px) { .btn-lg { white-space: normal; text-align: center; padding: 10px 18px; } }

.link-btn {
  display: block; margin: 12px auto 0; padding: 6px 8px;
  border: 0; background: none; cursor: pointer;
  color: var(--text-2); font: 500 14px/1.4 var(--font);
  text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px;
}
.link-btn:hover { color: var(--text); }

/* ─── Type helpers ─────────────────────────────────────────────── */
.eyebrow {
  margin-bottom: 14px;
  color: var(--accent); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.lead { margin-top: 20px; max-width: 34em; color: var(--text-2); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; }
.section-lead { margin-top: 16px; max-width: 36em; color: var(--text-2); font-size: 17px; }
.fine { margin-top: 14px; color: var(--text-3); font-size: 13.5px; line-height: 1.55; }
.note {
  margin-top: 26px; padding: 16px 18px; max-width: 34em;
  border: 1px solid var(--accent-line); border-radius: var(--r);
  background: var(--accent-soft); color: var(--text); font-size: 15px;
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); } }
@media (max-width: 599px) { .hero { padding: 44px 0 64px; } }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 720; letter-spacing: -0.032em; line-height: 1.06; max-width: 15em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 14.5px; }
.proof li { display: flex; align-items: center; gap: 9px; }
.proof li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--success-soft) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 1px var(--success-line) inset;
}

/* The phone illustration (aria-hidden; the figcaption says what it is). */
.hero-figure { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative; width: 100%; max-width: 330px;
  padding: 14px 14px 18px;
  border-radius: 38px;
  background: linear-gradient(180deg, #0f1525, #0a0e18);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 6px #0b0f1a, 0 0 0 7px var(--line-2), var(--shadow-lg), 0 40px 120px -40px rgba(99, 102, 241, 0.45);
}
.phone-bar { display: flex; align-items: center; gap: 8px; padding: 6px 6px 12px; font-size: 13px; font-weight: 650; color: var(--text); }
.pill {
  margin-left: auto; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-hi);
  font-size: 11.5px; font-weight: 650; box-shadow: 0 0 0 1px var(--accent-line) inset;
}
.draft { border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); }
.draft-photo {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(125, 211, 252, 0.35), transparent 60%),
    linear-gradient(160deg, #1e3a5f 0%, #172554 55%, #1e1b4b 100%);
  color: #cfe8fb;
}
.car { width: 74%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45)); }
.photo-count {
  position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(5, 7, 13, 0.7); color: var(--text); font-size: 11px; font-weight: 600;
}
.draft-body { padding: 14px 14px 16px; }
.draft-title { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.draft-meta { margin-top: 2px; color: var(--text-3); font-size: 12.5px; }
.draft-price { margin-top: 8px; font-size: 22px; font-weight: 750; letter-spacing: -0.02em; color: var(--accent-hi); }
.draft-desc { margin-top: 8px; color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.draft-actions { display: grid; gap: 8px; margin-top: 14px; }
.fake-btn {
  display: flex; align-items: center; justify-content: center; min-height: 36px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--text); font-size: 12.5px; font-weight: 650;
}
.fake-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.fake-ok { background: var(--success); border-color: transparent; color: #04170f; }
.approve {
  margin-top: 12px; padding: 12px;
  border-radius: 18px; background: rgba(18, 26, 43, 0.96);
  border: 1px solid var(--success-line);
  box-shadow: var(--shadow-lg);
}
/* On wide screens it floats over the photo's left side, where it hides
   nothing the reader needs. */
@media (min-width: 960px) {
  .approve { position: absolute; width: 240px; left: -72px; top: 62px; margin: 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
@media (min-width: 960px) and (max-width: 1139px) { .approve { left: -36px; } }
.approve-head { font-size: 12.5px; font-weight: 650; color: var(--text); }
.approve-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.approve-shots span {
  aspect-ratio: 1 / 1; border-radius: 6px; border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--surface-3), var(--surface-3)) 8px 10px / 60% 4px no-repeat,
    linear-gradient(var(--line-3), var(--line-3)) 8px 20px / 75% 3px no-repeat,
    linear-gradient(var(--line-3), var(--line-3)) 8px 28px / 50% 3px no-repeat,
    linear-gradient(160deg, #1e3a5f, #1e1b4b) 8px 36px / calc(100% - 16px) 32% no-repeat,
    var(--surface);
}
.approve-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 10px; }
.hero-figure figcaption { margin-top: 26px; color: var(--text-3); font-size: 12.5px; text-align: center; }

/* ─── Sections ─────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 599px) { .section { padding: 64px 0; } }
.section h2 { font-size: clamp(27px, 3.4vw, 40px); font-weight: 700; max-width: 22em; }

.steps { display: grid; gap: 16px; margin: 44px 0 0; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step {
  position: relative; padding: 24px 22px 26px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 11px; background: var(--brand); color: #fff;
  font-weight: 750; font-size: 15px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}
.step h3, .card h3 { margin-top: 18px; font-size: 18px; font-weight: 680; letter-spacing: -0.015em; }
.step p, .card p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.6; }

.cards { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { padding: 4px 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); }
.card h3 { position: relative; padding-top: 18px; }
.card h3::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 28px; height: 3px; border-radius: 3px; background: var(--brand);
}

.data-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 920px) { .data-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; } }
.checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checks li {
  position: relative; padding: 16px 18px 16px 52px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2);
  color: var(--text-2); font-size: 15px; line-height: 1.55;
}
.checks li::before {
  content: ""; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--success-soft) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 1px var(--success-line) inset;
}
.checks strong { color: var(--text); font-weight: 650; }

/* ─── Demo form ────────────────────────────────────────────────── */
.demo-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 920px) { .demo-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; } }
.demo-mail { margin-top: 22px; color: var(--text-2); }
.panel {
  padding: 28px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 479px) { .panel { padding: 22px 18px; } }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.opt { margin-left: 4px; color: var(--text-3); font-weight: 500; font-size: 12.5px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 13px;
  border-radius: var(--r-sm); border: 1px solid var(--line-3);
  background: var(--bg-elev); color: var(--text);
  font: 400 16px/1.4 var(--font);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { resize: vertical; min-height: 104px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: var(--bg-elev) right 12px center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a4afc3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.status {
  padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--danger-soft); border: 1px solid var(--danger-line);
  color: #fecaca; font-size: 14.5px;
}
.done { padding: 12px 4px; }
.done h3 { font-size: 22px; }
.done h3::before {
  content: ""; display: block; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%;
  background: var(--success-soft) center / 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 1px var(--success-line) inset;
}
.done p { margin-top: 10px; color: var(--text-2); }
.done:focus { outline: none; }

/* ─── Sign-in (and 404, code-not-found) ────────────────────────── */
.page-auth { display: flex; flex-direction: column; }
.auth { flex: 1; display: grid; place-items: start center; padding: 72px var(--gutter) 96px; }
@media (max-width: 479px) { .auth { padding-top: 40px; } }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 26px; font-weight: 700; }
.auth-card .status { margin-top: 16px; }
.auth-card .form { margin-top: 22px; }
.auth-sub { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.last { margin-top: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.last + .form { margin-top: 22px; }
#last-host { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.code-input {
  font-family: var(--mono) !important; font-size: 22px !important; letter-spacing: 0.16em;
  text-transform: uppercase; text-align: center;
}
.code-input::placeholder { color: var(--text-3); opacity: 0.6; }
.stack { display: grid; gap: 10px; margin-top: 24px; }

/* ─── Privacy notice ───────────────────────────────────────────── */
.prose-page { padding: 64px 0 96px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 720; }
.prose h2 { margin-top: 40px; font-size: 22px; font-weight: 680; }
.prose p, .prose li { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.prose p { margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); font-weight: 650; }

/* ─── Footer ───────────────────────────────────────────────────── */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; color: var(--text-3); font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-nav a { color: var(--text-2); font-size: 14px; }
.foot-nav a:hover { color: var(--text); }
.foot-legal { margin-top: 24px; color: var(--text-3); font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
