/* Muse — waitlist landing page
 * Real brand type (self-hosted Canela Deck) and the Muse Design System's
 * color/spacing/motion tokens (pulled from tokens/*.css in the design system).
 * Hanken Grotesk stands in for Suisse Int'l / Neue Montreal — that's the
 * design system's own current wiring (tokens/fonts.css), not a substitution
 * made for this page; see waitlist/README.md.
 */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Canela Deck';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/CanelaDeck-Regular.otf') format('opentype');
}
@font-face {
  font-family: 'Canela Deck';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/CanelaDeck-RegularItalic.otf') format('opentype');
}
@font-face {
  font-family: 'Canela Deck';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/CanelaDeck-LightItalic.otf') format('opentype');
}
@font-face {
  font-family: 'Canela Deck';
  font-style: italic;
  font-weight: 100;
  font-display: swap;
  src: url('fonts/CanelaDeck-ThinItalic.otf') format('opentype');
}

:root {
  /* ---- Brand tokens (Muse Design System) ---- */
  --blush: #F5DCE0;
  --blush-soft: #FBEEF1;
  --blush-deep: #EFC9D1;
  --black: #111111;
  --raspberry: #C44569;
  --raspberry-hover: #B23A5C;
  --raspberry-tint: #F7E2E9;
  --lilac: #C9B8E8;
  --lilac-tint: #F0EBF9;
  --paper: #FFFFFF;
  --grey-700: #4C434A;
  --grey-500: #877E84;
  --grey-300: #CCC4C8;
  --grey-200: #E6DEE1;

  --text-primary: var(--black);
  --text-secondary: var(--grey-700);
  --text-muted: var(--grey-500);
  --text-inverse: var(--paper);
  --border-subtle: var(--grey-200);
  --border-strong: var(--grey-300);
  --focus-ring: rgba(196, 69, 105, 0.28);
  --glow-accent: 0 4px 20px rgba(196, 69, 105, 0.30);
  --shadow-xs: 0 1px 2px rgba(26, 20, 23, 0.06);

  --font-serif: 'Canela Deck', 'Times New Roman', Georgia, serif;
  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-md: 16px;
  --radius-pill: 999px;
  --border-width-strong: 1.5px;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ---------- animated gradient background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 75% 60% at 28% 22%, var(--blush) 0%, transparent 62%),
    radial-gradient(ellipse 65% 55% at 78% 78%, var(--blush-soft) 0%, transparent 58%),
    radial-gradient(ellipse 55% 50% at 52% 48%, var(--lilac-tint) 0%, transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 100%);
  background-color: var(--paper);
  background-size: 145% 145%;
  animation: drift 40s var(--ease-out) infinite alternate;
}

@keyframes drift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 50%, 0 0; }
  50%  { background-position: 12% 10%, 88% 90%, 46% 54%, 0 0; }
  100% { background-position: 4% 16%, 94% 82%, 56% 44%, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bg { animation: none; }
}

/* ---------- layout ---------- */
.stage {
  width: 100%;
  max-width: 560px;
  padding: 48px 28px;
  text-align: center;
}

.fade-view {
  animation: riseIn 0.7s var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  .fade-view { animation: none; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo {
  display: inline-block;
  width: clamp(105px, 15vw, 160px);
  height: auto;
  margin: 0 0 8px;
}

.subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 100;
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--text-primary);
}

.support-line {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(15px, 3.9vw, 16px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 48px;
}

form {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.input {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: var(--border-width-strong) solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0 var(--space-3);
  width: 230px;
  max-width: 100%;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.input:focus-within {
  border-color: var(--raspberry);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

input[type="email"] {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  padding: 11px 0;
  width: 100%;
}

input[type="email"]::placeholder {
  color: var(--grey-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--text-inverse);
  background: var(--raspberry);
  border: var(--border-width-strong) solid transparent;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover { background: var(--raspberry-hover); box-shadow: var(--glow-accent); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: default; box-shadow: var(--shadow-xs); }

.micro {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
}

.error {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--raspberry);
  min-height: 16px;
  margin: -6px 0 12px;
}

/* ---------- question step ---------- */
.confirm-headline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.confirm-sub {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

.question {
  text-align: left;
  margin-bottom: 28px;
}

.question p {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  user-select: none;
}

.option:hover {
  border-color: var(--raspberry);
}

.option.selected {
  background: var(--raspberry);
  border-color: var(--raspberry);
  color: var(--text-inverse);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.skip {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 16px 4px;
}

.thanks {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 26px;
  margin: 0;
}
