/* Solitaire Dates: Love Notes — landing page */
:root {
  --ink: #4a1d6b;
  --ink-soft: #6e4c8a;
  --pink: #ff6fae;
  --pink-deep: #e94a95;
  --pink-soft: #ffd3e7;
  --mint: #6fe3c8;
  --sky: #5aa8ff;
  --lav: #b89cff;
  --sun: #ffe27a;
  --cream: #fff8fc;
  --card-red: #ff3f7f;
  --card-black: #3d2860;
  --line: rgba(74, 29, 107, .14);
  --shadow: 0 18px 40px -18px rgba(90, 30, 120, .45);
  --radius: 24px;
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, #fff3fa 0%, #f3f0ff 40%, #eaf8ff 70%, #fff6fb 100%);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-deep); }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; font-weight: 700; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 10px; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: min(780px, 100%); }
.grad {
  background: linear-gradient(90deg, #ff5fa8, #c56bff 45%, #4fb6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Petals */
#petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* Header */
.site-header {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
  width: min(1160px, calc(100% - 2 * var(--gutter) + 16px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 6px 8px 6px 14px; z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1.5px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgba(90, 30, 120, .35);
  transition: transform .4s ease, opacity .4s ease;
}
.site-header.is-hidden { transform: translate(-50%, -140%); }
.brand img { height: 42px; width: auto; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.nav a:hover { background: var(--pink-soft); }
@media (min-width: 860px) { .nav { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; font-weight: 800;
  border-radius: 999px; padding: 14px 24px; transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-pink { color: #fff; background: linear-gradient(135deg, #ff7ab8, #e94a95); box-shadow: 0 8px 18px -8px rgba(233, 74, 149, .8); }
.btn-ghost { color: var(--ink); background: #fff; border: 2px solid var(--line); }

/* Store badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badges-center { justify-content: center; }
.store-badge {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-width: 190px; padding: 10px 20px 10px 16px; cursor: pointer;
  color: #fff; background: #1d1230; border: 2px solid rgba(255, 255, 255, .25);
  border-radius: 16px; text-align: left; line-height: 1.15;
  box-shadow: 0 10px 22px -10px rgba(29, 18, 48, .7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge small { display: block; font-size: 11.5px; font-weight: 600; opacity: .8; letter-spacing: .02em; }
.store-badge strong { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.store-badge::after {
  content: "SOON"; position: absolute; top: -9px; right: -8px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 999px; color: var(--ink); background: var(--sun);
  box-shadow: 0 3px 8px -3px rgba(0, 0, 0, .3);
}
.store-badge:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 16px 26px -12px rgba(29, 18, 48, .75); }
@media (max-width: 420px) { .store-badge { flex: 1 1 100%; justify-content: center; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 72px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: -8% 0 0; z-index: -2;
  background: url("../img/bg.webp") center / cover no-repeat;
  transform: translateY(calc(var(--sy, 0) * .25px)) scale(1.06);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 243, 250, 0) 70%, #fff3fa 100%);
}
.hero-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.deco {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  fill: var(--c, #ff7eb6); filter: drop-shadow(0 6px 10px rgba(180, 60, 140, .25));
  translate: calc(var(--mx, 0) * var(--depth, 20) * 1px) calc(var(--my, 0) * var(--depth, 20) * 1px);
  animation: bob 6s ease-in-out infinite;
}
.d-env { animation-duration: 7.5s; }
.d-spark { animation: twinkle 3s ease-in-out infinite; }
.deco:nth-child(2n) { animation-delay: -2s; }
.deco:nth-child(3n) { animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(6deg); } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }

.hero-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.05fr 1fr; } }
.hero-copy { text-align: center; }
@media (min-width: 960px) { .hero-copy { text-align: left; } }
.hero-logo { width: min(440px, 88%); height: auto; margin: 0 auto 10px; filter: drop-shadow(0 14px 22px rgba(160, 60, 160, .3)); animation: logoIn 1s cubic-bezier(.2, 1.4, .4, 1) both, float 6s 1s ease-in-out infinite; }
@media (min-width: 960px) { .hero-logo { margin-left: -10px; } }
@keyframes logoIn { from { opacity: 0; transform: scale(.7) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.eyebrow {
  display: inline-block; margin: 6px 0 14px; padding: 6px 14px; border-radius: 999px;
  font-weight: 800; font-size: 14px; letter-spacing: .02em; color: var(--pink-deep);
  background: rgba(255, 255, 255, .85); border: 1.5px solid var(--pink-soft);
}
.hero h1 { font-size: clamp(40px, 9vw, 64px); color: var(--ink); }
@media (min-width: 960px) { .hero h1 { font-size: clamp(48px, 5vw, 68px); } }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--ink-soft); max-width: 34em; margin: 18px auto 0; }
@media (min-width: 960px) { .lede { margin-left: 0; } .hero .badges { justify-content: flex-start; } }
.hero .badges { justify-content: center; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (min-width: 960px) { .chips { justify-content: flex-start; } }
.chips li { font-size: 14px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1.5px solid var(--line); }

.hero-visual { display: grid; place-items: center; perspective: 1400px; padding: 8px 0 24px; }
.hero-stage {
  position: relative;
  width: min(280px, 62vw);
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--my, 0) * -6deg)) rotateY(calc(var(--mx, 0) * 8deg));
  transition: transform .25s ease-out;
}
@media (min-width: 960px) { .hero-stage { width: min(310px, calc((100svh - 200px) / 2.164)); } }
.hero-card {
  position: absolute; left: var(--l); top: var(--t); width: 54%; z-index: 0;
  rotate: var(--r);
  translate: calc(var(--mx, 0) * var(--depth) * 1px) calc(var(--my, 0) * var(--depth) * 1px);
  filter: drop-shadow(0 18px 22px rgba(90, 30, 120, .3));
  animation: cardIn .9s calc(.3s + var(--d) * .12s) cubic-bezier(.2, 1.3, .4, 1) both,
             cardFloat 7s calc(var(--d) * -1.7s) ease-in-out infinite;
}
@keyframes cardIn { from { opacity: 0; scale: .5; } }
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.video-frame.hero-video { position: relative; z-index: 2; width: 100%; animation: phoneIn 1s .15s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) scale(.94); } }
.hero-video-tag {
  position: absolute; z-index: 3; top: -14px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ff7ab8, #b07cff); box-shadow: 0 8px 16px -6px rgba(176, 124, 255, .7);
}
@media (max-width: 959px) { .hero-card { width: 48%; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 14px;
}
.scroll-cue svg { width: 26px; height: 26px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }
@media (max-height: 700px) and (max-width: 959px) { .scroll-cue { display: none; } }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(32px, 5vw, 52px); }
.sec-head p:not(.kicker) { color: var(--ink-soft); font-size: 18px; margin: 14px 0 0; }
.kicker {
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--pink-deep);
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .9, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Demo */
.demo { background: radial-gradient(ellipse at 50% 0%, rgba(255, 200, 230, .55), transparent 60%); }
.demo-stage { max-width: 620px; margin: 0 auto; }
.board-frame {
  position: relative; padding: 14px; border-radius: 34px;
  background: linear-gradient(160deg, #ffffff, #ffe6f3);
  border: 3px solid #fff; box-shadow: 0 30px 60px -28px rgba(90, 30, 120, .55), 0 0 0 6px rgba(255, 138, 196, .25);
}
.board-hud {
  display: flex; justify-content: space-around; gap: 8px; margin-bottom: 10px;
  padding: 8px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line);
  font-size: 14px; color: var(--ink-soft);
}
.board-hud b { color: var(--ink); margin-left: 4px; font-family: var(--font-display); }
.board {
  position: relative; width: 100%; border-radius: 22px; overflow: hidden;
  background: url("../img/bg.webp") center / cover;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.slot {
  position: absolute; left: 0; top: 0; width: var(--cw); height: var(--ch);
  border-radius: calc(var(--cw) * .12);
  background: rgba(30, 60, 140, .22); border: 2px dashed rgba(255, 255, 255, .55);
  display: grid; place-items: center;
}
.slot img { width: 52%; opacity: .55; }
.slot-stock { cursor: pointer; }
.slot-stock::after { content: "↻"; color: #fff; font-size: calc(var(--cw) * .42); font-weight: 800; opacity: .8; }
.slot.hint { animation: hintPulse 1s ease-in-out 3; }

.card {
  position: absolute; left: 0; top: 0; width: var(--cw); height: var(--ch);
  perspective: 800px; cursor: pointer;
  transition: transform .38s cubic-bezier(.25, .9, .3, 1.05);
  will-change: transform;
}
.card.no-anim { transition: none; }
.card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s ease; transform: rotateY(180deg); }
.card.up .card-inner { transform: rotateY(0deg); }
.face {
  position: absolute; inset: 0; border-radius: calc(var(--cw) * .12);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
}
.face.front {
  background: linear-gradient(170deg, #ffffff 0%, #fff4fa 55%, #f1e8ff 100%);
  border: 2px solid #e3cdf5; box-shadow: 0 4px 10px -4px rgba(40, 20, 80, .45);
}
.face.back {
  transform: rotateY(180deg);
  background: url("../img/card_back.png") center / 100% 100%;
  box-shadow: 0 4px 10px -4px rgba(40, 20, 80, .45);
}
.c-rank {
  position: absolute; top: 4%; left: 8%;
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: calc(var(--cw) * .3); color: var(--c);
}
.c-suit { position: absolute; top: 5%; right: 9%; font-size: calc(var(--cw) * .24); line-height: 1; color: var(--c); }
.c-art { position: absolute; left: 50%; bottom: 8%; width: 66%; transform: translateX(-50%); }
.card.red { --c: var(--card-red); }
.card.black { --c: var(--card-black); }
.card.shake { animation: shake .35s; }
.card.hint .face.front, .card.hint .face.back { animation: hintPulse 1s ease-in-out 3; }
.card.hop { animation: hop .6s ease both; }
@keyframes shake { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }
@keyframes hintPulse { 50% { box-shadow: 0 0 0 4px #fff, 0 0 22px 8px rgba(255, 111, 174, .9); } }
@keyframes hop { 40% { translate: 0 -30%; } }

.board-tip { text-align: center; font-size: 15px; font-weight: 700; color: var(--ink-soft); margin: 12px 8px 4px; min-height: 2.6em; }
.board-tools { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 5vw, 36px); }
.tool { background: none; border: 0; padding: 0; cursor: pointer; display: grid; justify-items: center; gap: 2px; font-weight: 800; font-size: 14px; transition: transform .2s; }
.tool img { width: 64px; height: auto; filter: drop-shadow(0 6px 8px rgba(90, 30, 120, .25)); }
.tool-big img { width: 78px; }
.tool:hover { transform: translateY(-3px) scale(1.04); }
.tool:active { transform: scale(.94); }
.tool:disabled { opacity: .45; cursor: default; transform: none; }
.demo-foot { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 16px; }

/* Love note overlay */
.note-overlay {
  position: absolute; inset: 0; z-index: 40; border-radius: 34px; overflow-y: auto;
  display: grid; place-items: center; padding: 20px 16px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 235, 246, .97), rgba(240, 225, 255, .97));
  animation: fadeIn .4s ease both;
}
.note-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.note-scene { text-align: center; width: 100%; max-width: 420px; }
.note-banner { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 5vw, 30px); margin: 0 0 18px; color: var(--pink-deep); }
.note-banner span { display: block; font-size: .6em; color: var(--ink); font-weight: 600; }
.envelope { position: relative; width: min(300px, 84%); aspect-ratio: 3 / 2; margin: 150px auto 18px; }
.env-back, .env-front, .env-flap { position: absolute; inset: 0; border-radius: 14px; }
.env-back { background: #f59ac6; }
.env-front {
  z-index: 3; background:
    linear-gradient(to top right, #ffb8d9 50%, transparent 50.5%) left / 50.5% 100% no-repeat,
    linear-gradient(to top left, #ffc6e1 50%, transparent 50.5%) right / 50.5% 100% no-repeat;
  filter: drop-shadow(0 -2px 0 rgba(255, 255, 255, .5));
}
.env-flap {
  z-index: 4; transform-origin: top center; clip-path: polygon(0 0, 100% 0, 50% 62%);
  background: linear-gradient(180deg, #ff8fc1, #ff6fae);
  transition: transform .7s ease .2s, z-index 0s .55s;
}
.env-flap::after { content: "♥"; position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); color: #fff; font-size: 26px; }
.letter {
  position: absolute; z-index: 2; left: 7%; right: 7%; top: 8%; height: 118%;
  background: #fffdf7; border-radius: 10px; padding: 14px 14px 0;
  box-shadow: 0 8px 20px -8px rgba(90, 30, 120, .4);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(255, 111, 174, .15) 27px 28px);
  transition: transform .9s cubic-bezier(.2, 1.1, .3, 1) .8s;
}
.letter img { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 4px; border: 3px solid var(--pink-soft); }
.letter-from { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-deep); }
.letter-quote { margin: 6px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, 4vw, 19px); line-height: 1.3; }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.open .letter { transform: translateY(-60%); }
.note-caption { font-size: 15px; color: var(--ink-soft); margin: 0 auto; max-width: 30em; }
.note-scene .badges { margin-top: 18px; }
.note-scene .btn { margin-top: 14px; }

/* How it works */
.story { display: grid; gap: 32px; }
.story-sticky { display: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.step {
  position: relative; padding: 28px 24px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .8); border: 1.5px solid #fff; box-shadow: var(--shadow);
}
.step-num {
  position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: #fff; background: linear-gradient(135deg, #ff8ac4, #b07cff); box-shadow: 0 6px 14px -4px rgba(176, 124, 255, .7);
}
.step h3 { font-size: 26px; margin-top: 6px; }
.step p { color: var(--ink-soft); margin: 10px 0 0; }
.step-shot { width: min(320px, 82%); height: auto; aspect-ratio: 1080 / 2338; object-fit: contain; margin: 24px auto 0; border-radius: 22px; box-shadow: var(--shadow); }

@media (min-width: 900px) {
  .story { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .story-sticky { display: block; position: sticky; top: 90px; height: calc(100vh - 120px); max-height: 760px; }
  .story-phone {
    position: relative; height: 100%; aspect-ratio: 1242 / 2688; margin: 0 auto;
    border-radius: 34px; overflow: hidden;
    box-shadow: 0 0 0 6px #fff, 0 0 0 14px rgba(255, 138, 196, .25), 0 40px 70px -30px rgba(90, 30, 120, .6);
    background: #fde;
  }
  .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s ease; }
  .shot.is-active { opacity: 1; }
  .steps { gap: 0; padding: 18vh 0; }
  .step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; background: none; border: 0; box-shadow: none; padding: 0 0 0 72px; opacity: .3; transition: opacity .5s ease; }
  .step.is-active { opacity: 1; }
  .step-num { top: 50%; left: 0; transform: translateY(-140%); width: 52px; height: 52px; font-size: 24px; }
  .step h3 { font-size: clamp(30px, 3vw, 40px); }
  .step p { font-size: 19px; max-width: 26em; }
  .step-shot { display: none; }
}

/* Characters */
.girls { background: linear-gradient(180deg, transparent, rgba(255, 220, 238, .5) 30%, rgba(230, 222, 255, .5) 80%, transparent); }
.guide {
  display: grid; gap: 24px; align-items: center; padding: 28px; margin-bottom: 48px;
  border-radius: 32px; background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 240, 250, .92));
  border: 2px solid #fff; box-shadow: var(--shadow);
}
@media (min-width: 760px) { .guide { grid-template-columns: 280px 1fr; padding: 36px 44px; gap: 44px; } }
.guide-art { position: relative; width: min(260px, 70vw); margin: 0 auto; }
.guide-art img { border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 6px var(--pink-soft), 0 24px 40px -18px rgba(90, 30, 120, .6); animation: float 6s ease-in-out infinite; }
.bubble {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(200, 230, 255, .5) 45%, rgba(255, 180, 230, .25) 70%);
  border: 1.5px solid rgba(255, 255, 255, .9);
  animation: bubble 5s var(--d) ease-in-out infinite;
}
@keyframes bubble { 50% { transform: translate(6px, -16px) scale(1.08); } }
.guide-copy h3 { font-size: clamp(26px, 3.4vw, 36px); }
.guide-copy blockquote { margin: 14px 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--pink-deep); }
.guide-copy p:last-child { margin: 0; color: var(--ink-soft); }
.grid-hint { text-align: center; font-weight: 800; color: var(--pink-deep); margin: 0 0 18px; }

.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 20px; perspective: 1400px; }
.ccard {
  display: grid; padding: 0; border: 0; background: none; cursor: pointer; text-align: center;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.3, .5, 1);
}
.ccard-face {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center;
  padding: 22px 18px 18px; border-radius: 22px; position: relative;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 3px solid #fff; box-shadow: 0 16px 30px -16px rgba(90, 30, 120, .5);
}
.ccard-front { background: linear-gradient(170deg, #fff, #fff3f9 60%, color-mix(in srgb, var(--accent) 22%, #fff)); }
.ccard-back {
  transform: rotateY(180deg); justify-content: center; gap: 14px; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 62%, #5a2a86), color-mix(in srgb, var(--accent) 35%, #3e1760));
}
.ccard.flipped { transform: rotateY(180deg); }
@media (hover: hover) { .ccard:not(.flipped):hover { transform: translateY(-6px) rotate(-1deg); } }
.pip { position: absolute; top: 10px; left: 14px; font-size: 22px; color: var(--card-black); line-height: 1; }
.pip.red { color: var(--card-red); }
.ccard-front img {
  width: 132px; height: 132px; border-radius: 50%; margin-bottom: 14px;
  border: 4px solid #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, #fff);
}
.cname { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.cname i { font-style: normal; font-size: .7em; color: var(--ink-soft); margin-left: 4px; }
.crole { font-size: 13px; font-weight: 800; letter-spacing: .02em; color: color-mix(in srgb, var(--accent) 70%, var(--ink)); margin-top: 4px; }
.ctag { font-size: 15px; color: var(--ink-soft); margin-top: 10px; line-height: 1.45; flex: 1; }
.cflip { margin-top: 12px; font-size: 13px; font-weight: 800; color: var(--pink-deep); padding: 4px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--pink-soft); }
.ctitle { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.chook { font-size: 15.5px; line-height: 1.5; text-shadow: 0 1px 2px rgba(60, 20, 90, .25); }
.ctraits { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ctraits b { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .25); border: 1px solid rgba(255, 255, 255, .5); }
.deal { opacity: 0; translate: 0 -60px; rotate: -8deg; transition: opacity .6s ease, translate .7s cubic-bezier(.2, 1.3, .4, 1), rotate .7s cubic-bezier(.2, 1.3, .4, 1), transform .7s cubic-bezier(.3, 1.3, .5, 1); }
.deal.in { opacity: 1; translate: 0 0; rotate: 0deg; }
.cast-cta { text-align: center; margin: 36px 0 0; font-weight: 700; font-size: 18px; }
.cast-cta a { font-weight: 800; }

/* Stats */
.stats { padding: 20px 0; }
.stats-row {
  display: grid; gap: 16px; padding-block: 28px; border-radius: 32px;
  background: linear-gradient(120deg, #ff8ac4, #b07cff 50%, #5ab8ff); color: #fff;
  box-shadow: var(--shadow);
}
@media (min-width: 720px) { .stats-row { grid-template-columns: repeat(3, 1fr); } }
.stat { text-align: center; padding: 6px 16px; }
.stat > b { display: block; font-family: var(--font-display); font-size: clamp(44px, 6vw, 64px); line-height: 1; text-shadow: 0 4px 0 rgba(74, 29, 107, .25); }
.stat > span { font-weight: 700; opacity: .95; }

/* Features */
.feat-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.feat { padding: 26px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .85); border: 2px solid #fff; box-shadow: var(--shadow); text-align: center; }
.feat img { width: 80px; height: 80px; margin: 0 auto 10px; }
.feat h3 { font-size: 22px; }
.feat p { margin: 8px 0 0; color: var(--ink-soft); font-size: 16px; }
.tools-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 44px; margin-top: 44px; }
.tool-item { display: grid; justify-items: center; text-align: center; }
.tool-item img { width: 84px; height: auto; margin-bottom: 6px; animation: float 5s ease-in-out infinite; }
.tool-item:nth-child(2) img { animation-delay: -1.6s; }
.tool-item:nth-child(3) img { animation-delay: -3.2s; }
.tool-item b { font-family: var(--font-display); font-size: 19px; }
.tool-item span { font-size: 14px; color: var(--ink-soft); }

/* Pricing */
.plans { display: grid; gap: 22px; max-width: 820px; margin: 0 auto; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; padding: 32px 28px; border-radius: 28px; background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow); }
.plan h3 { font-size: 30px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.plan li { padding-left: 30px; position: relative; font-weight: 700; }
.plan li::before { content: "♥"; position: absolute; left: 4px; color: var(--pink); }
.plan-pass { color: #fff; border-color: transparent; background: linear-gradient(150deg, #ff7ab8, #b07cff 65%, #6b8bff); }
.plan-pass li::before { color: var(--sun); }
.plan-tag { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--ink); background: var(--sun); }
.plan-note { margin: 18px 0 0; opacity: .9; font-size: 15px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 20px; border: 2px solid var(--line); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--pink-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--pink-deep); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* Final CTA */
.final { overflow: hidden; }
.final-inner {
  position: relative; text-align: center; padding: 150px 24px 56px; border-radius: 40px;
  background: url("../img/bg.webp") center / cover;
  box-shadow: 0 40px 70px -34px rgba(90, 30, 120, .6);
  isolation: isolate;
}
.final-inner::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, .88), rgba(255, 255, 255, .55) 70%); }
.final-stack { position: absolute; left: 50%; top: 26px; width: 0; height: 110px; }
.final-stack img {
  position: absolute; left: 0; top: 0; width: 96px; max-width: none; height: 96px; border-radius: 50%;
  border: 4px solid #fff; box-shadow: 0 10px 20px -8px rgba(90, 30, 120, .5);
  transform: translateX(calc(-50% + var(--x) * 1.6)) rotate(var(--r));
}
.final-icon { position: relative; z-index: 2; width: 96px; height: 96px; border-radius: 22px; margin: -70px auto 18px; border: 4px solid #fff; box-shadow: 0 14px 24px -10px rgba(90, 30, 120, .6); }
.final h2 { font-size: clamp(34px, 5.6vw, 58px); }
.final p { font-size: 19px; color: var(--ink-soft); margin: 14px auto 0; max-width: 30em; }
@media (max-width: 480px) { .final-stack img { width: 72px; height: 72px; } .final-inner { padding-top: 130px; } }


/* Demo video */
.watch { background: radial-gradient(ellipse at 30% 50%, rgba(200, 225, 255, .55), transparent 60%); }
.watch-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .watch-inner { grid-template-columns: auto 1fr; gap: 80px; } }
.watch-media { position: relative; justify-self: center; }
.video-frame {
  position: relative; width: min(330px, 78vw); aspect-ratio: 828 / 1792;
  transform: translateZ(0);
  border-radius: 34px; overflow: hidden; background: #cfe3ff;
  box-shadow: 0 0 0 6px #fff, 0 0 0 14px rgba(255, 138, 196, .25), 0 40px 70px -30px rgba(90, 30, 120, .6);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-btn {
  position: absolute; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
  height: 42px; min-width: 42px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  color: #fff; background: rgba(42, 24, 64, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 800; transition: transform .2s, background .2s;
}
.video-btn:hover { transform: scale(1.06); background: rgba(42, 24, 64, .88); }
.video-btn svg { width: 20px; height: 20px; fill: currentColor; }
.video-play { left: 14px; padding: 0; justify-content: center; }
.video-play .ic-play, .video-play.is-paused .ic-pause { display: none; }
.video-play.is-paused .ic-play { display: block; }
.video-sound { right: 14px; }
.video-sound .ic-on, .video-sound.is-on .ic-off { display: none; }
.video-sound.is-on .ic-on { display: block; }
.video-sound.is-on { background: linear-gradient(135deg, #ff7ab8, #e94a95); }
.deco-static {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); z-index: 2;
  fill: var(--c, #ff7eb6); filter: drop-shadow(0 6px 10px rgba(180, 60, 140, .25));
  animation: bob 6s ease-in-out infinite;
}
.deco-static.spark { animation: twinkle 3s ease-in-out infinite; }
.watch-copy { text-align: center; }
@media (min-width: 900px) { .watch-copy { text-align: left; } .watch-copy .badges { justify-content: flex-start; } }
.watch-copy h2 { font-size: clamp(32px, 5vw, 52px); }
.watch-copy > p:not(.kicker) { color: var(--ink-soft); font-size: 18px; margin: 14px 0 0; max-width: 30em; }
@media (max-width: 899px) { .watch-copy > p:not(.kicker) { margin-inline: auto; } .watch-copy .badges { justify-content: center; } }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; justify-items: center; }
@media (min-width: 900px) { .ticks { justify-items: start; } }
.ticks li { position: relative; padding-left: 30px; font-weight: 700; }
.ticks li::before { content: "♥"; position: absolute; left: 4px; color: var(--pink); }
.watch-copy .watch-note { font-size: 14px !important; }

/* Legal pages */
.legal-page .site-header { position: sticky; top: 10px; transform: none; left: auto; margin: 10px auto 0; }
.legal { padding: 56px 0 40px; }
.legal-head { text-align: center; margin-bottom: 32px; }
.legal-head h1 { font-size: clamp(38px, 6vw, 56px); }
.legal-date { margin: 10px 0 0; color: var(--ink-soft); font-weight: 700; }
.legal-body {
  background: rgba(255, 255, 255, .9); border: 2px solid #fff; border-radius: 28px;
  box-shadow: var(--shadow); padding: clamp(22px, 5vw, 48px);
  font-size: 16.5px; color: #3c2a52; overflow-wrap: anywhere;
}
.legal-body h2 { font-size: clamp(22px, 3vw, 27px); margin: 40px 0 12px; color: var(--ink); scroll-margin-top: 90px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 19px; margin: 24px 0 8px; color: var(--ink); }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body li::marker { color: var(--pink); }
.legal-body .caps { font-size: 14px; letter-spacing: .01em; }
.toc { margin: 28px 0 8px; padding: 18px 22px; border-radius: 20px; background: #fff4fa; border: 1.5px solid var(--pink-soft); }
.toc-title { font-family: var(--font-display); font-weight: 600; margin: 0 0 6px !important; color: var(--ink); }
.toc ol { margin: 0; padding-left: 22px; columns: 2 240px; column-gap: 28px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.toc a { text-decoration: none; font-weight: 700; }
.toc a:hover { text-decoration: underline; }
.legal-contact { font-style: normal; padding: 16px 20px; border-radius: 18px; background: #f6f0ff; line-height: 1.8; }
.site-footer nav a[aria-current="page"] { color: var(--pink-deep); }

/* Footer */
.site-footer { padding: 40px 0 56px; }
.footer-inner { display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.footer-logo { width: 140px; height: auto; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.site-footer p { margin: 0; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 18px;
  background: #2a1840; color: #fff; font-weight: 700; text-align: center;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .5); transition: transform .45s cubic-bezier(.2, 1.3, .4, 1), visibility 0s .45s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .deal { opacity: 1; transform: none; translate: none; rotate: none; }
  #petals { display: none; }
}
