/* ==========================================================================
   Starbeam Club
   ========================================================================== */

:root {
  --night-950: #060a22;
  --night-900: #0a1030;
  --night-850: #0e1640;
  --night-800: #131d4f;
  --night-700: #1c2866;
  --plum-700: #3b1d5c;
  --plum-600: #4f2677;
  --plum-500: #6a3596;
  --gold-300: #ffe7a8;
  --gold-400: #f9d47a;
  --gold-500: #f2bd4b;
  --gold-600: #d99a26;
  --ice-50:  #f4f8ff;
  --ice-100: #e6efff;
  --ice-200: #cddcf7;
  --ice-300: #a9bde6;
  --ice-400: #8197c9;
  --frost:   #bfe9ff;
  --danger:  #ff9b9b;
  --success: #9ff0c8;

  --text: var(--ice-100);
  --text-soft: var(--ice-300);
  --line: rgba(205, 220, 247, .14);
  --glass: rgba(20, 30, 80, .45);
  --glass-strong: rgba(17, 25, 70, .72);

  --font-display: "Fredoka", "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-lg: 0 30px 80px -20px rgba(2, 4, 20, .7);
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--night-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--gold-400); text-underline-offset: 3px; }
a:hover { color: var(--gold-300); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; color: var(--ice-50); }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold-500); color: var(--night-950); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-sm { --h: 40px; padding: 0 18px; font-size: .95rem; }
.btn-lg { --h: 56px; padding: 0 30px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-gold {
  color: #2a1704;
  background: linear-gradient(180deg, #ffe39a 0%, var(--gold-500) 55%, #e6a83a 100%);
  box-shadow: 0 0 0 1px rgba(255, 231, 168, .5) inset, 0 10px 30px -8px rgba(242, 189, 75, .65), 0 0 40px -10px rgba(255, 220, 140, .55);
  overflow: hidden;
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .8s ease;
}
.btn-gold:hover { color: #2a1704; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 231, 168, .6) inset, 0 16px 38px -8px rgba(242, 189, 75, .8), 0 0 60px -10px rgba(255, 220, 140, .7); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-gold:active { transform: translateY(0); }
.btn-ghost {
  color: var(--ice-50);
  background: rgba(205, 220, 247, .06);
  box-shadow: 0 0 0 1px rgba(205, 220, 247, .25) inset;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { color: #fff; background: rgba(205, 220, 247, .12); }
.btn-outline {
  color: var(--gold-300);
  background: transparent;
  box-shadow: 0 0 0 1.5px rgba(249, 212, 122, .55) inset;
}
.btn-outline:hover { color: var(--night-950); background: var(--gold-400); }

.btn .spinner {
  display: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(42, 23, 4, .25); border-top-color: #2a1704;
  animation: spin .8s linear infinite;
}
.btn.is-loading { pointer-events: none; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s;
  padding-top: env(safe-area-inset-top);
}
.site-header.is-scrolled {
  background: rgba(8, 12, 38, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ice-50); }
.brand:hover { color: #fff; }
.brand-mark { width: 26px; height: 26px; color: var(--gold-400); filter: drop-shadow(0 0 8px rgba(249, 212, 122, .7)); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; letter-spacing: .005em; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--ice-200); text-decoration: none; font-size: .96rem; font-weight: 500; }
.site-nav a:hover { color: #fff; }
.header-inner > .btn { margin-left: 8px; }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-inner > .btn { margin-left: auto; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1.08rem; }
  .header-inner > .btn { padding: 0 14px; font-size: .9rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 940px);
  padding: calc(var(--header-h) + clamp(32px, 7vh, 88px)) 0 clamp(120px, 16vw, 200px);
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(106, 53, 150, .55) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 30%, rgba(59, 29, 92, .6) 0%, transparent 60%),
    linear-gradient(180deg, var(--night-950) 0%, var(--night-900) 45%, #121b4c 100%);
  display: flex; align-items: center;
}
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; }
.aurora {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora-1 { width: 60vw; height: 28vw; left: -10vw; top: 8%; background: radial-gradient(closest-side, rgba(143, 240, 255, .28), transparent); }
.aurora-2 { width: 50vw; height: 30vw; right: -12vw; top: 30%; background: radial-gradient(closest-side, rgba(176, 110, 230, .35), transparent); animation-duration: 28s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0) rotate(-6deg); } to { transform: translate3d(6vw, 3vh, 0) rotate(4deg); } }

.moon {
  position: absolute; top: calc(var(--header-h) + 4vh); right: 9%;
  width: clamp(70px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffaf0 0%, #fbe9bf 45%, #e9c97f 100%);
  box-shadow: 0 0 40px 8px rgba(255, 228, 160, .35), 0 0 120px 40px rgba(255, 220, 150, .15);
  -webkit-mask: radial-gradient(circle at 72% 30%, transparent 38%, #000 39%);
          mask: radial-gradient(circle at 72% 30%, transparent 38%, #000 39%);
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(191, 233, 255, .08); box-shadow: 0 0 0 1px rgba(191, 233, 255, .2) inset;
  color: var(--frost); font-size: .86rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow svg { width: 14px; height: 14px; color: var(--gold-400); }
.hero-title { margin-top: 22px; font-size: clamp(2.35rem, 5.6vw, 4.35rem); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.shimmer-text {
  background: linear-gradient(100deg, var(--gold-300) 0%, var(--gold-500) 30%, #fff6dc 45%, var(--frost) 55%, var(--gold-400) 70%, var(--gold-500) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(249, 212, 122, .35));
}
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero-sub { margin-top: 22px; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ice-200); text-wrap: pretty; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.launch-line { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--ice-300); font-size: .95rem; font-weight: 500; letter-spacing: .02em; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 0 rgba(249, 212, 122, .7); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(249, 212, 122, .6); } 70%, 100% { box-shadow: 0 0 0 12px rgba(249, 212, 122, 0); } }

/* Hero email mock */
.hero-visual { position: relative; display: flex; justify-content: center; }
.email-card {
  position: relative; width: min(100%, 380px);
  padding: 22px 22px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(36, 48, 112, .82), rgba(26, 22, 74, .88));
  box-shadow: 0 0 0 1px rgba(205, 220, 247, .16) inset, var(--shadow-lg), 0 0 80px -20px rgba(143, 240, 255, .25);
  backdrop-filter: blur(10px);
  transform: rotate(2.5deg);
  animation: float 7s ease-in-out infinite;
}
.email-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(130deg, rgba(191, 233, 255, .18), transparent 35%, transparent 70%, rgba(249, 212, 122, .12));
}
@keyframes float { 0%, 100% { transform: rotate(2.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-10px); } }
.email-top { display: flex; align-items: center; gap: 12px; }
.email-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #2b2470, #1a1550); box-shadow: 0 0 0 1px rgba(249, 212, 122, .4); }
.email-avatar svg { width: 20px; height: 20px; color: var(--gold-400); }
.email-meta { display: flex; flex-direction: column; line-height: 1.25; }
.email-meta strong { font-size: .95rem; color: var(--ice-50); }
.email-meta span { font-size: .8rem; color: var(--ice-400); }
.email-subject { margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: var(--ice-50); line-height: 1.2; }
.email-chapter { margin-top: 6px; font-size: .86rem; color: var(--gold-400); font-weight: 500; letter-spacing: .02em; }
.week-dots { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 6px; }
.week-dots li {
  flex: 1; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; color: var(--ice-400);
  background: rgba(205, 220, 247, .07);
}
.week-dots .lit { background: rgba(249, 212, 122, .18); color: var(--gold-300); }
.week-dots .now { background: var(--gold-500); color: #2a1704; box-shadow: 0 0 18px rgba(249, 212, 122, .6); }
.week-dots .finale { box-shadow: 0 0 0 1px rgba(191, 233, 255, .35) inset; color: var(--frost); }
.email-excerpt { margin-top: 16px; font-size: .95rem; line-height: 1.6; color: var(--ice-200); font-style: italic; }
.email-btn {
  margin-top: 18px; display: inline-flex; padding: 10px 18px; border-radius: 999px;
  background: rgba(249, 212, 122, .14); color: var(--gold-300); font-weight: 600; font-size: .9rem;
  box-shadow: 0 0 0 1px rgba(249, 212, 122, .35) inset;
}
.float-star { position: absolute; width: 14px; height: 14px; background: var(--gold-300); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 6px #ffe7a8); animation: twinkle 3.5s ease-in-out infinite; }
.fs-1 { top: -14px; left: 8%; }
.fs-2 { bottom: 10%; right: -4px; width: 20px; height: 20px; animation-delay: 1.2s; background: var(--frost); filter: drop-shadow(0 0 8px var(--frost)); }
.fs-3 { top: 38%; left: -10px; width: 10px; height: 10px; animation-delay: 2.1s; }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }

.skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 11vw, 160px); fill: var(--night-850); z-index: 0; }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: clamp(96px, 18vw, 140px); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .launch-line { justify-content: center; }
  .hero-visual { margin-top: 8px; }
  .email-card { text-align: left; }
  .moon { right: 6%; top: calc(var(--header-h) + 14px); width: 64px; opacity: .9; }
}
@media (max-width: 520px) {
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .email-card { transform: none; animation: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 8vw, 104px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--frost); margin-bottom: 14px; }
h2 { font-size: clamp(1.95rem, 4vw, 3rem); text-wrap: balance; }
.lede { margin-top: 16px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--text-soft); text-wrap: pretty; }
.fine { font-size: .86rem; color: var(--ice-400); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Name preview ---------- */
.preview { background: linear-gradient(180deg, var(--night-850) 0%, var(--night-900) 100%); padding-top: clamp(40px, 6vw, 80px); }
.storybook { position: relative; }
.preview-label { display: block; text-align: center; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--ice-200); margin-bottom: 12px; }
.preview-input-wrap { position: relative; max-width: 440px; margin: 0 auto; }
.preview-input-wrap svg { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--gold-400); pointer-events: none; }
.preview-input-wrap input {
  width: 100%; height: 64px; padding: 0 22px 0 52px; border-radius: 999px; border: 0;
  background: rgba(10, 16, 48, .8); color: var(--ice-50);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  box-shadow: 0 0 0 1.5px rgba(249, 212, 122, .45) inset, 0 0 40px -10px rgba(249, 212, 122, .45);
  transition: box-shadow .25s ease;
}
.preview-input-wrap input::placeholder { color: var(--ice-400); font-weight: 400; }
.preview-input-wrap input:focus { outline: none; box-shadow: 0 0 0 2px var(--gold-400) inset, 0 0 60px -6px rgba(249, 212, 122, .6); }

.story-page {
  position: relative; margin-top: 36px; padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(191, 233, 255, .1), transparent 50%),
    linear-gradient(160deg, #1a2160 0%, #23175a 100%);
  box-shadow: 0 0 0 1px rgba(205, 220, 247, .14) inset, var(--shadow-lg);
}
.story-page::before, .story-page::after {
  content: ""; position: absolute; width: 22px; height: 22px; background: var(--gold-400);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px var(--gold-400)); opacity: .85;
}
.story-page::before { top: 18px; right: 22px; }
.story-page::after { bottom: 22px; right: 26px; width: 14px; height: 14px; background: var(--frost); }
.story-chapter { font-size: .84rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); }
.story-text { margin-top: 16px; font-size: clamp(1.08rem, 1.8vw, 1.26rem); line-height: 1.85; color: var(--ice-100); }
.story-text::first-letter { font-family: var(--font-display); font-size: 3.1em; float: left; line-height: .9; margin: 6px 10px 0 0; color: var(--gold-400); }
.hero-name { color: var(--gold-300); font-weight: 700; transition: color .3s ease, text-shadow .3s ease; }
.hero-name.is-default { color: var(--frost); font-weight: 500; font-style: italic; }
.hero-name.pop { animation: name-pop .7s ease; }
@keyframes name-pop { 0% { text-shadow: 0 0 0 transparent; } 40% { text-shadow: 0 0 18px rgba(255, 220, 140, .95); color: #fff6dc; } 100% { text-shadow: 0 0 0 transparent; } }
.story-continue { margin-top: 22px; font-family: var(--font-display); font-size: 1rem; color: var(--ice-300); font-style: normal; }
.story-continue::before { content: "☾  "; color: var(--gold-400); }
.preview-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ---------- How it works ---------- */
.how { background: var(--night-900); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step {
  position: relative; padding: 32px 28px 30px; border-radius: var(--radius);
  background: var(--glass); box-shadow: 0 0 0 1px var(--line) inset;
}
.step:nth-child(2) { transition-delay: .1s; }
.step:nth-child(3) { transition-delay: .2s; }
.step-num {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: #2a1704;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  clip-path: polygon(50% 0, 63% 32%, 98% 35%, 71% 58%, 80% 94%, 50% 75%, 20% 94%, 29% 58%, 2% 35%, 37% 32%);
  padding-top: 4px;
}
.step h3 { font-size: 1.35rem; }
.step p { margin-top: 10px; color: var(--text-soft); }
.step em { color: var(--gold-300); font-style: italic; }

.arc {
  margin-top: 28px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(79, 38, 119, .55), rgba(19, 29, 79, .7));
  box-shadow: 0 0 0 1px rgba(226, 182, 255, .18) inset;
}
.arc-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.arc-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.arc-head p { color: var(--ice-200); }
.arc-nights { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.arc-nights::before {
  content: ""; position: absolute; left: 7%; right: 7%; top: 15px; height: 2px;
  background: linear-gradient(90deg, rgba(249, 212, 122, .25), rgba(249, 212, 122, .8));
}
.arc-nights li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 4px; }
.arc-star {
  --s: 14px; width: var(--s); height: var(--s); margin: calc((32px - var(--s)) / 2) 0 calc((32px - var(--s)) / 2 + 10px);
  background: var(--gold-400); filter: drop-shadow(0 0 6px rgba(249, 212, 122, .8));
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.arc-nights li:nth-child(2) .arc-star { --s: 16px; }
.arc-nights li:nth-child(3) .arc-star { --s: 18px; }
.arc-nights li:nth-child(4) .arc-star { --s: 20px; }
.arc-nights li:nth-child(5) .arc-star { --s: 22px; }
.arc-nights li:nth-child(6) .arc-star { --s: 25px; }
.arc-finale .arc-star { --s: 32px; background: linear-gradient(180deg, #fff6dc, var(--gold-400)); filter: drop-shadow(0 0 12px rgba(255, 231, 168, .9)); animation: finale-glow 3s ease-in-out infinite; }
@keyframes finale-glow { 0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 231, 168, .7)); transform: scale(1); } 50% { filter: drop-shadow(0 0 18px rgba(255, 231, 168, 1)); transform: scale(1.12) rotate(12deg); } }
.arc-nights strong { font-family: var(--font-display); font-weight: 600; color: var(--ice-50); }
.arc-nights small { font-size: .84rem; color: var(--ice-300); line-height: 1.35; }
.arc-finale strong { color: var(--gold-300); }
.arc-finale small { color: var(--gold-300); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; padding: 24px 22px; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
  .arc-head { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .arc-nights { grid-template-columns: 1fr; gap: 0; margin-top: 26px; }
  .arc-nights::before { left: 15px; right: auto; top: 16px; bottom: 16px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(249, 212, 122, .25), rgba(249, 212, 122, .85)); }
  .arc-nights li { display: grid; grid-template-columns: 32px 44px 1fr; align-items: center; text-align: left; gap: 0 12px; padding: 7px 0; }
  .arc-star, .arc-finale .arc-star { margin: 0 auto; }
  .arc-nights small { font-size: .95rem; }
}

/* ---------- Story modes ---------- */
.modes { background: linear-gradient(180deg, var(--night-900), #0f1442 60%, var(--night-900)); }
.mode-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mode-card {
  position: relative; overflow: hidden; padding: 26px 22px 24px; border-radius: var(--radius);
  background: var(--glass); box-shadow: 0 0 0 1px var(--line) inset;
  transition: transform .3s ease, box-shadow .3s ease, opacity .7s ease;
}
.mode-card::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 30%, transparent), transparent);
  opacity: .6; transition: opacity .3s ease;
}
.mode-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tint) 45%, transparent) inset, 0 20px 40px -20px color-mix(in srgb, var(--tint) 40%, transparent); }
.mode-card:hover::before { opacity: 1; }
.mode-card svg { width: 40px; height: 40px; color: var(--tint); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--tint) 50%, transparent)); }
.mode-card h3 { margin-top: 18px; font-size: 1.28rem; }
.mode-card p { margin-top: 8px; font-size: .97rem; color: var(--text-soft); line-height: 1.55; }
@media (max-width: 1000px) { .mode-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .mode-grid { gap: 12px; }
  .mode-card { padding: 20px 16px; }
  .mode-card svg { width: 34px; height: 34px; }
  .mode-card h3 { margin-top: 12px; font-size: 1.12rem; }
  .mode-card p { font-size: .9rem; }
}

/* ---------- Plans ---------- */
.plans { background: radial-gradient(80% 60% at 50% 40%, rgba(79, 38, 119, .45), transparent 70%), var(--night-900); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 34px 28px 30px; border-radius: var(--radius-lg);
  background: var(--glass-strong); box-shadow: 0 0 0 1px var(--line) inset;
}
.plan:nth-child(2) { transition-delay: .1s; }
.plan:nth-child(3) { transition-delay: .2s; }
.plan-featured {
  background: linear-gradient(170deg, rgba(79, 38, 119, .85), rgba(23, 30, 86, .9));
  box-shadow: 0 0 0 1.5px rgba(249, 212, 122, .55) inset, 0 30px 80px -30px rgba(249, 212, 122, .35);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: #2a1704;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.plan h3 { font-size: 1.45rem; }
.plan-for { margin-top: 4px; color: var(--ice-300); font-size: .95rem; }
.price { margin: 22px 0 6px; display: flex; align-items: baseline; gap: 4px; }
.price .amt { font-family: var(--font-display); font-weight: 600; font-size: 3.2rem; line-height: 1; color: var(--ice-50); }
.plan-featured .price .amt { color: var(--gold-300); }
.price .per { color: var(--ice-300); }
.plan-list { list-style: none; margin: 18px 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; align-content: start; }
.plan-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .97rem; color: var(--ice-200); line-height: 1.5; }
.plan-list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--gold-400); }
.plans-note { margin-top: 30px; text-align: center; color: var(--ice-300); font-size: .95rem; }
@media (max-width: 960px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 30px; }
  .plan-featured { order: -1; }
}

/* ---------- FAQ ---------- */
.faq { background: var(--night-900); }
.faq-list { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--glass); box-shadow: 0 0 0 1px var(--line) inset; transition: background-color .25s ease; }
.faq details[open] { background: rgba(28, 40, 102, .6); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 60px 22px 24px; font-family: var(--font-display); font-weight: 500; font-size: 1.14rem; color: var(--ice-50);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--gold-400); border-bottom: 2px solid var(--gold-400);
  transform: rotate(45deg); transition: transform .25s ease, margin .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-body { padding: 0 24px 22px; color: var(--ice-200); }

/* ---------- Waitlist ---------- */
.waitlist {
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(106, 53, 150, .55), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(143, 240, 255, .1), transparent 70%),
    linear-gradient(180deg, var(--night-900), var(--night-950));
}
.waitlist-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 28% 68%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 14%, #ffe7a8, transparent),
    radial-gradient(1px 1px at 58% 82%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 72% 36%, #bfe9ff, transparent),
    radial-gradient(1px 1px at 86% 72%, #fff, transparent),
    radial-gradient(1px 1px at 92% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 6% 56%, #ffe7a8, transparent);
}
.waitlist-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.waitlist-copy { padding-top: 12px; position: sticky; top: calc(var(--header-h) + 32px); }
.countdown { margin-top: 26px; display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 20px; border-radius: 16px; background: rgba(249, 212, 122, .1); box-shadow: 0 0 0 1px rgba(249, 212, 122, .3) inset; color: var(--gold-300); font-weight: 500; }
.countdown [data-countdown-num] { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1; }
.perks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 12px; color: var(--ice-200); }
.perks svg { width: 16px; height: 16px; flex: none; color: var(--gold-400); }

.form-card {
  position: relative; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(30, 40, 104, .9), rgba(22, 18, 66, .94));
  box-shadow: 0 0 0 1px rgba(205, 220, 247, .16) inset, var(--shadow-lg), 0 0 90px -30px rgba(143, 240, 255, .3);
}
.form-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(191, 233, 255, .14), transparent 30%);
}
.wl-step { position: relative; animation: step-in .5s ease; }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step-tag { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--frost); }
.step-tag.done span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--success); }
.step-tag svg { width: 14px; height: 14px; }
.form-title { font-size: clamp(1.6rem, 3vw, 2rem); }
.form-title:focus { outline: none; }
.form-sub { margin-top: 8px; color: var(--ice-300); margin-bottom: 26px; }

.field { margin-bottom: 18px; }
.field label, .label-like { display: block; margin-bottom: 8px; font-size: .94rem; font-weight: 500; color: var(--ice-200); }
.field input[type="text"], .field input[type="email"], .field select {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 0;
  background: rgba(6, 10, 34, .55); color: var(--ice-50); font-size: 16px;
  box-shadow: 0 0 0 1px rgba(205, 220, 247, .2) inset;
  transition: box-shadow .2s ease, background-color .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field input:hover, .field select:hover { box-shadow: 0 0 0 1px rgba(205, 220, 247, .35) inset; }
.field input:focus, .field select:focus { outline: none; background: rgba(6, 10, 34, .75); box-shadow: 0 0 0 2px var(--gold-400) inset, 0 0 0 5px rgba(249, 212, 122, .15); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--danger) inset; }
.field-error { min-height: 0; margin-top: 6px; font-size: .88rem; color: var(--danger); }
.field-error:empty { display: none; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ice-300); border-bottom: 2px solid var(--ice-300); transform: rotate(45deg); pointer-events: none; }
.select-wrap select { padding-right: 44px; cursor: pointer; }
.select-wrap select option { background: var(--night-850); color: var(--ice-50); }

.check { display: flex !important; align-items: flex-start; gap: 12px; cursor: pointer; color: var(--ice-100) !important; font-size: 1rem !important; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(6, 10, 34, .55); box-shadow: 0 0 0 1.5px rgba(205, 220, 247, .35) inset; transition: background-color .2s ease, box-shadow .2s ease; }
.check-box svg { width: 16px; height: 16px; color: #2a1704; opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .2s ease; }
.check input:checked + .check-box { background: var(--gold-500); box-shadow: 0 0 0 1.5px var(--gold-400) inset, 0 0 14px rgba(249, 212, 122, .5); }
.check input:checked + .check-box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check-box { outline: 2px solid var(--gold-400); outline-offset: 3px; }
.check input[aria-invalid="true"] + .check-box { box-shadow: 0 0 0 2px var(--danger) inset; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  margin: 4px 0 16px; padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 155, 155, .1); box-shadow: 0 0 0 1px rgba(255, 155, 155, .35) inset; color: #ffd0d0; font-size: .95rem;
}
.form-card .fine { margin-top: 14px; }

/* Step 2 */
.group { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.group legend { padding: 0; margin-bottom: 12px; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--ice-50); display: flex; align-items: baseline; gap: 10px; width: 100%; }
.opt { font-family: var(--font-body); font-size: .82rem; font-weight: 500; color: var(--ice-400); }
.children { display: grid; gap: 12px; }
.child { padding: 16px; border-radius: 16px; background: rgba(6, 10, 34, .35); box-shadow: 0 0 0 1px var(--line) inset; animation: step-in .35s ease; }
.child-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.child-label { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-400); }
.child-remove { background: none; border: 0; padding: 4px 6px; color: var(--ice-400); font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.child-remove:hover { color: var(--ice-100); }
.child-fields { display: grid; grid-template-columns: 1fr 120px; gap: 0 12px; }
.child-fields .field { margin-bottom: 12px; }
.child-fields .field-wide { grid-column: 1 / -1; margin-bottom: 0; }
.child-fields .field label, .child-fields .label-like { font-size: .86rem; margin-bottom: 6px; }
.child-fields input[type="text"], .child-fields select { height: 48px; }
.seg { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 6px; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; height: 44px; padding: 0 8px; border-radius: 12px; text-align: center; font-size: .9rem; line-height: 1.15; color: var(--ice-200); background: rgba(6, 10, 34, .5); box-shadow: 0 0 0 1px rgba(205, 220, 247, .2) inset; cursor: pointer; transition: all .2s ease; }
.seg input:checked + span { background: rgba(249, 212, 122, .16); color: var(--gold-300); box-shadow: 0 0 0 1.5px var(--gold-400) inset; }
.seg input:focus-visible + span { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.btn-add { margin-top: 12px; background: none; border: 1.5px dashed rgba(205, 220, 247, .3); border-radius: 14px; width: 100%; height: 48px; color: var(--ice-200); font-weight: 500; cursor: pointer; transition: all .2s ease; }
.btn-add:hover { border-color: var(--gold-400); color: var(--gold-300); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font-size: .94rem; color: var(--ice-200); background: rgba(6, 10, 34, .5); box-shadow: 0 0 0 1px rgba(205, 220, 247, .22) inset;
  transition: all .2s ease; user-select: none;
}
.chip span:hover { box-shadow: 0 0 0 1px rgba(205, 220, 247, .45) inset; }
.chip input:checked + span { background: rgba(249, 212, 122, .16); color: var(--gold-300); box-shadow: 0 0 0 1.5px var(--gold-400) inset; }
.chip input[type="checkbox"]:checked + span::before { content: "✦"; font-size: .8em; }
.chip input:focus-visible + span { outline: 2px solid var(--gold-400); outline-offset: 2px; }

.btn-skip { display: block; margin: 14px auto 0; padding: 8px 12px; background: none; border: 0; color: var(--ice-300); font-size: .96rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.btn-skip:hover { color: var(--ice-50); }
.btn-skip:disabled { opacity: .5; cursor: default; }

/* Success */
.wl-success { text-align: center; padding: 8px 0; }
.success-burst { position: relative; width: 120px; height: 120px; margin: 0 auto 18px; }
.sb-star { position: absolute; inset: 22px; width: 76px; height: 76px; color: var(--gold-400); filter: drop-shadow(0 0 20px rgba(249, 212, 122, .9)); animation: burst-in .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.success-burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 8px var(--gold-300); opacity: 0; animation: spark 1.2s ease-out .2s both; }
.success-burst i:nth-child(odd) { background: var(--frost); box-shadow: 0 0 8px var(--frost); }
.success-burst i:nth-child(2) { --a: 0deg; } .success-burst i:nth-child(3) { --a: 45deg; } .success-burst i:nth-child(4) { --a: 90deg; } .success-burst i:nth-child(5) { --a: 135deg; }
.success-burst i:nth-child(6) { --a: 180deg; } .success-burst i:nth-child(7) { --a: 225deg; } .success-burst i:nth-child(8) { --a: 270deg; } .success-burst i:nth-child(9) { --a: 315deg; }
@keyframes burst-in { from { transform: scale(0) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-64px); } }
.success-text { margin: 14px auto 0; max-width: 30em; color: var(--ice-200); font-size: 1.05rem; }
.share { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.share-title { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--ice-50); }
.share-buttons { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  color: var(--ice-50); background: rgba(205, 220, 247, .08); box-shadow: 0 0 0 1px rgba(205, 220, 247, .25) inset;
  font-size: .95rem; font-weight: 500; text-decoration: none; transition: all .2s ease;
}
.share-btn:hover { color: var(--night-950); background: var(--gold-400); box-shadow: none; }
.share-btn svg { width: 18px; height: 18px; }
.share-btn.copied { color: var(--night-950); background: var(--success); }

@media (max-width: 900px) {
  .waitlist-grid { grid-template-columns: 1fr; }
  .waitlist-copy { position: static; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .perks { justify-items: start; }
}
@media (max-width: 420px) {
  .form-card { padding: 22px 18px; border-radius: 22px; }
  .child-fields { grid-template-columns: 1fr 96px; }
  .seg { grid-template-columns: 1fr 1fr; }
  .seg label:last-child { grid-column: 1 / -1; }
  .share-btn { flex: 1 1 calc(50% - 10px); justify-content: center; padding: 0 12px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night-950); border-top: 1px solid var(--line); padding: 48px 0 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 28px; align-items: center; }
.footer-brand p { margin-top: 10px; color: var(--ice-400); font-size: .95rem; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--ice-200); text-decoration: none; font-size: .95rem; display: inline-flex; align-items: center; gap: 8px; word-break: break-all; }
.footer-links a:hover { color: var(--gold-300); }
.footer-links svg { width: 18px; height: 18px; flex: none; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ice-200); background: rgba(205, 220, 247, .07); box-shadow: 0 0 0 1px var(--line) inset; transition: all .2s ease; }
.socials a:hover { color: var(--night-950); background: var(--gold-400); }
.socials svg { width: 20px; height: 20px; }
.footer-base { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ice-400); font-size: .88rem; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-links { justify-items: center; }
  .footer-base { text-align: center; }
}

/* ---------- Legal page ---------- */
.legal { padding: calc(var(--header-h) + 48px) 0 96px; background: radial-gradient(80% 40% at 50% 0%, rgba(79, 38, 119, .5), transparent 70%), var(--night-900); }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal .updated { margin-top: 10px; color: var(--ice-400); }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ice-200); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; margin: 12px 0 0; }
.review-note { margin-top: 24px; padding: 16px 20px; border-radius: 14px; background: rgba(249, 212, 122, .1); box-shadow: 0 0 0 1px rgba(249, 212, 122, .35) inset; color: var(--gold-300) !important; font-size: .95rem; }
.site-header.solid { background: rgba(8, 12, 38, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .email-card { transform: rotate(2.5deg); }
}
