/* Heartspread · Phase 0 landing. Tokens from design-system/project/tokens.json; layout from
   design/claude-design-handoff/Landing Page v2.dc.html. Dark-only by design. */
:root {
  --ink: #120b1a; --plum: #2a1533; --velvet: #4a1f3d; --line: #3d2547;
  --moon: #f4eee6; --muted: #b9a9bf; --rose: #e8577e; --rose-press: #c9426a; --blush: #f6c9d3; --gold: #d8b26a;
  --danger: #ff8a8a;
  --display: Fraunces, Georgia, serif; --body: Manrope, 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--moon); -webkit-font-smoothing: antialiased; }
body { font-family: var(--body); }
a { color: var(--muted); text-decoration: none; }
a:hover { color: var(--moon); }
[hidden] { display: none !important; }

.page { position: relative; min-height: 100vh; overflow: clip; }
.page__glow { position: absolute; left: 50%; top: -120px; width: 1100px; height: 1100px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(232,87,126,0.10), rgba(74,31,61,0.55) 35%, rgba(42,21,51,0.25) 60%, rgba(18,11,26,0) 100%); }
.page__noise { position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.col { position: relative; margin: 0 auto; width: 100%; max-width: 480px; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }

.label { font-family: var(--display); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* Header */
.top { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.top .label { font-size: 12px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand__word { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 21px; line-height: 1; color: var(--gold);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; letter-spacing: 0.02em; padding-bottom: 3px; }

/* Intro */
.intro { padding-top: 28px; display: flex; flex-direction: column; gap: 8px; }
.headline { margin: 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 44px; line-height: 48px; letter-spacing: -0.01em;
  text-wrap: balance; max-width: 360px; }

/* Stage */
.stage { position: relative; height: 440px; margin-top: 8px; display: flex; align-items: center; justify-content: center; }
.stage__rays { position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(216,178,106,0.22) 0deg 0.35deg, rgba(216,178,106,0) 0.35deg 6deg);
  -webkit-mask-image: radial-gradient(closest-side, rgba(0,0,0,0) 30%, #000 46%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(closest-side, rgba(0,0,0,0) 30%, #000 46%, rgba(0,0,0,0) 100%); animation: hsSpin 120s linear infinite; }
.stage__ring { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(216,178,106,var(--a)); pointer-events: none; }
.flank { position: absolute; left: 50%; top: 50%; width: 160px; height: 240px; margin: -120px 0 0 -80px; border-radius: 14px; background: var(--plum);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; transition: transform 700ms var(--ease); }
.flank__frame { position: absolute; inset: 6px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(216,178,106,0.6); }
.flank--l { transform: translateX(-104px) translateY(14px) rotate(-11deg); }
.flank--r { transform: translateX(104px) translateY(14px) rotate(11deg); }
.is-revealed .flank--l { transform: translateX(-150px) translateY(18px) rotate(-16deg); }
.is-revealed .flank--r { transform: translateX(150px) translateY(18px) rotate(16deg); }

.float { position: relative; animation: hsFloat 6s ease-in-out infinite; }
.sparkle { position: absolute; left: 50%; top: -34px; margin-left: -11px; fill: var(--gold); }

/* Tarot card with 3D flip */
.tcard { position: relative; display: block; width: 216px; height: 324px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1400px; border-radius: 14px; }
.tcard:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.is-revealed .tcard { cursor: default; }
.tcard__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 600ms var(--ease); }
.is-revealed .tcard__inner { transform: rotateY(180deg); }
.tcard__back, .tcard__front { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tcard__back { background: var(--velvet); box-shadow: 0 12px 32px rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; }
.tcard__rays { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg, rgba(216,178,106,0.10) 0deg 0.5deg, rgba(216,178,106,0) 0.5deg 9deg); }
.tcard__frame { position: absolute; inset: 6px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--gold); pointer-events: none; }
.tcard__frame--inner { inset: 12px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(216,178,106,0.35); }
.tcard__halo { position: absolute; width: 132px; height: 132px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(216,178,106,0.45); background: var(--velvet); }
.tcard__mark { position: relative; }
.tcard__front { transform: rotateY(180deg); background: radial-gradient(120% 80% at 50% 30%, var(--velvet), var(--plum) 70%);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45); transition: box-shadow 500ms ease-out 600ms; }
.is-revealed .tcard__front { box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 28px rgba(216,178,106,0.35); }
.tcard__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcard__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(rgba(18,11,26,0), rgba(18,11,26,0.85)); }
.tcard__title { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-family: var(--display); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); }
/* Real card art brings its own border, numeral and an empty bottom cartouche: drop the drawn frame
   and fade, and set the title inside the cartouche (≈ 3–10 % from the bottom of the 2:3 art). */
.tcard__front.has-art .tcard__frame, .tcard__front.has-art .tcard__fade { display: none; }
/* Measured on all 22 cards (scripts: see docs): the empty cartouche's interior spans 2.2%–8.7% from the bottom.
   The title box covers exactly that band and centres the text in it. */
.tcard__front.has-art .tcard__title { bottom: 2.2%; height: 6.5%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1; letter-spacing: 0.12em; padding-top: 1px; }

/* Hint and reading */
.hint { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: -8px; }
.hint__dot { position: relative; width: 8px; height: 8px; }
.hint__dot span { position: absolute; inset: 0; border-radius: 50%; background: var(--gold); }
.hint__dot span:first-child { animation: hsPulse 1.8s ease-in-out infinite; }
.reading { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-top: -8px;
  animation: hsRise 500ms var(--ease) 450ms both; }
.reading__name { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 28px; line-height: 32px; font-weight: 600; }
.rule { width: 28px; height: 1px; background: var(--gold); }
.reading__text { margin: 4px 0 0; font-size: 17px; line-height: 27px; max-width: 330px; text-wrap: pretty; }
.tail { color: var(--blush); font-style: italic; }

/* Series */
.series { padding-top: 80px; display: flex; flex-direction: column; gap: 24px; }
.series__head { display: flex; flex-direction: column; gap: 8px; }
.series h2 { margin: 0; font-family: var(--display); font-size: 28px; line-height: 32px; font-weight: 600; text-wrap: balance; max-width: 320px; }
.series p { margin: 0; font-size: 17px; line-height: 27px; color: var(--muted); }
.chapters { display: flex; align-items: flex-end; padding: 8px 0 0 4px; }
.ch { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-left: var(--ov); position: relative; z-index: var(--z); }
.ch__card { width: 96px; height: 144px; border-radius: 12px; background: var(--velvet); box-shadow: 0 12px 32px rgba(0,0,0,0.45); position: relative; overflow: hidden;
  transform: rotate(var(--tilt)); display: flex; align-items: center; justify-content: center; }
.ch__face { position: absolute; inset: 0; filter: var(--blur); opacity: var(--fade); display: flex; align-items: center; justify-content: center; }
.ch__frame { position: absolute; inset: 5px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--gold); }
.ch__lock { position: relative; width: 36px; height: 36px; border-radius: 50%; background: rgba(18,11,26,0.7); display: flex; align-items: center; justify-content: center; color: var(--moon); }
.ch__num { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 26px; line-height: 28px; color: var(--muted); padding-left: 6px; }
.ch__num--on { color: var(--gold); }
.countdown { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; line-height: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.countdown strong { color: var(--moon); font-weight: 700; }

/* Offer */
.offer { position: relative; margin-top: 80px; padding: 32px 24px 24px; border-radius: 24px; background: var(--plum); display: flex; flex-direction: column;
  gap: 24px; overflow: hidden; box-shadow: inset 0 1px 0 rgba(244,238,230,0.06); scroll-margin-top: 24px; }
.offer__rays { position: absolute; right: -180px; top: -180px; width: 380px; height: 380px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(216,178,106,0.18) 0deg 0.35deg, rgba(216,178,106,0) 0.35deg 7deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, rgba(0,0,0,0) 100%); mask-image: radial-gradient(closest-side, #000 20%, rgba(0,0,0,0) 100%); }
.offer__ring { position: absolute; right: -60px; top: -60px; width: 140px; height: 140px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(216,178,106,0.3); pointer-events: none; }
.offer__head { position: relative; display: flex; flex-direction: column; gap: 16px; }
.offer__head p { margin: 0; font-size: 17px; line-height: 27px; }
.price { display: flex; align-items: flex-end; gap: 12px; }
.price__big { font-family: var(--display); font-weight: 500; font-size: 72px; line-height: 64px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; font-variation-settings: 'opsz' 144; }
.price__note { display: flex; flex-direction: column; padding-bottom: 2px; font-size: 15px; line-height: 20px; color: var(--muted); }
.price__note span:first-child { color: var(--moon); font-weight: 600; }
.notice { position: relative; padding: 12px 16px; border-radius: 8px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 22px; color: var(--moon); }

.btn { position: relative; min-height: 56px; width: 100%; border: 0; border-radius: 999px; font-family: var(--body); font-size: 17px; line-height: 20px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 120ms ease-out, transform 120ms ease-out; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn--primary { background: var(--rose); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 10px 24px rgba(232,87,126,0.22); }
.btn--primary:hover { background: var(--rose-press); color: var(--ink); }
.btn--secondary { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn--secondary:hover { background: rgba(216,178,106,0.08); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.or { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); }
.or span { flex: 1; height: 1px; background: var(--line); }

.email { display: flex; flex-direction: column; gap: 12px; }
.email label { font-size: 15px; line-height: 22px; font-weight: 600; }
.email input { height: 56px; padding: 0 16px; border-radius: 8px; border: 0; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); color: var(--moon);
  font-family: var(--body); font-size: 17px; outline: none; }
.email input::placeholder { color: var(--muted); opacity: 0.7; }
.email input:focus { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px var(--ink), 0 0 0 4px var(--gold); }
.error { font-size: 15px; line-height: 22px; color: var(--danger); }
.fine { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); text-align: center; }
.done { position: relative; min-height: 148px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  border-radius: 14px; background: var(--velvet); padding: 24px 16px; overflow: hidden; font-size: 17px; line-height: 27px; font-weight: 600; }
.done > :not(.done__rays) { position: relative; }
.done__rays { position: absolute; left: 50%; top: 50%; width: 320px; height: 320px; margin: -160px 0 0 -160px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(216,178,106,0.16) 0deg 0.4deg, rgba(216,178,106,0) 0.4deg 8deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 15%, rgba(0,0,0,0) 100%); mask-image: radial-gradient(closest-side, #000 15%, rgba(0,0,0,0) 100%); }

.foot { padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  font-size: 15px; line-height: 22px; color: var(--muted); }
.foot a { min-height: 44px; display: inline-flex; align-items: center; }

/* Returning visitor: show the already revealed card without replaying the flip. */
.no-anim .tcard__inner, .no-anim .flank, .no-anim .tcard__front { transition: none; }
.no-anim .reading { animation: none; }

@keyframes hsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hsPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: 0.25; } }
@keyframes hsSpin { to { transform: rotate(360deg); } }
@keyframes hsRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .stage__rays, .float, .hint__dot span:first-child { animation: none; }
  .reading { animation: none; }
  .tcard__inner, .flank { transition: none; }
  .is-revealed .tcard__inner { transform: none; }
  .tcard__front { transform: none; opacity: 0; }
  .is-revealed .tcard__front { opacity: 1; }
  .is-revealed .tcard__back { opacity: 0; }
}

/* Legal pages */
.legal { max-width: 640px; margin: 0 auto; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); font-size: 17px; line-height: 27px; }
.legal h1 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 40px; line-height: 44px; margin: 24px 0 8px; }
.legal h2 { font-family: var(--display); font-size: 22px; line-height: 28px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--moon); }
.legal .muted { color: var(--muted); }
.legal a { color: var(--gold); }
