/* ==========================================================================
   Senszei Homepage v2 — Habitline-Inspired Dynamic Design System
   Clean alabaster canvas, squircle bento surfaces, Framer-style spring motion
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-tint: #eef1ff;
  --surface: #ffffff;
  --surface-dark: #0e1222;
  --surface-card-dark: #171c32;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --ink-muted: #94a3b8;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);

  --primary: #536dfe;
  --primary-dark: #3d52e6;
  --primary-soft: rgba(83, 109, 254, 0.1);
  --cyan: #22d3ee;
  --mint: #10b981;
  --mint-soft: rgba(16, 185, 129, 0.12);
  --amber: #f59e0b;
  --coral: #f43f5e;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 28px 60px -16px rgba(15, 23, 42, 0.14), 0 12px 24px -8px rgba(83, 109, 254, 0.12);
  --shadow-phone: 0 36px 80px -20px rgba(15, 23, 42, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Scroll Reveal System (Framer-like smooth spring entrance)
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-spring), transform 0.75s var(--ease-spring);
}

[data-reveal="scale"] {
  transform: translateY(24px) scale(0.97);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }

/* ==========================================================================
   Floating Glass Pill Navigation
   ========================================================================== */

.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 20px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px 10px 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
  border-color: var(--border-strong);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav__logo {
  height: 28px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.mobile-menu {
  display: none;
  pointer-events: auto;
  max-width: 1080px;
  margin: 10px auto 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 6px;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--ink);
}

.mobile-menu a:hover {
  background: var(--bg-soft);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-spring), background 0.2s ease;
  white-space: nowrap;
}

.btn--sm {
  font-size: 13.5px;
  padding: 10px 18px;
}

.btn--lg {
  font-size: 16px;
  padding: 16px 30px;
}

.btn--primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.34);
}

.btn--primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(83, 109, 254, 0.45);
}

.btn--indigo {
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px -8px rgba(83, 109, 254, 0.48);
}

.btn--indigo:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -8px rgba(83, 109, 254, 0.58);
}

.btn--ghost {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.btn--white {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.22);
}

.btn--white:hover {
  transform: translateY(-2px);
  background: #f8fafc;
}

/* ==========================================================================
   Hero Section + Animated Phone Stage
   ========================================================================== */

.hero {
  position: relative;
  padding: 136px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(900px 540px at 50% -60px, rgba(83, 109, 254, 0.13), transparent 70%),
    radial-gradient(640px 420px at 85% 22%, rgba(34, 211, 238, 0.1), transparent 65%),
    radial-gradient(540px 400px at 12% 30%, rgba(16, 185, 129, 0.08), transparent 65%),
    #ffffff;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 40%, transparent 100%);
  pointer-events: none;
}

.hero__header {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 5.5vw, 4.35rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.038em;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero__title-accent {
  background: linear-gradient(120deg, var(--primary) 0%, #6366f1 45%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 56px;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__meta i {
  color: var(--primary);
}

/* ==========================================================================
   Hero Live Animated Phone Stage + Floating Framer Widgets
   ========================================================================== */

.hero-stage {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stage__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 109, 254, 0.22) 0%, rgba(34, 211, 238, 0.12) 45%, transparent 72%);
  filter: blur(24px);
  pointer-events: none;
  animation: breathGlow 6s ease-in-out infinite alternate;
}

@keyframes breathGlow {
  0% { transform: scale(0.95); opacity: 0.78; }
  100% { transform: scale(1.08); opacity: 1; }
}

/* Realistic iPhone Shell */
.phone-frame {
  position: relative;
  z-index: 4;
  width: 320px;
  background: #0d1020;
  border-radius: 48px;
  padding: 12px;
  box-shadow: var(--shadow-phone);
  border: 2px solid #262c49;
}

.phone-screen {
  position: relative;
  background: linear-gradient(180deg, #12162b 0%, #0d1020 100%);
  border-radius: 38px;
  overflow: hidden;
  min-height: 560px;
  padding: 14px 16px 18px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 96px;
  height: 24px;
  background: #060811;
  border-radius: 999px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.phone-notch::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1c2445;
}

.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.phone-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}

.phone-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 11.5px;
  font-weight: 700;
}

.phone-progress-track {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
}

.phone-progress-seg {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.phone-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: 4px;
  transition: width 0.45s var(--ease-spring);
}

.phone-progress-seg.is-done .phone-progress-fill {
  width: 100%;
}

.phone-progress-seg.is-active .phone-progress-fill {
  width: 100%;
  animation: segFill 4.2s linear forwards;
}

@keyframes segFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* Phone Live Views */
.phone-views {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.phone-view {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: phoneCardIn 0.45s var(--ease-spring);
}

.phone-view.is-active {
  display: flex;
}

@keyframes phoneCardIn {
  from { opacity: 0; transform: translateX(18px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.phone-card {
  background: linear-gradient(155deg, #1b2240 0%, #141930 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phone-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.phone-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 10px;
}

.phone-card__body {
  font-size: 12.5px;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.phone-book-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  margin-bottom: 14px;
}

.phone-book-row img {
  width: 34px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.phone-book-row__title {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}

.phone-book-row__author {
  font-size: 11px;
  color: #94a3b8;
}

.phone-cta-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, #22d3ee 0%, #38bdf8 100%);
  color: #091020;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.phone-cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Quiz view inside hero phone */
.phone-quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.phone-quiz-opt {
  text-align: left;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  transition: all 0.22s ease;
}

.phone-quiz-opt:hover {
  background: rgba(83, 109, 254, 0.2);
  border-color: rgba(83, 109, 254, 0.6);
}

.phone-quiz-opt.is-correct {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--mint);
  color: #d1fae5;
}

.phone-quiz-opt.is-wrong {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.55);
  color: #fecdd3;
}

/* Unlocked Streak View inside hero phone */
.phone-win-badge {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  margin: 14px auto 14px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), rgba(34, 211, 238, 0.1));
  border: 2px solid var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  animation: popIn 0.5s var(--ease-spring);
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  80% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.phone-xp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
}

.phone-mode-tabs {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 14px;
}

.phone-mode-tab {
  flex: 1;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  padding: 7px 6px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.phone-mode-tab.is-active {
  background: var(--primary);
  color: #ffffff;
}

/* Floating Animated Widgets Around Phone */
.float-widget {
  position: absolute;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  will-change: transform;
}

.float-widget--streak {
  top: 46px;
  left: 16px;
  width: 230px;
  animation: floatSlow 6s ease-in-out infinite;
}

.float-widget--audio {
  top: 72px;
  right: 12px;
  width: 244px;
  animation: floatSlow 7s ease-in-out -1.5s infinite;
}

.float-widget--retention {
  bottom: 76px;
  left: 0;
  width: 248px;
  animation: floatSlow 6.5s ease-in-out -3s infinite;
}

.float-widget--toast {
  bottom: 58px;
  right: 16px;
  width: 242px;
  animation: floatSlow 5.8s ease-in-out -2s infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.widget-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.widget-sub {
  font-size: 12px;
  color: var(--ink-3);
}

.streak-days {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.streak-day {
  flex: 1;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--ink-3);
}

.streak-day.is-done {
  background: var(--mint-soft);
  color: #059669;
}

.streak-day.is-today {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(83, 109, 254, 0.35);
}

/* Equalizer Bars */
.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.eq-bars span {
  width: 3px;
  border-radius: 3px;
  background: var(--primary);
  animation: eqBounce 1.1s ease-in-out infinite;
}

.eq-bars span:nth-child(1) { height: 7px; animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 15px; animation-delay: 0.2s; }
.eq-bars span:nth-child(3) { height: 10px; animation-delay: 0.4s; }
.eq-bars span:nth-child(4) { height: 18px; animation-delay: 0.15s; }
.eq-bars span:nth-child(5) { height: 9px; animation-delay: 0.35s; }

.eq-bars.is-paused span {
  animation-play-state: paused;
  height: 5px;
}

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.ret-bar-row {
  margin-top: 8px;
}

.ret-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 4px;
}

.ret-track {
  height: 7px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
  margin-bottom: 8px;
}

.ret-fill--senszei {
  height: 100%;
  width: 84%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--mint));
}

.ret-fill--passive {
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: #cbd5e1;
}

.toast-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   Book Library Infinite Marquee
   ========================================================================== */

.marquee-section {
  padding: 36px 0 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 26px;
}

.marquee-mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.book-tile {
  width: 112px;
  height: 162px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.16);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.book-tile:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 18px 34px -10px rgba(83, 109, 254, 0.28);
}

.book-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section {
  padding: 104px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.08rem;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ==========================================================================
   Habitline-Style Dynamic Bento Grid (Interactive Animated Cards)
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), border-color 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(83, 109, 254, 0.22);
}

.bento-card--span7 { grid-column: span 7; }
.bento-card--span5 { grid-column: span 5; }
.bento-card--span6 { grid-column: span 6; }

.bento-card--dark {
  background: linear-gradient(155deg, #12172d 0%, #0b0e1c 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.bento-card--dark .bento-card__desc {
  color: #94a3b8;
}

.bento-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.bento-card--dark .bento-card__badge {
  color: var(--cyan);
}

.bento-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.bento-card__desc {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 480px;
  margin-bottom: 26px;
}

/* Bento 1: Interactive Swipeable Deck */
.deck-stage {
  position: relative;
  min-height: 228px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deck-stack {
  position: relative;
  height: 176px;
}

.deck-card {
  position: absolute;
  inset: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 22px;
  transition: transform 0.55s var(--ease-spring), opacity 0.45s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deck-card[data-pos="0"] {
  z-index: 3;
  transform: translateY(0) scale(1);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  opacity: 1;
}

.deck-card[data-pos="1"] {
  z-index: 2;
  transform: translateY(14px) scale(0.95);
  opacity: 0.72;
}

.deck-card[data-pos="2"] {
  z-index: 1;
  transform: translateY(26px) scale(0.9);
  opacity: 0.42;
}

.deck-card.is-swiping {
  transform: translateX(110px) rotate(7deg) scale(0.96) !important;
  opacity: 0 !important;
}

.deck-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
}

.deck-card__quote {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.38;
}

.deck-card__source {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
}

.deck-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.deck-dots {
  display: flex;
  gap: 6px;
}

.deck-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: width 0.3s var(--ease-spring), background 0.3s ease;
}

.deck-dot.is-active {
  width: 24px;
  background: var(--primary);
}

.deck-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.deck-next-btn:hover {
  background: var(--ink);
  color: #ffffff;
}

/* Bento 2: Live Interactive Quiz Widget */
.mini-quiz {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 18px;
}

.mini-quiz__q {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 12px;
  line-height: 1.4;
}

.mini-quiz__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-quiz__opt {
  text-align: left;
  width: 100%;
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mini-quiz__opt:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
}

.mini-quiz__opt.is-correct {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--mint);
  color: #d1fae5;
}

.mini-quiz__opt.is-wrong {
  background: rgba(244, 63, 94, 0.16);
  border-color: var(--coral);
}

.mini-quiz__feedback {
  margin-top: 12px;
  font-size: 12px;
  color: #34d399;
  font-weight: 600;
  min-height: 18px;
}

/* Bento 3: Animated Audio Player Widget */
.audio-widget {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
}

.audio-widget__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.audio-widget__cover {
  width: 52px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.audio-widget__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.audio-widget__sub {
  font-size: 12.5px;
  color: var(--ink-3);
}

.audio-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  margin-bottom: 14px;
}

.audio-wave span {
  flex: 1;
  border-radius: 4px;
  background: rgba(83, 109, 254, 0.22);
  transition: background 0.25s ease;
  animation: wavePulse 1.4s ease-in-out infinite;
}

.audio-wave span.is-played {
  background: var(--primary);
}

.audio-wave.is-paused span {
  animation-play-state: paused;
}

@keyframes wavePulse {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.audio-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.audio-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.audio-play-btn:hover {
  background: var(--primary);
  transform: scale(1.06);
}

.audio-speed-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border);
}

.audio-time {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

/* Bento 4: Animated Retention Curve SVG */
.chart-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.chart-svg {
  width: 100%;
  height: 155px;
  overflow: visible;
}

.curve-path {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  transition: stroke-dashoffset 1.5s var(--ease-spring);
}

.chart-box.is-visible .curve-path {
  stroke-dashoffset: 0;
}

.curve-path--passive {
  stroke: #94a3b8;
  stroke-dasharray: 6 6;
  stroke-dashoffset: 0;
  opacity: 0.7;
}

/* ==========================================================================
   Interactive Real-Life Routine Switcher (Habitline Split Showcase)
   ========================================================================== */

.routine-shell {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

.routine-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.routine-tab {
  text-align: left;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.28s var(--ease-spring);
}

.routine-tab:hover {
  background: var(--bg-soft);
}

.routine-tab.is-active {
  background: var(--bg-soft);
  border-color: rgba(83, 109, 254, 0.28);
  box-shadow: var(--shadow-sm);
}

.routine-tab__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.routine-tab__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.routine-tab__time {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

.routine-tab__desc {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 30px;
}

.routine-stage {
  background: linear-gradient(155deg, #12172f 0%, #1d2552 100%);
  border-radius: 28px;
  padding: 32px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.routine-stage::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.25), transparent 70%);
}

.routine-preview {
  position: relative;
  z-index: 2;
  animation: phoneCardIn 0.4s var(--ease-spring);
}

.routine-preview__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.14);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.routine-preview__card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
}

.routine-preview__card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.routine-preview__card p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}

.routine-preview__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.routine-preview__metric {
  color: #34d399;
  font-weight: 700;
}

/* ==========================================================================
   How It Works — 3-Step Flow
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ==========================================================================
   Stats Strip (Animated Count-Up)
   ========================================================================== */

.stats-band {
  background: var(--surface-dark);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 52px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.stats-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 260px at 50% 0%, rgba(83, 109, 254, 0.25), transparent 70%);
  pointer-events: none;
}

.stat-item {
  position: relative;
  z-index: 2;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}

/* ==========================================================================
   Categories Pills
   ========================================================================== */

.topics-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease-spring), border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.topic-pill i {
  color: var(--primary);
  font-size: 14px;
}

.topic-pill:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--bg-tint);
}

/* ==========================================================================
   Testimonials Grid
   ========================================================================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-stars {
  color: var(--amber);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review-text {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.review-meta {
  font-size: 12px;
  color: var(--ink-3);
}

/* ==========================================================================
   Categorized FAQ Accordion
   ========================================================================== */

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.faq-filter {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: #ffffff;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.faq-filter.is-active,
.faq-filter:hover {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.is-hidden {
  display: none;
}

.faq-item.is-open {
  border-color: rgba(83, 109, 254, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

.faq-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring), background 0.2s ease;
}

.faq-item.is-open .faq-plus {
  transform: rotate(45deg);
  background: var(--primary);
  color: #ffffff;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s var(--ease-spring);
}

.faq-panel p {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.68;
}

/* ==========================================================================
   Final CTA Banner
   ========================================================================== */

.final-cta {
  padding: 40px 0 96px;
}

.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 72px 40px;
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(650px 380px at 20% 0%, rgba(83, 109, 254, 0.52), transparent 65%),
    radial-gradient(500px 320px at 85% 100%, rgba(34, 211, 238, 0.35), transparent 65%),
    #0e1224;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.12;
  max-width: 680px;
  margin: 0 auto 16px;
}

.cta-banner p {
  font-size: 1.08rem;
  color: #cbd5e1;
  max-width: 540px;
  margin: 0 auto 32px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.store-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* ==========================================================================
   Modern Multi-Column Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 28px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--ink-3);
  max-width: 300px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--ink-3);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .float-widget {
    display: none;
  }

  .bento-card--span7,
  .bento-card--span5,
  .bento-card--span6 {
    grid-column: span 12;
  }

  .routine-shell {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .steps-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__desktop-cta {
    display: none;
  }

  .nav__burger {
    display: inline-flex;
  }

  .hero {
    padding: 112px 0 64px;
  }

  .hero-stage {
    min-height: 540px;
  }

  .phone-frame {
    width: 296px;
  }

  .section {
    padding: 72px 0;
  }

  .bento-card {
    padding: 24px;
  }

  .steps-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .stats-band {
    padding: 36px 24px;
    gap: 20px;
  }

  .cta-banner {
    padding: 52px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}



/* ==========================================================================
   Subpage System — Shared Components for About, Help, Feedback, Affiliate, Legal
   ========================================================================== */

.nav__link.is-active {
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 600;
}

.page-hero {
  position: relative;
  padding: 144px 0 64px;
  text-align: center;
  background:
    radial-gradient(860px 440px at 50% -60px, rgba(83, 109, 254, 0.12), transparent 70%),
    radial-gradient(500px 320px at 85% 25%, rgba(34, 211, 238, 0.08), transparent 65%),
    #ffffff;
  border-bottom: 1px solid var(--border);
}

.page-hero__inner {
  max-width: 740px;
  margin: 0 auto;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto;
}

.subpage-main {
  padding: 72px 0 96px;
  background: var(--bg-soft);
}

.subpage-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.surface-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.surface-card--narrow {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.surface-card h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 14px;
}

.surface-card p {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.72;
  margin-bottom: 14px;
}

.surface-card p:last-child {
  margin-bottom: 0;
}

.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.check-list i {
  color: var(--mint);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Pill Tabs (Help Center) */
.sub-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin: 0 auto 32px;
}

.sub-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  transition: all 0.22s ease;
}

.sub-tab-btn:hover {
  color: var(--ink);
}

.sub-tab-btn.is-active {
  background: var(--ink);
  color: #ffffff;
}

.sub-tab-pane {
  display: none;
}

.sub-tab-pane.is-active {
  display: block;
  animation: phoneCardIn 0.35s var(--ease-spring);
}

/* Notices */
.notice-box {
  padding: 18px 20px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.notice-box i {
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.notice-box--amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}

.notice-box--amber i {
  color: var(--amber);
}

.notice-box--amber a,
.notice-box--info a {
  font-weight: 600;
  text-decoration: underline;
}

.notice-box--danger {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #881337;
}

.notice-box--danger i {
  color: var(--coral);
}

.notice-box--info {
  background: var(--bg-tint);
  border: 1px solid rgba(83, 109, 254, 0.22);
  color: var(--ink-2);
}

.notice-box--info i {
  color: var(--primary);
}

/* Forms */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(83, 109, 254, 0.12);
}

.form-input--danger {
  font-weight: 700;
  letter-spacing: 0.03em;
  border-color: rgba(244, 63, 94, 0.35);
}

.form-input--danger:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
}

.btn--danger {
  background: linear-gradient(135deg, #f43f5e 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px -8px rgba(220, 38, 38, 0.45);
}

.btn--danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(220, 38, 38, 0.55);
}

/* Feedback Option Cards & Star Rating */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.choice-card {
  text-align: left;
  padding: 20px 18px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  transition: all 0.25s var(--ease-spring);
}

.choice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(83, 109, 254, 0.4);
  background: #ffffff;
}

.choice-card.is-active {
  background: var(--bg-tint);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.choice-card i {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.choice-card h3 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.choice-card p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
  margin: 0;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.rating-stars {
  display: inline-flex;
  gap: 6px;
}

.rating-stars i {
  font-size: 24px;
  color: #cbd5e1;
  cursor: pointer;
  transition: transform 0.18s var(--ease-spring), color 0.18s ease;
}

.rating-stars i.fas {
  color: var(--amber);
}

.rating-stars i:hover {
  transform: scale(1.15);
}

.rating-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* Guides Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.guide-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease-spring), border-color 0.2s ease, background 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: rgba(83, 109, 254, 0.35);
}

.guide-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.guide-card h4 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.guide-card p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}

/* Legal Prose */
.prose-legal h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 10px;
}

.prose-legal p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 12px;
}

.prose-legal ul {
  padding-left: 20px;
  margin: 10px 0 16px;
  color: var(--ink-2);
}

.prose-legal li {
  margin-bottom: 6px;
  font-size: 15px;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-top: 12px;
}

.contact-card {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.contact-card a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* Status Messages (Delete Account) */
#status-message.success {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 14.5px;
  font-weight: 600;
}

#status-message.error {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-size: 14.5px;
  font-weight: 600;
}

/* Affiliate Creator Program Extras */
.calc-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.payout-hero-card {
  background: linear-gradient(155deg, #12172f 0%, #1d2552 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.payout-amount {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #ffffff 20%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
  margin: 10px 0;
}

.calc-slider {
  width: 100%;
  accent-color: var(--primary);
  margin: 22px 0;
  height: 8px;
  cursor: pointer;
}

.calc-total {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--mint);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.creator-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.hook-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.hook-list li {
  padding: 16px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.creator-phone {
  max-width: 320px;
  margin: 0 auto;
  background: #0d1020;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-phone);
}

.swipe-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 26px;
  scrollbar-width: none;
  cursor: grab;
}

.swipe-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 100%;
  aspect-ratio: 9 / 15;
  position: relative;
  scroll-snap-align: start;
  background: #000;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 18px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
  color: #ffffff;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
  cursor: pointer;
}

.gallery-dot.is-active {
  width: 22px;
  background: var(--cyan);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.proof-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

@media (max-width: 900px) {
  .choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-grid,
  .creator-split,
  .proof-grid,
  .guides-grid,
  .check-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .surface-card {
    padding: 26px 20px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}
