/* NuFav marketing site. Own branding only. Tokens mirror src/theme (candy / glass). */
:root {
  --canvas: #fdfaff;
  --ink: #23283a;
  --ink-soft: #5b6275;
  --ink-faint: #8a90a3;
  --line: rgba(255, 61, 139, 0.16);
  --surface: rgba(255, 255, 255, 0.72);
  --pink: #ff3d8b;
  --coral: #ff8a5b;
  --teal: #22d3c5;
  --lavender: #a78bfa;
  --sky: #7cc4ff;
  --radius: 1.25rem;
  --pill: 999px;
  --shadow: 0 10px 40px rgba(60, 20, 90, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 30px 80px rgba(60, 20, 90, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
p { margin: 0; }
.wrap { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.accent {
  background: linear-gradient(135deg, var(--pink), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent.teal { background-image: linear-gradient(135deg, var(--teal), var(--sky)); }
.accent.lav { background-image: linear-gradient(135deg, var(--lavender), var(--pink)); }
.accent.coral { background-image: linear-gradient(135deg, var(--coral), var(--pink)); }
.accent.shimmer {
  background-image: linear-gradient(90deg, var(--pink), var(--coral), #ffd1e6, var(--coral), var(--pink));
  background-size: 300% 100%;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -300% 0; } }

/* Motion primitives */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal.from-left { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.pop { transform: scale(0.92); }
.reveal.in.from-left, .reveal.in.from-right, .reveal.in.pop { transform: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(6px, -14px) rotate(2deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 61, 139, 0.35); } 60% { box-shadow: 0 0 0 10px rgba(255, 61, 139, 0); } }
@keyframes bandshift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.float { animation: float 7s ease-in-out infinite; }
.float.slow { animation-duration: 10s; }
.float.delay { animation-delay: -3.5s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .bubbles i, .marquee-track, .accent.shimmer, .band, .toast.live .ico { animation: none !important; }
}

/* Floating bubbles (decor only) */
.bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bubbles i {
  position: absolute; border-radius: 50%; opacity: 0.5;
  background: radial-gradient(circle at 30% 30%, #fff 0 20%, var(--c) 60%, transparent 100%);
  animation: float 14s ease-in-out infinite;
}
main, header, footer { position: relative; z-index: 1; }

/* Nav */
.nav {
  position: fixed; top: 1rem; left: 1rem; right: 1rem; margin-inline: auto; z-index: 50;
  width: min(42rem, calc(100% - 2rem));
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  border: 1px solid var(--line); border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 30px rgba(255, 61, 139, 0.08);
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.brand img { width: 28px; height: 28px; }
.brand b { color: var(--pink); font-weight: 800; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 0.65rem 1.25rem; border-radius: var(--pill); border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn.primary {
  color: #fff; background: linear-gradient(135deg, #ff3d8b, #ff6b9d, #ff8a5b);
  box-shadow: 0 4px 20px rgba(255, 61, 139, 0.4), 0 1px 3px rgba(0, 0, 0, 0.12);
}
.btn.primary:hover { box-shadow: 0 8px 28px rgba(255, 61, 139, 0.5), 0 1px 3px rgba(0, 0, 0, 0.12); }
.btn.ghost { color: var(--pink); border-color: var(--line); background: rgba(255, 255, 255, 0.4); }
.btn.dark { color: #fff; background: var(--ink); padding: 0.55rem 1.2rem; text-align: left; }
.btn.dark small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; opacity: 0.8; line-height: 1.1; }
.btn.dark span { display: block; line-height: 1.15; }
.btn[aria-disabled="true"] { opacity: 0.85; cursor: default; }
.btn:hover { transform: translateY(-2px); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 7rem 0 4rem; overflow: hidden; }
.hero-bg { position: absolute; inset: -10% -5%; z-index: -1; background: url("/img/hero-bg.jpg") center / cover no-repeat; opacity: 0.9; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(253, 250, 255, 0.1), rgba(253, 250, 255, 0.55) 70%, var(--canvas)); }
.hero .grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1.05fr 0.95fr; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; color: var(--pink);
  padding: 0.35rem 0.85rem; border-radius: var(--pill);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6);
}
.hero h1 { font-size: clamp(3rem, 7vw, 5.2rem); font-weight: 800; margin: 1.1rem 0 1.25rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.fine { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.9rem; }

.hero-visual { position: relative; min-height: 34rem; }
.hero-orbs { position: absolute; inset: -12% -18% -6% -10%; z-index: 0; pointer-events: none; will-change: transform; }
.hero-orbs img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(255, 61, 139, 0.18)); }
.hero-visual .card { position: relative; z-index: 1; }
.hero-visual .card.stats { width: 62%; margin-left: 4%; }
.hero-visual .card.tiers { width: 70%; margin-left: 28%; margin-top: 1.2rem; }
.hero-visual .toast { position: absolute; right: 6%; top: -1.6rem; z-index: 2; }

/* Mock UI cards (pure CSS stand-ins for app screens) */
.card {
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
[data-tilt] { will-change: transform; }
.card .label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.meter { height: 8px; border-radius: 99px; background: rgba(34, 211, 197, 0.15); margin: 0.6rem 0 0.9rem; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--pink), var(--lavender), var(--teal)); transition: width 1.4s var(--ease) 0.2s; }
.in .meter i, .reveal.in .meter i { width: var(--w); }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; font-weight: 600;
  padding: 0.35rem 0.7rem; border-radius: var(--pill); color: #fff; background: var(--c, var(--pink));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--c, var(--pink)) 30%, transparent);
}
.chip.soft { color: var(--ink); background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(0, 0, 0, 0.05); box-shadow: none; }
.chip .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c, var(--pink)); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tier { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: 0.9rem; margin-top: 0.5rem; }
.tier b { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-size: 0.8rem; flex: none; }
.tier.s { background: rgba(255, 61, 139, 0.12); } .tier.s b { background: var(--pink); }
.tier.a { background: rgba(255, 138, 91, 0.14); } .tier.a b { background: var(--coral); }
.tier.b { background: rgba(34, 211, 197, 0.14); } .tier.b b { background: var(--teal); }
.toast {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; border-radius: 1rem;
  background: #fff; box-shadow: var(--shadow); font-size: 0.85rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.toast .ico { width: 2rem; height: 2rem; border-radius: 0.7rem; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--pink), var(--coral)); flex: none; }
.toast small { display: block; color: var(--ink-faint); font-size: 0.72rem; }
.toast + .toast { margin-top: 0.6rem; }
.toast.live { transform: translateX(6px) scale(1.02); box-shadow: var(--shadow-lg); }
.toast.live .ico { animation: pulse 1.6s ease-out infinite; }
.stat { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.stat small { font-size: 1rem; color: var(--ink-faint); font-weight: 600; }
.orb {
  width: 3.2rem; height: 3.2rem; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95) 0 14%, var(--c) 38%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 40%, transparent);
}

/* Feature rows */
.features { padding: 4rem 0 2rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6rem; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.feature > * { min-width: 0; }
.feature.flip .copy { order: 2; }
.feature .tag { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.feature .tag .ico { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); font-size: 0.85rem; }
.feature h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; margin-bottom: 0.9rem; }
.feature p { color: var(--ink-soft); }
.visual { position: relative; }
.visual .art { position: absolute; pointer-events: none; z-index: 2; filter: drop-shadow(0 18px 30px rgba(60, 20, 90, 0.18)); }
.alerts { position: relative; }
.alerts .art { width: 42%; right: -12%; top: -22%; }
.alerts .toast:nth-child(1) { margin-right: 22%; }
.alerts .toast:nth-child(2) { margin-left: 8%; margin-right: 10%; }
.alerts .toast:nth-child(3) { margin-right: 18%; }
.checklist .chip.soft { transition: transform 0.5s var(--ease), background 0.5s; transition-delay: calc(var(--i) * 120ms); transform: scale(0.85); opacity: 0; }
.reveal.in .checklist .chip.soft, .in .checklist .chip.soft { transform: none; opacity: 1; }
.podium { position: relative; padding-top: 3rem; }
.podium .art { position: static; width: 100%; filter: drop-shadow(0 24px 40px rgba(167, 139, 250, 0.25)); }
.podium .card { position: absolute; left: 6%; right: 6%; bottom: -1.2rem; padding-top: 0.8rem; }
.share { position: relative; display: grid; place-items: center; }
.share .art { position: static; width: 100%; }
.share .labels { position: relative; margin-top: -3%; width: 100%; display: flex; justify-content: center; gap: 4%; padding: 0 8%; pointer-events: none; }
.share .labels span { width: 26%; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: clamp(0.8rem, 1.3vw, 1rem); line-height: 1.05; color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,0.8); }
.share .labels span:nth-child(2) { transform: translateY(-0.4rem); }
.phone {
  width: min(320px, 100%); margin: 0 auto; padding: 0.7rem; border-radius: 2.6rem; background: #1b1626;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.phone .screen { border-radius: 2rem; background: linear-gradient(160deg, #fff4fb, #f4ecff 60%, #e9fbf9); padding: 1.1rem 0.9rem 1.2rem; min-height: 26rem; }
.phone .notch { width: 34%; height: 1.4rem; margin: 0 auto 0.9rem; border-radius: 99px; background: #1b1626; }
.phone h4 { font-family: var(--font-head); font-size: 1.15rem; margin: 0 0 0.1rem; }
.phone .sub { font-size: 0.7rem; color: var(--ink-faint); margin-bottom: 0.9rem; }
.rank { display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.55rem; border-radius: 0.9rem; background: rgba(255, 255, 255, 0.85); margin-top: 0.45rem; }
.rank b { font-family: var(--font-head); width: 1.2rem; color: var(--ink-faint); font-size: 0.85rem; }
.rank .orb { width: 1.7rem; height: 1.7rem; }
.rank span { font-size: 0.78rem; font-weight: 600; flex: 1; }
.rank .bar { width: 34%; height: 6px; border-radius: 99px; background: rgba(0, 0, 0, 0.05); overflow: hidden; }
.rank .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--coral)); transition: width 1.2s var(--ease); transition-delay: calc(var(--i) * 120ms + 200ms); }
.reveal.in .rank .bar i, .in .rank .bar i { width: var(--w); }
.rank em { font-style: normal; font-size: 0.72rem; color: var(--pink); font-weight: 700; }

/* Marquee (flavor index) */
.marquee { overflow: hidden; min-width: 0; width: 100%; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding: 0.4rem 0; }
.marquee-track { display: flex; gap: 0.5rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 34s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .chip { font-size: 0.8rem; padding: 0.45rem 0.85rem; }
.legend { display: flex; gap: 1rem; font-size: 0.72rem; color: var(--ink-faint); margin-top: 0.8rem; }

/* How it works */
.how { padding: 5rem 0; background: linear-gradient(135deg, #fff0e6, #fbe9ff 55%, #e8f7fb); margin-top: 4rem; }
.how h2 { text-align: center; font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 800; }
.how .sub { text-align: center; color: var(--ink-soft); margin: 0.75rem 0 2.5rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step { text-align: center; padding: 2rem 1.5rem 1.75rem; position: relative; overflow: hidden; }
.step .num { position: absolute; top: 0.2rem; right: 1rem; font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--c); opacity: 0.16; }
.step .ico { width: 2.6rem; height: 2.6rem; border-radius: 0.9rem; margin: 0.6rem auto 0.9rem; display: grid; place-items: center; color: #fff; background: var(--c); position: relative; box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 35%, transparent); }
.step h3 { font-size: 1.25rem; font-weight: 800; }
.step p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.5rem; }

/* CTA band */
.band { position: relative; overflow: hidden; padding: 6.5rem 0; text-align: center; color: #fff; background: linear-gradient(120deg, #ff3d8b 0%, #ff8a5b 25%, #b79cff 60%, #7cc4ff 100%); background-size: 200% 200%; animation: bandshift 14s ease-in-out infinite; }
.band .art { position: absolute; width: 22rem; opacity: 0.9; pointer-events: none; }
.band .art.l { left: -6rem; bottom: -8rem; }
.band .art.r { right: -7rem; top: -9rem; transform: scaleX(-1); }
.band .wrap { position: relative; z-index: 1; }
.band .eyebrow { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.15); }
.band h2 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 800; margin: 1.1rem 0 1rem; }
.band h2 span { opacity: 0.88; }
.band p { color: rgba(255, 255, 255, 0.9); max-width: 32rem; margin: 0 auto; }
.band .cta-row { justify-content: center; }
.band .btn.light { background: #fff; color: var(--pink); }
.band .fine { color: rgba(255, 255, 255, 0.75); }

/* Footer */
footer { padding: 3.5rem 0 2.5rem; background: #fdf8ff; border-top: 1px solid rgba(0, 0, 0, 0.04); }
footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
footer .tag { color: var(--ink-soft); max-width: 26rem; margin-top: 0.6rem; font-size: 0.95rem; }
footer nav { display: flex; gap: 1.25rem; font-size: 0.95rem; font-weight: 600; }
footer nav a { text-decoration: none; color: var(--ink-soft); }
footer nav a:hover { color: var(--pink); }
footer .marquee { margin: 2rem 0 0; }
.disclaimer { font-size: 0.8rem; color: var(--ink-faint); margin-top: 2rem; max-width: 60rem; }
.copy-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; color: var(--ink-faint); margin-top: 1rem; }
.copy-line a { color: var(--ink-faint); }

/* Article pages (privacy, support) */
.article { padding: 8rem 0 4rem; max-width: 46rem; }
.article h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 0.75rem; }
.article .lead { margin-bottom: 2rem; }
.article h2 { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin: 0 0 0.6rem; }
.article section { margin-bottom: 1rem; }
.article section p, .article section li { color: var(--ink); font-size: 0.98rem; }
.article ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.article li { margin: 0.25rem 0; }
.article strong { font-weight: 700; }
.article .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.article a.inline { color: var(--pink); font-weight: 600; }

@media (max-width: 860px) {
  .hero { padding-top: 6rem; }
  .hero .grid, .feature { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .feature.flip .copy { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; padding-top: 2rem; }
  .hero-orbs { inset: -30% -10% auto -10%; height: 60%; opacity: 0.6; }
  .hero-visual .card.stats, .hero-visual .card.tiers { width: 100%; margin-left: 0; }
  .hero-visual .toast { position: static; margin-bottom: 0.8rem; }
  .alerts .art { width: 34%; right: -4%; top: -14%; }
  .features { gap: 4rem; }
  .band .art { width: 14rem; }
}

/* React Bits integration */
.hero-aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen; opacity: 0.85; mask-image: linear-gradient(180deg, #000 55%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); }
.hero-aurora canvas { width: 100% !important; height: 100% !important; }
.hero h1 .block { display: block; }
.hero h1 .hero-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.25em; }
.alerts { position: relative; }
.alerts .art { position: absolute; width: 42%; right: -12%; top: -24%; z-index: 2; pointer-events: none; filter: drop-shadow(0 18px 30px rgba(60, 20, 90, 0.18)); }
.alerts .toast { box-shadow: var(--shadow); }
.device-wrap { position: relative; height: 560px; }
.device-wrap > div { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.52) !important; }
.device-wrap .screen { background: linear-gradient(160deg, #fff4fb, #f4ecff 60%, #e9fbf9); padding: 2.6rem 1rem 1.5rem; height: 100%; display: flex; flex-direction: column; justify-content: center; zoom: 1.75; }
.device-wrap .rank { margin-top: 0.55rem; }
.device-wrap h4 { font-family: var(--font-head); font-size: 1.15rem; margin: 0 0 0.1rem; }
.device-wrap .sub { font-size: 0.7rem; color: var(--ink-faint); margin-bottom: 0.9rem; }
.pills-card { overflow: hidden; }
.pills { margin-top: 0.5rem; border-radius: 1rem; }
.steps > * { position: relative; }
.step-card { width: 100% !important; }
.step-card .step-content { text-align: center; }
.step-card h3 { font-family: var(--font-head); }
.step-num { position: absolute; top: 0.6rem; right: 1.1rem; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; opacity: 0.22; pointer-events: none; }
.band h2 .block { display: block; }
.band h2 .opacity-90 { opacity: 0.9; }
@media (max-width: 860px) { .alerts .art { width: 34%; right: -4%; top: -14%; } }

/* Glass cursor overlay (desktop only) */
.cursor-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; mix-blend-mode: multiply; }
.cursor-layer, .cursor-layer > div { width: 100vw; height: 100vh; }

/* Rising candy-glass bubbles: fixed layer above content, ignores scroll */
.rb-layer { position: fixed; inset: 0; z-index: 65; pointer-events: none; overflow: hidden; }
.rb {
  position: absolute; bottom: -90px; left: var(--x); width: var(--d); height: var(--d);
  opacity: 0; will-change: transform, opacity;
  animation: rb-rise var(--t) linear infinite; animation-delay: var(--delay);
}
.rb i {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95) 0 6%, rgba(255, 255, 255, 0.35) 18%, transparent 30%),
    radial-gradient(circle at 70% 75%, rgba(255, 255, 255, 0.55) 0 8%, transparent 26%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 28%, transparent) 55%, color-mix(in srgb, var(--c) 70%, white) 86%, rgba(255, 255, 255, 0.9) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), inset -3px -5px 10px rgba(255, 255, 255, 0.5), 0 8px 22px color-mix(in srgb, var(--c) 22%, transparent);
  animation: rb-sway var(--w) ease-in-out infinite alternate;
}
@keyframes rb-rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  6% { opacity: var(--o); }
  90% { opacity: var(--o); }
  100% { transform: translate3d(var(--dx), -118vh, 0); opacity: 0; }
}
@keyframes rb-sway {
  from { transform: translateX(calc(var(--sway) * -1)) rotate(-4deg); }
  to { transform: translateX(var(--sway)) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) { .rb-layer { display: none; } }

/* ===== Motion polish pass ===== */
/* Bubbles: iridescent rim + travelling shimmer */
.rb i { position: relative; overflow: hidden; }
.rb i::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1px;
  background: conic-gradient(from 0deg, rgba(255,255,255,0.1), rgba(255,180,220,0.8), rgba(180,240,235,0.8), rgba(200,190,255,0.8), rgba(255,220,180,0.7), rgba(255,255,255,0.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rb-spin 6s linear infinite; opacity: 0.9;
}
.rb i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0.05) 60%, transparent 70%);
  background-size: 250% 250%; background-position: 120% 120%;
  animation: rb-shimmer 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite; animation-delay: var(--delay);
}
@keyframes rb-spin { to { transform: rotate(360deg); } }
@keyframes rb-shimmer { 0% { background-position: 120% 120%; } 55% { background-position: -20% -20%; } 100% { background-position: -20% -20%; } }

/* Scroll progress */
.scroll-progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 80; transform-origin: 0 50%; background: linear-gradient(90deg, var(--pink), var(--coral), var(--lavender), var(--teal)); box-shadow: 0 0 12px rgba(255, 61, 139, 0.5); pointer-events: none; }

/* Buttons: shine sweep on hover, press feedback */
.btn { position: relative; overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn.shine::after { content: ""; position: absolute; top: -50%; bottom: -50%; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent); transition: left 0.6s var(--ease); pointer-events: none; }
.btn.shine:hover::after { left: 130%; }
.btn.primary { background-size: 200% 200%; animation: bandshift 6s ease-in-out infinite; }
.btn.dark { transition: transform 0.25s var(--ease), background 0.25s; }
.btn.dark:hover { background: #2f3550; }

/* Brand mark wobble on hover */
.brand img { transition: transform 0.4s var(--ease); }
.brand:hover img { transform: rotate(-10deg) scale(1.12); }

/* Chips: playful hover bounce, tier rows glide */
.chip { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.chip:hover { transform: translateY(-2px) scale(1.06); }
.tier { transition: transform 0.3s var(--ease), background 0.3s; }
.tier:hover { transform: translateX(6px); }
.tier b { transition: transform 0.3s var(--ease); }
.tier:hover b { transform: scale(1.15) rotate(-8deg); }

/* Cards: glow on hover */
.card:hover { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 61, 139, 0.12); }

/* Hero: eyebrow glow, spinning sparkle, tier chips pop in, stat pulse once */
.spin-slow { animation: rb-spin 5s linear infinite; }
.eyebrow { animation: eyebrow-glow 4s ease-in-out infinite; }
@keyframes eyebrow-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 61, 139, 0); } 50% { box-shadow: 0 0 18px 0 rgba(255, 61, 139, 0.25); } }
.hero-visual .tier .chip { opacity: 0; transform: scale(0.6); animation: chip-pop 0.6s var(--ease) forwards; }
.hero-visual .tier.s .chip:nth-child(2) { animation-delay: 1.1s; } .hero-visual .tier.s .chip:nth-child(3) { animation-delay: 1.2s; }
.hero-visual .tier.a .chip:nth-child(2) { animation-delay: 1.3s; } .hero-visual .tier.a .chip:nth-child(3) { animation-delay: 1.4s; }
.hero-visual .tier.b .chip:nth-child(2) { animation-delay: 1.5s; } .hero-visual .tier.b .chip:nth-child(3) { animation-delay: 1.6s; }
@keyframes chip-pop { 60% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
[data-inview].in .stat { animation: stat-pop 0.8s var(--ease) 1.1s both; }
@keyframes stat-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); color: var(--pink); } 100% { transform: scale(1); } }

/* Feature art: bell rings, podium orbs breathe, share tiles hover lift */
.ring { animation: float 7s ease-in-out infinite, ring 5s ease-in-out infinite; transform-origin: 50% 8%; }
@keyframes ring { 0%, 70%, 100% { rotate: 0deg; } 74% { rotate: 12deg; } 78% { rotate: -10deg; } 82% { rotate: 7deg; } 86% { rotate: -4deg; } 90% { rotate: 0deg; } }
.podium .art { animation: float 8s ease-in-out infinite, breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { filter: drop-shadow(0 24px 40px rgba(167, 139, 250, 0.25)); } 50% { filter: drop-shadow(0 34px 60px rgba(255, 61, 139, 0.32)); } }
.share .art { transition: transform 0.6s var(--ease); }
.share:hover .art { transform: scale(1.04) rotate(-1.5deg); }
.share .labels span { transition: transform 0.4s var(--ease), color 0.4s; }
.share:hover .labels span { color: var(--pink); }
.share:hover .labels span:nth-child(2) { transform: translateY(-0.9rem); }

/* Checklist chips: check-in pop with a dot ripple */
[data-inview].in .checklist .chip.soft .dot { animation: dot-pop 0.6s var(--ease) calc(var(--i) * 120ms + 300ms) both; }
@keyframes dot-pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.5); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 25%, transparent); } 100% { transform: scale(1); } }

/* Steps: number breathes, cards lift */
.step-num { animation: num-breathe 4s ease-in-out infinite; }
@keyframes num-breathe { 0%, 100% { opacity: 0.22; transform: translateY(0); } 50% { opacity: 0.4; transform: translateY(-3px); } }
.step-card { transition: transform 0.4s var(--ease); }
.steps > *:hover .step-card { transform: translateY(-6px); }

/* Band: twinkling sparkles */
.band .sparkle { position: absolute; color: #fff; pointer-events: none; animation: twinkle var(--t, 3s) ease-in-out infinite; animation-delay: var(--delay, 0s); opacity: 0; font-size: 18px; line-height: 1; z-index: 1; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); } 50% { opacity: 0.9; transform: scale(1.2) rotate(45deg); } }

/* Marquee chips wobble gently */
.marquee .chip:hover { transform: translateY(-3px) rotate(-3deg); }

/* Accent words: slow gradient drift everywhere, not just the hero */
.accent { background-size: 200% 100%; animation: accent-drift 8s ease-in-out infinite; }
@keyframes accent-drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

@media (prefers-reduced-motion: reduce) {
  .rb i::before, .rb i::after, .scroll-progress, .btn.primary, .eyebrow, .spin-slow, .ring, .podium .art, .step-num, .band .sparkle, .accent, .hero-visual .tier .chip, [data-inview].in .stat, [data-inview].in .checklist .chip.soft .dot { animation: none !important; }
  .hero-visual .tier .chip { opacity: 1; transform: none; }
}

/* Launch signup (Formspree) */
.signup { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; width: 100%; max-width: 34rem; margin: 0 auto; position: relative; }
.signup input[type="email"] {
  flex: 1 1 14rem; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.75rem 1.15rem; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.85); outline: none; transition: box-shadow 0.25s var(--ease), background 0.25s;
}
.signup input[type="email"]::placeholder { color: var(--ink-faint); }
.signup input[type="email"]:focus { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45); }
.signup input:disabled, .signup button:disabled { opacity: 0.7; }
.signup .btn { border: none; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-error, .signup-done { width: 100%; text-align: center; font-size: 0.9rem; color: #fff; }
.signup-done { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; padding: 0.75rem 1.25rem; border-radius: var(--pill); background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* "Created by Skald Studio" credit button */
.copy-line { align-items: center; }
.skald {
  position: relative; display: inline-flex; padding: 3px; border-radius: var(--pill); text-decoration: none; color: #fff;
  isolation: isolate; transition: transform 0.35s var(--ease); min-height: 48px;
}
.skald-ring {
  position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: conic-gradient(from var(--ang, 0deg), #ff3d8b, #ff8a5b, #ffd166, #22d3c5, #7cc4ff, #a78bfa, #ff3d8b);
  animation: skald-spin 4s linear infinite;
  filter: saturate(1.2);
}
.skald::before {
  content: ""; position: absolute; inset: -6px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--ang, 0deg), #ff3d8b, #ff8a5b, #ffd166, #22d3c5, #7cc4ff, #a78bfa, #ff3d8b);
  filter: blur(14px); opacity: 0.45; animation: skald-spin 4s linear infinite; transition: opacity 0.35s;
}
.skald-inner {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 1.15rem 0.55rem 0.9rem; border-radius: inherit;
  background: linear-gradient(135deg, #1b1626, #2b2140 60%, #1b1626); overflow: hidden;
}
.skald-inner::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: -50%; width: 35%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); transition: left 0.7s var(--ease); pointer-events: none;
}
.skald:hover .skald-inner::after, .skald:focus-visible .skald-inner::after { left: 140%; }
.skald-spark { font-size: 1.15rem; line-height: 1; color: #ffd166; animation: skald-twinkle 2.4s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.8)); }
.skald-text { display: flex; flex-direction: column; line-height: 1.05; }
.skald-text small { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.skald-text b {
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  background: linear-gradient(90deg, #ff9ac6, #ffd166, #8fe6dd, #b9a4ff, #ff9ac6); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: skald-text 6s linear infinite;
}
.skald-arrow { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #fff; transition: transform 0.35s var(--ease); }
.skald:hover { transform: translateY(-3px) scale(1.03); }
.skald:hover::before { opacity: 0.85; }
.skald:hover .skald-arrow { transform: translateX(5px); }
.skald:active { transform: translateY(0) scale(0.98); }
.skald:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes skald-spin { to { --ang: 360deg; } }
@keyframes skald-twinkle { 0%, 100% { transform: scale(0.85) rotate(0deg); opacity: 0.8; } 50% { transform: scale(1.2) rotate(30deg); opacity: 1; } }
@keyframes skald-text { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .skald-ring, .skald::before, .skald-spark, .skald-text b { animation: none !important; } }
@media (max-width: 600px) { .copy-line { justify-content: center; text-align: center; } .skald { width: 100%; justify-content: center; } }

/* ===== Mobile optimization pass ===== */
/* Below-fold sections skip layout/paint until near the viewport */
.features > .feature, .how, .band, footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* Hero background: lighter image on phones */
@media (max-width: 860px) { .hero-bg { background-image: url("/img/hero-bg-sm.jpg"); } }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 2rem); }
  .nav { top: 0.6rem; padding: 0.4rem 0.45rem 0.4rem 0.85rem; }
  .nav .btn { padding: 0.55rem 1rem; font-size: 0.88rem; }

  /* Hero */
  .hero { padding: 5.5rem 0 2.5rem; min-height: 0; }
  .hero h1 { font-size: clamp(2.5rem, 12.5vw, 3.6rem); margin: 0.9rem 0 1rem; }
  .lead { font-size: 1.05rem; }
  .cta-row { gap: 0.6rem; }
  .btn.dark { flex: 1 1 10rem; justify-content: center; }
  .hero-visual { min-height: 0; padding-top: 1.5rem; margin-top: 0.5rem; }
  .hero-orbs { inset: -18% -20% auto -20%; height: 70%; opacity: 0.75; }
  .hero-visual .card.stats, .hero-visual .card.tiers { width: 100%; margin: 0; }
  .hero-visual .card.tiers { margin-top: 0.8rem; }
  .hero-visual .toast { position: static; margin-bottom: 0.8rem; display: inline-flex; }
  .hero-aurora { opacity: 0.7; }

  /* Feature rows */
  .features { padding-top: 2.5rem; gap: 3.5rem; }
  .feature { gap: 1.5rem; }
  .feature h2 { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
  .alerts { padding-top: 2.5rem; }
  .alerts .art { width: 30%; right: 0; top: -6%; }
  .alerts .toast:nth-child(n) { margin-left: 0; margin-right: 0; }
  .podium { padding-top: 1.5rem; }
  .podium .card { left: 0; right: 0; bottom: -0.6rem; }
  .share .labels span { font-size: 0.85rem; }
  .device-wrap { height: 440px; }
  .device-wrap > div { transform: translate(-50%, -50%) scale(0.42) !important; }
  .pills-card .pills { height: 300px !important; }

  /* Steps */
  .how { padding: 3.5rem 0; margin-top: 2.5rem; }
  .steps { gap: 0.9rem; }
  .step-card { height: 190px !important; }

  /* Band */
  .band { padding: 4.5rem 0; }
  .band h2 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .band .art { width: 11rem; opacity: 0.7; }
  .band .art.l { left: -4rem; bottom: -5rem; }
  .band .art.r { right: -4rem; top: -5rem; }
  .signup { flex-direction: column; }
  .signup input[type="email"] { flex: 0 0 auto; width: 100%; height: 3.1rem; }
  .signup .btn { width: 100%; justify-content: center; }

  /* Footer */
  footer { padding: 2.5rem 0 2rem; }
  footer .top { flex-direction: column; gap: 1.2rem; }
  footer nav { flex-wrap: wrap; gap: 0.8rem 1.2rem; }

  /* Bubbles: slightly smaller, calmer on small screens */
  .rb { transform: scale(0.85); }
}

/* Touch devices: hover-only effects should not stick after a tap */
@media (hover: none) {
  .btn:hover { transform: none; }
  .chip:hover { transform: none; }
  .tier:hover { transform: none; }
  .tier:hover b { transform: none; }
  .card:hover { box-shadow: var(--shadow); }
  .share:hover .art { transform: none; }
  .share:hover .labels span { color: var(--ink); transform: none; }
  .share:hover .labels span:nth-child(2) { transform: translateY(-0.4rem); }
  .steps > *:hover .step-card { transform: none; }
  .skald:hover { transform: none; }
  .btn:active, .skald:active { transform: scale(0.97); }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 2.35rem; }
  .btn.dark { flex-basis: 100%; }
  .device-wrap { height: 400px; }
  .device-wrap > div { transform: translate(-50%, -50%) scale(0.38) !important; }
}

/* Light-only site: keep alert text dark regardless of OS theme */
.alerts .toast strong { color: var(--ink); }
.alerts .toast small { color: var(--ink-faint); }
