/* Tailgate landing page. Colours and sizes come from tokens.css. Phone first. */
*, *::before, *::after { box-sizing: border-box; }
/* Backstop only. The real limit is on main below. clip, not hidden, so nothing
   becomes a scroll container and the sticky header keeps working. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--body)/var(--lh-body) var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-heading); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--focus); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-3) var(--gutter); padding-top: max(var(--s-3), env(safe-area-inset-top));
  background: var(--bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.wordmark { font: 700 1.15rem var(--font-display); color: var(--text); text-decoration: none; letter-spacing: -0.02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: var(--s-3) var(--s-8); border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  font: 600 1rem var(--font-ui); color: var(--text); text-decoration: none; background: rgba(248,245,240,0.04);
  cursor: pointer; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { background: rgba(248,245,240,0.08); }
.btn-sm { min-height: 40px; padding: var(--s-2) var(--s-4); font-size: 0.925rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Decorative layers (the hero glow) may bleed past the text column but must stop at
   the page edge. Without this the glow sat up to 113px past a phone screen and the
   page could be dragged sideways (6 October). hidden first for browsers without clip. */
main { overflow-x: hidden; overflow-x: clip; }
main > section { padding: var(--s-16) var(--gutter); max-width: 720px; margin: 0 auto; }

.hero { position: relative; padding-top: var(--s-16); padding-bottom: var(--s-16); }
/* The eyebrow is the product name, so no text-transform: it is always "Ventos". */
.eyebrow { color: var(--warm); font: 600 1.125rem var(--font-display); letter-spacing: 0.02em; margin-bottom: var(--s-4); }
.hero h1 { font-size: var(--display); margin-bottom: var(--s-6); max-width: 11ch; }
.lede { font-size: var(--body-lg); color: var(--text-muted); max-width: var(--measure); margin-bottom: var(--s-8); }
.glow {
  position: absolute; inset: auto -30% -20% auto; width: 80vw; max-width: 520px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(65,143,222,0.30), transparent); pointer-events: none; z-index: -1;
  animation: breathe 7s var(--ease) infinite alternate;
}
@keyframes breathe { from { transform: scale(0.9); opacity: 0.7; } to { transform: scale(1.08); opacity: 1; } }

.numbers { display: grid; gap: var(--s-6); }
.stat { padding: var(--s-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.figure { font: 700 clamp(2.5rem, 1.6rem + 4vw, 4rem)/1 var(--font-display); color: var(--accent-strong); margin-bottom: var(--s-2); letter-spacing: -0.03em; }
.stat p:last-child { color: var(--text-muted); }

.how h2, .join h2 { font-size: var(--h2); margin-bottom: var(--s-6); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-6); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: start; }
.steps .n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font: 700 1.1rem var(--font-display);
}
.steps h3 { font-size: var(--h3); margin-bottom: var(--s-1); }
.steps p { color: var(--text-muted); }

.join { padding-bottom: var(--s-24); }
.join > p { color: var(--text-muted); margin-bottom: var(--s-6); max-width: var(--measure); }
.form { display: grid; gap: var(--s-4); padding: var(--s-6) var(--s-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.field { display: grid; gap: var(--s-2); align-content: start; }
.row { display: grid; gap: var(--s-4); }
.form label { font-weight: 600; }
.form .opt { color: var(--text-dim); font-weight: 400; }
.form input:not([type="checkbox"]) {
  width: 100%; min-height: 52px; padding: var(--s-3) var(--s-4); font: inherit; font-size: 1.0625rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius);
}
.form input::placeholder { color: var(--text-dim); opacity: 1; }
.form input[aria-invalid="true"] { border-color: var(--warm); box-shadow: 0 0 0 1px var(--warm); }
.field-err { color: var(--warm); font-size: var(--caption); font-weight: 600; }
.field-err:empty { display: none; }
.form .check { display: flex; gap: var(--s-3); align-items: center; font-weight: 500; margin: var(--s-1) 0; min-height: 44px; }
.form .check input { flex: none; width: 22px; height: 22px; accent-color: var(--accent); }
.form button { width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fine { color: var(--text-dim); font-size: var(--caption); }
.status { min-height: 1.6em; font-weight: 600; }
.status.ok { color: var(--accent); }
.status.err { color: var(--warm); }

.foot { padding: var(--s-8) var(--gutter); padding-bottom: max(var(--s-8), env(safe-area-inset-bottom)); border-top: 1px solid var(--border); color: var(--text-dim); font-size: var(--caption); text-align: center; }

.legal { max-width: 720px; margin: 0 auto; padding: var(--s-12) var(--gutter) var(--s-24); }
.legal h1 { font-size: var(--h1); margin-bottom: var(--s-6); }
.legal h2 { font-size: var(--h3); margin: var(--s-8) 0 var(--s-2); }
.legal p, .legal li { color: var(--text-muted); }
.legal p + p { margin-top: var(--s-3); }

@media (min-width: 480px) {
  .row { grid-template-columns: 1fr 1fr; }
  .form { padding: var(--s-8); }
}
@media (min-width: 768px) {
  .numbers { grid-template-columns: repeat(3, 1fr); max-width: 1080px !important; }
  .hero { padding-top: var(--s-24); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow { animation: none; }
  .btn { transition: none; }
}
