* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --primary-blue: #4F46E5;
  --primary-pink: #EC4899;
  --light-pink: #FDF2F8;
  --light-blue: #EEF2FF;
  --text-dark: #1F2937;
  --text-gray: #6B7280;
  --bg-white: #FFFFFF;
  --border-gray: #E5E7EB;
  --success-green: #10B981;
  --gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-pink) 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 414px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo svg {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rating {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-gray);
}

.rating .stars {
  display: flex;
  gap: 2px;
}

.rating svg {
  width: 16px;
  height: 16px;
  fill: #FFB800;
}

/* Pages */
.page {
  display: none;
  min-height: calc(100vh - 56px);
  padding: 20px 16px 120px;
  position: relative;
}

.page.active {
  display: block;
}

/* First Page */
.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

#pairCount {
  color: var(--primary-pink);
  font-weight: 800;
}

.hero p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.4;
}

.cta-button {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--bg-white);
  background: var(--gradient);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 20px 0;
}

.cta-button:active {
  transform: scale(0.98);
}

.cta-button:hover {
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* App boxes */
.app-boxes {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.app-box {
  width: 90px;
  height: 90px;
  background: #E8EDFB;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #1E3A8A;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.app-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.app-box span {
  position: relative;
  z-index: 1;
}

/* Placeholder for future images */
.app-box img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  object-fit: contain;
}

@media (max-width: 360px) {
  .app-boxes {
    gap: 12px;
  }
  
  .app-box {
    width: 80px;
    height: 80px;
    font-size: 13px;
  }
  
  .reviews-carousel {
    height: 320px;
    padding: 16px 8px;
  }
  
  .review-slide {
    padding: 16px 54px;
    gap: 12px;
  }
  
  .review-photo {
    width: 80px;
    height: 120px;
  }
  
  .review-photo-inner {
    width: 70px;
    height: 110px;
    font-size: 28px;
  }
  
  .review-text {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .review-name {
    font-size: 14px;
  }
  
  .review-location {
    font-size: 11px;
  }
  
  .review-stars svg {
    width: 12px;
    height: 12px;
  }
}

/* Benefits */
.benefits {
  display: grid;
  gap: 16px;
  margin: 32px 0;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--light-blue);
  border-radius: 12px;
}

.benefit svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.benefit-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.benefit-text p {
  font-size: 14px;
  color: var(--text-gray);
}

/* Reviews */
.reviews {
  margin: 40px 0;
  overflow: hidden;
}

.reviews-header {
  text-align: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-gray);
}

.reviews-carousel {
  position: relative;
  height: 420px; /* Significantly increased from 320px */
  background: linear-gradient(135deg, #F3F4F6 0%, #FDF2F8 50%, #EEF2FF 100%);
  border-radius: 20px;
  padding: 32px; /* Increased padding for better spacing */
  overflow: hidden;
  box-sizing: border-box;
}

/* Mobile carousel adjustments */
@media (max-width: 420px) {
  .reviews-carousel {
    height: 350px; /* Significantly increased height for mobile */
    padding: 28px; /* Increased padding */
  }
}

/* Review navigation arrows */
.review-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 20;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.review-nav:hover {
  background: var(--bg-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.review-nav:active {
  transform: translateY(-50%) scale(0.95);
  background: var(--light-pink);
}

.review-nav.prev {
  left: 8px;
}

.review-nav.next {
  right: 8px;
}

.review-nav svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-pink);
  stroke-width: 2.5;
}

/* Mobile review layout fixes - 420px and below */
@media (max-width: 420px) {
  .review-nav {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  }
  
  .review-nav.prev {
    left: 4px;
  }
  
  .review-nav.next {
    right: 4px;
  }
  
  .review-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .review-nav:active {
    transform: translateY(-50%) scale(0.9);
  }
}

@media (max-width: 480px) {
  .review-nav {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
  }
  
  .review-nav.prev {
    left: 6px;
  }
  
  .review-nav.next {
    right: 6px;
  }
  
  .review-nav svg {
    width: 20px;
    height: 20px;
  }
}

.reviews-track {
  position: relative;
  height: 100%;
  width: 100%;
}

.review-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px; /* Increased gap for bigger photo */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out;
  padding: 32px;
  box-sizing: border-box;
}

.review-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile review slide layout - keep horizontal layout with image on left */
@media (max-width: 420px) {
  .review-slide {
    flex-direction: row;
    gap: 16px;
    padding: 28px; /* Increased to match carousel padding */
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 28px;
  }
}

.review-photo {
  width: 120px;
  height: 170px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  order: -1; /* Move to left side */
}

/* Mobile photo adjustments */
@media (max-width: 420px) {
  .review-photo {
    width: 100px;
    height: 145px;
    border-radius: 18px;
    order: -1; /* Ensure left positioning on mobile */
  }
}

.review-photo::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg-white);
  border-radius: 16px;
}

.review-photo-inner {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 160px;
  border-radius: 16px;
  background: var(--light-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-pink);
}

/* Mobile photo inner adjustments */
@media (max-width: 420px) {
  .review-photo-inner {
    width: 90px;
    height: 135px;
    border-radius: 14px;
    font-size: 30px;
  }
}

.review-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  overflow: hidden;
  min-height: 250px; /* Ensure minimum height for content area */
}

/* Mobile content layout - optimize for horizontal layout */
@media (max-width: 420px) {
  .review-content {
    flex: 1;
    width: auto;
    max-width: none;
    text-align: left;
    min-height: 200px; /* Increased height for mobile */
    justify-content: space-between;
  }
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.review-info {
  flex: 1;
}

.review-name {
  font-weight: 600;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.review-location {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 10px;
}

/* Mobile name and location adjustments */
@media (max-width: 420px) {
  .review-name {
    font-size: 16px;
    margin-bottom: 2px;
  }
  
  .review-location {
    font-size: 13px;
    margin-bottom: 8px;
  }
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.review-stars svg {
  width: 18px;
  height: 18px;
  fill: #FCD34D;
}

.review-stars svg.empty {
  fill: #E5E7EB;
}

/* Mobile stars adjustments - keep left aligned */
@media (max-width: 420px) {
  .review-stars {
    justify-content: flex-start;
    margin-bottom: 10px;
  }
  
  .review-stars svg {
    width: 16px;
    height: 16px;
  }
}

.review-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-dark);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Mobile text adjustments */
@media (max-width: 420px) {
  .review-text {
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
  }
}

.review-metric {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-pink);
  margin-bottom: 8px;
  background: var(--light-pink);
  padding: 4px 8px;
  border-radius: 12px;
  display: inline-block;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-gray);
  transition: all 0.3s ease;
  cursor: pointer;
}

.review-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary-pink);
}

/* Mobile dots adjustments - ensure they're properly centered and sized */
@media (max-width: 420px) {
  .review-dots {
    margin-top: 16px;
    padding: 0 44px; /* Prevent overlap with arrows */
  }
  
  .review-dot {
    width: 10px;
    height: 10px;
    min-width: 44px; /* Minimum touch target for accessibility */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  .review-dot::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-gray);
    transition: all 0.3s ease;
  }
  
  .review-dot.active::before {
    width: 24px;
    border-radius: 4px;
    background: var(--primary-pink);
  }
}

/* FAQ */
.faq {
  margin: 32px 0;
  padding-bottom: 20px;
}

.faq-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.faq-item {
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  padding: 0 16px 16px;
  max-height: 200px;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  padding: 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 99;
}

/* Profile Cards */
.progress-bar {
  height: 4px;
  background: var(--border-gray);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.card-container {
  text-align: center;
  background: #F3F0FF;
  border-radius: 24px;
  padding: 32px 24px;
  margin: 0 -16px;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
}

@media (min-width: 415px) {
  .card-container {
    margin: 40px auto;
  }
  
  .card-container.question-card {
    margin: 20px auto;
  }
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
  line-height: 1.2;
}

.card-subtitle {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 32px;
  line-height: 1.4;
}

.card-options {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.option-card {
  padding: 20px 16px;
  border: 1.5px solid var(--border-gray);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 64px;
  background: var(--bg-white);
  flex-direction: row;
  text-align: center;
}

.option-card:hover {
  border-color: var(--primary-blue);
  background: var(--light-blue);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.option-card.selected {
  border-color: var(--primary-blue);
  background: var(--light-blue);
  color: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.option-card svg {
  width: 28px;
  height: 28px;
}

/* Gender options grid */
.gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.gender-grid .option-card {
  width: 100%;
  box-sizing: border-box;
  flex: 1;
  min-height: 70px;
  padding: 14px 8px;
  font-size: 15px;
}

/* Gender-specific button colors */
.option-card.male-option {
  background: #E8F4FF;
  border-color: #B8DFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  width: 100%;
  gap: 6px;
}

.option-card.male-option:hover {
  background: #D6ECFF;
  border-color: var(--primary-blue);
}

.option-card.male-option.selected {
  background: #D6ECFF;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.option-card.female-option {
  background: #FFE8F5;
  border-color: #FFB8E1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  width: 100%;
  gap: 6px;
}

.option-card.female-option:hover {
  background: #FFD6ED;
  border-color: var(--primary-pink);
}

.option-card.female-option.selected {
  background: #FFD6ED;
  border-color: var(--primary-pink);
  color: var(--primary-pink);
}

/* Back arrow */
.back-arrow, .next-arrow {
  position: absolute;
  top: 20px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.back-arrow {
  left: 20px;
}

.next-arrow {
  right: 20px;
}

.back-arrow:hover, .next-arrow:hover {
  background: var(--bg-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-arrow:active, .next-arrow:active {
  transform: scale(0.95);
  background: var(--light-blue);
}

.back-arrow svg, .next-arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-dark);
  stroke-width: 2.5;
}

/* Card container needs relative positioning for absolute arrow */
.card-container {
  text-align: center;
  background: #F3F0FF;
  border-radius: 20px;
  padding: 24px 20px;
  margin: 40px 16px;
  box-shadow: 0 2px 16px rgba(79, 70, 229, 0.06);
  position: relative;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.card-container.question-card {
  background: var(--bg-white);
  border: 1px solid #F3F4F6;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  margin: 20px 12px;
  max-width: 480px;
  padding: 48px 40px;
  border-radius: 32px;
}

/* Mobile optimizations */
@media (max-width: 480px) {
  .back-arrow, .next-arrow {
    width: 36px;
    height: 36px;
    top: 16px;
  }
  
  .back-arrow {
    left: 16px;
  }
  
  .next-arrow {
    right: 16px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .back-arrow, .next-arrow {
    width: 40px;
    height: 40px; /* Minimum 40px for touch targets */
  }
  
  .back-arrow:hover, .next-arrow:hover {
    background: rgba(255, 255, 255, 0.9); /* No hover on touch devices */
  }
}
.popular-choice {
  position: relative;
  background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%);
  border-color: #EC4899;
}

.popular-choice:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #F472B6 100%);
  border-color: #DB2777;
}

.popular-choice.selected {
  background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%);
  color: white;
  border-color: #BE185D;
}

.popularity-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(236, 72, 153, 0.3);
  z-index: 1;
}

.age-slider-container {
  padding: 20px 0;
}

.age-display {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border-gray);
  border-radius: 3px;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--primary-blue);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--primary-blue);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.age-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-gray);
}

/* Range slider */
.range-slider-container {
  padding: 20px 0;
}

.range-display {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 32px;
  text-align: center;
}

.range-slider-wrapper {
  position: relative;
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  margin: 40px 0;
}

.range-slider-track {
  position: absolute;
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
}

.range-slider {
  position: relative;
  width: 100%;
  height: 8px;
}

.range-slider input {
  position: absolute;
  width: 100%;
  height: 8px;
  background: transparent;
  -webkit-appearance: none;
  pointer-events: none;
  top: -8px;
}

.range-slider input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 2;
}

.range-slider input::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  pointer-events: all;
  border: none;
  position: relative;
  z-index: 2;
}

/* Touch-friendly thumbs */
@media (hover: none) and (pointer: coarse) {
  .range-slider input::-webkit-slider-thumb {
    width: 32px;
    height: 32px;
  }
  
  .range-slider input::-moz-range-thumb {
    width: 32px;
    height: 32px;
  }
}

/* Success banner */
.success-banner {
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  border: 2px solid #10B981;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #065F46;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.success-banner svg {
  width: 16px;
  height: 16px;
  color: #10B981;
  flex-shrink: 0;
}

.success-banner .partner-count {
  color: #EC4899;
  font-size: 16px;
  font-weight: 700;
}

/* SMS page specific styling */
.card-container.sms-card {
  background: var(--bg-white);
  border: 1px solid #F3F4F6;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  margin: 8px 12px;
  max-width: 480px;
  padding: 24px 20px;
  border-radius: 20px;
  position: relative;
}
.card-container.phone-card {
  background: var(--bg-white);
  border: 1px solid #F3F4F6;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  margin: 8px 12px;
  max-width: 480px;
  padding: 24px 20px;
  border-radius: 20px;
  position: relative;
}
.phone-input-container {
  margin: 24px 0;
}

.phone-input {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border: 2px solid var(--border-gray);
  border-radius: 12px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

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

.trust-labels {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.trust-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: var(--light-blue);
  border-radius: 8px;
  margin-bottom: 8px;
}

.trust-label svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 1px;
}

.trust-label-text h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.trust-label-text p {
  font-size: 11px;
  color: var(--text-gray);
  line-height: 1.3;
}

/* Skip button */
.skip-button {
  width: 100%;
  background: linear-gradient(135deg, #FF8C00 0%, #8B5CF6 100%);
  border: none;
  color: white;
  padding: 16px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 16px;
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.skip-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.skip-button:active {
  transform: scale(0.98);
}

.skip-button.grey-button {
  background: transparent;
  color: #9CA3AF;
  box-shadow: none;
  border: none;
  font-size: 14px;
  font-weight: 400;
  padding: 12px 16px;
}

.skip-button.grey-button:hover {
  background: transparent;
  color: #6B7280;
  box-shadow: none;
  text-decoration: underline;
}
.back-button {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-gray);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-gray);
  cursor: pointer;
  z-index: 98;
  transition: all 0.2s;
}

.back-button:hover {
  background: var(--light-blue);
}

/* SMS page */
.sms-input-container {
  margin: 24px 0;
}

/* SMS Visual Inputs */
.sms-input-container { 
  position: relative; 
}

.sms-visual-inputs { 
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}

/* Make the input cover the visual boxes (tap anywhere to focus), but invisible */
#otp {
  position: absolute;
  inset: 0;
  height: 56px;              /* match .sms-visual-box height */
  opacity: 0;                /* visually hidden */
  pointer-events: auto;      /* still interactive for taps/caret */
  caret-color: transparent;  /* no blinking caret */
}

.sms-visual-box {
  width: 50px;
  height: 56px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  line-height: 56px;
  border: 2px solid var(--border-gray);
  border-radius: 12px;
  background: var(--bg-white);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.sms-visual-box.active {
  border-color: var(--primary-blue);
  background: var(--light-blue);
}

.sms-visual-box.filled {
  border-color: var(--primary-blue);
  background: var(--light-blue);
  color: var(--primary-blue);
}

.sms-visual-box:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: var(--light-blue);
}

.resend-container {
  text-align: center;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-gray);
}

.resend-link {
  color: var(--primary-blue);
  cursor: pointer;
  text-decoration: underline;
  display: none;
}

.timer {
  color: var(--text-gray);
}

/* Consent */
.consent-box {
  background: #F3F4F6;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
}

.consent-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-gray);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  transition: all 0.2s;
}

.consent-checkbox.checked {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

.consent-checkbox svg {
  width: 14px;
  height: 14px;
  stroke: var(--bg-white);
  stroke-width: 3;
  display: none;
}

.consent-checkbox.checked svg {
  display: block;
}

/* Stats */
.stats-section {
  margin: 32px 0;
  text-align: center;
}

.stats-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

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

.stat-card {
  padding: 16px;
  background: var(--light-pink);
  border-radius: 12px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-pink);
}

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

/* Legal footer */
.legal-footer {
  margin-top: 40px;
  padding: 20px 16px;
  font-size: 11px;
  color: var(--text-gray);
  line-height: 1.4;
  background: #F9FAFB;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.page.active > * {
  animation: fadeIn 0.3s ease-out;
}

.benefit {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit.animate {
  animation: scaleInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.benefit:nth-child(1).animate {
  animation-delay: 0ms;
}

.benefit:nth-child(2).animate {
  animation-delay: 150ms;
}

.benefit:nth-child(3).animate {
  animation-delay: 300ms;
}

/* Responsive adjustments */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 22px;
  }
  .cta-button {
    font-size: 16px;
    padding: 14px;
  }
}