/* Minimal, responsive, and accessible */
:root {
  --bg: #0b0c10;
  --card: #111318;
  --text: #e6e6e6;
  --muted: #9aa3ae;
  --accent: #60a5fa; /* blue-ish */
  --ring: rgba(96,165,250,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, #122035 0%, transparent 60%), var(--bg);
}

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

.hero {
  text-align: center;
  margin-bottom: 2rem;
}
.logo {
  display: block;
  width: clamp(64px, 12vw, 120px);
  height: auto;
}
.brand {
  /* single source of truth for the brand's logo size */
  --brand-logo-size: clamp(48px, 9vw, 96px);
  /* make the brand a block-level flex container so it centers reliably */
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.brand.compact {
  /* smaller variant used on the privacy page (reduced ~50%) */
  --brand-logo-size: clamp(18px, 3.5vw, 32px);
}
.brand .logo {
  width: var(--brand-logo-size);
  height: auto;
  display: block;
  margin: 0;
}
.brand.compact .logo {
  width: var(--brand-logo-size);
}
.brand-name {
  font-family: 'Audiowide', sans-serif;
  /* Slightly smaller to match compact logo when used */
  font-size: calc(var(--brand-logo-size) * 0.95);
  line-height: 1;
  /* tightened spacing for better kerning */
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* remove underline for linked brand-name on the privacy page */
  text-decoration: none;
}
/* Stack brand on very small viewports */
@media (max-width: 420px) {
  .brand {
    flex-direction: column;
    gap: 0.25rem;
    max-width: none;
    display: inline-flex;
  }
  /* slightly reduce when stacked to keep proportions pleasant */
  .brand-name { font-size: calc(var(--brand-logo-size) * 0.85); }
}
h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  line-height: 1.1;
  margin: 0 0 0.5rem 0;
}
.accent { color: var(--accent); }
.tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.cta {
  margin-top: 2.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}
.inline-form input {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  border-radius: 12px;
  outline: none;
}
.inline-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.inline-form button {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 0;
  background: var(--accent);
  color: #0b1020;
  font-weight: 600;
  cursor: pointer;
}
.inline-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.status { margin-top: 0.5rem; min-height: 1.25rem; color: var(--muted); }
 
.footer { margin-top: 3rem; text-align: center; color: var(--muted); }
.footer a { color: var(--muted); }

/* Modal styles for double opt-in modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal[aria-hidden="false"] { display: flex; }

.modal-content {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem;
  max-width: 540px;
  width: 100%;
  color: var(--text);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.modal h2 { margin: 0 0 0.5rem 0; font-size: 1.25rem; }
.modal .consent { display: flex; align-items: center; gap: 0.5rem; margin: 0.75rem 0; color: var(--muted); }
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.5rem; }
.btn { padding: 0.5rem 0.9rem; border-radius: 8px; border: 0; cursor: pointer; }
.btn.primary { background: var(--accent); color: #071124; font-weight: 600; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
