/* ===========================================================================
   Zarlii waitlist — styles
   Tokens below are lifted straight from the Zarlii Design System
   (tokens/colors.css, typography.css, spacing.css). If the design system
   changes, update this block and nothing else.
   =========================================================================== */

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Variable.ttf') format('truetype');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Brand hues ------------------------------------------------------- */
  --lavender-light: #e7e9fe;
  --lavender:       #b6afea;
  --lavender-dark:  #797df6;
  --lavender-ink:   #5a5ed9;   /* hover / pressed */
  --indigo:         #3b2f8c;   /* headline ink */

  /* --- Neutrals --------------------------------------------------------- */
  --ink:    #1e1c2c;
  --ink-2:  #4a4760;
  --ink-3:  #7b7891;
  --white:  #ffffff;

  /* --- Semantic --------------------------------------------------------- */
  --brand:        var(--lavender-dark);
  --brand-hover:  var(--lavender-ink);
  --focus-ring:   rgba(121, 125, 246, 0.35);
  --danger:       #fc8190;

  /* --- Signature web gradient ------------------------------------------ */
  --gradient-web:
    radial-gradient(38% 45% at 18% 58%, #a79fe4 0%, rgba(167,159,228,0) 100%),
    radial-gradient(35% 40% at 72% 15%, #94b6ef 0%, rgba(148,182,239,0) 100%),
    radial-gradient(30% 45% at 45% 70%, #9cd8d6 0%, rgba(156,216,214,0) 100%),
    radial-gradient(32% 45% at 85% 70%, #e8aed8 0%, rgba(232,174,216,0) 100%),
    radial-gradient(25% 25% at 100% 100%, #c6ece4 0%, rgba(198,236,228,0) 100%),
    linear-gradient(135deg, #c2b9ea 0%, #b3b4ea 45%, #d6bde2 100%);

  /* --- Type ------------------------------------------------------------- */
  --font-sans: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --weight-medium: 500;
  --weight-bold:   700;

  /* --- Shape, shadow, motion ------------------------------------------- */
  --radius-pill:  999px;
  --radius-logo:  24px;
  --shadow-brand: 0 10px 24px -8px rgba(121, 125, 246, 0.55);
  --ease-calm:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration-fast: 140ms;
  --duration-base: 240ms;
}

/* =========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink-2);
  background: var(--lavender-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Landing gets the web aurora; the question screens are flat lavender-light. */
body[data-screen="landing"] {
  background: var(--gradient-web);
  background-attachment: fixed;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
}

.wrap {
  width: 100%;
  max-width: 512px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- Logo ----------------------------------------------------------------- */
.logo {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-logo);
  display: block;
}

/* --- Type ----------------------------------------------------------------- */
.tagline {
  margin: 44px 0 40px;
  font-weight: var(--weight-medium);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--indigo);
  text-wrap: balance;
}

h1 {
  margin: 64px 0 0;
  font-weight: var(--weight-bold);
  font-size: 30px;
  letter-spacing: -0.015em;
  color: var(--indigo);
}

.sub  { margin: 28px 0 0; font-size: 16px; color: var(--ink-3); }
.step { margin: 36px 0 0; font-size: 14px; font-weight: var(--weight-medium); color: var(--ink-3); }

.block { align-self: stretch; margin-top: 36px; }

h2 { margin: 0; font-weight: var(--weight-bold); font-size: 20px; color: var(--indigo); }
.hint { margin: 16px 0 14px; font-size: 14px; color: var(--ink-3); }

/* --- Form ----------------------------------------------------------------- */
.form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }

input[type="text"],
input[type="email"] {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  background: rgba(240, 247, 248, 0.82);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  text-align: center;
  outline: none;
}

input::placeholder { color: var(--ink-3); }

input:focus { box-shadow: 0 0 0 4px var(--focus-ring); }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  height: 54px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: background var(--duration-fast) var(--ease-calm),
              opacity var(--duration-base) var(--ease-calm);
}

.btn-wide { align-self: stretch; margin-top: 22px; height: 56px; }
.btn:hover:not(:disabled) { background: var(--brand-hover); }
.btn:disabled { opacity: 0.4; cursor: default; }

.btn-link {
  margin-top: 16px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-3);
  cursor: pointer;
}

.btn-link:hover { color: var(--ink-2); }

/* --- Options -------------------------------------------------------------- */
.options { display: flex; flex-direction: column; gap: 10px; }

.option {
  height: 44px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--indigo);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: box-shadow var(--duration-fast) var(--ease-calm);
}

.option:hover { background: rgba(255, 255, 255, 0.85); }

.option[aria-pressed="true"] {
  border-color: var(--lavender-dark);
  font-weight: var(--weight-bold);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

/* Multi-select chips wrap rather than stack. */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips .option { padding: 0 22px; }

/* --- Messages ------------------------------------------------------------- */
.msg { min-height: 20px; font-size: 14px; color: var(--danger); }

/* --- Consent -------------------------------------------------------------- */
/* Quiet, but legible. Never hidden, never below the fold, never grey-on-grey. */
.consent {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: center;
  text-wrap: pretty;
}

/* --- Footer --------------------------------------------------------------- */
footer {
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(74, 71, 96, 0.6);
}

footer a { color: rgba(74, 71, 96, 0.7); display: inline-flex; }
footer svg { width: 18px; height: 18px; }

/* --- Screens -------------------------------------------------------------- */
.screen { display: none; width: 100%; flex-direction: column; align-items: center; }
.screen.active { display: flex; animation: fade var(--duration-base) var(--ease-calm); }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .screen.active { animation: none; }
  .btn, .option { transition: none; }
}

/* --- Phone ---------------------------------------------------------------- */
@media (max-width: 480px) {
  main { padding: 40px 16px 32px; }
  .logo { width: 120px; height: 120px; }
  .tagline { margin: 32px 0 28px; font-size: 20px; }
  h1 { margin-top: 40px; font-size: 26px; }
  .sub  { margin-top: 20px; }
  .step { margin-top: 26px; }
  .block { margin-top: 26px; }
}
