/* ============================================================
   PeakRoutine — sections.css
   All Section Styles — Premium Blue-White Theme
   ============================================================ */

/* ══════════════════════════════════════
   HERO SECTION
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--grad-hero);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6.75rem;
}

/* Animated mesh background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  animation: orbReveal 1.5s var(--ease-out) forwards;
}

.hero-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(28,133,232,0.35) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation-delay: 0.3s;
}

.hero-orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(56,193,114,0.2) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation-delay: 0.6s;
}

.hero-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
  top: 40%; left: 35%;
  animation-delay: 0.9s;
}

@keyframes orbReveal {
  to { opacity: 1; }
}

/* Dot grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

/* ── Hero Content ── */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 780px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.7s var(--ease-out) 0.4s forwards;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 6px var(--secondary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 6.3vw, 5rem);
  font-weight: 800;
  color: white;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(32px);
  animation: heroIn 0.9s var(--ease-out) 0.6s forwards;
}

.hero-headline .hl-gradient {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 0.9s var(--ease-out) 0.8s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 0.9s var(--ease-out) 1s forwards;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  animation: heroIn 0.9s var(--ease-out) 1.2s forwards;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  font-weight: 600;
}

.trust-item i { color: var(--secondary); font-size: 0.9rem; }

@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

/* ── Hero Visuals ── */
.hero-phones {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
  height: 470px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px);
  animation: heroIn 1s var(--ease-out) 1.3s forwards;
}

.hero-visual {
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.hero-stat-badge {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 160px;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.26);
  color: white;
  white-space: nowrap;
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-float-delay-0 { animation-delay: 0s; }
.hero-float-delay-1 { animation-delay: 0.12s; }
.hero-float-delay-2 { animation-delay: 0.3s; }
.hero-float-delay-3 { animation-delay: 0.45s; }
.hero-float-delay-4 { animation-delay: 0.6s; }

.hero-stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
}

.hero-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.65);
  line-height: 1.2;
}

.hero-stat-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  line-height: 1.2;
}

.hero-stat-recovery {
  left: 8%;
  top: 35%;
}

.hero-stat-active {
  left: 12%;
  top: 52%;
}

.hero-stat-hrv {
  right: 8%;
  top: 38%;
}

.hero-stat-energy {
  right: 12%;
  top: 60%;
}

.hero-stat-streak {
  left: 10%;
  bottom: 18%;
}

.hero-center-card {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 180px;
  transform: translate(-50%, -50%) rotate(2deg) scale(1.05);
  z-index: 30;
  border-radius: 1rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 38px 80px rgba(0,0,0,0.46);
  overflow: visible;
}

.hero-center-card::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 52%;
  width: 170%;
  height: 170%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(96,165,250,0.28) 0%, rgba(52,211,153,0.14) 45%, transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

.hero-center-card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

@media (min-width: 768px) {
  .hero-center-card {
    width: 220px;
  }
}

.hero-visual-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.42), 0 0 0 1.5px rgba(255,255,255,0.14);
  background: rgba(10,15,30,0.72);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -8% -10% auto;
  height: 120%;
  background:
    radial-gradient(circle at 50% 50%, rgba(28,133,232,0.28) 0%, transparent 60%),
    radial-gradient(circle at 50% 60%, rgba(56,193,114,0.18) 0%, transparent 58%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
}

.hero-visual-left {
  z-index: 20;
  left: calc(50% - 230px);
  bottom: -28px;
  width: 220px;
  transform: rotate(-3deg) scale(0.9);
  opacity: 0.9;
}

.hero-visual-right {
  z-index: 20;
  left: calc(50% - 20px);
  bottom: -24px;
  width: 220px;
  transform: rotate(3deg) scale(0.9);
  opacity: 0.9;
}

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

.hero-visual-right .hero-visual-image {
  position: relative;
  z-index: 1;
}

/* ── Responsive Hero ── */
@media (max-width: 991px) {
  .hero { padding-top: 6rem; }
  .hero-content { padding-inline: 1rem; }

  .problem-section .container-pr > div {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .vs-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
  }

  .vs-divider {
    order: -1;
    margin: 0.5rem 0 0;
  }

  .showcase-step {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 0;
  }

  .showcase-step.reverse { direction: ltr; }
}

@media (max-width: 576px) {
  .hero { padding-top: 5.75rem; }
  .hero-headline { font-size: clamp(2.35rem, 12vw, 3.6rem); }
  .hero-trust {
    gap: 0.85rem 1.2rem;
  }

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

  .section-header { margin-bottom: 3rem; }

  .section-body {
    font-size: 0.98rem;
  }

  .bento-card {
    padding: 1.35rem;
  }

  .feat-title {
    font-size: 1.14rem;
  }

  .showcase-imgs {
    gap: 0.85rem;
  }
}

/* ══════════════════════════════════════
   BENTO CARD — PERSONALIZED PLANS
   Teal/cyan accent (new card)
══════════════════════════════════════ */
.bento-card.bento-plans {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 60%, #ffffff 100%);
  border-color: rgba(6, 182, 212, 0.15);
}
.bento-card.bento-plans:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 16px 48px rgba(6, 182, 212, 0.2);
}
.bento-card.bento-plans::after {
  background: linear-gradient(135deg, #06b6d4, #38C172);
}
 
/* ══════════════════════════════════════
   SHOWCASE PARALLAX (desktop only)
══════════════════════════════════════ */
.showcase-imgs img[data-parallax] {
  will-change: transform;
  transition: transform 0.05s linear, box-shadow 0.4s ease;
}
.showcase-imgs img[data-parallax]:hover {
  box-shadow: 0 32px 80px rgba(28,133,232,0.2);
}
@media (max-width: 768px) {
  .showcase-imgs img[data-parallax] {
    will-change: auto;
    transform: none !important;
  }
}
 
/* Subtle depth gradient behind showcase section */
.showcase-section {
  position: relative;
  overflow: hidden;
}
.showcase-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 30% at 15% 25%, rgba(28,133,232,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 65%, rgba(56,193,114,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.showcase-section .container-pr {
  position: relative;
  z-index: 1;
}
 
/* ══════════════════════════════════════
   TOUCH DEVICE: No sticky hover states
══════════════════════════════════════ */
@media (hover: none) {
  .bento-card:hover                 { transform: none; box-shadow: none; border-color: var(--gray-200); }
  .bento-card:hover::after          { transform: scaleX(0); }
  .bento-card:hover .feat-icon      { transform: none; }
  .log-card:hover                   { transform: none; box-shadow: none; }
  .testi-card:hover                 { transform: none; box-shadow: none; }
  .footer-social:hover              { transform: none; }
  .showcase-imgs img:hover          { transform: none; box-shadow: none; }
}
 
/* ══════════════════════════════════════
   HIW: Hide connector line on tablet
══════════════════════════════════════ */
@media (max-width: 900px) {
  .hiw-steps::before { display: none; }
}
 
/* ══════════════════════════════════════
   MOBILE GLOBALS (<=767px)
══════════════════════════════════════ */
@media (max-width: 767px) {
 
  /* Section spacing */
  :root { --section-y: 4rem; }
  .section-header { margin-bottom: 2.5rem; }
  .hiw-steps      { gap: 1.25rem; }
 
  /* ==================================
     FIX 1: SOUND FAMILIAR — VS CARD
     3-col grid forced to stack
  ================================== */
  .vs-card {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 1.25rem;
    overflow: hidden;
  }
  .vs-col-bad  { order: 1; }
  .vs-divider  { order: 2; text-align: center; padding: 0.6rem 0; font-size: 1.1rem; }
  .vs-col-good { order: 3; }
  .vs-label    { font-size: 0.68rem; margin-bottom: 0.6rem; }
  .vs-item     { font-size: 0.85rem; margin-bottom: 0.55rem; }
 
  /* ==================================
     FIX 2: SHOWCASE — compact side-by-side
     Text full-width on top
     Images: 2-col clipped row below
  ================================== */
 
  /* Step: single column, text then images */
  .showcase-step,
  .showcase-step.reverse {
    grid-template-columns: 1fr !important;
    direction:   ltr !important;
    gap:         1.5rem;
    padding:     2rem 0;
  }
  .showcase-step > *,
  .showcase-step.reverse > * {
    direction: ltr !important;
  }
 
  /* Images: 2 side-by-side, cropped to fixed height */
  .showcase-imgs {
    display:               grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap:                   0.6rem;
    max-height:            none;
    overflow:              visible;
    align-items:           start;
  }
  .showcase-imgs img {
    width:           100% !important;
    max-width:       none !important;
    height:          auto !important;
    max-height:      320px;
    object-fit:      contain;
    object-position: center top;
    border-radius:   14px;
    box-shadow:      none;
    animation:       none;
  }
 
  /* Solo image (dashboard step) */
  .showcase-imgs.solo {
    grid-template-columns: 1fr !important;
    max-height:            none;
    justify-items:         center;
  }
  .showcase-imgs.solo img {
    width:           min(86%, 320px) !important;
    height:          auto !important;
    max-height:      none;
    object-fit:      contain;
    object-position: center top;
    border-radius:   18px;
    margin:          0 auto;
  }
 
  /* Remove decorative glow on mobile */
  .showcase-imgs::before { display: none; }
 
  /* Typography tweaks */
  .showcase-step-badge { width: 28px; height: 28px; font-size: 0.75rem; margin-bottom: 0.6rem; }
  .showcase-title      { font-size: 1.35rem; margin-bottom: 0.6rem; line-height: 1.2; }
  .showcase-body       { font-size: 0.9rem; margin-bottom: 1rem; }
 
  /* ==================================
     FIX 3: HERO — text sizing on mobile
     Phone layout handled by hero-fix.css
  ================================== */
  .hero {
    padding-top: 7.25rem;
  }

  .hero-content {
    padding: 1.1rem 1rem 0.75rem;
  }

  .hero-headline {
    font-size: clamp(2rem, 9vw, 2.9rem);
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .hero-sub {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.35rem;
  }

  .hero-actions {
    margin-bottom: 1.2rem;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.9rem;
    justify-items: center;
  }

  .trust-item {
    font-size: 0.78rem;
  }
}
 
/* ══════════════════════════════════════
   SMALL MOBILE (<=480px)
══════════════════════════════════════ */
@media (max-width: 480px) {
 
  /* Hero trust bar: 2x2 grid */
  .hero-trust {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   0.5rem 0.75rem;
    text-align:            left;
    justify-items:         start;
  }
  .trust-item { font-size: 0.74rem; }
 
  /* Stats bar */
  .stat-cell::after { display: none; }
  .stat-val         { font-size: 1.9rem; }
 
  /* Bento tighter */
  .bento-card { padding: 1.1rem; }
  .feat-icon  { width: 44px; height: 44px; font-size: 1rem; }
  .log-grid   { grid-template-columns: repeat(2, 1fr); }
 
  /* Popup */
  .popup-modal { width: calc(100% - 1.5rem); }
  .popup-body  { padding: 2rem 1.1rem 1.5rem; }
 
  /* Form */
  .form-row { grid-template-columns: 1fr; }
 
  /* Back-to-top */
  .back-top { bottom: 1rem; right: 1rem; width: 38px; height: 38px; font-size: 0.95rem; }

  /* TestFlight badge: prevent overflow on narrow screens */
  .testflight-badge {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.75rem !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.4;
  }
 
  /* Pricing trust */
  .pricing-trust { flex-direction: column; align-items: center; gap: 0.5rem; }

  /* Pricing card padding: tighter on small screens */
  .pricing-top { padding: 1.5rem 1.25rem 0.75rem; }
  .pricing-mid { padding: 1rem 1.25rem; }
  .pricing-bottom { padding: 1.25rem 1.25rem 1.5rem; }

  /* Footer */
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.6rem; }
}
 
/* ══════════════════════════════════════
   FEATURE SPLIT: stack on mobile
══════════════════════════════════════ */
@media (max-width: 640px) {
  .feature-split { flex-direction: column; }
  .feature-stack { flex-direction: row; flex-wrap: wrap; }
}
 
/* ══════════════════════════════════════
   MOBILE HERO FLOAT KEYFRAME
══════════════════════════════════════ */
@keyframes phoneFloatCenterMobile {
  0%,  100% { transform: translateY(0px); }
  50%        { transform: translateY(-8px); }
}

/* ══════════════════════════════════════
   STATS BAR
══════════════════════════════════════ */
.stats-section {
  background: white;
  border-bottom: 1px solid var(--gray-100);
  padding: 2.5rem 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.04);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
}

.stat-cell {
  text-align: center;
  padding: 1rem;
  position: relative;
}

.stat-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--gray-200);
}

.stat-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.4rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

@media (max-width: 576px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2)::after { display: none; }
}

/* ══════════════════════════════════════
   PROBLEM SECTION
══════════════════════════════════════ */
.problem-section {
  background: linear-gradient(160deg, #080d1a 0%, #0c1f3a 50%, #071a12 100%);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}

.problem-section .container-pr > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.problem-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 30%, rgba(28,133,232,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 85% 70%, rgba(56,193,114,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.problem-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.problem-highlight {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.problem-body {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 500px;
}

.problem-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.problem-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.problem-pill i { color: #fbbf24; }

/* vs card */
.vs-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.vs-col-bad { opacity: 0.7; }

.vs-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.vs-col-bad .vs-label { color: #ef4444; }
.vs-col-good .vs-label { color: var(--secondary); }

.vs-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.vs-item-bad i { color: #ef4444; }
.vs-item-good i { color: var(--secondary); }

.vs-divider {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ══════════════════════════════════════
   FEATURES SECTION
══════════════════════════════════════ */
.features-section {
  background: var(--gray-50);
  padding: var(--section-y) 0;
}

.features-section .container-pr {
  max-width: 1180px;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-body {
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.bento-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.3s ease;
  min-width: 0;
  height: 100%;
}

.bento-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-blue);
  border-color: rgba(28,133,232,0.15);
}

.bento-card:hover::after { transform: scaleX(1); }

/* Grid placements */
.bento-span-8 { grid-column: span 8; }
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-4-start { grid-column: span 4; }

@media (max-width: 991px) {
  .bento-span-8, .bento-span-4, .bento-span-6, .bento-span-4-start {
    grid-column: span 12;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .bento-span-8 { grid-column: span 7; }
  .bento-span-4 { grid-column: span 5; }
}

.feat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  margin-bottom: 1.25rem;
  transition: transform 0.4s var(--ease-spring);
}

.bento-card:hover .feat-icon { transform: scale(1.12) rotate(-6deg); }

.feat-title {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.8vw, 1.38rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}

.feat-body {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 62ch;
}

/* Tag pills */
.feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.feat-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid;
}

.feat-tag-blue {
  background: #eff6ff;
  color: var(--primary);
  border-color: var(--blue-200);
}

.feat-tag-green {
  background: #f0fdf4;
  color: var(--secondary-dark);
  border-color: #bbf7d0;
}

.feat-tag-purple {
  background: #f5f3ff;
  color: #7c3aed;
  border-color: #ddd6fe;
}

/* ══════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════ */
.hiw-section {
  background: white;
  padding: var(--section-y) 0;
}

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

.hiw-steps::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 0;
}

@media (max-width: 767px) {
  .hiw-steps { grid-template-columns: 1fr; }
  .hiw-steps::before { display: none; }
}

.hiw-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hiw-num-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

.hiw-icon-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  position: relative;
  box-shadow: 0 8px 24px rgba(28,133,232,0.35);
  transition: transform 0.4s var(--ease-spring);
}

.hiw-step:hover .hiw-icon-circle { transform: scale(1.1) rotate(-5deg); }

.hiw-step-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  color: white;
  margin-top: 0.6rem;
}

.hiw-step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.hiw-step-body {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   APP SHOWCASE
══════════════════════════════════════ */
.showcase-section {
  background: #ffffff;
  padding: var(--section-y) 0;
}

.showcase-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-200);
}

/* Children handle their own directional reveal */
.showcase-content {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.72s var(--ease-out) 0.08s, transform 0.75s var(--ease-out) 0.08s;
}

.showcase-imgs {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.75s var(--ease-out) 0.22s, transform 0.75s var(--ease-out) 0.22s;
}

.showcase-step.reverse .showcase-content { transform: translateX(32px); }
.showcase-step.reverse .showcase-imgs    { transform: translateX(-32px); }

.showcase-step.revealed .showcase-content,
.showcase-step.revealed .showcase-imgs {
  opacity: 1;
  transform: none;
}

.showcase-step:last-child { border-bottom: none; }

.showcase-step.reverse { direction: rtl; }
.showcase-step.reverse > * { direction: ltr; }

.showcase-step-badge {
  display: inline-flex;
  width: 32px; height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.showcase-body {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 60ch;
}

.showcase-imgs {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.showcase-imgs img {
  width: min(47%, 210px);
  max-width: 210px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.4s ease;
}

.showcase-imgs img:nth-child(1) { animation: phoneFloat 6s ease-in-out infinite; }
.showcase-imgs img:nth-child(2) { animation: phoneFloat 6s ease-in-out 1.5s infinite; }

.showcase-imgs img:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 32px 80px rgba(28,133,232,0.2);
}

.showcase-imgs.solo img {
  width: min(65%, 260px);
}

@media (max-width: 767px) {
  .showcase-imgs img {
    box-shadow: none;
  }
  .showcase-imgs img:hover {
    box-shadow: none;
  }
}

@media (max-width: 767px) {
  .showcase-step {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
  }
  .showcase-step.reverse { direction: ltr; }
}

/* Log grid */
.log-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  .log-grid { grid-template-columns: repeat(3, 1fr); }
}

.log-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 0.4rem;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--gray-200);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  cursor: default;
}

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

.log-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}

.log-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
}

/* ══════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════ */
.testimonials-section {
  background: white;
  padding: var(--section-y) 0;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .testi-grid { grid-template-columns: 1fr; }
}

.testi-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.testi-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.testi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.testi-card.tc-blue::before { background: var(--grad-blue); }
.testi-card.tc-green::before { background: linear-gradient(90deg, var(--secondary), #4ade80); }
.testi-card.tc-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.testi-quote {
  font-size: 4rem;
  line-height: 0.8;
  font-family: var(--font-display);
  color: var(--gray-200);
  position: absolute;
  top: 12px; right: 16px;
  user-select: none;
}

.testi-stars {
  color: #f59e0b;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.testi-text {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.testi-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}

.testi-role {
  font-size: 0.78rem;
  color: var(--gray-400);
}

/* ══════════════════════════════════════
   PRICING
══════════════════════════════════════ */
.pricing-section {
  background: var(--gray-50);
  padding: var(--section-y) 0;
}

.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.toggle-lbl {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-400);
  transition: color 0.2s;
}

.toggle-lbl.active { color: var(--dark); }

.toggle-switch {
  width: 52px; height: 28px;
  background: var(--primary);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.toggle-switch.annual::after { transform: translateX(24px); }

.savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--secondary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  transition: opacity 0.3s, transform 0.3s;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.95rem;
  margin-top: 1.75rem;
  color: var(--gray-400);
  font-size: 0.82rem;
  line-height: 1.65;
  clear: both;
  position: relative;
  z-index: 2;
}

.pricing-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.pricing-trust-item i {
  font-size: 0.85rem;
}

.pricing-trust-item .fa-shield-alt { color: var(--primary); }
.pricing-trust-item .fa-times-circle { color: var(--secondary); }

.pricing-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--secondary);
  box-shadow: 0 8px 32px rgba(56,193,114,0.2);
}

.pricing-card.featured:hover {
  box-shadow: 0 32px 80px rgba(56,193,114,0.28);
}

/* Avoid sticky hover shadows/lift on touch devices (Android/iOS) */
@media (hover: none), (pointer: coarse) {
  .pricing-card:hover {
    transform: none;
    box-shadow: none;
  }

  .pricing-card {
    box-shadow: none;
  }

  .pricing-card.featured:hover {
    box-shadow: 0 8px 32px rgba(56,193,114,0.2);
  }
}

.pricing-ribbon {
  position: absolute;
  top: 18px; right: -32px;
  background: linear-gradient(135deg, var(--secondary), #4ade80);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 40px;
  transform: rotate(45deg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-top { padding: 2rem 2rem 1rem; }

.pricing-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  margin-bottom: 1rem;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.04em;
}

.pricing-tagline {
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.pricing-mid {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: all 0.3s ease;
}

.pricing-period {
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.pricing-fun {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.35rem;
  color: var(--primary);
}

.pricing-bottom { padding: 1.5rem 2rem 2rem; }

.pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
  color: var(--gray-600);
}

.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--secondary); margin-top: 2px; flex-shrink: 0; }
.pricing-features li i.star { color: #f59e0b; }

.pricing-promo {
  font-size: 0.72rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 0.75rem;
}

/* ══════════════════════════════════════
   FAQ
══════════════════════════════════════ */
.faq-section {
  background: white;
  padding: var(--section-y) 0;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover, .faq-item.open {
  border-color: rgba(28,133,232,0.25);
  box-shadow: 0 4px 20px rgba(28,133,232,0.08);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
  user-select: none;
  gap: 1rem;
  transition: background 0.2s;
}

.faq-q:hover { background: var(--gray-50); }

.faq-icon-wrap {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 0.8rem;
  transition: transform 0.3s ease, background 0.2s;
}

.faq-item.open .faq-icon-wrap {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--gray-500);
  font-size: 0.92rem;
  line-height: 1.75;
  transition: max-height 0.4s var(--ease-out), padding 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 1.5rem 1.25rem;
}

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-section {
  background: var(--gray-50);
  padding: var(--section-y) 0;
}

.contact-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.75rem, 3vw, 3rem);
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 576px) {
  .contact-card { padding: 1.75rem 1.25rem; }
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28,133,232,0.12);
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-error {
  color: #ef4444;
  font-size: 0.78rem;
  margin-top: 0.35rem;
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: linear-gradient(160deg, #080d1a 0%, #0c1f3a 50%, #071a12 100%);
  color: rgba(255,255,255,0.7);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(28,133,232,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 80%, rgba(56,193,114,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: white;
  padding: 3px;
  object-fit: contain;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.04em;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 260px;
  margin-bottom: 1.25rem;
}

.footer-email {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.footer-social {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.9rem;
}

.footer-social:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: white;
  transform: translateY(-3px);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  padding: 0.3rem 0;
  transition: color 0.2s, padding-left 0.2s;
  text-decoration: none;
}

.footer-link::before {
  content: '›';
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.footer-link:hover { color: white; padding-left: 4px; }
.footer-link:hover::before { opacity: 0.6; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  position: relative;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-bottom-links a:hover { color: white; }

/* ══════════════════════════════════════
   POPUPS
══════════════════════════════════════ */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 9990;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.show { opacity: 1; visibility: visible; }

.popup-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(0.95);
  width: 90%; max-width: 440px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 0; visibility: hidden;
  transition: all 0.4s var(--ease-spring);
  overflow: hidden;
}

.popup-modal.show {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.popup-header {
  height: 100px;
  position: relative;
  overflow: hidden;
}

.popup-icon-ring {
  position: absolute;
  bottom: -24px; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 64px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}

.popup-icon-inner {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: white;
}

.popup-body {
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.popup-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}

.popup-msg {
  color: var(--gray-500);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════
   SPINNER
══════════════════════════════════════ */
#pr-spinner {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

#pr-spinner.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner-ring {
  width: 48px; height: 48px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.spinner-text {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--dark);
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.feature-split {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.feature-split > div:first-child {
  flex: 1 1 260px;
  min-width: 0;
}

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.feature-split .feat-body {
  max-width: 60ch;
}

@media (max-width: 767px) {
  .problem-section .container-pr > div,
  .showcase-step {
    gap: 2rem;
  }

  .feature-split {
    gap: 1rem;
  }

  .feature-stack {
    width: 100%;
    align-items: flex-start;
  }

  .showcase-imgs img {
    width: calc(50% - 0.625rem);
    max-width: none;
  }
}

@media (max-width: 640px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1rem;
  }

  .pricing-trust {
    margin-top: 2.2rem;
    padding-inline: 1rem;
    row-gap: 0.45rem;
  }

  .pricing-trust-item {
    white-space: normal;
  }

  .showcase-imgs img,
  .showcase-imgs.solo img {
    width: 100%;
  }
}

/* ══════════════════════════════════════
   SHOWCASE PARALLAX
══════════════════════════════════════ */
.showcase-imgs img[data-parallax] {
  will-change: transform;
  transition: transform 0.05s linear, box-shadow 0.4s ease;
}
 
/* Preserve hover effect on top of parallax */
.showcase-imgs img[data-parallax]:hover {
  box-shadow: 0 32px 80px rgba(28,133,232,0.2);
}
 
/* Disable parallax transforms on mobile — JS handles this too but belt+suspenders */
@media (max-width: 768px) {
  .showcase-imgs img[data-parallax] {
    will-change: auto;
    transform: none !important;
  }
}
 
/* ══════════════════════════════════════
   SHOWCASE SECTION DEPTH ENHANCEMENTS
   Subtle background parallax gradient
══════════════════════════════════════ */
.showcase-section {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}
 
.showcase-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 30% at 15% 25%, rgba(28,133,232,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 65%, rgba(56,193,114,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
 
.showcase-section .container-pr {
  position: relative;
  z-index: 1;
}
 
/* Showcase step image container depth */
.showcase-imgs {
  position: relative;
}
 
.showcase-imgs::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 30px;
  background: rgba(28,133,232,0.08);
  filter: blur(20px);
  border-radius: 50%;
  pointer-events: none;
}
 
/* ══════════════════════════════════════
   MOBILE FIXES
══════════════════════════════════════ */
 
/* ── Fix: Hero trust bar on small screens ── */
@media (max-width: 480px) {
  .hero-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1rem;
    text-align: left;
    justify-items: start;
  }
 
  .trust-item {
    font-size: 0.76rem;
  }
}
 
/* ── Fix: Bento grid on very small screens ── */
@media (max-width: 380px) {
  .bento-card {
    padding: 1.1rem;
  }
 
  .feat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }
 
  .log-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
 
/* ── Fix: Feature split layout on medium mobile ── */
@media (max-width: 640px) {
  .feature-split {
    flex-direction: column;
  }
 
  .feature-stack {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
 
/* ── Fix: VS card on small screens ── */
@media (max-width: 480px) {
  .vs-card {
    padding: 1.25rem;
    gap: 0.75rem;
  }
 
  .vs-item {
    font-size: 0.82rem;
  }
}
 
/* ── Fix: HIW connector line on tablet ── */
@media (max-width: 900px) {
  .hiw-steps::before {
    display: none;
  }
}
 
/* ── Fix: Pricing trust on small screens ── */
@media (max-width: 400px) {
  .pricing-trust {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}
 
/* ── Fix: Footer on small screens ── */
@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
 
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}
 
/* ── Fix: Showcase images on mobile ── */
@media (max-width: 576px) {
  .showcase-imgs::before {
    display: none; /* remove shadow on mobile */
  }
 
  .showcase-imgs img:nth-child(1),
  .showcase-imgs img:nth-child(2) {
    animation: none; /* stop float animation on mobile for battery */
  }
}
 
/* ── Fix: Back to top button — avoid overlapping mobile UI ── */
@media (max-width: 576px) {
  .back-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
 
/* ── Fix: Stats grid separator on mobile ── */
@media (max-width: 480px) {
  .stat-cell::after {
    display: none;
  }
 
  .stat-val {
    font-size: 2rem;
  }
}
 
/* ── Fix: Form row on very small screens ── */
@media (max-width: 420px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
 
/* ── Fix: Popup modal on small screens ── */
@media (max-width: 480px) {
  .popup-modal {
    width: calc(100% - 2rem);
  }
 
  .popup-body {
    padding: 2rem 1.25rem 1.5rem;
  }
}
 
/* ── Fix: Section Y padding on mobile ── */
@media (max-width: 576px) {
  :root {
    --section-y: 4rem;
  }
 
  .section-header {
    margin-bottom: 2.5rem;
  }
 
  .hiw-steps {
    gap: 1.25rem;
  }

  /* Buttons: reduce oversized btn-pr-lg on small screens */
  .btn-pr-lg {
    padding: 0.8rem 1.75rem;
    font-size: 0.92rem;
  }

  /* Pricing amount: 3rem is too large for mobile */
  .pricing-amount {
    font-size: 2.25rem;
  }

  /* Solo showcase image: cap height to prevent very tall phone screenshots */
  .showcase-imgs.solo img {
    max-height: 380px !important;
  }
}
 
/* ══════════════════════════════════════
   BENTO CARD — PERSONALIZED PLANS
   Teal/cyan accent card
══════════════════════════════════════ */
.bento-card.bento-plans {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 60%, #ffffff 100%);
  border-color: rgba(6, 182, 212, 0.15);
}
 
.bento-card.bento-plans:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 16px 48px rgba(6, 182, 212, 0.2);
}
 
.bento-card.bento-plans::after {
  background: linear-gradient(135deg, #06b6d4, #38C172);
}
 
/* ══════════════════════════════════════
   SHOWCASE STEP — improved mobile layout
══════════════════════════════════════ */
@media (max-width: 767px) {
  .showcase-step {
    padding: 2.5rem 0;
    gap: 2rem;
  }
 
  .showcase-step-badge {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }
 
  .showcase-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }
 
  .showcase-body {
    font-size: 0.95rem;
  }
}
 
/* ══════════════════════════════════════
   TOUCH DEVICE: Remove hover effects
   that feel sticky on touch screens
══════════════════════════════════════ */
@media (hover: none) {
  .bento-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--gray-200);
  }
 
  .bento-card:hover::after {
    transform: scaleX(0);
  }
 
  .bento-card:hover .feat-icon {
    transform: none;
  }
 
  .log-card:hover {
    transform: none;
    box-shadow: none;
  }
 
  .testi-card:hover {
    transform: none;
    box-shadow: none;
  }
 
  .footer-social:hover {
    transform: none;
  }
 
  .showcase-imgs img:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ══════════════════════════════════════
   SHOWCASE — ENHANCED REVEAL SYSTEM
   Split-entry, glows, stagger, active
══════════════════════════════════════ */

/* ── Section title animated underline ── */
.showcase-section .section-title {
  position: relative;
}

.showcase-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -0.35em;
  left: 50%;
  width: 65%;
  height: 3px;
  background: linear-gradient(90deg, #1C85E8, #38C172, #7c3aed);
  border-radius: 3px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.9s var(--ease-out) 0.35s;
}

.showcase-section .section-header.revealed .section-title::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── Step badge: pop-in on reveal ── */
.showcase-step-badge {
  position: relative;
  opacity: 0;
  transform: scale(0.55);
  /* Use transition so .is-active can override transform without fill-mode conflict */
  transition:
    opacity 0.4s var(--ease-out) 0.15s,
    transform 0.5s var(--ease-spring) 0.15s,
    box-shadow 0.35s ease;
}

.showcase-step.revealed .showcase-step-badge {
  opacity: 1;
  transform: scale(1);
}

/* ── Active step: badge ring glow + scale ──
   Higher specificity (.revealed + .is-active) so it wins over .revealed alone */
.showcase-step.revealed.is-active .showcase-step-badge {
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(255,255,255,0.45), 0 6px 20px rgba(0,0,0,0.18);
}

/* ── Phone glow orb behind images ── */
.showcase-imgs {
  position: relative;
  isolation: isolate; /* creates stacking context so ::after z-index:-1 works */
}

.showcase-imgs::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: 5%;
  right: 5%;
  top: 15%;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.9s var(--ease-out) 0.45s;
  pointer-events: none;
}

.showcase-step.revealed .showcase-imgs::after { opacity: 1; }

.showcase-step[data-accent="blue"]   .showcase-imgs::after { background: radial-gradient(ellipse, rgba(28,133,232,0.28) 0%, transparent 70%); }
.showcase-step[data-accent="green"]  .showcase-imgs::after { background: radial-gradient(ellipse, rgba(56,193,114,0.28) 0%, transparent 70%); }
.showcase-step[data-accent="amber"]  .showcase-imgs::after { background: radial-gradient(ellipse, rgba(245,158,11,0.30) 0%, transparent 70%); }
.showcase-step[data-accent="purple"] .showcase-imgs::after { background: radial-gradient(ellipse, rgba(124,58,237,0.26) 0%, transparent 70%); }

/* ── Log card staggered pop-in ── */
.showcase-step.revealed .log-card {
  animation: logCardIn 0.42s var(--ease-spring) both;
}

.showcase-step.revealed .log-card:nth-child(1)  { animation-delay: 0.32s; }
.showcase-step.revealed .log-card:nth-child(2)  { animation-delay: 0.40s; }
.showcase-step.revealed .log-card:nth-child(3)  { animation-delay: 0.48s; }
.showcase-step.revealed .log-card:nth-child(4)  { animation-delay: 0.56s; }
.showcase-step.revealed .log-card:nth-child(5)  { animation-delay: 0.64s; }
.showcase-step.revealed .log-card:nth-child(6)  { animation-delay: 0.72s; }
.showcase-step.revealed .log-card:nth-child(7)  { animation-delay: 0.80s; }
.showcase-step.revealed .log-card:nth-child(8)  { animation-delay: 0.88s; }
.showcase-step.revealed .log-card:nth-child(9)  { animation-delay: 0.96s; }
.showcase-step.revealed .log-card:nth-child(10) { animation-delay: 1.04s; }

@keyframes logCardIn {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Feature chip staggered reveal ── */
.chip-row span {
  display: inline-block;
}

.showcase-step.revealed .chip-row span {
  animation: chipIn 0.38s var(--ease-spring) both;
}

.showcase-step.revealed .chip-row span:nth-child(1) { animation-delay: 0.38s; }
.showcase-step.revealed .chip-row span:nth-child(2) { animation-delay: 0.50s; }
.showcase-step.revealed .chip-row span:nth-child(3) { animation-delay: 0.62s; }
.showcase-step.revealed .chip-row span:nth-child(4) { animation-delay: 0.74s; }

@keyframes chipIn {
  from { opacity: 0; transform: translateY(8px) scale(0.88); }
  to   { opacity: 1; transform: none; }
}

/* ── Disable glow on touch / reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .showcase-content,
  .showcase-imgs {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .showcase-step.revealed .log-card,
  .showcase-step.revealed .chip-row span {
    animation: none;
    opacity: 1;
  }
  .showcase-step-badge {
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: none !important;
  }
  .showcase-section .section-title::after {
    transition: none;
    transform: translateX(-50%) scaleX(1);
  }
}

/* ── Mobile (≤767px): vertical slides instead of horizontal ── */
@media (max-width: 767px) {
  /* Steps stack vertically on mobile — slides should be vertical too */
  .showcase-content,
  .showcase-step.reverse .showcase-content {
    transform: translateY(22px);
  }
  .showcase-imgs,
  .showcase-step.reverse .showcase-imgs {
    transform: translateY(22px);
  }
  .showcase-imgs::after { display: none; } /* skip glow on small screens */
}
