/* Swing Surfer marketing site — shared styles.
   Tokens mirror /DESIGN.md so the wall feels continuous with the app. */

:root {
  --bg: #1e222d;
  --bg-deep: #131722;
  --surface: #1a1d29;
  --border: rgba(255, 255, 255, 0.08);
  --border-section: #2b2b43;
  --text: #d1d4dc;
  --text-bright: #e8eaf0;
  --text-muted: #9aa4bd;
  --primary: #2962ff;
  --primary-dark: #1e4bd1;
  --teal: #26a69a;
  --green: #26d97f;
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(41, 98, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
}
.site-header .logo { height: 30px; width: auto; display: block; }
.site-header .nav-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ── Hero ── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(32px, 7vh, 80px) clamp(20px, 5vw, 56px) 64px;
  gap: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.02);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  max-width: 16ch;
}

.hero .subhead {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 56ch;
}
.hero .subhead strong { color: var(--text-bright); font-weight: 600; }

/* ── Waitlist form ── */
.waitlist {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  margin-top: 4px;
}
.waitlist input[type="email"] {
  flex: 1;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.waitlist input[type="email"]::placeholder { color: var(--text-muted); }
.waitlist input[type="email"]:focus {
  border-color: var(--primary);
  background: rgba(41, 98, 255, 0.06);
}
.waitlist button {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 13px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.05s;
}
.waitlist button:hover { background: var(--primary-dark); }
.waitlist button:active { transform: translateY(1px); }
.waitlist button:disabled { opacity: 0.6; cursor: default; }

.form-status {
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.form-status.success { color: var(--green); }
.form-status.error { color: #ef5350; }

/* ── Preview ── */
.preview {
  width: 100%;
  max-width: 980px;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(41, 98, 255, 0.05);
}
.preview img { width: 100%; height: auto; display: block; }
.preview .preview-fallback {
  display: none;
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  background:
    linear-gradient(180deg, var(--surface), var(--bg-deep)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px);
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 28px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Cookie consent banner ── */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px clamp(16px, 4vw, 32px);
  flex-wrap: wrap;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(19, 23, 34, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}
.consent-banner[hidden] { display: none; }

.consent-text {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--text);
}
.consent-text a { color: var(--primary); text-decoration: none; }
.consent-text a:hover { text-decoration: underline; }

.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.consent-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 11px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.consent-btn:active { transform: translateY(1px); }
.consent-btn-primary {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
}
.consent-btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.consent-btn-secondary {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.consent-btn-secondary:hover { background: rgba(255, 255, 255, 0.10); }

/* ── Responsive ── */
@media (max-width: 560px) {
  .waitlist { flex-direction: column; }
  .site-header .nav-hint { display: none; }
  .consent-actions { flex: 1 1 100%; }
  .consent-btn { flex: 1; }
}
