﻿/* ============================================================================
   Funnel-Specific Styles
   ============================================================================ */

.funnel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  justify-content: space-between;
  overflow: hidden;
}

/* Top Header */
.funnel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  margin-bottom: 16px;
}

.back-btn {
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 12px;
  height: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text);
}

.back-btn--disabled {
  opacity: 0.5;
  pointer-events: none;
}

.back-btn-spacer {
  width: 70px;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.brand-logo__text {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

/* Progress Bar */
.funnel__progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  padding: 0px 8px 6px 8px;
  position: relative;
  z-index: 2;
}

.progress-bar {
  position: relative;
  height: 6px;
  background: rgba(83, 109, 254, 0.15);
  border-radius: 999px;
  overflow: visible;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.progress-bar__dots {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
}

.progress-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: var(--color-background);
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 1px rgba(83, 109, 254, 0.15);
}

.progress-dot--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(83, 109, 254, 0.35);
}

/* Step Container */
.funnel__content {
  transition: opacity 0.2s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  padding: 0 24px calc(12px + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: fadeInUp 0.3s ease;
  height: 100%;
}

.step__header {
  flex-shrink: 0;
}

.step__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4px;
  min-height: 0;
}

/* Multi-select styling */
.step--multi-select .step__body {
  justify-content: flex-start;
  /* Override default flex-end */
}

/* Image Choice Step (Age Selection) - Reduced gap for more button space */
.step--image-choice {
  gap: 12px;
}

.step--image-choice .options--image {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.step--image-choice .option--image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: #fff;
  border: 2px solid var(--color-border, #e5e7eb);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 100px;
}

.step--image-choice .option--image:hover {
  border-color: var(--color-primary, #536dfe);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(83, 109, 254, 0.15);
}

.step--image-choice .option__image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 8px;
}

.step--image-choice .option__label {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text, #111322);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Typography */
.step__section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 12px 0;
  text-align: center;
}

.step__headline {
  margin: 0 0 12px;
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  text-align: center;
}

.step__subheadline {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.4;
  text-align: center;
}

.step__hero-image {
  width: 100% !important;
  max-width: 320px !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 auto 24px !important;
  display: block !important;
}

.step__body-text {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
  text-align: center;
}

/* Options Container */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options--emoji {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.options--image {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ============================================================================
   UNIFIED RESPONSIVE SCALING (Height-based)
   Prioritizes "First Step" (Age/Image Choice) fixes and prevents overlap.
   ============================================================================ */

/* Age Step Specifics: Moderate Reduction for < 896px */
@media screen and (max-height: 896px) {

  /* Scale down hero image significantly to allow buttons to breathe */
  .step--image-choice .step__hero-image {
    max-width: 200px !important;
    margin-bottom: 8px !important;
  }

  /* Keep buttons readable (Zoom 0.95 is better than 0.9) */
  .step--image-choice .options--image {
    zoom: 0.95;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Age Step Specifics: Aggressive Reduction for < 750px */
@media screen and (max-height: 750px) {

  /* Further reduce image on very short screens */
  .step--image-choice .step__hero-image {
    max-width: 160px !important;
  }

  /* Keep buttons decent (Zoom 0.9) */
  .step--image-choice .options--image {
    zoom: 0.9;
  }
}

/* Guardrail 1: Short Screens (< 800px) - General + Age Step Image Override */
@media screen and (max-height: 800px) {

  /* General Scaling */
  .step__hero-image {
    max-width: 260px !important;
    /* 320 -> 260 */
    margin-bottom: 16px !important;
  }

  .step {
    gap: 16px;
  }

  .options--emoji {
    margin-bottom: 20px;
    gap: 8px;
  }

  .step__headline {
    font-size: 26px;
    margin-bottom: 8px;
  }

  /* Age Step Further Reduction to ensure specificity wins */
  .step--image-choice .step__hero-image {
    max-width: 170px !important;
  }
}

/* Guardrail 2: Very Short Screens (< 680px) - Aggressive */
@media screen and (max-height: 680px) {

  /* General */
  .step__hero-image {
    max-width: 200px !important;
    margin-bottom: 12px !important;
  }

  .step__headline {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .step {
    gap: 12px;
  }

  /* Age Step Aggressive */
  .step--image-choice .step__hero-image {
    max-width: 180px !important;
  }
}

/* Multi-select styling */
.step--multi-select .step__body {
  justify-content: flex-start;
  /* Override default flex-end */
}

.options--multi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  /* Center vertically in the space above the CTA */
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
}

@media (min-width: 768px) {
  .options--multi {
    grid-template-columns: 1fr;
    /* Stacked list on desktop */
    max-width: 420px;
    /* Constrain width for better readability */
    margin-left: auto;
    margin-right: auto;
  }
}

/* Specific compact styling for multi-select checkboxes */
.option.option--checkbox {
  padding: 10px 12px;
  min-height: 48px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.option.option--checkbox .option__emoji {
  font-size: 20px;
  /* Smaller emoji */
}

/* Option Buttons */
.option {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
  font-size: 16px;
  text-align: left;
}

.option:hover {
  border-color: var(--color-accent);
  background: rgba(74, 222, 128, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(74, 222, 128, 0.2);
}

.option:active {
  transform: translateY(0);
}

.option--selected {
  border-color: var(--color-accent);
  background: rgba(74, 222, 128, 0.14);
}

.option__emoji {
  font-size: 28px;
  flex-shrink: 0;
}

.option__content {
  flex: 1;
}

.option__label {
  font-weight: 600;
  color: var(--color-text);
}

.option__description {
  font-size: 14px;
  color: var(--color-text);
  margin-top: 4px;
}

/* Emoji Choice Variant */
.option--emoji {
  min-height: 120px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.option__emoji-large {
  font-size: 48px;
  line-height: 1;
}

.option--emoji .option__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
}

@media (max-width: 360px) {
  .options--emoji {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px;
  }
}

.option--thin {
  padding: 12px 16px;
  border-radius: 14px;
}

.option__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(83, 109, 254, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* Image Choice Variant */
.option--image {
  flex-direction: column;
  text-align: center;
  padding: 16px;
  gap: 12px;
}

.option__image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
}

.option--image .option__label {
  font-size: 14px;
  font-weight: 600;
}

/* Checkbox Variant */
.option--checkbox {
  position: relative;
}

.option__check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.option--checkbox.option--selected .option__check {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.option--checkbox.option--selected .option__check::after {
  content: 'âœ“';
  color: white;
  font-size: 14px;
  font-weight: 700;
}

/* Info Card */
.info-card {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.6) 0%, rgba(240, 253, 244, 0.6) 100%);
  border: 1px solid rgba(83, 109, 254, 0.12);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
}

.info-card__stat-container {
  margin: 32px auto 0;
}

.info-card__stat {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.4;
  padding: 20px 24px;
  background: rgba(83, 109, 254, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(83, 109, 254, 0.1);
  position: relative;
}

.info-card__stat::before,
.info-card__stat::after {
  position: absolute;
  font-size: 36px;
  color: rgba(83, 109, 254, 0.35);
  font-style: normal;
}


.info-card__stat::before {
  content: "";
  top: 6px;
  left: 12px;
}

.info-card__stat::after {
  content: "";
  bottom: 6px;
  right: 12px;
}

.info-card__hook {
  font-size: 16px;
  color: var(--color-text);
  margin: 12px 0 24px;
  text-align: center;
}

.avatar-cloud {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 40px auto 0;
  height: 360px;
}

.avatar-cloud__item {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(calc(-50% + var(--avatar-offset-x, 0px)), calc(-50% + var(--avatar-offset-y, 0px)));
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 28px rgba(15, 23, 42, 0.2);
  background: #fff;
  animation: floatAvatar 7s ease-in-out infinite;
  animation-delay: calc(var(--avatar-offset-x) * 0.009s);
}

.avatar-cloud__item--lg {
  width: 120px;
  height: 120px;
}

.avatar-cloud__item--lg-boost {
  width: 144px;
  height: 144px;
}

.avatar-cloud__item--md {
  width: 100px;
  height: 100px;
}

.avatar-cloud__item--sm {
  width: 84px;
  height: 84px;
}

.avatar-cloud__item--xs {
  width: 64px;
  height: 64px;
}

.avatar-cloud__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes floatAvatar {

  0%,
  100% {
    transform: translate(calc(-50% + var(--avatar-offset-x, 0px)), calc(-50% + var(--avatar-offset-y, 0px)));
  }

  50% {
    transform: translate(calc(-50% + var(--avatar-offset-x, 0px)), calc(-50% + var(--avatar-offset-y, 0px) - 6px));
  }
}

/* Static Avatar Cloud */
.avatar-cloud-static-container {
  width: 100%;
  max-width: 320px;
  /* Constrained width */
  margin: 10px auto 0;
  position: relative;
}

.avatar-cloud-static {
  width: 100%;
  height: auto;
  display: block;
  animation: subtleFloat 6s ease-in-out infinite;
}

@keyframes subtleFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Feedback Card */
.feedback-card {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.06) 0%, rgba(83, 109, 254, 0.06) 100%);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: var(--radius-md);
  padding: 32px 24px;
}

/* Targeted Fix for 1080p / Shorter Screens - REMOVED (Replaced by global zoom) */
/* @media (max-height: 1000px) { ... } */

.feedback-card__headline {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-text);
}

.feedback-card__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 16px 0 0;
}

.feedback-card--inline {
  margin: 24px 0 0;
  text-align: center;
}

.emoji-feedback {
  opacity: 0;
  transition: opacity 0.4s ease;
  margin: 48px auto 0;
  max-width: 420px;
}

.feedback-card--inline .feedback-card__headline,
.feedback-card--inline .feedback-card__body {
  opacity: 0;
  animation: typeIn 0.6s ease forwards;
}

.feedback-card--inline .feedback-card__body {
  animation-delay: 0.3s;
}

@keyframes typeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Checkpoint */
.checkpoint {
  text-align: center;
}

.checkpoint__body {
  font-size: 16px;
  color: black;
  /* Changed from var(--color-muted) to black */
  margin: 12px 0 24px;
}

/* Ensure Step 13 CTA is pushed to the bottom */
.step--checkpoint {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.step--checkpoint .step__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Push content to bottom */
}

/* Ensure the main content stays at the top but CTA goes down */
.step--checkpoint .checkpoint {
  flex: 1;
  /* This takes up space, pushing CTA down... wait, step__body contains the button. */
  /* If step__body wraps content + button, we need to separate them. */
  /* Looking at renderer: step has .checkpoint THEN .step__body containing ONLY button? No. */
  /* Renderer structure: 
     <div class="step step--checkpoint">
       <div class="checkpoint">...content...</div>
       <button ...>...</button>
     </div>
  */
  /* The button is a direct child of .step--checkpoint in the renderer code shown in step 612. */
  /* So .step--checkpoint is the flex container. */
}

/* Correcting based on renderer structure inspection */
.step--checkpoint {
  display: flex;
  /* Already likely flex column from .step */
  flex-direction: column;
  justify-content: space-between;
  /* Push CTA to bottom */
  height: 100%;
}

.step--checkpoint .checkpoint {
  flex: 1;
  /* Allow content to take available space */
  display: flex;
  flex-direction: column;
  /* justify-content: center; Optional: center content vertically? User said "move CTA to bottom bottom", implying content might seek own position. Default top is fine. */
}

.checkpoint__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.checkpoint__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(74, 222, 128, 0.08);
  border-radius: var(--radius-md);
  animation: slideInLeft 0.4s ease;
}

.checkpoint__item:nth-child(2) {
  animation-delay: 0.1s;
}

.checkpoint__item:nth-child(3) {
  animation-delay: 0.2s;
}

.checkpoint__item:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.checkpoint__check {
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.checkpoint__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

.checkpoint__teaser {
  font-size: 14px;
  color: var(--color-muted);
  margin: 16px 0 0;
  font-style: italic;
}

/* Completion */
.completion {
  text-align: center;
  padding: 32px 0;
}

.completion__icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.completion__title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
}

.completion__body {
  font-size: 16px;
  color: var(--color-muted);
  margin: 0 0 32px;
}

/* Placeholder */
.placeholder {
  background: rgba(251, 191, 36, 0.1);
  border: 2px dashed rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
}

.placeholder h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.placeholder p {
  margin: 8px 0;
  color: var(--color-muted);
}

.placeholder code {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.placeholder__note {
  font-style: italic;
  margin-top: 16px !important;
}

/* Responsive Layout Tweaks */
@media (max-width: 600px) {
  .funnel__content {
    padding: 0 20px 0;
  }

  .step {
    gap: 24px;
  }

  .step__body {
    padding-bottom: 0;
  }

  .step__headline {
    font-size: 24px;
  }

  /* 2x2 Grid Variant */
  .step.grid-2x2 .options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .step.grid-2x2 .option {
    flex-direction: column;
    text-align: center;
    padding: 20px 12px;
    justify-content: center;
    height: 100%;
  }

  .step.grid-2x2 .option .option__emoji {
    font-size: 32px;
    margin-bottom: 8px;
  }

  .option--emoji {
    min-height: 90px;
    padding: 10px;
  }

  .option__emoji-large {
    font-size: 36px;
  }

  .option--emoji .option__label {
    font-size: 12px;
  }

  /* Reduce gaps */
  .emoji-feedback {
    margin-top: 16px;
  }

  /* Compact Feedback Card */
  .feedback-card {
    padding: 16px;
  }

  .feedback-card__headline {
    font-size: 16px;
    margin: 0 0 8px;
  }

  .feedback-card__body {
    font-size: 13px;
    margin: 8px 0 0;
    line-height: 1.4;
  }

  /* Simplified Avatar Cloud */
  .avatar-cloud {
    height: 220px;
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .avatar-cloud__item {
    transform: translate(calc(-50% + var(--avatar-offset-x, 0px) * 0.5), calc(-50% + var(--avatar-offset-y, 0px) * 0.5)) scale(0.6);
    animation: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  }

  /* Tighter Info Card */
  .info-card__stat {
    font-size: 16px;
    padding: 12px;
  }

  .options--multi {
    grid-template-columns: 1fr;
  }

  .option {
    width: 100%;
  }
}

/* Base Responsive */
@media (max-width: 360px) {
  .options--emoji {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (min-width: 900px) {
  .step {
    gap: 32px;
  }

  .info-card,
  .feedback-card {
    padding: 40px 32px;
  }

  /* Compact Emoji Options for Mobile */
  .options--emoji {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }
}

/* 2x2 Grid Variant */
.step.grid-2x2 .options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.step.grid-2x2 .option {
  flex-direction: column;
  text-align: center;
  padding: 20px 12px;
  justify-content: center;
  height: 100%;
}

.step.grid-2x2 .option .option__emoji {
  font-size: 32px;
  margin-bottom: 8px;
}

/* Authority Screen / Expertise Triangle */
.step--authority {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.step--authority .step__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* Pushes content apart */
}

/* Ensure content is centered vertically in the top space */
.expertise-triangle-container {
  margin: auto;
  /* Vertically center the triangle in the available space */
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1 / 1;
}

.expertise-explanation {
  margin-bottom: auto;
  /* Push it up if needed, or remove if empty */
  display: none;
  /* Hide since user wanted to remove the text "just above it" */
}

.expertise-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  z-index: 30;
  /* Highest layer */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
  background-color: white;
  /* Fallback */
  object-fit: cover;
}

.expertise-triangle {
  position: relative;
  width: 100%;
  height: 100%;
}

.expertise-circle {
  position: absolute;
  width: 58%;
  height: 58%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
  transition: transform 0.4s ease;
  animation: float 6s ease-in-out infinite;
  mix-blend-mode: multiply;
  /* Better overlap */
}

.expertise-circle--top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.7), rgba(139, 92, 246, 0.6));
  z-index: 10;
}

.expertise-circle--left {
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 30% 30%, rgba(147, 197, 253, 0.7), rgba(59, 130, 246, 0.6));
  z-index: 9;
  animation-delay: -2s;
}

.expertise-circle--right {
  bottom: 0;
  right: 0;
  background: radial-gradient(circle at 30% 30%, rgba(165, 180, 252, 0.7), rgba(99, 102, 241, 0.6));
  z-index: 9;
  animation-delay: -4s;
}

.expertise-circle__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.expertise-circle__icon {
  font-size: 42px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.expertise-circle__label {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.expertise-explanation {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 32px;
  font-size: 18px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatTop {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

.expertise-circle--top {
  animation-name: floatTop;
}

.step--authority .btn {
  width: 100%;
}

/* Specific sizing for Step 25 (Topic Selection) - Horizontal 2x2 Grid */
.step[data-step="25"] .options {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-bottom: 24px !important;
}

.step[data-step="25"] .option {
  flex-direction: row !important;
  /* Horizontal layout */
  text-align: left !important;
  padding: 10px 12px !important;
  margin-bottom: 0 !important;
  height: auto !important;
  min-height: 54px !important;
  /* Compact height */
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  /* Let grid handle width */
}

.step[data-step="25"] .option__check {
  display: none !important;
}

/* Enhancing selected state for grid */
.step[data-step="25"] .option.option--selected {
  background-color: rgba(99, 102, 241, 0.15);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.step[data-step="25"] .option__emoji {
  font-size: 20px !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.step[data-step="25"] .option__label {
  font-size: 13px !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.step[data-step="25"] .step__header {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.step[data-step="25"] .step__headline {
  font-size: 20px !important;
  margin-bottom: 4px !important;
}

.step[data-step="25"] .step__subheadline {
  font-size: 13px !important;
  margin-bottom: 8px !important;
}

.step[data-step="25"] {
  justify-content: flex-start !important;
  padding-top: 0 !important;
}

.step[data-step="25"] .step__body {
  justify-content: flex-start !important;
  padding-bottom: 0px !important;
  margin-top: 0 !important;
}

/* Checkpoint Screen Image */
.checkpoint__image {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 8px auto;
  display: block;
  object-fit: contain;
}

/* Reduced Spacing for Checkpoint on Mobile causing scroll (< 932px) */
@media screen and (max-height: 932px) {
  .step--checkpoint .step__headline {
    margin-bottom: 4px !important;
  }

  .step--checkpoint .checkpoint__body {
    margin-bottom: 8px !important;
  }

  .step--checkpoint .checkpoint__image {
    margin: 4px auto !important;
    /* Force tight margin */
    padding: 0 !important;
  }

  .step--checkpoint .checkpoint {
    gap: 8px !important;
    /* Reduce gap */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Reduce top padding of the step container itself if needed */
  .step--checkpoint .step__header {
    margin-bottom: 0 !important;
  }
}

/* Checkpoint Item Reveal Animation */
.checkpoint__item {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.checkpoint__item--hidden {
  opacity: 0 !important;
  transform: translateY(10px);
}

.checkpoint__item--visible {
  opacity: 1 !important;
  transform: translateY(0);
}

/* Book Pair Selection */
.step--book-pair .book-pair-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  width: 100%;
}

.book-pair-option {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.book-pair-option:active {
  transform: scale(0.96);
}

.book-pair-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  /* Book ratio */
}

.book-pair-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-pair-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.book-pair-option.option--selected .book-pair-overlay {
  opacity: 1;
}

.book-pair-check {
  color: white;
  font-size: 32px;
  font-weight: bold;
  background: var(--primary-color);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 400px) {
  .step--book-pair .book-pair-options {
    gap: 12px;
  }
}

/* Book Pair Carousel Progress */
.book-pair-progress {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary, #888);
  margin-bottom: 16px;
}

.book-pair-options {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Loading Screen */
.step--loading {
  text-align: center;
}

.checkpoint-continue {
  opacity: 0;
  transition: opacity 0.4s ease;
  margin-top: auto;
  width: 100%;
}

.checkpoint-continue--visible {
  opacity: 1;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Circular Progress Spinner */
.circular-progress {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 8px;
}

.circular-progress__svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.circular-progress__bg {
  fill: none;
  stroke: rgba(74, 222, 128, 0.15);
  stroke-width: 8;
}

.circular-progress__circle {
  fill: none;
  stroke: var(--primary-color, #4ade80);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s ease;
}

.circular-progress__percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark, #222);
}

.loading-continue {
  opacity: 0;
  transition: opacity 0.4s ease;
  margin-top: auto;
  width: 100%;
}

.loading-continue--visible {
  opacity: 1;
}

.loading__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.loading__item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.loading__item--visible {
  opacity: 1;
  transform: translateX(0);
}

.loading__check {
  color: var(--primary-color, #4ade80);
  font-size: 14px;
  font-weight: bold;
}

.loading__label {
  color: var(--text-dark, #222);
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  line-height: 1.3;
}

/* Learning Loop Triangle */
.learning-loop {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
  margin-top: 16px;
}

.learning-loop--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.learning-loop__title {
  color: var(--text-dark, #222);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.learning-loop__triangle {
  position: relative;
  width: 220px;
  height: 180px;
  margin: 0 auto;
}

.learning-loop__svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Arrow lines */
.learning-loop__arrow {
  stroke: var(--primary-color, #4ade80);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
}

.learning-loop--visible .learning-loop__arrow--1 {
  animation: arrowDraw 0.5s ease 0.3s forwards, arrowPulse 0.4s ease 0.8s;
}

.learning-loop--visible .learning-loop__arrow--2 {
  animation: arrowDraw 0.5s ease 1.0s forwards, arrowPulse 0.4s ease 1.5s;
}

.learning-loop--visible .learning-loop__arrow--3 {
  animation: arrowDraw 0.5s ease 1.7s forwards, arrowPulse 0.4s ease 2.2s;
}

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

@keyframes arrowPulse {

  0%,
  100% {
    stroke-width: 3;
    filter: drop-shadow(0 0 0 rgba(74, 222, 128, 0));
  }

  50% {
    stroke-width: 5;
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.8));
  }
}

.learning-loop__node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.learning-loop__node--top {
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.learning-loop__node--left {
  bottom: -10px;
  left: -5px;
}

.learning-loop__node--right {
  bottom: -10px;
  right: -5px;
}

.learning-loop__number {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark, #222);
  background: var(--primary-color, #4ade80);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

/* Sequential glow animation on nodes */
.learning-loop--visible .learning-loop__node--anim-1 .learning-loop__number {
  animation: nodeGlow 0.6s ease 0.5s;
}

.learning-loop--visible .learning-loop__node--anim-2 .learning-loop__number {
  animation: nodeGlow 0.6s ease 1.2s;
}

.learning-loop--visible .learning-loop__node--anim-3 .learning-loop__number {
  animation: nodeGlow 0.6s ease 1.9s;
}

@keyframes nodeGlow {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 24px rgba(74, 222, 128, 0.8), 0 0 48px rgba(74, 222, 128, 0.4);
    transform: scale(1.15);
  }
}

.learning-loop__text {
  color: var(--text-dark, #222);
  font-size: 12px;
  font-weight: 600;
}

.learning-loop__subheading {
  color: var(--text-secondary, #666);
  font-size: 13px;
  margin-top: 16px;
  font-style: italic;
}

/* Social Proof Map Screen */
.step--social-proof {
  justify-content: space-between;
}

.social-proof__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 200px;
}

.social-proof__map-container {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.social-proof__map {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.social-proof__tooltip {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark, #222);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: floatTooltip 3s ease-in-out infinite;
  z-index: 10;
}

.social-proof__diamond {
  color: #3b82f6;
  font-size: 12px;
}

@keyframes floatTooltip {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -6px);
  }
}

.step__footer-content {
  margin-top: auto;
  text-align: center;
  padding-top: 24px;
}

.step__headline--social {
  margin-bottom: 8px;
  font-size: 24px;
}

.step__subheadline--social {
  margin-bottom: 24px;
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

.social-proof-continue {
  width: 100%;
}

/* Value Screen */
.step--value .step__body {
  justify-content: flex-start;
}

.value-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0;
}

.value-feature {
  display: grid;
  grid-template-columns: 24px 60px 1fr;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  position: relative;
  padding-bottom: 24px;
}

.value-feature:last-child {
  padding-bottom: 0;
}

.value-feature__number {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark, #222);
  margin-top: 14px;
  text-align: center;
}

.value-feature__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 100%;
}

.value-feature__icon {
  font-size: 24px;
  background: linear-gradient(135deg, #a5b4fc 0%, #6ee7b7 100%);
  /* Periwinkle to Mint */
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.value-feature__line {
  width: 2px;
  flex-grow: 1;
  background-image: linear-gradient(to bottom, #cbd5e1 33%, rgba(255, 255, 255, 0) 0%);
  background-position: center;
  background-size: 2px 6px;
  background-repeat: repeat-y;
  margin-top: 4px;
  margin-bottom: 4px;
  min-height: 20px;
}

.value-feature__content {
  padding-top: 4px;
}

.value-feature__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-dark, #222);
  line-height: 1.3;
}

.value-feature__desc {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

.value-note {
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
  margin-top: auto;
  margin-bottom: 24px;
  text-align: center;
}

/* Timeline Screen */
/* Timeline Screen */
.step--timeline .step__body {
  justify-content: flex-start;
  padding-top: 20px;
}

.step--timeline .btn {
  margin-top: auto;
  width: 100%;
}

.timeline {
  position: relative;
  margin: 10px 0 32px;
  padding-left: 10px;
}

.timeline__line {
  position: absolute;
  top: 10px;
  bottom: 0px;
  left: 19px;
  width: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.timeline__item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 32px;
  text-align: left;
  z-index: 1;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: 4px;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline__item--active .timeline__dot,
.timeline__item--future .timeline__dot {
  border-color: #a5b4fc;
  background: #a5b4fc;
  /* Fallback */
  background: linear-gradient(135deg, #a5b4fc 0%, #6ee7b7 100%);
  box-shadow: 0 0 0 4px rgba(165, 180, 252, 0.2);
  border: none;
}

.timeline__item--upcoming .timeline__dot {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.timeline__period {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  margin-bottom: 6px;
  margin-top: 6px;
  background: linear-gradient(135deg, #a5b4fc 0%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.timeline__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline__list li {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-dark);
  font-weight: 500;
}

/* Price Comparison Screen */
.step--price-compare .step__body {
  justify-content: flex-start;
}

.price-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 220px;
  margin: 24px 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.price-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30%;
  position: relative;
  height: 100%;
  justify-content: flex-end;
}

.price-bar__visual {
  width: 100%;
  background: #cbd5e1;
  border-radius: 8px 8px 0 0;
  position: relative;
  min-height: 40px;
  transition: height 1s ease;
  display: flex;
  justify-content: center;
}

.price-bar--highlight .price-bar__visual {
  background: linear-gradient(135deg, #a5b4fc 0%, #6ee7b7 100%);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 12px rgba(165, 180, 252, 0.3);
}

.price-bar__value {
  position: absolute;
  top: -28px;
  font-weight: 800;
  font-size: 16px;
  background: linear-gradient(135deg, #a5b4fc 0%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-bar--highlight .price-bar__value {
  font-size: 20px;
  top: -32px;
}

.price-bar__label {
  position: absolute;
  bottom: -40px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  width: 100%;
  line-height: 1.2;
}

.price-features ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 0 auto;
  width: fit-content;
}

.price-features li {
  margin-bottom: 8px;
  font-size: 15px;
}

.price-disclaimer {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin: 32px 0 24px;
  /* Increased top margin */
  line-height: 1.5;
  padding: 0 16px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.price-trial-note {
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: auto;
  margin-bottom: 16px;
  text-align: center;
  width: 100%;
}

/* Email Capture Screen */
.step--email-capture .step__body {
  justify-content: center;
}

.form-group {
  margin-bottom: 16px;
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-color);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #94a3b8;
  font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  padding: 0 12px;
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn--auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #333;
  border-color: #cbd5e1;
  background: white;
  transition: all 0.2s ease;
}

.btn--social-apple {
  background: black;
  color: white;
  border-color: black;
}

.btn--social-apple:hover {
  background: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn--social-google {
  background: white;
  color: #333;
  border-color: #cbd5e1;
}

.btn--social-google:hover {
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.store-badge-app {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.store-badge-google {
  height: 66px;
  width: auto;
  object-fit: contain;
}

.email-footer,
.email-privacy {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  margin-top: 8px;
}

.btn--full {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

.compatibility-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 8px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.compatibility-icons {
  display: flex;
  gap: 12px;
  color: #64748b;
}

.trust-elements {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.trust-badge {
  font-size: 13px;
  color: #059669;
  /* Green text */
  background: #ecfdf5;
  /* Light green bg */
  border: 1px solid #a7f3d0;
  /* Subtle green border */
  padding: 8px 16px;
  border-radius: 99px;
  /* Pill shape */
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.payment-icons {
  display: flex;
  gap: 8px;
  opacity: 0.8;
}

/* Value Comparison Screen */
.step--value-comparison .step__body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.comparison-card {
  display: flex;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-top: 24px;
}

.comparison-half {
  flex: 1;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.comparison-half--left {
  background: #f1f5f9;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  /* Darker Gray */
}

.comparison-half--right {
  background: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  /* White/Off-white */
}

.comparison-visual {
  position: relative;
  height: 120px;
  /* Increased from 80px */
  width: 120px;
  /* Increased from 80px */
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cloud-icon,
.brain-icon {
  font-size: 48px;
}

.cloud-face,
.brain-face {
  position: absolute;
  font-size: 24px;
  bottom: 0;
  right: 0;
}

.comparison-text h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #1e293b;
}

.comparison-text p {
  font-size: 14px;
  color: #64748b;
  margin: 4px 0 0;
}

.comparison-divider {
  width: 1px;
  background: #e2e8f0;
}

.social-proof-ticker {
  margin-top: 32px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
}

.social-proof-headline {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin-bottom: 12px;
}

.ticker-window {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ticker-track {
  display: flex;
  gap: 16px;
  animation: scrollTicker 20s linear infinite;
  width: max-content;
}

.ticker-item {
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ticker-name {
  font-weight: 600;
  color: #333;
}

.ticker-action {
  color: #64748b;
}

@keyframes scrollTicker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Full Width Paywall Overrides */
body.is-paywall {
  padding: 0 !important;
  background: #f8f8fb;
  /* Match App BG */
}

body.is-paywall #funnel-app {
  max-width: 100% !important;
}

body.is-paywall .app-stage {
  padding: 0 !important;
  max-width: 100% !important;
  zoom: 1 !important;
}

body.is-paywall .funnel__content {
  padding: 0 !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh;
  padding-bottom: 60px !important;
}

.step--paywall {
  overflow: visible !important;
  height: auto !important;
}

.paywall-cards-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Tiny gap */
  width: 94%;
  max-width: 480px;
  margin: 65px auto 32px;
}

.paywall-cards-container .paywall-content-wrapper {
  margin: 0 !important;
  width: 100% !important;
}

/* Sticky Header */
.paywall-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 8px 20px 2px 20px;
  /* Reduced bottom padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  border-bottom: 1px solid #f1f5f9;
}

.paywall-timer {
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

#paywall-countdown {
  color: #ef4444;
  font-weight: 700;
  font-family: monospace;
  font-size: 14px;
}

.paywall-mini-cta {
  padding: 8px 16px !important;
  font-size: 14px !important;
  height: 36px;
  min-height: 0 !important;
  width: auto !important;
}

/* Paywall Content Wrapper (Card Style) */
.paywall-content-wrapper {
  width: 94%;
  /* Ensure flexible width on small screens */
  max-width: 480px;
  /* Slightly reduced max width */
  margin: 0 auto;
  /* Halved visible gap (approx header height) */
  /* Tightest gap as requested */
  background: white;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* First card needs to clear the fixed header */
.paywall-hero-card {
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 24px;
  /* Fully rounded */
}

/* Hero Section override */
/* Hero Section override */
.paywall-section {
  padding: 8px 20px 12px;
  /* Reduced bottom padding to show peek of next card */
  background: white;
}

/* Remove duplicate sticky header rule that was here */

.paywall-header .step__headline {
  margin-top: 0;
  /* Remove default top margin */
  padding-top: 4px;
}

.paywall-hero {
  text-align: center;
}

.paywall-features-card {
  background: #e6f7ef;
  border: 1px solid #c6e9d8;
  padding: 24px 20px;
  text-align: left;
  margin: 0 !important;
  border-radius: 24px;
  /* Fully rounded */
}

.features-headline {
  font-size: 22px;
  /* Match "Choose your plan" */
  font-weight: 700;
  color: #000000;
  /* Black text */
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
}

/* FAQ Section */
.paywall-faq-card {
  background: #fef3e6;
  /* Peach/beige background */
  border: 1px solid #fde5c9;
  padding: 24px 20px;
  text-align: left;
  margin: 0 !important;
  border-radius: 24px;
}

.faq-headline {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f5e6d3;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.faq-question:hover {
  background: #fafafa;
}

.faq-question-text {
  flex: 1;
  padding-right: 12px;
}

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: #64748b;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
  padding: 0 16px 16px;
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.faq-item--open .faq-answer {
  max-height: 300px;
}

/* Reviews/Social Proof Section */
.paywall-reviews-card {
  background: #e8e8f8;
  /* Periwinkle background */
  border: 1px solid #d1d1f0;
  padding: 24px 20px;
  text-align: center;
  margin: 0 !important;
  border-radius: 24px;
}

.reviews-headline {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
  line-height: 1.3;
}

.reviews-subheadline {
  font-size: 14px;
  color: #475569;
  margin-bottom: 20px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  border: 1px solid #e8e8f0;
}

.review-stars {
  color: #f59e0b;
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 12px;
}

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

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

.review-handle {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* Dark Footer Section */
.paywall-footer-card {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 24px 20px;
  text-align: center;
  margin: 0 !important;
  border-radius: 24px;
}

.footer-headline {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* Dark Plan Cards */
.plan-card--dark {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #ffffff;
}

.plan-card--selected-dark {
  border-color: #10b981 !important;
  background: #334155 !important;
}

.plan-card--selected-dark .plan-radio--dark {
  border-color: #10b981 !important;
  background: #10b981 !important;
}

.plan-radio--dark {
  border-color: #64748b !important;
  background: transparent !important;
}

.plan-name--dark {
  color: #ffffff !important;
}

.plan-tag--dark {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
}

.plan-original-price--dark {
  color: #94a3b8 !important;
}

.plan-total-price--dark {
  color: #ffffff !important;
}

.plan-daily-currency--dark,
.plan-daily-amount--dark {
  color: #ffffff !important;
}

.plan-daily-period--dark {
  color: #94a3b8 !important;
}

.plan-badge-strip--dark {
  background: linear-gradient(90deg, #10b981, #059669) !important;
  color: #ffffff !important;
}

.btn--paywall-cta-dark {
  background: linear-gradient(135deg, #10b981, #059669);
}

.btn--paywall-cta-dark:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.trust-elements--dark {
  justify-content: center;
}

/* Trust badge uses same styling as light mode */

.paywall-terms--dark {
  color: #94a3b8;
}

.money-back-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 500;
  color: #10b981;
}

.money-back-guarantee svg {
  fill: #10b981;
}

.guarantee-subtext {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 8px;
}

/* Guarantee Modal */
.guarantee-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.guarantee-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.guarantee-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.guarantee-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  margin: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.guarantee-modal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.guarantee-modal-content p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
}

.guarantee-modal-content p:last-child {
  margin-bottom: 0;
}

.guarantee-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guarantee-modal-close:hover {
  background: #e2e8f0;
}

/* Completion Screen */
.step--completion {
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  background: #ffffff;
  overflow: hidden;
}

.completion-logo {
  height: 28px;
  width: auto;
  margin-top: 12px;
  margin-bottom: 12px;
}

.completion-container .form-input {
  padding: 12px 14px;
  font-size: 14px;
}

.completion-container .btn--primary {
  padding: 12px 20px;
  font-size: 14px;
}

.completion-container .btn--auth {
  padding: 10px 16px;
  font-size: 13px;
}

.completion-container {
  text-align: center;
  max-width: 400px;
}

.completion-image {
  width: 180px;
  height: auto;
  margin-bottom: 12px;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.completion-headline {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

/* Registration Form on Completion Screen */
.registration-form {
  width: 100%;
  margin-top: 20px;
}

.registration-form .form-group {
  margin-bottom: 12px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.form-input--readonly {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.completion-container .auth-divider {
  margin: 14px 0;
}

.completion-container .auth-buttons {
  width: 100%;
}

.completion-container .btn--social-google {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.completion-body {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Thank You Screen */
.step--thank-you {
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  background: #ffffff;
  overflow: hidden;
}

.thank-you-container {
  text-align: center;
  max-width: 400px;
  padding: 40px 20px;
}

.thank-you-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.thank-you-headline {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.thank-you-body {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
}

.thank-you-subtext {
  font-size: 14px;
  color: #94a3b8;
  font-style: italic;
}

.app-store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.app-store-btn--ios {
  background: #000000;
  color: #ffffff;
}

.app-store-btn--android {
  background: #1e293b;
  color: #ffffff;
}

.app-store-btn svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  flex-shrink: 0;
}

.app-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-store-label {
  font-size: 11px;
  opacity: 0.8;
}

.app-store-name {
  font-size: 18px;
  font-weight: 600;
}

.paywall-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #000000;
  /* Black text */
  /* Darker green text */
  line-height: 1.5;
  font-weight: 400;
  /* Regular weight */
}

.benefit-icon {
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
  color: #10b981;
  /* Primary green icon if useful, but emoji handles itself */
}

.plan-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 12px;
  /* Reduced bottom margin to 12px */
}

.plan-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-card--selected {
  border: 2px solid #536dfe;
  background: #eef2ff;
}

.plan-card--popular {
  border-color: #536dfe;
  /* Highlight border for popular even if not selected initially? Screenshot shows blue top border or all blue */
}

/* Specific styling for 3 Months (Middle) card based on screenshot:
   It has a blue header "MOST POPULAR" */
.plan-card[data-id="3_months"] {
  /* Custom styling if we want exact screenshot match with header strip */
  margin-top: 10px;
  /* Space for the badge if absolute */
}

.plan-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
}

.plan-card--selected .plan-radio {
  border-color: #536dfe;
}

.plan-card--selected .plan-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #536dfe;
  border-radius: 50%;
}

/* New Split Layout Plan Card */
.plan-card {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  min-height: 80px;
}

.plan-content-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.plan-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  /* Force left alignment */
  text-align: left;
}

/* Removed plan-header-row as it's no longer used/needed for flex alignment */
.plan-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

.plan-tag-wrapper {
  margin-bottom: 2px;
}

.plan-tag {
  background: #536dfe;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  /* Ensure proper sizing */
}

.plan-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.plan-original-price {
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  /* Red strikeout line */
  text-decoration-thickness: 1.5px;
  /* Optional: Make it slightly visible */
  color: #94a3b8;
}

.plan-total-price {
  color: #1e293b;
  font-weight: 600;
}

/* Right Side - Daily Emphasis */
.plan-content-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-left: 16px;
}

/* Main container is now Flex Row */
.plan-daily-container {
  display: flex;
  align-items: flex-start;
  /* Align £ with top of numbers or baseline */
  gap: 2px;
  text-align: right;
  justify-content: flex-end;
}

/* Currency stays on left */
.plan-daily-currency {
  font-size: 14px;
  color: #64748b;
  margin-top: 4px;
  /* Slight push to align with top of huge number */
}

/* Wrapper for stacked Number + TEXT */
.plan-daily-digit-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center "PER DAY" under digits */
}

.plan-daily-amount {
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  color: #1e293b;
}

.plan-daily-period {
  font-size: 10px;
  color: #000000;
  font-weight: 700;
  margin-top: -2px;
  /* Pull it up a bit */
  white-space: nowrap;
}

/* Badge Strip (Most Popular) */
.plan-badge-strip {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #536dfe;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  z-index: 2;
}

/* Specific styling for cards with badges */
.plan-card[data-id="3_months"],
.plan-card[data-id="12_months"] {
  margin-top: 14px;
  /* Space for top badge */
}

.plan-card[data-id="3_months"] {
  border-color: #536dfe;
  /* Keep 3 months highlighted as default selected/popular */
}

/* Legacy overrides reset */
.plan-top-row,
.plan-pricing,
.plan-breakdown,
.plan-period {
  display: none;
}

.payment-icons {
  display: flex;
  gap: 8px;
  opacity: 0.8;
}

.payment-icons img {
  height: 20px;
}

.paywall-terms {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 16px;
  line-height: 1.4;
}

.btn--paywall-cta {
  font-size: 18px;
  font-weight: 700;
  padding: 16px;
}