/* ============================================================
   SAJ Event Signup — Aurika
   Built from the Aurika design system tokens (Claude Design export v3).
   ============================================================ */

/* ---------- Fonts (self-hosted, subset to what this page uses) ---------- */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 300; font-style: normal; font-display: swap; src: url('../assets/fonts/cormorant-garamond-300.woff') format('woff'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: normal; font-display: swap; src: url('../assets/fonts/cormorant-garamond-400.woff') format('woff'); }
@font-face { font-family: 'Lora'; font-weight: 400; font-style: normal; font-display: swap; src: url('../assets/fonts/lora-400.woff') format('woff'); }
@font-face { font-family: 'Lora'; font-weight: 400; font-style: italic; font-display: swap; src: url('../assets/fonts/lora-400-italic.woff') format('woff'); }
@font-face { font-family: 'Montserrat'; font-weight: 300; font-style: normal; font-display: swap; src: url('../assets/fonts/montserrat-300.woff') format('woff'); }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-style: normal; font-display: swap; src: url('../assets/fonts/montserrat-400.woff') format('woff'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-style: normal; font-display: swap; src: url('../assets/fonts/montserrat-500.woff') format('woff'); }

/* ---------- Brand tokens ---------- */
:root {
  --aurika-royal: #5F0E3F;
  --aurika-ivory: #FDF4E9;
  --aurika-gold: #C39265;
  --aurika-nude-rose: #F5E1E1;
  --aurika-lavender: #D0B4D7;
  --aurika-ink: #1A0E14;

  --royal-hover: #4E0B33;
  --gold-hover: #AD7E54;
  --text-secondary: #5A4A43;
  --border-default: #B99DAF;
  --state-error: #a33a3a;

  --font-display: 'Cormorant Garamond', 'Noto Serif Devanagari', 'Noto Serif Kannada', 'Times New Roman', serif;
  --font-serif: 'Lora', 'Noto Serif Devanagari', 'Noto Serif Kannada', Georgia, serif;
  --font-body: 'Montserrat', 'Noto Sans', 'Noto Sans Devanagari', 'Noto Sans Kannada', 'Helvetica Neue', Arial, sans-serif;

  --radius-xs: 4px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-pill: 999px;

  --ease-brand: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;

  /* Layout */
  --screen-max: 560px;
  --pad-x: clamp(16px, 4vw, 28px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Per-step themes (swap the whole palette via class on #app) ---------- */
.theme-ivory {
  --bg: var(--aurika-ivory);
  --q: var(--aurika-royal);
  --sub: rgba(95,14,63,0.65);
  --track: rgba(195,146,101,0.30);
  --bar: var(--aurika-royal);
  --wall: rgba(95,14,63,0.05);
  --err: #a33a3a;
  --back: rgba(95,14,63,0.60);
  --pill-border: rgba(95,14,63,0.30);
  --pill-text: var(--aurika-royal);
  --pill-sel-bg: var(--aurika-royal);
  --pill-sel-text: var(--aurika-ivory);
  --pill-sel-border: var(--aurika-royal);
  --btn-bg: var(--aurika-royal);
  --btn-bg-hover: var(--royal-hover);
  --btn-text: var(--aurika-ivory);
}
.theme-rose {
  --bg: var(--aurika-nude-rose);
  --q: var(--aurika-royal);
  --sub: rgba(95,14,63,0.65);
  --track: rgba(95,14,63,0.18);
  --bar: var(--aurika-royal);
  --wall: rgba(95,14,63,0.06);
  --err: #a33a3a;
  --back: rgba(95,14,63,0.60);
  --pill-border: rgba(95,14,63,0.35);
  --pill-text: var(--aurika-royal);
  --pill-sel-bg: var(--aurika-royal);
  --pill-sel-text: var(--aurika-ivory);
  --pill-sel-border: var(--aurika-royal);
  --btn-bg: var(--aurika-royal);
  --btn-bg-hover: var(--royal-hover);
  --btn-text: var(--aurika-ivory);
}
.theme-lavender {
  --bg: var(--aurika-lavender);
  --q: var(--aurika-royal);
  --sub: rgba(95,14,63,0.75);
  --track: rgba(95,14,63,0.22);
  --bar: var(--aurika-royal);
  --wall: rgba(95,14,63,0.08);
  --err: #7a1f1f;
  --back: rgba(95,14,63,0.70);
  --pill-border: rgba(95,14,63,0.40);
  --pill-text: var(--aurika-royal);
  --pill-sel-bg: var(--aurika-royal);
  --pill-sel-text: var(--aurika-ivory);
  --pill-sel-border: var(--aurika-royal);
  --btn-bg: var(--aurika-royal);
  --btn-bg-hover: var(--royal-hover);
  --btn-text: var(--aurika-ivory);
}
.theme-royal {
  --bg: var(--aurika-royal);
  --q: var(--aurika-ivory);
  --sub: rgba(253,244,233,0.70);
  --track: rgba(195,146,101,0.25);
  --bar: var(--aurika-gold);
  --wall: rgba(253,244,233,0.06);
  --err: #F5C6C6;
  --back: rgba(253,244,233,0.60);
  --pill-border: rgba(253,244,233,0.40);
  --pill-text: var(--aurika-ivory);
  --pill-sel-bg: var(--aurika-gold);
  --pill-sel-text: var(--aurika-ink);
  --pill-sel-border: var(--aurika-gold);
  --btn-bg: var(--aurika-gold);
  --btn-bg-hover: var(--gold-hover);
  --btn-text: var(--aurika-ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--aurika-ivory);
  color: var(--aurika-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--aurika-royal); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--aurika-gold); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--aurika-gold); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- App shell ---------- */
.app {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg, var(--aurika-ivory));
  transition: background 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}
.screen {
  position: relative;
  width: 100%;
  max-width: var(--screen-max);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--safe-top) + 20px);
  padding-bottom: calc(var(--safe-bottom) + 28px);
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  overflow: hidden;
}

/* ---------- Shared bits ---------- */
.eyebrow { font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase; }
.eyebrow-royal { color: var(--aurika-royal); }
.eyebrow-gold { font-size: 11px; letter-spacing: 0.2em; color: var(--aurika-gold); }
.eyebrow-gold-sm { font-size: 11px; letter-spacing: 0.32em; color: var(--aurika-gold); }
.eyebrow-royal-sm { font-size: 17px; letter-spacing: 0.18em; color: var(--aurika-royal); }
.eyebrow-muted { font-size: 11px; letter-spacing: 0.18em; color: var(--text-secondary); }
.eyebrow-tiny { font-size: 9px; letter-spacing: 0.32em; color: var(--text-secondary); }

.gold-rule { width: 52px; height: 1px; background: var(--aurika-gold); }
.gold-rule-sm { width: 46px; margin-top: 4px; }

.wall-glyph {
  position: absolute;
  font-family: var(--font-display);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.wall-glyph-tr { top: -30px; right: -36px; font-size: 170px; color: rgba(95,14,63,0.05); }
.wall-glyph-bl { bottom: -40px; left: -30px; font-size: 150px; color: rgba(195,146,101,0.08); }
.wall-glyph-flow { right: -40px; bottom: -30px; font-size: 220px; color: var(--wall); transition: color 0.5s ease; }

/* ---------- Buttons (mirrors DS Button component) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-brand),
              color var(--duration-fast) var(--ease-brand),
              border-color var(--duration-fast) var(--ease-brand),
              transform var(--duration-fast) var(--ease-brand),
              opacity var(--duration-fast) var(--ease-brand);
  font-size: 14px;
  padding: 12px 28px;
  min-height: 46px;
  white-space: nowrap;
}
.btn-primary { background: var(--btn-bg, var(--aurika-royal)); color: var(--btn-text, var(--aurika-ivory)); border-color: var(--btn-bg, var(--aurika-royal)); }
.btn-primary:hover { background: var(--btn-bg-hover, var(--royal-hover)); border-color: var(--btn-bg-hover, var(--royal-hover)); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-lg { font-size: 16px; padding: 16px 36px; min-height: 54px; }
.btn-sm { font-size: 14px; padding: 8px 20px; min-height: 40px; }

/* Intro/Success buttons always use royal regardless of theme */
.screen-intro .btn-primary, .screen-success .btn-primary { background: var(--aurika-royal); border-color: var(--aurika-royal); color: var(--aurika-ivory); }
.screen-intro .btn-primary:hover, .screen-success .btn-primary:hover { background: var(--royal-hover); border-color: var(--royal-hover); }

/* ============================================================
   SPLASH
   ============================================================ */
.screen-splash {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--safe-top) + 44px);
  padding-bottom: calc(var(--safe-bottom) + 80px);
}
.splash-stage { position: relative; width: 100%; max-width: 340px; height: 300px; }
.splash-sparkle {
  position: absolute; top: 0; left: calc(50% - 11px);
  height: 22px; width: auto;
  animation: sparkleSpin 0.35s ease-out 0.05s both, sparkleTwinkle 3.6s ease-in-out 0.5s infinite;
}
.splash-word {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(72px, 22vw, 104px); line-height: 1;
  color: var(--aurika-royal); letter-spacing: 0.16em; text-indent: 0.16em;
  animation: sajIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both, sajBreathe 7s ease-in-out 0.8s infinite;
}
/* Each glyph fades in once, then drifts gently for as long as the splash is open */
.glyph { position: absolute; font-family: var(--font-display); line-height: 1; }
.glyph-1 { top: 12%; left: 8%;  font-size: 34px; color: var(--aurika-royal);    animation: glyphIn 0.3s ease-out 0.4s both, glyphDriftA 6.2s ease-in-out 0.7s infinite; }
.glyph-2 { top: 16%; right: 8%; font-size: 28px; color: var(--aurika-gold);     animation: glyphIn 0.3s ease-out 0.47s both, glyphDriftB 7.1s ease-in-out 0.77s infinite; }
.glyph-3 { top: 44%; left: 0;   font-size: 24px; color: var(--aurika-lavender); animation: glyphIn 0.3s ease-out 0.54s both, glyphDriftC 5.6s ease-in-out 0.84s infinite; }
.glyph-4 { top: 40%; right: 0;  font-size: 22px; color: var(--aurika-lavender); animation: glyphIn 0.3s ease-out 0.61s both, glyphDriftA 6.8s ease-in-out 0.91s infinite; }
.glyph-5 { bottom: 16%; left: 14%;  font-size: 30px; color: var(--aurika-gold);  animation: glyphIn 0.3s ease-out 0.68s both, glyphDriftB 6.4s ease-in-out 0.98s infinite; }
.glyph-6 { bottom: 12%; right: 12%; font-size: 32px; color: var(--aurika-royal); animation: glyphIn 0.3s ease-out 0.75s both, glyphDriftC 7.4s ease-in-out 1.05s infinite; }

.splash-copy { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 10px; }
.splash-copy .gold-rule { transform-origin: center; animation: lineGrow 0.35s ease-out 0.8s both, ruleGlow 4s ease-in-out 1.2s infinite; }
.splash-copy .eyebrow-royal { animation: fadeUp 0.4s ease-out 0.9s both; }
.splash-copy .eyebrow-gold { animation: fadeUp 0.4s ease-out 1.0s both; }
.splash-blurb {
  margin: 10px 0 0;
  font-family: var(--font-serif); font-style: italic;
  font-size: 17px; line-height: 1.55; color: var(--text-secondary);
  max-width: 360px; text-wrap: pretty;
  animation: fadeUp 0.45s ease-out 1.1s both;
}
.splash-hint {
  position: absolute; left: 0; right: 0;
  bottom: calc(var(--safe-bottom) + 36px);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--aurika-gold);
  animation: fadeUp 0.7s ease-out 3.8s both, softPulse 2.4s ease-in-out 4.5s infinite;
}

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; gap: 6px; }
.lang-pill {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.04em;
  padding: 6px 14px; min-height: 32px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid rgba(95,14,63,0.30); background: transparent; color: var(--aurika-royal);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lang-pill[aria-pressed="true"] { background: var(--aurika-royal); color: var(--aurika-ivory); border-color: var(--aurika-royal); }
.lang-switch-intro { justify-content: center; margin-bottom: 22px; animation: fadeUp 0.6s ease-out both; }
.lang-switch-mini .lang-pill { font-size: 11px; padding: 4px 9px; min-height: 26px; border-color: var(--pill-border); color: var(--pill-text); }
.lang-switch-mini .lang-pill[aria-pressed="true"] { background: var(--pill-sel-bg); color: var(--pill-sel-text); border-color: var(--pill-sel-border); }
.flow-right { display: flex; align-items: center; gap: 14px; }
/* Indic scripts sit lower and taller in the fallback fonts — loosen tracking so uppercase-style eyebrows stay legible */
[lang="hi"] .eyebrow, [lang="kn"] .eyebrow { letter-spacing: 0.08em; text-transform: none; }
[lang="hi"] .btn, [lang="kn"] .btn, [lang="hi"] .btn-back, [lang="kn"] .btn-back { letter-spacing: 0.02em; text-transform: none; }
[lang="hi"] .intro-date, [lang="kn"] .intro-date { font-size: clamp(32px, 8vw, 44px); font-weight: 400; }
[lang="hi"] .success-title, [lang="kn"] .success-title { font-size: clamp(28px, 7vw, 38px); font-weight: 400; }
[lang="hi"] .q-title, [lang="kn"] .q-title { line-height: 1.5; }
[lang="hi"] .splash-hint, [lang="kn"] .splash-hint { font-size: 12px; letter-spacing: 0.06em; text-transform: none; }

/* ============================================================
   INTRO
   ============================================================ */
.screen-intro { align-items: center; justify-content: center; text-align: center; padding-top: calc(var(--safe-top) + 36px); }
.intro-head { display: flex; flex-direction: column; align-items: center; gap: 12px; animation: fadeUp 0.6s ease-out both; }
.sparkle-20 { height: 20px; width: auto; }
.intro-date {
  margin: 0;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(38px, 10vw, 54px); line-height: 1.15;
  color: var(--aurika-royal); font-variant-numeric: lining-nums; text-wrap: pretty; letter-spacing: 0;
}
.intro-date .date-num { font-weight: 400; }
.intro-date sup { font-size: 0.45em; vertical-align: 0.55em; letter-spacing: 0.05em; line-height: 0; }

.intro-card {
  width: 100%; max-width: 380px;
  border: 1px solid rgba(95,14,63,0.18); border-radius: var(--radius-m);
  background: rgba(253,244,233,0.6);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 14px;
  margin-top: 26px; text-align: left;
  animation: fadeUp 0.6s ease-out 0.15s both;
}
.intro-row { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.55; color: var(--aurika-royal); }
.intro-row img { height: 22px; width: 22px; margin-top: 1px; flex-shrink: 0; }

.intro-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 26px; animation: fadeUp 0.6s ease-out 0.3s both; }
.intro-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 30px; animation: fadeUp 0.6s ease-out 0.45s both; }
.wordmark-lg { height: 46px; width: auto; }

/* ============================================================
   QUESTION FLOW
   ============================================================ */
.flow-head { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.flow-topbar { display: flex; align-items: center; justify-content: space-between; }
.wordmark-sm { height: 34px; width: auto; }
.wordmark-gold { display: none; }
.theme-royal .wordmark-plum { display: none; }
.theme-royal .wordmark-gold { display: block; }
.step-label { font-size: 11px; letter-spacing: 0.22em; color: var(--aurika-gold); font-variant-numeric: tabular-nums; }
.progress-track { height: 2px; width: 100%; background: var(--track); border-radius: 2px; transition: background 0.5s ease; }
.progress-hint { font-size: 11px; letter-spacing: 0.08em; color: var(--sub); margin-top: -8px; transition: color 0.5s ease; min-height: 1em; }
.progress-hint.is-close { color: var(--bar); font-weight: 500; }
.progress-bar { height: 2px; border-radius: 2px; background: var(--bar); width: 0%; transition: width 0.4s ease, background 0.5s ease; }

.flow-body { display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1; }
.flow-body.anim-a { animation: stepInA 0.45s ease-out both; }
.flow-body.anim-b { animation: stepInB 0.45s ease-out both; }

.question-area {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  gap: 24px; padding: clamp(28px, 6vh, 48px) 0;
}
.q-icon { height: 30px; width: 30px; align-self: flex-start; }
.q-title {
  margin: 0;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(22px, 5.5vw, 27px); line-height: 1.4;
  color: var(--q); text-wrap: pretty; transition: color 0.5s ease;
}
.q-sub { font-size: 13px; line-height: 1.5; color: var(--sub); }
.q-error { font-size: 13.5px; color: var(--err); }

/* Text input (mirrors DS Input) */
.input {
  width: 100%;
  font: inherit; font-size: 16px; /* 16px prevents iOS zoom */
  color: var(--aurika-ink);
  padding: 13px 16px; min-height: 54px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--border-default);
  background: #fff;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-brand);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #9d8b93; }
.input:focus { border-color: var(--aurika-royal); }
.input.is-error { border-color: var(--state-error); }
.input:focus-visible { outline: none; }

/* Option pills */
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--font-body); font-size: 14px; letter-spacing: 0.02em;
  min-height: 46px; padding: 11px 20px;
  border-radius: var(--radius-pill); cursor: pointer;
  border: 1.5px solid var(--pill-border);
  background: transparent; color: var(--pill-text);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-align: left;
}
.pill:hover { border-color: var(--pill-sel-border); }
.pill:active { transform: scale(0.97); }
.pill[aria-pressed="true"], .pill[aria-checked="true"] {
  background: var(--pill-sel-bg); color: var(--pill-sel-text); border-color: var(--pill-sel-border);
}

/* Consent card + checkbox (mirrors DS Checkbox) */
.consent-card {
  background: rgba(95,14,63,0.05); border: 1px solid rgba(95,14,63,0.18);
  border-radius: var(--radius-m); padding: 18px 20px;
}
.checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.checkbox .box {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border-default); background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--duration-fast) var(--ease-brand);
}
.checkbox .box svg { width: 13px; height: 13px; opacity: 0; transition: opacity var(--duration-fast); }
.checkbox input:checked + .box { background: var(--aurika-royal); border-color: var(--aurika-royal); }
.checkbox input:checked + .box svg { opacity: 1; }
.checkbox input:focus-visible + .box { outline: 2px solid var(--aurika-gold); outline-offset: 3px; }
.checkbox .label { font-size: 14px; line-height: 1.55; color: var(--aurika-royal); }
.summary-line { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sub); }

/* Nav */
.flow-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.btn-back {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--back); padding: 12px 0; transition: color 0.5s ease;
}
.btn-next { min-width: 140px; }

/* ============================================================
   SUCCESS
   ============================================================ */
.screen-success { align-items: center; justify-content: center; text-align: center; gap: 18px; padding-top: calc(var(--safe-top) + 40px); }
.success-sparkle { height: 36px; width: auto; animation: sparkleSpin 0.7s ease-out both; }
.success-title { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 9vw, 46px); line-height: 1.1; color: var(--aurika-royal); letter-spacing: 0; }
.success-blurb { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 17px; line-height: 1.6; color: var(--text-secondary); max-width: 360px; text-wrap: pretty; }
.success-card {
  background: rgba(95,14,63,0.05); border: 1px solid rgba(95,14,63,0.18); border-radius: var(--radius-m);
  padding: 20px 24px; display: flex; flex-direction: column; gap: 10px;
  font-size: 13px; line-height: 1.5; color: var(--aurika-royal); max-width: 380px; width: 100%; text-align: left;
}
.success-card .eyebrow-gold-sm { letter-spacing: 0.18em; }
.success-note { font-family: var(--font-serif); font-style: italic; color: var(--text-secondary); }
.share-btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--aurika-royal); border-radius: var(--radius-pill);
  padding: 12px 24px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--aurika-royal); text-decoration: none; transition: background 0.15s, color 0.15s;
}
.share-btn img { height: 16px; width: 16px; }
.share-btn:hover { background: var(--aurika-royal); color: var(--aurika-ivory); }
.success-icons { display: flex; align-items: center; gap: 22px; margin-top: 4px; }
.success-icons img { height: 24px; width: 24px; opacity: 0.75; }
.success-follow { font-size: 13px; color: rgba(95,14,63,0.65); }
.wordmark-success { height: 52px; margin-top: 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Very narrow phones (≤ 360px) */
@media (max-width: 360px) {
  .eyebrow-royal-sm { font-size: 14px; letter-spacing: 0.14em; }
  .pill { font-size: 13px; padding: 10px 16px; }
  .splash-stage { height: 260px; }
  .glyph-1, .glyph-6 { font-size: 28px; }
  .glyph-5 { font-size: 26px; }
  .intro-card { padding: 18px; }
}

/* Short viewports (landscape phones, small laptops with browser chrome) —
   stop pinning the hint to the bottom and let the page scroll naturally */
@media (max-height: 640px) {
  .screen-splash { justify-content: flex-start; padding-bottom: calc(var(--safe-bottom) + 28px); }
  .splash-stage { height: 240px; }
  .lang-switch-intro { margin-bottom: 14px; }
  .question-area { padding: 20px 0; justify-content: flex-start; }
  .screen-intro, .screen-success { justify-content: flex-start; }
  .intro-foot { margin-top: 22px; }
}

/* Landscape phones: two-column question layout uses the width better */
@media (max-height: 520px) and (orientation: landscape) {
  .screen { --screen-max: 720px; }
  .question-area { padding: 16px 0; gap: 16px; }
  .q-title { font-size: 21px; }
}

/* Tablets and up: give the card a little more room and settle it in the middle */
@media (min-width: 768px) {
  :root { --screen-max: 600px; --pad-x: 32px; }
  .screen { min-height: 100vh; min-height: 100dvh; }
  .question-area { padding: 56px 0; gap: 26px; }
  .wall-glyph-flow { font-size: 260px; }
}

/* Large desktop: present the form as a framed panel on the ivory page so it
   doesn't float in a sea of colour, and keep the wall glyph inside the panel */
@media (min-width: 1100px) {
  .app { justify-content: center; padding: 40px 0; background: var(--aurika-ivory); }
  .app[data-screen="flow"] { background: var(--aurika-ivory); }
  .screen {
    min-height: min(820px, calc(100vh - 80px));
    min-height: min(820px, calc(100dvh - 80px));
    max-width: 620px;
    border-radius: 24px;
    background: var(--bg, var(--aurika-ivory));
    box-shadow: 0 16px 48px rgba(26,14,20,0.10);
    border: 1px solid rgba(95,14,63,0.10);
    transition: background 0.5s ease;
    padding-top: 28px; padding-bottom: 32px;
  }
  .screen-splash { padding-bottom: 88px; }
  .splash-hint { bottom: 40px; }
}

/* Reduced motion: keep the state changes, drop the choreography */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .splash-hint { opacity: 1; }
}

.screen-splash.is-leaving { animation: splashOut 0.3s ease-in both; }

/* ---------- Keyframes ---------- */
@keyframes stepInA { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes stepInB { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes sparkleSpin { from { transform: scale(0.4) rotate(-90deg); opacity: 0; } to { transform: scale(1) rotate(0deg); opacity: 1; } }
@keyframes glyphIn { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes sajIn { 0% { opacity: 0; letter-spacing: 0.55em; filter: blur(8px); } 100% { opacity: 1; letter-spacing: 0.16em; filter: blur(0); } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Ambient loops on the splash — slow, small, no bounce */
@keyframes glyphDriftA { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(3px, -7px) rotate(2deg); } }
@keyframes glyphDriftB { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-4px, -5px) rotate(-2.5deg); } }
@keyframes glyphDriftC { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(2px, -8px) rotate(1.5deg); } }
@keyframes sparkleTwinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(1.18) rotate(45deg); opacity: 0.75; } }
@keyframes sajBreathe { 0%, 100% { letter-spacing: 0.16em; opacity: 1; } 50% { letter-spacing: 0.19em; opacity: 0.92; } }
@keyframes ruleGlow { 0%, 100% { opacity: 0.7; width: 52px; } 50% { opacity: 1; width: 64px; } }
@keyframes splashOut { to { opacity: 0; transform: scale(1.02); } }
@keyframes softPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
