/* ───────────────────────────────────────────────────────────────
   Syntheon.tv — coming-soon page styles
   Single CSS file. Targets modern browsers (Cloudflare Pages users).
   No build step. ~120 lines.
   ─────────────────────────────────────────────────────────────── */

:root {
  --bg: #0b0b0f;
  --bg-elev: #16161d;
  --bg-elev-2: #1f1f29;
  --border: #2a2a36;
  --fg: #f1f1f5;
  --fg-muted: #a0a0ad;
  --fg-dim: #6c6c7a;
  --accent: #5b8def;
  --accent-fg: #ffffff;
  --danger: #ef5b5b;
  --success: #4ade80;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-family:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html[data-scroll-behavior="smooth"] { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

/* ─── Brand header ────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 5rem;
}
.logo {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  /* The SVG renders its own dark background (rect, #06060a) + rounded
     corners (rx=6) + gradient triangle — no additional styling needed. */
}
.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-name .dot { color: var(--accent); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  font-weight: 700;
}
.hero .lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin: 0 0 1.6rem;
  max-width: 60ch;
}
.hero .status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 4rem;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}
.status-text { color: var(--fg-muted); font-size: 0.95rem; }

/* ─── Waitlist form ──────────────────────────────────────── */
.waitlist {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 4rem;
}
.waitlist h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.muted { color: var(--fg-muted); margin: 0 0 1.5rem; font-size: 0.95rem; }
.muted-inline { color: var(--fg-dim); font-size: 0.85rem; }

form { display: flex; flex-direction: column; gap: 1rem; }

input[type="email"] {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 150ms ease;
}
input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
input[type="email"]:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--fg-muted);
  cursor: pointer;
  line-height: 1.4;
}
.consent-row input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px; height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

button[type="submit"] {
  background: var(--accent);
  color: var(--accent-fg);
  border: 1px solid var(--accent);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 150ms ease, transform 80ms ease;
  font-family: inherit;
}
button[type="submit"]:hover:not(:disabled) { opacity: 0.92; }
button[type="submit"]:active:not(:disabled) { transform: translateY(1px); }
button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

.form-status {
  margin-top: 0.75rem;
  min-height: 1.4rem;
  font-size: 0.9rem;
}
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.footer-nav a { color: var(--fg-muted); font-size: 0.92rem; }
.copyright { color: var(--fg-dim); font-size: 0.85rem; margin: 0; }

/* ─── Cookie consent banner ──────────────────────────────── */
.consent-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  z-index: 1000;
  font-size: 0.92rem;
}
.consent-banner h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.consent-banner p {
  color: var(--fg-muted);
  margin: 0 0 1rem;
}
.consent-banner .consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.consent-banner button {
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--fg);
  cursor: pointer;
  font-family: inherit;
  transition: opacity 150ms ease;
}
.consent-banner button:hover { opacity: 0.85; }
.consent-banner button.primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

/* ─── Static info pages (privacy + cookies) ─────────────── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  line-height: 1.65;
}
.legal-page h1 { font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.legal-page h2 { font-size: 1.3rem; margin-top: 2.5rem; }
.legal-page h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal-page p, .legal-page li { color: var(--fg-muted); }
.legal-page strong { color: var(--fg); }
.legal-page ul, .legal-page ol { padding-left: 1.5rem; }
.legal-page hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.legal-page .back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--accent);
  font-size: 0.92rem;
}

/* ─── Accessibility utilities ───────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
