/* Driveholic site: shared header, the sections after the scroll film,
   footer and the document pages. The scroll film itself is styled inside
   index.html. No third-party requests: fonts come from /fonts. */

:root {
  --bg: #050505;
  --bg-2: #0b0c0e;
  --surface: #111317;
  --surface-2: #16191e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #00FF6A;
  --accent-soft: rgba(0, 255, 106, 0.12);
  --accent-glow: 0 0 24px rgba(0, 255, 106, 0.4);
  --amber: #FFC531;
  --text: #F2F2F2;
  --muted: #9A9AA2;
  --dim: #6c6f76;
  --head: "Rajdhani", "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --hdr-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--hdr-h) + 12px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #000; padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* ---------- Header (every page) ---------- */

.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: var(--hdr-h);
  padding: env(safe-area-inset-top) clamp(16px, 4vw, 48px) 0;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.hdr.solid {
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.hdr .mark { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: 4px; color: var(--text); text-decoration: none; flex: none; }
.hdr .mark b { color: var(--accent); font-weight: 700; }
.hdr-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.hdr-links a { font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: #d6d6db; text-decoration: none; transition: color .2s; }
.hdr-links a:hover, .hdr-links a[aria-current="page"] { color: var(--accent); }
.hdr-right { display: flex; align-items: center; gap: 12px; }
.hdr .cta {
  font-family: var(--head); font-weight: 700; letter-spacing: 1.5px; font-size: 15px; text-transform: uppercase;
  border: 1.5px solid var(--accent); color: var(--accent); padding: 9px 18px; border-radius: 2px;
  text-decoration: none; white-space: nowrap; transition: background .2s, color .2s;
}
.hdr .cta:hover { background: var(--accent); color: #000; }
.hdr-menu {
  display: none; width: 42px; height: 42px; border-radius: 4px; border: 1px solid var(--line-strong);
  background: rgba(5, 5, 5, 0.5); color: var(--text); cursor: pointer; place-items: center; padding: 0;
}
.hdr-menu svg { width: 22px; height: 22px; }
.hdr-menu .x { display: none; }
.hdr.open .hdr-menu .x { display: block; }
.hdr.open .hdr-menu .bars { display: none; }

@media (max-width: 960px) {
  :root { --hdr-h: 64px; }
  .hdr .mark { font-size: 18px; letter-spacing: 3px; }
  .hdr .cta { font-size: 13px; padding: 7px 12px; }
  .hdr-menu { display: grid; }
  .hdr-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 18px; background: rgba(5, 5, 5, 0.97); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .hdr-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .hdr.open { background: rgba(5, 5, 5, 0.97); }
  .hdr.open .hdr-links { opacity: 1; transform: none; pointer-events: auto; }
}
.hdr-links .menu-cta { display: none; }
@media (max-width: 400px) {
  .hdr .cta { display: none; }
  .hdr-links .menu-cta { display: block; color: var(--accent); border-bottom: 0; }
}

/* ---------- Sections after the scroll film (index) ---------- */

/* Scrolls up over the fixed film once its track ends. */
.after { position: relative; z-index: 30; background: var(--bg); }

.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec-alt { background: linear-gradient(180deg, var(--bg), var(--bg-2) 14%, var(--bg-2) 86%, var(--bg)); }
.sec-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: 4px; color: var(--accent); text-transform: uppercase; }
.kicker::after { content: ""; display: inline-block; width: 40px; height: 1.5px; background: var(--accent); vertical-align: middle; margin-left: 12px; box-shadow: 0 0 8px var(--accent); }
.sec-head.center .kicker::after { display: none; }
.sec-head h2 { font-family: var(--head); font-weight: 700; font-size: clamp(34px, 4.6vw, 60px); line-height: 1; letter-spacing: .01em; margin: 14px 0 14px; }
.sec-head h2 b { color: var(--accent); font-weight: 700; }
.sec-head p { color: var(--muted); font-size: 17px; line-height: 1.65; }

/* Feature "pages": one per stop of the film. */
.fpage {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 5vw, 80px); min-height: min(92vh, 860px); padding: clamp(40px, 6vw, 72px) 0;
}
.fpage + .fpage { border-top: 1px solid var(--line); }
.fpage.flip .fvis { order: 2; }
.fvis { position: relative; padding: 0 0 72px; }
.fshot {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong); background: #000;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 255, 106, 0.06);
}
.fshot img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 60%; animation: drift 18s ease-in-out infinite alternate; }
.fshot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 5, 0.55)); pointer-events: none; }
.fshot .tagline {
  position: absolute; left: 18px; top: 16px; z-index: 1;
  font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: 3px; color: var(--accent);
  background: rgba(5, 5, 5, 0.72); border: 1px solid rgba(0, 255, 106, 0.35); padding: 5px 10px; border-radius: 2px;
}
.fpage.flip .fshot .tagline { left: auto; right: 18px; }
.fvis .device { position: absolute; right: -16px; bottom: 0; display: block; --s: .48; z-index: 2; }
.fpage.flip .fvis .device { right: auto; left: -16px; }
@media (max-width: 1240px) { .fvis .device { --s: .4; } .fvis { padding-bottom: 60px; } }
.ftext .num { font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: 4px; color: var(--accent); }
.ftext .num::after { content: ""; display: inline-block; width: 40px; height: 1.5px; background: var(--accent); vertical-align: middle; margin-left: 12px; box-shadow: 0 0 8px var(--accent); }
.ftext h2 { font-family: var(--head); font-weight: 700; font-size: clamp(36px, 4.2vw, 58px); line-height: 1; margin: 14px 0 6px; }
.ftext h3 { font-family: var(--head); font-weight: 600; font-size: 16px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
.ftext p { font-size: 16.5px; line-height: 1.7; color: #d4d4d8; margin-top: 18px; }
.ftext ul { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.ftext li { font-size: 15px; color: #c9c9cf; display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.ftext li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 7px; background: var(--accent); box-shadow: 0 0 8px var(--accent); transform: rotate(45deg); }
.ftext .note { font-size: 13.5px; color: var(--muted); margin-top: 20px; padding-left: 14px; border-left: 2px solid rgba(0, 255, 106, 0.4); }

@media (max-width: 900px) {
  .fpage { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .fpage.flip .fvis { order: 0; }
  .fshot { aspect-ratio: 4 / 5; }
  .fvis { padding: 0 0 40px; }
  .fvis .device { --s: .34; right: 10px; }
  .fpage.flip .fvis .device { left: 10px; right: auto; }
}

/* Cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 24px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  transition: border-color .25s ease, transform .25s ease;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), rgba(0, 255, 106, 0.12), transparent 60%);
}
@media (hover: hover) { .card:hover { border-color: rgba(0, 255, 106, 0.32); transform: translateY(-2px); } .card:hover::after { opacity: 1; } }
.card .icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(0, 255, 106, 0.3); color: var(--accent); margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: .02em; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.card a.more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.card a.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); margin-top: clamp(40px, 6vw, 64px); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 24px 20px; background: var(--surface); }
.stat strong { display: block; font-family: var(--head); font-weight: 700; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; color: var(--accent); text-shadow: 0 0 20px rgba(0, 255, 106, 0.3); }
.stat span { color: var(--muted); font-size: 14px; }

/* Steps */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--head); font-weight: 700; font-size: 34px; color: var(--accent); margin-bottom: 8px; }
.step h3 { font-family: var(--head); font-weight: 700; font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: rgba(0, 255, 106, 0.3); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative; font-weight: 600; font-size: 16px; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--head); font-size: 26px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 20px 18px; color: #c9c9cf; font-size: 15px; line-height: 1.7; }
.faq .ans a { color: var(--accent); }

/* Closing call to action */
.endcta {
  position: relative; text-align: center; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px); border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(0, 255, 106, 0.28);
  background: radial-gradient(700px 260px at 50% 0%, rgba(0, 255, 106, 0.16), transparent 70%), var(--surface);
}
.endcta h2 { font-family: var(--head); font-weight: 700; font-size: clamp(36px, 5vw, 62px); line-height: 1; }
.endcta h2 b { color: var(--accent); font-weight: 700; }
.endcta p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 560px; margin: 14px auto 0; }
.endcta .stores { justify-content: center; margin-top: 28px; }

/* ---------- Footer (every page) ---------- */

.site-footer { position: relative; z-index: 30; background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .mark { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: 4px; color: var(--text); text-decoration: none; }
.foot-brand .mark b { color: var(--accent); }
.foot-brand p { margin-top: 12px; max-width: 320px; line-height: 1.6; }
.foot-col h4 { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: 3px; color: var(--text); text-transform: uppercase; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; overflow-wrap: anywhere; }
.foot-col a:hover, .foot-col a[aria-current="page"] { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 2px; font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase;
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.btn-primary { background: var(--accent); color: #001a0b; box-shadow: var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 0 34px rgba(0, 255, 106, 0.6); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Document pages (privacy, terms, account deletion, support) ---------- */

.doc-page { background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; margin: 0; }
:where(.doc-page) a { color: var(--accent); }
.doc { padding: calc(var(--hdr-h) + 48px) 0 40px; min-height: 70vh; }
.doc .wrap { max-width: 820px; }
.doc-head { margin-bottom: 30px; }
.doc-head .kicker { display: block; }
.doc-head h1 { font-family: var(--head); font-weight: 700; font-size: clamp(40px, 6vw, 64px); line-height: 1; margin: 14px 0 12px; }
.doc-head p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.doc-meta { display: grid; gap: 6px; margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.doc-meta div { color: var(--muted); }
.doc-meta b { color: var(--text); }

.prose { color: #d6d8dc; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.prose h2 { font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: .01em; color: var(--text); margin: 42px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); line-height: 1.2; }
.prose h2 .num { color: var(--accent); margin-right: 10px; }
.prose h3 { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--text); margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose b, .prose strong { color: var(--text); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--accent); }

.toc { margin: 0 0 32px; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); }
.toc strong { display: block; margin-bottom: 10px; font-family: var(--head); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--dim); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.toc li { margin-bottom: 6px; break-inside: avoid; color: var(--dim); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.callout { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid rgba(0, 255, 106, 0.28); background: var(--accent-soft); margin: 0 0 22px; }
.callout svg { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: 3px; }
.callout p { margin: 0; }
.callout.warn { border-color: rgba(255, 197, 49, 0.35); background: rgba(255, 197, 49, 0.08); }
.callout.warn svg { color: var(--amber); }

.steps-list { list-style: none; padding: 0 !important; margin: 0 0 22px; counter-reset: s; }
.steps-list li { position: relative; padding: 16px 16px 16px 62px; margin-bottom: 10px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.steps-list li::before { counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #001a0b; font-weight: 800; font-family: var(--head); font-size: 17px; }

.table-wrap { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--dim); font-family: var(--head); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.data-table td:first-child { color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
  .data-table { min-width: 0; }
  .data-table thead { display: none; }
  .data-table tr { display: block; padding: 12px 14px; margin-bottom: 8px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
  .data-table td { display: block; padding: 0; border: 0; }
  .data-table td + td { margin-top: 6px; color: var(--muted); }
}
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.pill.del { background: rgba(255, 82, 82, 0.14); color: #ff8a8a; }
.pill.anon { background: rgba(255, 197, 49, 0.14); color: var(--amber); }
.pill.keep { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

.mail { display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-strong); font-weight: 700; text-decoration: none; word-break: break-all; }
.en { margin-top: 40px; padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.7; }
.en h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 20px; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.contact-grid .card h3 { margin: 0 0 6px; }
.contact-grid .card p { margin: 0; }
@media (max-width: 620px) { .contact-grid { grid-template-columns: 1fr; } }

.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--hdr-h) + 24px) 16px 40px; }
.notfound h1 { font-family: var(--head); font-weight: 700; font-size: clamp(80px, 18vw, 140px); line-height: 1; color: var(--accent); text-shadow: var(--accent-glow); }
.notfound p { color: var(--muted); font-size: 17px; margin: 10px 0 26px; }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fshot img { animation: none; }
}
