/* Cosmic Path — night indigo, warm gold, constellation progress.
   Mobile-first, single column. */

:root {
  --night: #141129;
  --panel: #1e1940;
  --panel-2: #262052;
  --ink: #f2ede0;
  --muted: #a79fc9;
  --gold: #e4b45a;
  --gold-soft: #f0cd8a;
  --lavender: #a99bd8;
  --danger: #e07a6a;
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- ambient starfield (pure CSS, respects reduced motion) ---- */
.sky {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1px 1px at 12% 22%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 12%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 42%, #ffd98a99 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 64%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 54% 82%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 88%, #cfc2ff88 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 74%, #fff6 50%, transparent 51%),
    radial-gradient(ellipse at 50% -20%, #2a2358 0%, var(--night) 60%);
  animation: drift 90s linear infinite alternate;
}
@keyframes drift { to { background-position: 0 0,0 0,0 0,0 0,0 0,0 0,0 0, 0 40px; } }
@media (prefers-reduced-motion: reduce) {
  .sky { animation: none; }
  * { transition: none !important; animation-duration: 0.01s !important; }
}

.shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---- constellation progress (signature element) ---- */
.constellation {
  display: flex; align-items: center; gap: 0;
  margin: 8px 0 28px;
  height: 22px;
}
.constellation .star {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3b3470;
  transform: rotate(45deg);
  transition: background .4s, box-shadow .4s;
  flex: none;
}
.constellation .star.lit {
  background: var(--gold);
  box-shadow: 0 0 8px 2px #e4b45a66;
}
.constellation .line {
  flex: 1; height: 1px;
  background: #3b3470;
  transition: background .4s;
}
.constellation .line.lit { background: linear-gradient(90deg, var(--gold), #e4b45a44); }

/* ---- screens ---- */
.screen { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: .2px;
}
h1 { font-size: 2.15rem; margin-bottom: 14px; }
h2 { font-size: 1.5rem; margin-bottom: 10px; }

.eyebrow {
  color: var(--gold);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sub { color: var(--muted); margin-bottom: 24px; font-size: .95rem; }

.ai-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #4a4183;
  color: var(--lavender);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .72rem;
  letter-spacing: .06em;
  margin-bottom: 20px;
}

/* ---- inputs ---- */
label.f-label { display: block; font-size: .8rem; color: var(--muted); margin: 14px 0 6px; }

input[type="text"], input[type="date"], input[type="time"],
input[type="email"], textarea, select {
  width: 100%;
  background: var(--panel);
  border: 1px solid #3b3470;
  color: var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
  color-scheme: dark;
}
input:focus-visible, textarea:focus-visible, select:focus-visible,
button:focus-visible, .choice:focus-visible {
  border-color: var(--gold);
  outline: 2px solid #e4b45a55;
  outline-offset: 1px;
}
textarea { min-height: 96px; resize: vertical; }

.choices { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.choice {
  background: var(--panel);
  border: 1px solid #3b3470;
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--lavender); }
.choice.selected {
  border-color: var(--gold);
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.check-row {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--muted); font-size: .82rem; margin-top: 14px;
}
.check-row input { width: auto; margin-top: 3px; accent-color: var(--gold); }

/* ---- buttons ---- */
.btn {
  display: block; width: 100%;
  border: none; border-radius: 14px;
  padding: 16px;
  font: inherit; font-weight: 600; font-size: 1rem;
  cursor: pointer;
  margin-top: 26px;
  transition: transform .1s, filter .15s;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: linear-gradient(120deg, var(--gold), var(--gold-soft)); color: #241c07; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid #3b3470; margin-top: 12px;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--lavender); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.nav-back {
  background: none; border: none; color: var(--muted);
  font: inherit; font-size: .85rem; cursor: pointer;
  padding: 4px 0; margin-bottom: 4px;
}
.nav-back:hover { color: var(--ink); }

.error { color: var(--danger); font-size: .85rem; margin-top: 10px; min-height: 1.2em; }

/* ---- loader ---- */
.loader-wrap { text-align: center; padding-top: 8vh; }
.orb {
  width: 84px; height: 84px; margin: 0 auto 28px;
  border-radius: 50%;
  border: 1px solid #4a4183;
  border-top-color: var(--gold);
  animation: spin 1.3s linear infinite;
  position: relative;
}
.orb::after {
  content: ""; position: absolute; inset: 14px;
  border-radius: 50%;
  border: 1px dashed #4a418377;
  animation: spin 4s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-step { color: var(--muted); font-size: .9rem; min-height: 1.4em; }

/* ---- result ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.chip {
  background: var(--panel); border: 1px solid #3b3470;
  border-radius: 999px; padding: 7px 13px;
  font-size: .78rem; color: var(--lavender);
}
.chip b { color: var(--gold); font-weight: 600; }

.teaser {
  background: var(--panel);
  border: 1px solid #3b3470;
  border-radius: var(--radius);
  padding: 22px;
  font-size: .98rem;
  margin-bottom: 26px;
}
.teaser::first-letter {
  font-family: var(--font-display);
  font-size: 2.1em; color: var(--gold);
  float: left; line-height: .9; padding-right: 8px;
}

.section-card {
  background: var(--panel);
  border: 1px solid #3b3470;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.section-card h3 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.section-card.locked .preview {
  filter: blur(6px);
  user-select: none; pointer-events: none;
  color: var(--muted);
  font-size: .9rem;
}
.lock-ico { color: var(--gold); font-size: .85em; }
.section-card .body { font-size: .93rem; color: #ded8ea; white-space: pre-wrap; }

.paybox {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #2a2254, #1e1940);
  padding: 22px;
  margin: 20px 0;
  text-align: center;
}
.paybox .price { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); }
.paybox p { color: var(--muted); font-size: .85rem; margin-top: 6px; }

.mini-note { color: var(--muted); font-size: .75rem; text-align: center; margin-top: 10px; }

/* ---- footer & modal ---- */
.site-foot {
  max-width: 480px; margin: 0 auto;
  padding: 18px 20px 30px;
  color: #6f6894; font-size: .72rem; text-align: center;
}
.site-foot a { color: #8f86bd; }
.foot-links { margin-top: 8px; }

.modal-veil {
  position: fixed; inset: 0; z-index: 50;
  background: #0c0a1acc; backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--panel); border: 1px solid #4a4183;
  border-radius: var(--radius);
  max-width: 420px; width: 100%;
  max-height: 80vh; overflow: auto;
  padding: 24px;
}
.modal h3 { font-family: var(--font-display); margin-bottom: 10px; }
.modal p { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }

/* language toggle */
.lang-row { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 4px; }
.lang-btn {
  background: none; border: 1px solid #3b3470; color: var(--muted);
  border-radius: 8px; padding: 4px 10px; font-size: .75rem; cursor: pointer;
}
.lang-btn.active { color: var(--gold); border-color: var(--gold); }

@media (min-width: 700px) {
  h1 { font-size: 2.6rem; }
  .shell { padding-top: 48px; }
}

.foot-badge {
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

/* ---- zodiac wheel loader ---- */
.zodiac-loader {
  position: relative;
  width: 168px; height: 168px;
  margin: 0 auto 30px;
}
.zodiac-loader .wheel {
  position: absolute; inset: 0;
  animation: spin 28s linear infinite;
}
.zodiac-loader .glyph {
  position: absolute; top: 50%; left: 50%;
  width: 26px; height: 26px; margin: -13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--lavender);
  font-size: 1.05rem;
  text-shadow: 0 0 10px #a99bd855;
}
.zodiac-loader .ring {
  position: absolute; inset: 22px;
  border-radius: 50%;
  border: 1px dashed #4a418388;
  animation: spin 44s linear infinite reverse;
}
.zodiac-loader .core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 1.7rem;
  animation: corePulse 2.2s ease-in-out infinite;
  text-shadow: 0 0 14px #e4b45a88;
}
@keyframes corePulse {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.88); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}

/* ---- hero identity ---- */
.hero { position: relative; text-align: center; padding-top: 4vh; }

.hero-halo {
  position: fixed;
  top: -180px; left: 50%;
  width: 640px; height: 640px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 42%, #e4b45a1f 0%, transparent 42%),
    radial-gradient(circle at 50% 50%, #5a4aa833 0%, #2a235800 62%);
  filter: blur(6px);
  pointer-events: none;
  z-index: -1;
}

.hero-wheel {
  position: fixed;
  top: 46%; left: 50%;
  width: 0; height: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .16;
}
.hero-wheel .wheel {
  position: absolute; top: 0; left: 0;
  animation: spin 120s linear infinite;
}
.hero-wheel .glyph {
  position: absolute; top: 0; left: 0;
  width: 30px; height: 30px; margin: -15px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.35rem;
}

.brand {
  display: flex; align-items: center; justify-content: center;
  gap: 11px;
  margin: 6px 0 26px;
}
.brand img { filter: drop-shadow(0 0 10px #e4b45a44); }
.brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-title .accent {
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 0 24px #e4b45a33;
}

.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  color: var(--gold);
  margin: 18px 0 16px;
  font-size: .8rem;
}
.ornament span {
  display: block; width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, #e4b45a99);
}
.ornament span:last-child {
  background: linear-gradient(270deg, transparent, #e4b45a99);
}

.hero-sub { max-width: 380px; margin-left: auto; margin-right: auto; }

/* ---- ambient particles ---- */
.particles { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.p-dot, .p-star {
  position: absolute;
  bottom: -4vh;
  animation-name: p-rise, twinkle;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  will-change: transform, opacity;
}
.p-dot { background: #f2ede0; border-radius: 50%; opacity: .5; }
.p-star { color: var(--gold); opacity: .6; text-shadow: 0 0 8px #e4b45a66; }
@keyframes p-rise {
  from { transform: translateY(0); }
  to   { transform: translateY(-115vh); }
}
@keyframes twinkle {
  0%, 100% { opacity: .15; }
  50%      { opacity: .75; }
}
@media (prefers-reduced-motion: reduce) { .particles { display: none; } }

/* ---- question counter ---- */
.q-count { margin: 10px 0 8px; font-size: .68rem; }

/* ---- choice icons ---- */
.ch-ico { display: inline-block; width: 1.7em; font-size: 1.05em; }

/* ---- interludes ---- */
.interlude { text-align: center; padding-top: 9vh; }
.int-star {
  color: var(--gold);
  font-size: 2.2rem;
  margin-bottom: 30px;
  animation: corePulse 2.2s ease-in-out infinite;
  text-shadow: 0 0 16px #e4b45a88;
}
.int-line {
  opacity: 0;
  animation: rise-in .7s ease forwards;
  margin: 0 auto 16px;
  max-width: 400px;
  font-size: .98rem;
  color: var(--ink);
}
.int-accent {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
}
.int-btn { opacity: 0; animation: rise-in .7s ease forwards; max-width: 400px; margin-left: auto; margin-right: auto; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---- key sign card ---- */
.key-card-wrap { text-align: center; margin: 6px 0 26px; }
.key-card {
  display: inline-block;
  width: 158px;
  padding: 26px 16px 22px;
  background: linear-gradient(165deg, #262052, var(--panel));
  border: 1px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 0 30px #e4b45a1e, inset 0 0 0 4px #14112966, inset 0 0 0 5px #e4b45a44;
  animation: cardFloat 5s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.kc-glyph {
  font-size: 2.6rem;
  color: var(--gold);
  text-shadow: 0 0 18px #e4b45a77;
  margin-bottom: 8px;
}
.kc-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--gold-soft);
  margin-bottom: 4px;
}
.kc-sub { color: var(--muted); font-size: .74rem; letter-spacing: .04em; }

/* ---- free card + pdf link ---- */
.free-card { border-color: #57509a; }
.free-card h3 .lock-ico { color: var(--gold); }
.btn-link { text-decoration: none; text-align: center; display: block; }


/* ---- brand symmetry + card pair ---- */
.brand-mirror { transform: scaleX(-1); }
.key-card-row {
  display: flex; gap: 14px;
  justify-content: center; align-items: stretch;
  flex-wrap: wrap;
}
.key-card-row .key-card:nth-child(2) { animation-delay: 2.5s; }
.kc-label {
  color: var(--gold);
  font-size: .58rem;
  letter-spacing: .18em;
  margin-bottom: 12px;
}
.kc-roman {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .2em;
  margin-bottom: 2px;
}
