/* Compass — cinematic, dreamy, fortune-teller-meets-Apple */

:root {
  --night: #0a0e27;
  --night-2: #1a1f3d;
  --night-3: #232a4f;
  --star: #fff8e7;
  --aurora: #a78bfa;
  --aurora-warm: #f59e0b;
  --aurora-cool: #06b6d4;
  --rose: #fb7185;
  --silver: #cbd5e1;
  --silver-2: #94a3b8;
  --silver-3: #64748b;
  --line: rgba(255, 248, 231, 0.08);
  --line-strong: rgba(255, 248, 231, 0.14);
  --display: "Fraunces", "Tiempos Headline", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-card: 0 30px 80px -30px rgba(0, 0, 0, 0.6), 0 8px 28px -10px rgba(167, 139, 250, 0.18);
  --max: 1180px;
}

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

html {
  background: var(--night);
  color: var(--star);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background: var(--night);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(167, 139, 250, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(6, 182, 212, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(245, 158, 11, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 13% 22%, rgba(255, 248, 231, 0.7), transparent 50%),
    radial-gradient(1px 1px at 27% 78%, rgba(255, 248, 231, 0.5), transparent 50%),
    radial-gradient(1.4px 1.4px at 64% 12%, rgba(255, 248, 231, 0.6), transparent 50%),
    radial-gradient(1px 1px at 81% 56%, rgba(255, 248, 231, 0.55), transparent 50%),
    radial-gradient(1px 1px at 47% 41%, rgba(255, 248, 231, 0.4), transparent 50%),
    radial-gradient(1px 1px at 92% 84%, rgba(255, 248, 231, 0.5), transparent 50%),
    radial-gradient(1.2px 1.2px at 8% 64%, rgba(255, 248, 231, 0.5), transparent 50%),
    radial-gradient(1px 1px at 39% 88%, rgba(255, 248, 231, 0.45), transparent 50%);
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

main, header, footer, section { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---------- typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
  color: var(--star);
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.italic { font-style: italic; color: var(--aurora); }
.muted { color: var(--silver-2); }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--silver-2);
  font-weight: 600;
}

p, li { color: var(--silver); font-size: 1.05rem; }
.lede { font-size: 1.22rem; color: var(--silver); max-width: 60ch; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 14, 39, 0.55);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--star);
}

.nav__brand svg { width: 30px; height: 30px; }

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav__links a {
  font-size: 0.95rem;
  color: var(--silver);
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--star); }

@media (max-width: 720px) {
  .nav__links a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--aurora) 0%, #c4a8ff 60%, var(--aurora-warm) 130%);
  color: var(--night);
  box-shadow: 0 8px 30px -8px rgba(167, 139, 250, 0.55);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px -10px rgba(167, 139, 250, 0.7);
}
.btn--ghost {
  background: rgba(255, 248, 231, 0.04);
  border-color: var(--line-strong);
  color: var(--star);
}
.btn--ghost:hover {
  background: rgba(255, 248, 231, 0.08);
  border-color: rgba(255, 248, 231, 0.22);
}
.btn--lg { padding: 18px 32px; font-size: 1.05rem; min-height: 56px; }

/* ---------- hero ---------- */
.hero {
  padding: clamp(64px, 10vw, 140px) clamp(20px, 4vw, 48px) clamp(72px, 12vw, 140px);
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.22);
  color: var(--aurora);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero__kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 0 10px var(--aurora);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: 0.98;
  margin-bottom: 28px;
}

.hero h1 .italic {
  font-style: italic;
  background: linear-gradient(120deg, var(--aurora) 0%, var(--aurora-cool) 50%, var(--aurora-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  color: var(--silver);
  max-width: 56ch;
  margin: 0 auto 44px;
  line-height: 1.6;
}

.hero__cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- divergence visual (hero canvas) ---------- */
.divergence {
  margin: 60px auto 0;
  max-width: 980px;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(167, 139, 250, 0.25), transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 70% at 100% 100%, rgba(245, 158, 11, 0.18), transparent 60%),
    var(--night-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}

.divergence svg { width: 100%; height: 100%; display: block; }
.divergence__path {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px currentColor);
  animation: trace 4s ease-out forwards;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.divergence__path:nth-child(2) { animation-delay: 0.15s; color: var(--aurora); }
.divergence__path:nth-child(3) { animation-delay: 0.3s; color: var(--aurora-cool); }
.divergence__path:nth-child(4) { animation-delay: 0.45s; color: var(--aurora-warm); }
.divergence__path:nth-child(5) { animation-delay: 0.6s; color: var(--rose); }
.divergence__path:nth-child(6) { animation-delay: 0.75s; color: #93c5fd; }
.divergence__path:nth-child(7) { animation-delay: 0.9s; color: var(--star); stroke-width: 2.2; }

@keyframes trace {
  to { stroke-dashoffset: 0; }
}

.divergence__label {
  position: absolute;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: var(--star);
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- sections ---------- */
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) clamp(20px, 4vw, 48px);
}

.section__head {
  text-align: center;
  margin-bottom: 64px;
}

.section__head .kicker { margin-bottom: 18px; display: block; }

.section__head h2 {
  margin-bottom: 18px;
}

.section__head .lede { margin: 0 auto; }

/* ---------- ache (universal pain) ---------- */
.ache {
  text-align: center;
  padding-top: clamp(40px, 6vw, 80px);
}

.ache__quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.3;
  color: var(--star);
  max-width: 26ch;
  margin: 0 auto;
  letter-spacing: -0.015em;
}

.ache__quote .em { color: var(--aurora); }

.ache__by {
  margin-top: 20px;
  color: var(--silver-3);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 248, 231, 0.04), rgba(255, 248, 231, 0.01));
  border: 1px solid var(--line-strong);
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.35);
}

.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.45), transparent);
}

.step__num {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--aurora);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--star);
  letter-spacing: -0.015em;
}

.step p { font-size: 0.98rem; color: var(--silver); }

/* ---------- demo callout / pricing ---------- */
.callout {
  text-align: center;
  padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 48px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(167, 139, 250, 0.2), transparent 60%),
    linear-gradient(160deg, var(--night-2), var(--night));
  border: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
}

/* ---------- pricing ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}
@media (max-width: 980px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  padding: 28px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(255, 248, 231, 0.04), rgba(255, 248, 231, 0.01));
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.tier:hover { transform: translateY(-3px); border-color: rgba(167,139,250,0.3); }
.tier--featured {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 20px 60px -20px rgba(167, 139, 250, 0.3);
}
.tier__name {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--star);
}
.tier__price {
  font-family: var(--display);
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  color: var(--star);
}
.tier__price small {
  font-size: 0.95rem;
  color: var(--silver-2);
  font-family: var(--body);
  font-weight: 500;
}
.tier__desc { font-size: 0.95rem; color: var(--silver); flex: 1; }
.tier__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier__features li {
  font-size: 0.92rem;
  color: var(--silver);
  padding-left: 22px;
  position: relative;
}
.tier__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 0 6px var(--aurora);
}
.tier__badge {
  position: absolute;
  top: -10px; right: 18px;
  background: var(--aurora);
  color: var(--night);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 50px clamp(20px, 4vw, 48px) 60px;
  text-align: center;
  color: var(--silver-3);
  font-size: 0.88rem;
}
.footer__brand {
  font-family: var(--display);
  color: var(--star);
  font-size: 1.05rem;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.footer__links {
  display: flex; gap: 22px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap;
}
.footer__links a:hover { color: var(--star); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 248, 231, 0.03);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: rgba(167, 139, 250, 0.3); }
.faq summary {
  list-style: none;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--aurora);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq__body { padding: 0 24px 22px; color: var(--silver); font-size: 0.98rem; }

/* ---------- INTERVIEW ---------- */
.interview-wrap {
  min-height: calc(100vh - 78px);
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 32px) 0;
}

.interview-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
}
.interview-progress span {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 248, 231, 0.08);
  position: relative;
  overflow: hidden;
}
.interview-progress span.done {
  background: linear-gradient(90deg, var(--aurora), var(--aurora-cool));
}
.interview-progress span.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--aurora), var(--aurora-cool));
  transform-origin: left;
  animation: fillBar 0.6s ease forwards;
}
@keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(0.5); } }

.interview-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 12px 0 32px;
}

.bubble {
  max-width: 88%;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  font-size: 1.04rem;
  line-height: 1.55;
  animation: bubbleIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.bubble--ai {
  align-self: flex-start;
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.13), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(167, 139, 250, 0.22);
  color: var(--star);
  font-family: var(--display);
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  border-bottom-left-radius: 6px;
}
.bubble--me {
  align-self: flex-end;
  background: rgba(255, 248, 231, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--star);
  border-bottom-right-radius: 6px;
}

.bubble--typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bubble--typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--aurora);
  animation: typing 1.2s ease-in-out infinite;
}
.bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1.1); }
}

.composer {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, var(--night) 30%);
  padding: 24px 0 28px;
  z-index: 10;
}
.composer__inner {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: rgba(255, 248, 231, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 8px 8px 8px 18px;
  transition: border-color 0.2s ease;
}
.composer__inner:focus-within { border-color: rgba(167, 139, 250, 0.45); }
.composer textarea {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--star);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.5;
  resize: none;
  padding: 12px 0;
  min-height: 46px;
  max-height: 200px;
}
.composer textarea::placeholder { color: var(--silver-3); }
.composer__send {
  background: linear-gradient(135deg, var(--aurora), var(--aurora-cool));
  color: var(--night);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.composer__send:disabled { opacity: 0.3; cursor: not-allowed; }
.composer__send:not(:disabled):hover { transform: scale(1.05); }
.composer__send svg { width: 20px; height: 20px; }

.interview-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0 40px;
  text-align: center;
}
.interview-cta h2 { margin-bottom: 16px; }
.interview-cta p { color: var(--silver); margin-bottom: 28px; max-width: 50ch; }

.shimmer {
  display: inline-block;
  background: linear-gradient(90deg, var(--silver-3), var(--star), var(--silver-3));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 2s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- RESULT — the showpiece ---------- */
.result-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px clamp(16px, 4vw, 32px) 80px;
  max-width: 1180px;
  margin: 0 auto;
}

.result-intro {
  text-align: center;
  margin: 16px 0 36px;
}
.result-intro h1 {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  margin-bottom: 12px;
}
.result-intro p { color: var(--silver); max-width: 50ch; margin: 0 auto; }

.deck {
  width: 100%;
  max-width: 480px;
  position: relative;
  aspect-ratio: 9 / 16;
  margin-bottom: 28px;
}

.card {
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transform-origin: bottom center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
  cursor: grab;
  -webkit-user-select: none; user-select: none;
  touch-action: pan-y;
  opacity: 0;
}
.card[data-state="active"],
.card[data-state="next-1"],
.card[data-state="next-2"] { opacity: 1; }
.card[data-state="next-1"] { opacity: 0.8; }
.card[data-state="next-2"] { opacity: 0.5; }
.card:active { cursor: grabbing; }
.card[data-state="prev"] { transform: translateX(-30%) scale(0.85) rotate(-3deg); opacity: 0; pointer-events: none; }
.card[data-state="next-1"] { transform: translateY(14px) scale(0.96); opacity: 0.8; pointer-events: none; z-index: 2; }
.card[data-state="next-2"] { transform: translateY(28px) scale(0.92); opacity: 0.5; pointer-events: none; z-index: 1; }
.card[data-state="hidden"] { transform: translateY(40px) scale(0.88); opacity: 0; pointer-events: none; z-index: 0; }
.card[data-state="active"] { z-index: 3; }
.card[data-state="gone"] { transform: translateX(120%) rotate(8deg); opacity: 0; pointer-events: none; }

.card__cover {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.card__cover canvas { width: 100%; height: 100%; display: block; }

.card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 39, 0.15) 0%, rgba(10, 14, 39, 0.55) 50%, rgba(10, 14, 39, 0.95) 100%);
  z-index: 1;
}

.card__content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px 28px;
  color: var(--star);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
}
.card__top svg { width: 18px; height: 18px; }

.card__bottom { display: flex; flex-direction: column; gap: 16px; }

.card__chapter {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255, 248, 231, 0.7);
}

.card__name {
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.card__name .em {
  font-style: italic;
  color: rgba(255, 248, 231, 0.85);
}

.card__locale {
  font-size: 0.94rem;
  color: rgba(255, 248, 231, 0.78);
  letter-spacing: 0.02em;
}

.card__teaser {
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255, 248, 231, 0.72);
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.card__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 248, 231, 0.6);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.card__hint::before { content: "↑"; font-size: 1rem; }

.deck__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.deck__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 248, 231, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}
.deck__dots button.active {
  background: var(--aurora);
  transform: scale(1.4);
  box-shadow: 0 0 10px var(--aurora);
}

.deck__nav {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.deck__nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 248, 231, 0.04);
  color: var(--star);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.deck__nav button:hover { border-color: rgba(167,139,250,0.4); transform: scale(1.05); }
.deck__nav button svg { width: 18px; height: 18px; }

/* card detail (full panel) */
.detail {
  position: fixed;
  inset: 0;
  background: var(--night);
  z-index: 200;
  overflow-y: auto;
  display: none;
  animation: detailIn 0.4s ease forwards;
}
.detail.open { display: block; }
@keyframes detailIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.detail__hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 80px 24px 40px;
  overflow: hidden;
}
.detail__hero canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.detail__hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 39, 0.4), rgba(10, 14, 39, 0.95));
  z-index: 1;
}
.detail__hero-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; width: 100%; }
.detail__hero-content .kicker { color: var(--aurora); }
.detail__hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin: 14px 0 16px;
}
.detail__hero-content .locale {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--silver);
}

.detail__close {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 210;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(10, 14, 39, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  color: var(--star);
  display: flex; align-items: center; justify-content: center;
}

.detail__body {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.detail__study {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  line-height: 1.55;
  color: var(--star);
  letter-spacing: -0.005em;
  font-weight: 400;
  border-left: 2px solid var(--aurora);
  padding-left: 24px;
}

.detail__section h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px dashed rgba(255, 248, 231, 0.18);
  padding-left: 28px;
  position: relative;
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--aurora);
  box-shadow: 0 0 8px var(--aurora);
}
.timeline__year {
  font-family: var(--display);
  font-size: 0.86rem;
  font-style: italic;
  color: var(--aurora);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.timeline__milestone {
  font-size: 1.02rem;
  color: var(--star);
  line-height: 1.5;
}

.income-chart {
  width: 100%;
  height: 260px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 248, 231, 0.04), transparent);
  border: 1px solid var(--line);
  padding: 16px;
}
.income-chart svg { width: 100%; height: 100%; }

.relationships {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.relationship {
  padding: 16px;
  border-radius: var(--r-md);
  background: rgba(255, 248, 231, 0.04);
  border: 1px solid var(--line);
}
.relationship__role {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.84rem;
  color: var(--aurora);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.relationship__detail { font-size: 0.95rem; color: var(--silver); }

.closing {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.45;
  color: var(--star);
  text-align: center;
  padding: 32px 16px;
  letter-spacing: -0.01em;
}

.share-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 16px;
}
.share-btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 248, 231, 0.04);
  color: var(--star);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.share-btn:hover { background: rgba(167, 139, 250, 0.15); border-color: rgba(167, 139, 250, 0.4); }
.share-btn--primary {
  background: linear-gradient(135deg, var(--aurora), var(--aurora-cool));
  color: var(--night);
  border-color: transparent;
  font-weight: 600;
}
.share-btn--primary:hover { transform: translateY(-1px); }

/* ---------- card.html (single shared card view) ---------- */
.share-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
}
.share-page__card {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9/16;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}
.share-page__cta {
  text-align: center;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.share-page__cta h2 { margin-bottom: 8px; }
.share-page__cta p { color: var(--silver); }

/* ---------- demo intro ---------- */
.demo-intro {
  max-width: 640px;
  margin: 24px auto 32px;
  text-align: center;
}
.demo-intro .label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--aurora-warm);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.demo-intro h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  margin-bottom: 12px;
}
.demo-intro p { color: var(--silver); }
.demo-intro .meta {
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--silver-3);
  font-style: italic;
}

/* ---------- toasts ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.95);
  color: var(--night);
  font-weight: 600;
  font-size: 0.92rem;
  z-index: 500;
  animation: toastIn 0.3s ease forwards, toastOut 0.3s ease 2.4s forwards;
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.4);
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-50%) translateY(20px); } }

/* ---------- accessibility / motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

::selection { background: var(--aurora); color: var(--night); }
:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; border-radius: 6px; }

/* tiny utilities */
.center { text-align: center; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }
.hidden { display: none !important; }
.spacer { height: 40px; }

/* watermark for free tier sample */
.watermark {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 3;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.72rem;
  color: rgba(255, 248, 231, 0.55);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
