/* Premium showcase stage and the celebration pop up. Loaded after styles.css. */

/* ---------- the premium card: the Lounge, plum and gold ---------- */
.teaser.show { background: #2B1B3D; color: #fff; border: 1px solid #4A3A62; padding: 24px; box-shadow: 0 14px 34px rgba(43, 27, 61, .35); font-family: var(--font-body); }
.teaser.show::after { display: none; }
.teaser.show .show-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.teaser.show .hand { color: #FFD166; font-size: 24px; line-height: 1; }
.teaser.show .badge.gold { position: static; background: #FFD166; color: #2B1B3D; }
.teaser.show h3.show-head { font-family: var(--font-head); font-weight: var(--head-weight, 400); font-size: 28px; line-height: 1.12; margin: 0 0 8px; color: #fff; }
.teaser.show .show-sub { margin: 0 0 20px; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: #FFD166; line-height: 1.4; }
.teaser.show .show-hook { margin: -12px 0 20px; font-size: 14px; color: #fff; line-height: 1.4; }
.teaser.show .stage { border: 1px solid rgba(255, 209, 102, .35); box-shadow: 0 0 0 4px rgba(255, 209, 102, .08), 0 10px 30px rgba(255, 209, 102, .16); }
.teaser.show .stage-dots button i { background: rgba(255, 255, 255, .28); }
.teaser.show .stage-dots button.on i { background: #FFD166; }
/* the six benefit rows */
.benefits { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.benefit { border-radius: 14px; background: #3A2A50; border: 1px solid #4E3D66; overflow: hidden; }
.benefit-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px 11px 12px; background: none; border: 0; color: #fff; font-family: var(--font-head); font-weight: var(--head-weight, 400); font-size: 18px; line-height: 1.2; text-align: left; cursor: pointer; }
.benefit-head:focus-visible { outline: 2px solid #FFD166; outline-offset: -2px; }
.b-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #4E3D66; color: #FFD166; display: grid; place-items: center; }
.b-icon svg { width: 20px; height: 20px; }
.b-title { flex: 1; }
.chev { flex: none; width: 9px; height: 9px; margin: -4px 6px 0 0; border-right: 2px solid #D9CFE8; border-bottom: 2px solid #D9CFE8; transform: rotate(45deg); transition: transform .25s ease, margin .25s ease; }
.benefit-head[aria-expanded="true"] .chev { transform: rotate(-135deg); margin-top: 4px; }
.benefit-body { padding: 0 14px 12px 60px; }
.benefit-body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.benefit-body li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.35; color: #D9CFE8; }
.benefit-body li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #FFD166; font-weight: 800; }
/* price, button, tag, fine print */
.price-block { text-align: center; margin: 24px 0 0; }
.price-block .price { font-family: var(--font-head); font-weight: var(--head-weight, 400); font-size: 40px; line-height: 1; color: #fff; }
.price-block .per { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: #D9CFE8; margin-left: 8px; }
.btn.glow { position: relative; z-index: 2; width: 100%; background: linear-gradient(135deg, #FF6FD8, #9D7BFF); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 18px; min-height: 54px; box-shadow: 0 10px 28px rgba(157, 123, 255, .45), 0 0 0 6px rgba(255, 111, 216, .12); }
.teaser.show .cancel-line { margin: 12px 0 0; color: #D9CFE8; }
.teaser.show p.small { color: #D9CFE8; }
.show-after { margin-top: 12px; }
.show-after .btn.ghost { margin: 6px auto 0; color: #fff; border-color: #4E3D66; }
/* The hanging tag: a small cream label on a short string from the button's right end. */
.btn-hang { position: relative; margin-top: 52px; } /* 24px to the tag, which hangs 28px above the button */
.btn-hang .btn.glow { position: relative; z-index: 1; }
.hang-tag { position: absolute; right: -6px; top: -40px; z-index: 3; display: flex; flex-direction: column; align-items: center; transform-origin: top center; animation: tagSwing 3.4s ease-in-out infinite; pointer-events: none; }
.hang-tag .string { display: block; width: 1.5px; height: 14px; background: #FFD166; opacity: .8; }
.hang-tag .tag { position: relative; display: block; background: #FFF8E7; color: #2E3326; font-family: var(--font-hand); font-size: 14px; font-weight: 600; line-height: 1.1; text-align: center; white-space: nowrap; padding: 11px 10px 6px; border-radius: 7px; box-shadow: 0 3px 8px rgba(0,0,0,.3); border: 1px solid rgba(46,51,38,.12); transform: rotate(8deg); transform-origin: top center; }
.hang-tag .hole { position: absolute; left: 50%; top: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(46,51,38,.35); }
@keyframes tagSwing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .hang-tag { animation: none; } }

/* ---------- home hero ---------- */
.hero.centre { text-align: center; padding-top: 14px; }
.hero.centre .psst { display: inline-block; margin-bottom: 4px; }
.hero-h1 { font-size: clamp(36px, 11.2vw, 42px); line-height: 1.05; margin: 2px 0 12px; letter-spacing: -0.01em; text-wrap: balance; }
.hero-h1 .hl { background: linear-gradient(90deg, #FF6FD8, #9D7BFF); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
body.theme-premium .hero-h1 .hl { background: linear-gradient(90deg, #FF6FD8, #9D7BFF); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 16px; line-height: 1.45; color: var(--muted); margin: 0 auto 18px; max-width: 34ch; }
.btn.outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
body.theme-free .btn.outline { border-color: #5B4B9A; color: #3D3566; }

/* ---------- the stage ---------- */
.stage-wrap { position: relative; z-index: 1; }
.stage { position: relative; height: 300px; border-radius: 18px; background: #fff; color: #2E3326; border: 1.5px solid #E6E9D4; overflow: hidden; touch-action: pan-y; user-select: none; cursor: grab; }
.scene { position: absolute; inset: 0; padding: 14px 14px 10px; opacity: 0; display: flex; flex-direction: column; pointer-events: none; }
.scene.on { opacity: 1; transition: opacity .35s ease; }
.scene h4 { margin: 0; font-family: var(--font-body); font-size: 20px; font-weight: 800; color: #2E3326; line-height: 1.15; }
.scene p { margin: 2px 0 8px; font-size: 15px; color: #4A4F40; line-height: 1.3; }
.sc-anim { position: relative; flex: 1; min-height: 0; }
.stage-dots { display: flex; justify-content: center; gap: 10px; margin: 10px 0 0; }
.stage-dots button { width: 22px; height: 22px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.stage-dots button i { width: 8px; height: 8px; border-radius: 50%; background: #D9DFC9; transition: all .25s; }
.stage-dots button.on i { width: 22px; border-radius: 99px; background: #8BAA6B; }

/* scene 1: chat then result */
.sc-chat { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 5px; animation: chatAway 0.67s ease 3.2s forwards; }
.sc-b { max-width: 70%; padding: 6px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(10px); animation: bIn 0.47s ease forwards; }
.sc-b.them { align-self: flex-start; background: #ECEEE2; color: #2E3326; border-bottom-left-radius: 4px; }
.sc-b.me { align-self: flex-end; background: #F4A6B8; color: #2E3326; border-bottom-right-radius: 4px; }
.sc-b:nth-child(1) { animation-delay: 0.13s; } .sc-b:nth-child(2) { animation-delay: 0.6s; } .sc-b:nth-child(3) { animation-delay: 1.07s; }
.sc-b:nth-child(4) { animation-delay: 1.53s; } .sc-b:nth-child(5) { animation-delay: 2s; } .sc-b:nth-child(6) { animation-delay: 2.47s; }
.sc-result { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) scale(.9); display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #F6F7EE; border: 1.5px solid #E6E9D4; opacity: 0; animation: resIn 0.6s var(--ease) 3.67s forwards; }
.sc-result .sc-emo { font-size: 36px; }
.sc-result b { display: block; font-size: 15px; }
.sc-result small { font-size: 13px; color: #4A4F40; }
@keyframes bIn { to { opacity: 1; transform: none; } }
@keyframes chatAway { to { opacity: 0; transform: scale(.92) translateY(-8px); } }
@keyframes resIn { to { opacity: 1; transform: translateY(-50%) scale(1); } }

/* scene 2: meter, line, badges */
.sc-meter-bar { height: 14px; border-radius: 99px; background: #8BAA6B; overflow: hidden; margin-top: 4px; }
.sc-meter-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: #F4A6B8; animation: fill 1.73s var(--ease) 0.27s forwards; }
.sc-meter-legend { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-top: 5px; }
.sc-line { display: block; width: 100%; height: 70px; margin-top: 10px; }
.sc-line polyline { fill: none; stroke: #8BAA6B; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.33s ease 1.87s forwards; }
.sc-badges { display: flex; gap: 8px; margin-top: 8px; }
.sc-badge { padding: 6px 10px; border-radius: 99px; background: #FFE3E8; color: #8A1F3D; font-size: 13px; font-weight: 800; transform: scale(0); animation: popIn 0.53s var(--ease) forwards; }
.sc-badge.b1 { animation-delay: 3.2s; } .sc-badge.b2 { background: #E4E1F0; color: #3D3566; animation-delay: 3.67s; }
@keyframes fill { to { width: 68%; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes popIn { to { transform: scale(1); } }

/* scene: his real rhythm, measured */
.sc-timing { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.sc-tr { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: #F6F7EE; border: 1.5px solid #E6E9D4; font-size: 13px; opacity: 0; transform: translateY(10px); animation: bIn 0.47s var(--ease) forwards; }
.sc-tr b { font-size: 14px; white-space: nowrap; }
.sc-tr.t1 { animation-delay: 0.4s; } .sc-tr.t2 { animation-delay: 1.33s; } .sc-tr.t3 { animation-delay: 2.53s; padding-right: 44px; }
.sc-sbar { grid-column: 1 / -1; display: block; height: 7px; border-radius: 99px; background: #E6E9D4; overflow: hidden; margin-top: 3px; }
.sc-sbar i { display: block; height: 100%; width: 0; border-radius: 99px; background: #8BAA6B; animation: startsFill 1.33s var(--ease) 1.73s forwards; }
.sc-clock { position: absolute; right: 10px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; border: 2px solid #2E3326; background: #fff; }
.sc-clock .hand { position: absolute; left: 50%; bottom: 50%; width: 2px; height: 8px; margin-left: -1px; border-radius: 2px; background: #2E3326; transform-origin: bottom center; transform: rotate(0deg); animation: sweep 1.6s var(--ease) 2.93s forwards; }
@keyframes startsFill { to { width: 67%; } }
@keyframes sweep { to { transform: rotate(240deg); } }
.stage.final .sc-tr { opacity: 1; transform: none; animation: none; }
.stage.final .sc-sbar i { width: 67%; animation: none; }
.stage.final .sc-clock .hand { transform: rotate(240deg); animation: none; }

/* scene 3: ranking */
.sc-rank { position: relative; height: 120px; margin-top: 6px; }
.sc-row { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #F6F7EE; border: 1.5px solid #E6E9D4; font-weight: 700; }
.sc-row .sc-av { font-size: 22px; }
.sc-row .sc-name { flex: 1; font-size: 16px; }
.sc-score { font-family: var(--font-head); font-weight: var(--head-weight, 400); font-size: 26px; }
.sc-arrow { color: #6B705F; }
.sc-arrow.up { color: #4A7A2E; }
.r-leo { top: 0; animation: toBottom 0.8s var(--ease) 2.27s forwards; }
.r-ryan { top: 62px; animation: toTop 0.8s var(--ease) 2.27s forwards; }
@keyframes toTop { to { top: 0; } }
@keyframes toBottom { to { top: 62px; } }

/* scene 4: stack and check in */
.sc-tag { display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: #2E3326; color: #FFF8E7; font-size: 13px; font-weight: 800; margin: 0 0 6px; }
.sc-stack { position: relative; height: 116px; }
.sc-card { position: absolute; left: 0; right: 0; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1.5px solid #E6E9D4; font-size: 13px; font-weight: 700; box-shadow: 0 4px 10px rgba(0,0,0,.06); opacity: 0; transform: translateY(14px); animation: bIn 0.53s var(--ease) forwards; }
.sc-card.c1 { top: 0; animation-delay: 0.4s; } .sc-card.c2 { top: 38px; animation-delay: 0.93s; } .sc-card.c3 { top: 76px; animation-delay: 1.47s; }
.sc-checkin { margin-top: 4px; padding: 9px 12px; border-radius: 12px; background: #E4E1F0; color: #3D3566; font-size: 13px; font-weight: 800; transform: scale(0); animation: popIn 0.6s var(--ease) 2.93s forwards; }

/* reduced motion: final frames */
.stage.final .sc-b { opacity: 1; transform: none; animation: none; }
.stage.final .sc-chat { opacity: 0; animation: none; }
.stage.final .sc-result { opacity: 1; transform: translateY(-50%); animation: none; }
.stage.final .sc-meter-bar i { width: 68%; animation: none; }
.stage.final .sc-line polyline { stroke-dashoffset: 0; animation: none; }
.stage.final .sc-badge, .stage.final .sc-checkin { transform: none; animation: none; }
.stage.final .r-leo { top: 62px; animation: none; } .stage.final .r-ryan { top: 0; animation: none; }
.stage.final .sc-card { opacity: 1; transform: none; animation: none; }
.stage.final .scene { transition: none; }

/* scene 5: the little things */
.sc-little { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 6px; }
.sc-li { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 14px; background: #F6F7EE; border: 1.5px solid #E6E9D4; font-size: 14px; font-weight: 700; transform: scale(0); animation: popIn 0.53s var(--ease) forwards; }
.sc-li span { font-size: 20px; }
.sc-li.l1 { animation-delay: 0.4s; } .sc-li.l2 { animation-delay: 0.93s; } .sc-li.l3 { animation-delay: 1.47s; } .sc-li.l4 { animation-delay: 2s; }
.stage.final .sc-li { transform: none; animation: none; }

/* ---------- the celebration ---------- */
.cele-back { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(20, 16, 40, 0); transition: background .3s; overflow: hidden; }
.cele-back.in { background: rgba(20, 16, 40, .6); }
.cele { position: relative; z-index: 2; width: min(92vw, 360px); background: #fff; color: #2E3326; border-radius: 28px; padding: 26px 22px 22px; text-align: center; transform: scale(.8); opacity: 0; }
.cele-back.in .cele { animation: cardPop .55s cubic-bezier(.2, .9, .3, 1.2) .3s forwards; }
@keyframes cardPop { 0% { transform: scale(.8); opacity: 0; } 70% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.cele .btn.primary { background: linear-gradient(135deg, #FF6FD8, #9D7BFF); color: #fff; box-shadow: 0 8px 22px rgba(157, 123, 255, .4); }

.cele-cup { position: relative; display: inline-block; font-size: 66px; line-height: 1; margin-top: 4px; }
.cele-cup .cup { display: inline-block; transform: scale(0); animation: cupIn .6s cubic-bezier(.2, .9, .3, 1.3) .8s forwards; }
@keyframes cupIn { 0% { transform: scale(0) translateY(10px); } 60% { transform: scale(1.15) translateY(-8px); } 80% { transform: scale(.95) translateY(2px); } 100% { transform: scale(1) translateY(0); } }
.spark { position: absolute; font-size: 18px; opacity: 0; animation: twinkle 1.6s ease-in-out infinite; }
.spark.k1 { left: -22px; top: 6px; animation-delay: 1.3s; } .spark.k2 { right: -24px; top: 0; animation-delay: 1.7s; } .spark.k3 { right: -10px; bottom: 2px; animation-delay: 2.1s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.5) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }

.cele-msg { position: relative; margin: 10px 0 14px; padding: 8px 0; }
.cele-msg h2, .cele-msg p, .cele-note { position: relative; z-index: 1; }
.cele-msg h2 { font-family: var(--font-body); font-size: 28px; font-weight: 800; line-height: 1.15; margin: 0 0 6px; opacity: 0; transform: translateY(10px); animation: fadeUp .6s ease 1.4s forwards; }
.cele-msg p { font-size: 15px; margin: 0; color: #4A4F40; opacity: 0; transform: translateY(10px); animation: fadeUp .6s ease 1.7s forwards; }
.cele-note { display: block; margin-top: 10px; font-family: var(--font-hand); font-size: 22px; color: #8BAA6B; opacity: 0; transform: translateX(-24px) rotate(-3deg); animation: noteIn .5s var(--ease) 2.2s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes noteIn { to { opacity: 1; transform: rotate(-3deg); } }

/* confetti cannons from both bottom corners */
.cf { position: absolute; bottom: -10px; width: 10px; height: 10px; background: var(--c); opacity: 0; z-index: 1; animation: cannon 2s cubic-bezier(.15, .7, .35, 1) var(--d) forwards; }
.cf.left { left: 2vw; } .cf.right { right: 2vw; }
.cf.dot { border-radius: 50%; }
.cf.strip { width: 6px; height: 16px; border-radius: 2px; }
.cf.heart { background: none; width: 14px; height: 13px; }
.cf.heart svg { width: 100%; height: 100%; fill: var(--c); }
@keyframes cannon {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  45% { opacity: 1; transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) / 2)); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1.15), 30vh) rotate(var(--r)); }
}
/* floating hearts behind the card */
.fl { position: absolute; left: var(--x); bottom: -40px; font-size: calc(18px * var(--s)); opacity: 0; z-index: 1; animation: floatUp 6s linear var(--d) infinite; }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 85% { opacity: .6; } 100% { opacity: 0; transform: translateY(-110vh) translateX(10px); } }

/* reduced motion: the finished picture, still */
.cele-back.final .cele, .cele-back.final.in .cele { animation: none; transform: none; opacity: 1; }
.cele-back.final .cup { animation: none; transform: none; }
.cele-back.final .spark { animation: none; opacity: .7; }
.cele-back.final .cele-msg h2, .cele-back.final .cele-msg p { animation: none; opacity: 1; transform: none; }
.cele-back.final .cele-note { animation: none; opacity: 1; transform: rotate(-3deg); }
.cele-back.final { transition: none; }
