/* VirtualPitstop website — same calm, black-and-champagne look as the app. */

@font-face { font-family: "Inter"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/inter-300.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/montserrat-600.woff2") format("woff2"); }

:root {
  --bg: #0a0a0a;
  --surface: #141413;
  --inset: #0f0f0e;
  --line: #252420;
  --line-strong: #35332e;
  --text: #f4f1ea;
  --text-2: #c9c4b8;
  --muted: #8c887e;
  --accent: #c8a96a;
  --accent-light: #e2cc9c;
  --on-accent: #0a0a0a;
  --danger: #d9776a;
  --radius: 8px;
  --gutter: 20px;
  --max: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 12px; }

/* Type */
.eyebrow { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.label { font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.display {
  margin: 0;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.08;
  font-size: clamp(40px, 9.5vw, 84px);
}
.display .gold { color: var(--accent); }
.h2 { margin: 0; font-weight: 300; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.15; font-size: clamp(28px, 5vw, 44px); }
.h3 { margin: 0; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 15px; }
.lead { margin: 0; color: var(--text-2); font-size: clamp(17px, 2.2vw, 20px); line-height: 1.6; font-weight: 300; }
.copy { margin: 0; color: var(--text-2); }

/* Logo (rebuilt from the app's vector logo) */
.logo { display: inline-flex; flex-direction: column; align-items: center; color: var(--text); text-decoration: none; }
.logo svg { display: block; overflow: visible; }
.logo .word { font-family: "Montserrat", sans-serif; letter-spacing: 0.365em; padding-left: 0.365em; line-height: 1.2; white-space: nowrap; }
.logo .word b { font-weight: 600; }
.logo .word span { font-weight: 400; }
.logo .tag { display: flex; align-items: center; gap: 0.51em; margin-top: 0.32em; opacity: 0.85; }
.logo .tag i { display: block; width: 1.73em; height: max(1px, 0.05em); background: currentColor; }
.logo .tag em { font-style: normal; font-family: "Montserrat", sans-serif; font-weight: 500; font-size: 0.423em; letter-spacing: 0.68em; padding-left: 0.68em; line-height: 1.3; }
.logo-row { flex-direction: row; gap: 12px; }
.logo-row .word { font-size: 13px; display: none; }
.btn { white-space: nowrap; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-2); }
.nav a:hover { color: var(--text); }
.nav .nav-link { display: none; }
.page-header { position: static; border-bottom: 1px solid var(--line); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 12px/1 "Inter", sans-serif; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn-gold { background: var(--accent); color: var(--on-accent); }
.btn-gold:hover { background: var(--accent-light); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--accent); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 11px; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.05) 26%, rgba(10,10,10,0.2) 50%, rgba(10,10,10,0.92) 78%, var(--bg) 100%);
}
.hero-content { position: relative; min-height: 100svh; padding-top: 104px; padding-bottom: 56px; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; }
.hero-logo { display: flex; justify-content: center; margin-bottom: auto; padding-bottom: 40px; }
.hero-logo .logo { font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.hero-note b { color: var(--accent); font-weight: 500; }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 680px; margin-bottom: 44px; }

/* Pillars */
.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--bg); padding: 30px 26px; display: grid; gap: 14px; align-content: start; }
.pillar .num { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; color: var(--accent); }
.pillar .h2 { font-size: 30px; }
.pillar ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pillar li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.pillar li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }

/* Screens */
.screens { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 12px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.screens::-webkit-scrollbar { display: none; }
.screen { flex: 0 0 min(260px, 72vw); scroll-snap-align: center; display: grid; gap: 16px; margin: 0; }
.phone { border-radius: 34px; padding: 8px; background: #161615; border: 1px solid var(--line-strong); box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.phone img { border-radius: 27px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.screen figcaption { display: grid; gap: 4px; padding: 0 4px; }
.screen figcaption strong { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.screen figcaption span { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Community */
.split { display: grid; gap: 40px; align-items: center; }
.facts { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { background: var(--bg); padding: 20px 0; display: grid; gap: 4px; }
.fact strong { font-weight: 500; font-size: 16px; }
.fact span { color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 22px 8px; text-align: center; display: grid; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-weight: 300; font-size: clamp(30px, 6vw, 44px); line-height: 1; }
.stat span { font-size: 10px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

/* Launch list */
.join { position: relative; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface); padding: 36px 24px; display: grid; gap: 18px; }
.join-form { display: grid; gap: 12px; margin-top: 6px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--inset); color: var(--text);
  font: 400 16px "Inter", sans-serif;
}
.input::placeholder { color: #6f6c64; }
.input:focus { border-color: var(--accent); outline: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-note a { color: var(--text-2); }
.status { margin: 0; min-height: 1.5em; font-size: 14px; }
.status.ok { color: var(--accent); }
.status.error { color: var(--danger); }
.join-closed { margin: 0; color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; }
.site-footer .wrap { display: grid; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.footer-links a { text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-2); }
.footer-links a:hover { color: var(--accent); }
.fine { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 720px; }

/* Text pages (privacy, support, rules) */
.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h1 { margin: 10px 0 12px; font-weight: 300; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.12; font-size: clamp(32px, 6vw, 48px); }
.doc h2 { margin: 44px 0 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 14px; color: var(--text); padding-top: 22px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: var(--text-2); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); font-weight: 500; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc .updated { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0 8px; }
.doc .summary p:last-child { margin-bottom: 0; }
.todo { background: rgba(217, 119, 106, 0.16); color: var(--danger); border-radius: 3px; padding: 0 4px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative; font-weight: 500; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 22px; font-weight: 300; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; }
.contact-card { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 26px 24px; margin: 28px 0 8px; }
.contact-card .mail { font-size: clamp(18px, 4vw, 22px); font-weight: 400; color: var(--text); text-decoration: none; word-break: break-all; }
.notfound { min-height: 70svh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .wrap { display: grid; gap: 18px; justify-items: center; }

/* Wider screens */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .nav .nav-link { display: inline; }
  .logo-row .word { display: inline; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar { padding: 36px 30px 40px; }
  .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; background: none; border: 0; }
  .fact { border-top: 1px solid var(--line); }
  .join { padding: 48px 44px; }
  .join-form { grid-template-columns: 1fr auto; align-items: end; }
  .join-form .form-note, .join-form .status { grid-column: 1 / -1; }
  .site-footer .wrap { grid-template-columns: auto 1fr; align-items: start; column-gap: 64px; }
}

@media (min-width: 1000px) {
  .hero { align-items: center; }
  .hero-photo { left: auto; width: 46%; }
  .hero-photo::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(10,10,10,0.25) 34%, rgba(10,10,10,0) 60%), linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0) 20%, rgba(10,10,10,0) 80%, var(--bg) 100%); }
  .hero-content { min-height: 0; justify-content: center; padding-top: 140px; padding-bottom: 120px; max-width: 640px; margin-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); margin-right: 0; padding-left: 0; padding-right: 0; }
  .hero-logo { justify-content: flex-start; margin-bottom: 6px; padding-bottom: 0; }
  .hero-logo .logo { font-size: 16px; align-items: flex-start; }
  .hero-logo .logo .tag { align-self: stretch; }
  .section { padding: 120px 0; }
  .screens { overflow: visible; justify-content: center; gap: 40px; padding: 4px 0 12px; margin: 0; }
  .screen { flex-basis: 300px; }
  .screen:nth-child(2) { transform: translateY(-28px); }
  .split { grid-template-columns: 1.05fr 1fr; gap: 80px; }
}
