/* ============================================================
   Memoriz Onboarding Prototype — local styles
   ============================================================ */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: #1A1612;
  min-height: 100vh;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, #2a201a 0%, #15110d 60%, #0a0805 100%);
}

/* Stage holds the iPhone frame centered */
.stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ---------------- iPhone frame ---------------- */
.phone {
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 56px;
  background: #0A0805;
  padding: 10px;
  box-shadow:
    0 0 0 2px #2A2521,
    0 0 0 8px #0A0805,
    0 40px 80px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  flex: none;
  transform-origin: center;
}
.phone-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 48px;
  overflow: hidden;
  background: var(--memoriz-cream);
  isolation: isolate;
}
.phone-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 124px; height: 36px;
  background: #0A0805;
  border-radius: 20px;
  z-index: 50;
}

/* iOS status bar */
.status-bar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--memoriz-ink-1);
  z-index: 40;
  pointer-events: none;
}
.status-bar .right { display: flex; align-items: center; gap: 6px; }

/* ---------------- Aurora gradient backdrop ---------------- */
.aurora {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 14% 96%, #FDB15D 0%, rgba(255,255,255,0) 58%),
    radial-gradient(circle at 86% 100%, #FA9ED7 0%, rgba(255,255,255,0) 60%),
    radial-gradient(circle at 50% 114%, #7FD8B2 0%, rgba(255,255,255,0) 70%),
    linear-gradient(var(--memoriz-cream), var(--memoriz-cream));
  z-index: 0;
}
.aurora.subtle {
  background:
    radial-gradient(circle at 14% 100%, #FDB15D 0%, rgba(255,255,255,0) 65%),
    radial-gradient(circle at 86% 110%, #FA9ED7 0%, rgba(255,255,255,0) 65%),
    linear-gradient(var(--memoriz-cream), var(--memoriz-cream));
}

/* Bottom white halo that protects CTAs */
.bottom-halo {
  position: absolute; left: -10%; right: -10%; bottom: -180px;
  height: 340px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 38.7px 13px #fff;
  z-index: 1;
  pointer-events: none;
}

/* ---------------- Screen container & nav header ---------------- */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  color: var(--memoriz-ink-1);
  z-index: 2;
}
.screen-stack {
  position: absolute; inset: 0;
  overflow: hidden;
}

/* Slide transitions */
.slide-enter-r { transform: translateX(100%); opacity: 0; }
.slide-enter-r.in { transform: translateX(0); opacity: 1; transition: transform 380ms cubic-bezier(.22,.61,.36,1), opacity 280ms ease; }
.slide-exit-l   { transform: translateX(0); opacity: 1; }
.slide-exit-l.out { transform: translateX(-22%); opacity: 0; transition: transform 380ms cubic-bezier(.22,.61,.36,1), opacity 220ms ease; }
.slide-enter-l { transform: translateX(-100%); opacity: 0; }
.slide-enter-l.in { transform: translateX(0); opacity: 1; transition: transform 380ms cubic-bezier(.22,.61,.36,1), opacity 280ms ease; }
.slide-exit-r   { transform: translateX(0); opacity: 1; }
.slide-exit-r.out { transform: translateX(22%); opacity: 0; transition: transform 380ms cubic-bezier(.22,.61,.36,1), opacity 220ms ease; }

/* Top navigation row (progress + back) */
.topnav {
  position: relative;
  display: flex; align-items: center;
  padding: 60px 22px 0;
  height: 88px;
  z-index: 4;
}
.topnav .back {
  position: absolute;
  left: 16px; top: 56px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  color: var(--memoriz-ink-1);
  border-radius: 50%;
  transition: background 120ms ease;
}
.topnav .back:hover { background: rgba(0,0,0,.05); }
.topnav .back:active { transform: scale(.92); }
.topnav .progress {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 0 56px;
}
.topnav .progress .bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,.08);
  overflow: hidden;
  position: relative;
}
.topnav .progress .bar .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--memoriz-orange);
  border-radius: 2px;
  transition: width 420ms cubic-bezier(.22,.61,.36,1);
}

/* Screen body & headline area */
.headline-block {
  position: relative;
  z-index: 3;
  padding: 4px 28px 0;
  text-align: center;
}
.headline-block .eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--memoriz-orange);
  margin: 0 0 10px;
}
.headline-block h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--memoriz-ink-deep);
  margin: 0;
  text-wrap: balance;
}
.headline-block .subhead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: var(--memoriz-ink-3);
  margin: 10px auto 0;
  max-width: 280px;
  text-wrap: pretty;
}

/* Body region between header and CTA */
.body-region {
  position: relative;
  z-index: 3;
  flex: 1;
  padding: 24px 22px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Bottom CTA region */
.cta-region {
  position: relative;
  padding: 18px 22px 36px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 4;
}

/* Pill button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 24px;
  border-radius: 9999px;
  border: 0; cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  box-shadow: var(--sh-button);
  width: 100%;
  transition: transform 120ms ease, background 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
  color: #fff;
}
.btn:active { transform: scale(.985); }
.btn.primary   { background: var(--memoriz-orange); color: #fff; }
.btn.primary:hover { background: var(--memoriz-orange-dark); }
.btn.primary[disabled] {
  background: #E4D7CB; color: #8C7563; cursor: not-allowed; box-shadow: none; opacity: 1;
}
.btn.ghost {
  background: transparent; box-shadow: none; color: var(--memoriz-ink-3);
  font-weight: 500; font-size: 15px; height: 44px;
}

/* ---------------- Goal / Moment selection cards ---------------- */
.select-list {
  display: flex; flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}
.option-card {
  position: relative;
  display: flex; align-items: center;
  gap: 16px;
  width: 100%;
  background: #fff;
  border: 1.5px solid rgba(238,155,106,0.22);
  border-radius: 20px;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  box-shadow: 0 2px 10px rgba(184,123,80,0.05);
  transition: transform 180ms cubic-bezier(.22,.61,.36,1),
              border-color 180ms ease,
              box-shadow 200ms ease,
              background 180ms ease;
}
.option-card:hover { border-color: rgba(238,155,106,0.5); }
.option-card:active { transform: scale(.99); }
.option-card .emoji {
  flex: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: var(--memoriz-orange-tint);
  border-radius: 14px;
  transition: background 200ms ease, transform 220ms cubic-bezier(.34,1.56,.64,1);
}
.option-card .text-wrap {
  flex: 1; min-width: 0;
}
.option-card .text {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--memoriz-ink-1);
  line-height: 1.25;
}
.option-card .text .hint {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--memoriz-gray-mute);
  margin-top: 3px;
  letter-spacing: 0;
}
.option-card .check-circle {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  color: #fff;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms cubic-bezier(.34,1.56,.64,1);
}
.option-card.selected {
  border-color: var(--memoriz-orange);
  background: #FFFCF8;
  box-shadow: 0 4px 18px rgba(238,155,106,0.18);
  transform: scale(1.02);
}
.option-card.selected .emoji {
  background: var(--memoriz-orange);
  transform: scale(1.06) rotate(-3deg);
}
.option-card.selected .check-circle {
  background: var(--memoriz-orange);
  border-color: var(--memoriz-orange);
  transform: scale(1.06);
}

/* Bigger card variant for Screen 3 — emotional cards */
.option-card.tall {
  padding: 18px 18px;
  align-items: center;
}
.option-card.tall .emoji {
  width: 52px; height: 52px;
  font-size: 30px;
  border-radius: 16px;
}
.option-card.tall .text {
  font-size: 16px;
}
.option-card.tall .text .hint {
  font-size: 13px;
}

/* ---------------- Family Circle chips ---------------- */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.circle-chip {
  position: relative;
  background: #fff;
  border: 1.5px solid rgba(238,155,106,0.18);
  border-radius: 18px;
  padding: 14px 6px 12px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-display);
  transition: transform 180ms cubic-bezier(.22,.61,.36,1),
              border-color 180ms ease,
              background 180ms ease,
              box-shadow 200ms ease;
}
.circle-chip:hover { border-color: rgba(238,155,106,0.45); }
.circle-chip:active { transform: scale(.98); }
.circle-chip .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5E1D2 0%, #EAD0BC 100%);
  display: flex; align-items: center; justify-content: center;
  color: #B07A55;
  transition: background 200ms ease, color 180ms ease, transform 220ms cubic-bezier(.34,1.56,.64,1);
}
.circle-chip .avatar svg {
  width: 26px; height: 26px;
}
.circle-chip .label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--memoriz-ink-1);
  line-height: 1.1;
  text-align: center;
}
.circle-chip.selected {
  background: #FFFCF8;
  border-color: var(--memoriz-orange);
  box-shadow: 0 4px 16px rgba(238,155,106,0.22);
  transform: scale(1.03);
}
.circle-chip.selected .avatar {
  background: var(--memoriz-orange);
  color: #fff;
  transform: scale(1.04);
}
.circle-chip.selected .label { color: var(--memoriz-ink-deep); }
.circle-chip .mini-check {
  position: absolute;
  top: 8px; right: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--memoriz-orange);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.6);
  transition: opacity 160ms ease, transform 200ms cubic-bezier(.34,1.56,.64,1);
}
.circle-chip.selected .mini-check { opacity: 1; transform: scale(1); }

/* "Other" chip with plus */
.circle-chip.other .avatar {
  background: transparent;
  color: var(--memoriz-orange);
  border: 1.5px dashed rgba(238,155,106,0.5);
}
.circle-chip.other.selected .avatar { border-color: var(--memoriz-orange); background: var(--memoriz-orange); color: #fff; }

/* ---------------- Loading screen ---------------- */
.loading-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 40px;
  z-index: 2;
}
.loading-canvas {
  position: relative;
  width: 240px;
  height: 240px;
  margin-bottom: 36px;
}
.loading-canvas .timeline-line {
  position: absolute; left: 50%; top: 20px; bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom,
    rgba(238,155,106,0) 0%,
    rgba(238,155,106,0.6) 8%,
    rgba(238,155,106,0.6) 92%,
    rgba(238,155,106,0) 100%);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  animation: timelineDraw 1.4s cubic-bezier(.6,.0,.4,1) forwards 0.2s;
}
@keyframes timelineDraw {
  to { transform: translateX(-50%) scaleY(1); }
}
.loading-canvas .node {
  position: absolute; left: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--memoriz-orange);
  transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 0 0 0 rgba(238,155,106,0);
  animation: nodePop 600ms cubic-bezier(.34,1.56,.64,1) forwards;
}
.loading-canvas .node::after {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  background: rgba(238,155,106,.2);
  animation: nodePulse 1.6s ease-out infinite;
}
@keyframes nodePop { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes nodePulse {
  0% { transform: scale(.5); opacity: .8; }
  100% { transform: scale(2.2); opacity: 0; }
}
.loading-canvas .polaroid {
  position: absolute;
  width: 68px; height: 76px;
  background: #fff;
  border-radius: 8px;
  padding: 5px 5px 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  opacity: 0;
  transform: translate(-50%, -50%) translateY(20px) rotate(var(--rot, 0deg)) scale(.7);
  animation: polaroidDrop 700ms cubic-bezier(.34,1.56,.64,1) forwards;
}
.loading-canvas .polaroid .photo {
  width: 100%; height: 100%; border-radius: 4px;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
@keyframes polaroidDrop {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) rotate(var(--rot, 0deg)) scale(1);
  }
}
.loading-canvas .avatar-blob {
  position: absolute;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5E1D2 0%, #EAD0BC 100%);
  display: flex; align-items: center; justify-content: center;
  color: #B07A55;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  animation: avatarPop 600ms cubic-bezier(.34,1.56,.64,1) forwards;
}
.loading-canvas .avatar-blob.solid {
  background: var(--memoriz-orange); color: #fff;
}
@keyframes avatarPop {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.loading-canvas .sparkle {
  position: absolute;
  width: 14px; height: 14px;
  color: var(--memoriz-orange);
  opacity: 0;
  animation: sparkleTwinkle 1.4s ease-in-out infinite;
}
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(.4); }
  50% { opacity: 1; transform: scale(1.1); }
}
.loading-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--memoriz-ink-deep);
  text-align: center;
  min-height: 24px;
  margin: 0;
}
.loading-text .lt-shimmer {
  display: inline-block;
  animation: shimmerFade 400ms ease forwards;
}
@keyframes shimmerFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.loading-progress {
  margin-top: 18px;
  width: 180px;
  height: 4px;
  background: rgba(0,0,0,.06);
  border-radius: 2px;
  overflow: hidden;
}
.loading-progress .lpf {
  height: 100%;
  background: var(--memoriz-orange);
  border-radius: 2px;
  width: 0;
  animation: loadFill 2s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes loadFill { to { width: 100%; } }

/* ---------------- Plan reveal screen ---------------- */
.reveal-headline { position: relative; z-index: 3; padding: 12px 28px 0; text-align: center; }
.reveal-headline .sparkle-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--memoriz-orange);
  margin-bottom: 14px;
  animation: revealPop 600ms cubic-bezier(.34,1.56,.64,1) 100ms backwards;
}
.reveal-headline h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--memoriz-ink-deep);
  margin: 0;
  animation: revealPop 600ms cubic-bezier(.34,1.56,.64,1) 200ms backwards;
}
@keyframes revealPop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal-card {
  position: relative;
  background: #fff;
  border-radius: 28px;
  margin: 22px 22px 0;
  padding: 22px 20px;
  box-shadow: 0 18px 40px rgba(184,123,80,0.18), 0 2px 8px rgba(0,0,0,0.06);
  animation: cardRise 700ms cubic-bezier(.22,.61,.36,1) 350ms backwards;
  overflow: hidden;
}
@keyframes cardRise {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.reveal-card::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 5px;
  background: linear-gradient(90deg, #FDB15D, #EE9B6A, #FA9ED7);
}
.reveal-card .timeline-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.reveal-card .timeline-head .ico {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--memoriz-orange-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--memoriz-orange);
}
.reveal-card .timeline-head .ico svg { width: 18px; height: 18px; }
.reveal-card .timeline-head .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--memoriz-ink-deep);
  line-height: 1;
}
.reveal-card .timeline-head .private-chip {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--memoriz-shield); color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 4px 8px;
  border-radius: 9999px;
  letter-spacing: 0.06em;
}
.reveal-card .timeline-head .private-chip svg { width: 9px; height: 9px; }

.reveal-card .divider {
  height: 1px;
  background: repeating-linear-gradient(to right,
    rgba(0,0,0,0.08) 0 4px, transparent 4px 8px);
  margin: 0 0 16px;
}

.reveal-card .moment-slot {
  background: #FFF6EE;
  border: 1.5px dashed rgba(238,155,106,0.5);
  border-radius: 18px;
  padding: 16px 14px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.reveal-card .moment-slot .slot-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  flex: none;
}
.reveal-card .moment-slot .slot-text {
  font-family: var(--font-display);
}
.reveal-card .moment-slot .slot-text b {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--memoriz-ink-deep);
  letter-spacing: -0.01em;
}
.reveal-card .moment-slot .slot-text span {
  display: block;
  font-size: 12px;
  color: var(--memoriz-gray-mute);
  margin-top: 2px;
}

.reveal-card .invite-row {
  display: flex; align-items: center; gap: 12px;
}
.reveal-card .invite-row .stack {
  display: flex;
}
.reveal-card .invite-row .stack .av {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #F5E1D2 0%, #EAD0BC 100%);
  display: flex; align-items: center; justify-content: center;
  color: #B07A55;
  font-weight: 700;
  font-size: 11px;
  margin-left: -8px;
}
.reveal-card .invite-row .stack .av:first-child { margin-left: 0; }
.reveal-card .invite-row .stack .av.more {
  background: var(--memoriz-orange-tint);
  color: var(--memoriz-orange);
  font-size: 10px;
}
.reveal-card .invite-row .invite-text b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--memoriz-ink-deep);
}
.reveal-card .invite-row .invite-text span {
  display: block;
  font-size: 11.5px;
  color: var(--memoriz-gray-mute);
  margin-top: 1px;
  letter-spacing: -0.005em;
}

.privacy-line {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--memoriz-ink-3);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  animation: revealPop 600ms cubic-bezier(.34,1.56,.64,1) 800ms backwards;
}
.privacy-line svg { color: var(--memoriz-orange); }

/* Reveal: floating sparkles around card */
.reveal-sparkle {
  position: absolute;
  color: var(--memoriz-orange);
  pointer-events: none;
  animation: floatSparkle 3.4s ease-in-out infinite;
}
@keyframes floatSparkle {
  0%, 100% { transform: translateY(0) scale(1); opacity: .7; }
  50% { transform: translateY(-8px) scale(1.15); opacity: 1; }
}

/* ---------------- Paywall ---------------- */
.paywall-top { position: relative; z-index: 3; padding: 0 24px; text-align: center; }
.paywall-top h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--memoriz-ink-deep);
  margin: 10px 0 0;
  text-wrap: balance;
}
.bullets {
  position: relative; z-index: 3;
  padding: 22px 26px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.bullets .bullet {
  display: flex; align-items: flex-start; gap: 12px;
}
.bullets .bullet .check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--memoriz-orange);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.bullets .bullet .lbl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--memoriz-ink-2);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.bullets .bullet .lbl b { font-weight: 700; }

.social-proof {
  position: relative; z-index: 3;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--memoriz-ink-3);
  margin: 18px 0 4px;
  letter-spacing: 0.01em;
}
.social-proof .stars {
  color: var(--memoriz-orange);
  letter-spacing: 0.04em;
  margin-right: 6px;
}

.plans { position: relative; z-index: 3; padding: 6px 22px 0; }
.plan {
  position: relative; background: #fff; border-radius: 18px;
  padding: 14px 16px; margin-bottom: 10px;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,.05);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 200ms ease, transform 160ms ease;
}
.plan:active { transform: scale(.995); }
.plan.selected {
  border-color: var(--memoriz-orange);
  box-shadow: 0 6px 18px rgba(238,155,106,.20);
}
.plan h3 {
  font-family: var(--font-display);
  font-weight: 800; font-size: 19px;
  letter-spacing: -0.02em; color: var(--memoriz-ink-deep);
  line-height: 1; margin: 0;
}
.plan .sub {
  font-size: 11.5px;
  color: var(--memoriz-orange);
  font-weight: 700;
  margin-top: 5px;
  display: inline-flex; gap: 4px; align-items: center;
}
.plan.muted .sub {
  color: var(--memoriz-gray-mute);
  font-weight: 400;
}
.plan .right { text-align: right; display: flex; align-items: center; gap: 8px; }
.plan .price-block .price {
  font-family: var(--font-display);
  font-weight: 800; font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--memoriz-ink-deep);
  line-height: 1; text-align: right;
}
.plan .price-block .per {
  font-size: 11px;
  color: var(--memoriz-gray-mute);
  margin-top: 3px;
  text-align: right;
}
.plan .check-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--memoriz-orange);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  opacity: 0;
  transform: scale(.6);
  transition: opacity 160ms, transform 200ms cubic-bezier(.34,1.56,.64,1);
}
.plan.selected .check-circle { opacity: 1; transform: scale(1); }
.plan .badge {
  position: absolute; top: -10px; right: 16px;
  background: var(--memoriz-orange); color: #fff;
  font-weight: 800; font-size: 9.5px; letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(238,155,106,.4);
}

.risk-line {
  text-align: center;
  font-size: 11.5px;
  color: var(--memoriz-gray-mute);
  margin-top: 8px;
  padding: 0 16px;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.legal-line {
  text-align: center;
  font-size: 10.5px;
  color: var(--memoriz-gray-mute);
  margin-top: 8px;
}
.legal-line a { color: var(--memoriz-gray-mute); text-decoration: none; }
.legal-line .pipe { margin: 0 6px; }
.restore-line {
  text-align: center;
  font-size: 10.5px;
  color: var(--memoriz-gray-mute);
  margin-top: 4px;
}
.maybe-later {
  background: none; border: 0;
  display: block; margin: 8px auto 0;
  font-family: var(--font-display);
  font-size: 13px; color: var(--memoriz-gray-mute);
  cursor: pointer;
  padding: 6px 10px;
}
.maybe-later:hover { color: var(--memoriz-ink-3); }

/* ---------------- Splash ---------------- */
.splash {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 32px;
  z-index: 2;
  text-align: center;
}
.splash .logo {
  animation: splashLogo 1.4s cubic-bezier(.22,.61,.36,1) backwards;
}
@keyframes splashLogo {
  from { opacity: 0; transform: translateY(14px) scale(.95); }
  to   { opacity: 1; transform: none; }
}
.splash .tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--memoriz-ink-2);
  margin-top: 22px;
  text-wrap: balance;
  max-width: 280px;
  animation: splashLogo 1.4s cubic-bezier(.22,.61,.36,1) 0.3s backwards;
}
.start-btn {
  position: absolute;
  z-index: 3;
  bottom: 60px;
  left: 22px; right: 22px;
  animation: splashLogo 1.4s cubic-bezier(.22,.61,.36,1) 0.6s backwards;
}

/* Floating polaroids on splash for warmth */
.splash-polaroids {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.splash-polaroids .poly {
  position: absolute;
  width: 80px; height: 96px;
  background: #fff;
  border-radius: 6px;
  padding: 5px 5px 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  animation: polyFloat 6s ease-in-out infinite;
}
.splash-polaroids .poly .img {
  width: 100%; height: 100%; border-radius: 3px;
  background-position: center; background-size: cover;
}
@keyframes polyFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-6px) rotate(calc(var(--r, 0deg) + 1deg)); }
}

/* ---------------- Post-paywall success ---------------- */
.success-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 36px;
  z-index: 2;
  text-align: center;
}
.success-screen .checkmark {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--memoriz-orange);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 12px 32px rgba(238,155,106,.5);
  animation: pop 600ms cubic-bezier(.34,1.56,.64,1) backwards;
}
@keyframes pop {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: scale(1); }
}
.success-screen h2 {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--memoriz-ink-deep);
  animation: revealPop 600ms cubic-bezier(.34,1.56,.64,1) 200ms backwards;
}
.success-screen p {
  font-size: 15px;
  color: var(--memoriz-ink-3);
  margin: 0;
  text-wrap: pretty;
  animation: revealPop 600ms cubic-bezier(.34,1.56,.64,1) 300ms backwards;
}
.success-screen .replay {
  position: absolute;
  bottom: 50px; left: 22px; right: 22px;
  animation: revealPop 600ms cubic-bezier(.34,1.56,.64,1) 500ms backwards;
}

/* ---------------- Plan-reveal variant pickers (Tweaks) ---------------- */
.variant-tabs {
  position: fixed;
  top: 20px; left: 20px;
  display: flex; gap: 8px;
  z-index: 100;
  background: rgba(255,255,255,.06);
  padding: 6px;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
}
.variant-tabs button {
  background: transparent; border: 0;
  color: rgba(255,255,255,.55);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 160ms, color 160ms;
}
.variant-tabs button:hover { color: #fff; }
.variant-tabs button.active { background: var(--memoriz-orange); color: #fff; }

/* Auto-scale phone to fit small viewports */
@media (max-height: 900px) {
  .phone { transform: scale(.92); }
}
@media (max-height: 820px) {
  .phone { transform: scale(.84); }
}
@media (max-height: 740px) {
  .phone { transform: scale(.76); }
}
