/* ========================================
   WalkTalk — Landing Page
   ======================================== */

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-content h1 {
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content .hero-subtitle {
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-xl);
}

.hero-badges {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  background: var(--surface-dark);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.badge-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.badge-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.badge-link .badge-label-sm {
  font-size: 0.6875rem;
  font-weight: 400;
  opacity: 0.8;
}

.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Phone Mockup Component --- */
.phone-mockup {
  width: 280px;
  height: 560px;
  background: #1C1B1F;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.phone-mockup-screen {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Notch */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #1C1B1F;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

/* Home indicator */
.phone-mockup::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: #49454F;
  border-radius: 2px;
  z-index: 10;
}

/* Status bar */
.mockup-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 16px 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--on-surface);
  flex-shrink: 0;
}

.mockup-status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.mockup-status-icons .dot {
  width: 10px;
  height: 10px;
  background: var(--on-surface);
  border-radius: 2px;
}

.mockup-status-icons .bar {
  width: 16px;
  height: 10px;
  background: var(--on-surface);
  border-radius: 2px;
}

/* Title bar */
.mockup-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  flex-shrink: 0;
}

.mockup-title-bar h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0;
}

.mockup-title-icons {
  display: flex;
  gap: 8px;
}

.mockup-title-icons .icon-circle {
  width: 24px;
  height: 24px;
  background: var(--surface-dim);
  border-radius: 50%;
}

/* Scrollable body */
.mockup-body {
  flex: 1;
  overflow: hidden;
  padding: 0 12px 8px;
}

/* Bottom nav */
.mockup-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 8px 12px;
  background: var(--surface-bright);
  border-top: 1px solid var(--outline-variant);
  flex-shrink: 0;
}

.mockup-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mockup-nav-item .nav-dot {
  width: 18px;
  height: 18px;
  background: var(--outline-variant);
  border-radius: 4px;
}

.mockup-nav-item .nav-dot.active {
  background: var(--primary);
}

.mockup-nav-item span {
  font-size: 7px;
  color: var(--outline);
  font-weight: 600;
}

.mockup-nav-item span.active {
  color: var(--primary);
}

/* Route card */
.mockup-route-card {
  display: flex;
  gap: 8px;
  background: var(--surface-bright);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.mockup-route-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  flex-shrink: 0;
}

.mockup-route-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.mockup-route-info .title {
  font-size: 10px;
  font-weight: 700;
  color: var(--on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-route-info .meta {
  font-size: 8px;
  color: var(--outline);
}

.mockup-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 7px;
  font-weight: 700;
  color: #fff;
}

.mockup-badge.sage { background: var(--primary); }
.mockup-badge.coral { background: var(--secondary); }
.mockup-badge.lavender { background: var(--tertiary); }

/* Section header in mockup */
.mockup-section-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 8px 0 6px;
}

/* Map background */
.mockup-map {
  flex: 1;
  background: #e8f5e9;
  position: relative;
  overflow: hidden;
}

.mockup-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(165,214,180,0.3) 1px, transparent 1px),
    linear-gradient(rgba(165,214,180,0.3) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Map road lines */
.mockup-map-roads {
  position: absolute;
  inset: 0;
}

.mockup-map-roads::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0,0,0,0.08);
}

.mockup-map-roads::after {
  content: '';
  position: absolute;
  left: 40%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0,0,0,0.08);
}

/* Route polyline on map */
.mockup-polyline {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  border: 2px dashed var(--primary);
  border-radius: 40%;
  transform: rotate(-15deg);
}

/* Stop markers */
.mockup-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Audio point markers (free walk) */
.mockup-audio-marker {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--secondary);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Bottom sheet */
.mockup-bottom-sheet {
  background: var(--surface-bright);
  border-radius: 14px 14px 0 0;
  padding: 10px 14px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.mockup-bottom-sheet .sheet-handle {
  width: 32px;
  height: 3px;
  background: var(--outline-variant);
  border-radius: 2px;
  margin: 0 auto 8px;
}

.mockup-bottom-sheet .sheet-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 6px;
}

/* Progress bar */
.mockup-progress {
  height: 3px;
  background: var(--surface-dim);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}

.mockup-progress-fill {
  height: 100%;
  width: 40%;
  background: var(--primary);
  border-radius: 2px;
}

/* Play controls */
.mockup-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.mockup-play-btn {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 50%;
  position: relative;
}

.mockup-play-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent #fff;
}

.mockup-skip-btn {
  width: 16px;
  height: 16px;
  background: var(--outline-variant);
  border-radius: 3px;
}

/* Form elements in mockups */
.mockup-input {
  background: var(--surface-dim);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 8px;
  color: var(--outline);
}

.mockup-textarea {
  background: var(--surface-dim);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  height: 48px;
  font-size: 8px;
  color: var(--outline);
}

.mockup-photo-placeholder {
  background: var(--surface-dim);
  border: 2px dashed var(--outline-variant);
  border-radius: 8px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--outline);
  margin-bottom: 8px;
}

/* Chip selectors */
.mockup-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mockup-chip {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 8px;
  font-weight: 600;
  background: var(--surface-dim);
  color: var(--on-surface-variant);
}

.mockup-chip.selected {
  background: var(--primary);
  color: #fff;
}

/* Button */
.mockup-btn {
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
}

/* Tab bar */
.mockup-tabs {
  display: flex;
  border-bottom: 2px solid var(--surface-dim);
  margin-bottom: 8px;
  flex-shrink: 0;
  padding: 0 12px;
}

.mockup-tab {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: 8px;
  font-weight: 600;
  color: var(--outline);
}

.mockup-tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  margin-bottom: -2px;
}

/* List items */
.mockup-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--surface-dim);
}

.mockup-list-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
}

.mockup-list-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mockup-list-info .title {
  font-size: 9px;
  font-weight: 700;
  color: var(--on-surface);
}

.mockup-list-info .subtitle {
  font-size: 7px;
  color: var(--outline);
}

/* Avatar */
.mockup-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  margin: 0 auto 6px;
}

.mockup-username {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 8px;
}

/* Stats row */
.mockup-stats-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--surface-dim);
  border-bottom: 1px solid var(--surface-dim);
}

.mockup-stat {
  text-align: center;
}

.mockup-stat .val {
  font-size: 11px;
  font-weight: 700;
  color: var(--on-surface);
}

.mockup-stat .lbl {
  font-size: 7px;
  color: var(--outline);
}

/* Wallet card */
.mockup-wallet-card {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
}

.mockup-wallet-card .wallet-title {
  font-size: 8px;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 6px;
}

.mockup-wallet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.mockup-wallet-row .coin-label {
  font-size: 9px;
  font-weight: 600;
}

.mockup-wallet-row .coin-value {
  font-size: 12px;
  font-weight: 700;
}

/* Step indicator */
.mockup-step-indicator {
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 0;
}

/* Nearby count badge */
.mockup-nearby-badge {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
}

/* Free walk header overlay */
.mockup-map-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  z-index: 5;
  display: flex;
  align-items: center;
}

.mockup-map-header h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0;
}

/* Feature phone mockup sizing */
.feature-image .phone-mockup {
  width: 220px;
  height: 440px;
  margin: 0 auto;
}

.feature-image .phone-mockup .mockup-status-bar {
  padding: 14px 12px 3px;
  font-size: 8px;
}

.feature-image .phone-mockup .mockup-title-bar {
  padding: 6px 12px;
}

.feature-image .phone-mockup .mockup-title-bar h3 {
  font-size: 13px;
}

.feature-image .phone-mockup .mockup-body {
  padding: 0 10px 6px;
}

.feature-image .phone-mockup .mockup-bottom-nav {
  padding: 6px 6px 10px;
}

.feature-image .phone-mockup::before {
  width: 80px;
  height: 20px;
}

/* Creators section phone mockup */
.creators-grid .phone-mockup {
  width: 280px;
  height: 560px;
  margin: 0 auto;
}

/* Compact route card in list */
.mockup-route-card-compact {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--surface-dim);
}

.mockup-route-card-compact .mockup-route-thumb {
  width: 44px;
  height: 44px;
}

/* Stop list for preview */
.mockup-stop-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--surface-dim);
}

.mockup-stop-number {
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
}

.mockup-stop-name {
  font-size: 9px;
  font-weight: 600;
  color: var(--on-surface);
}

/* Cover image placeholder for previews */
.mockup-cover-image {
  background: linear-gradient(135deg, var(--primary-light), var(--tertiary-light));
  border-radius: 8px;
  height: 80px;
  margin-bottom: 8px;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--primary-light);
  padding: var(--space-xl) 0;
}

.stats-bar .container {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: var(--space-xl);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-dark);
  opacity: 0.8;
}

/* --- Features --- */
.features {
  background: var(--surface);
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

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

.feature-card:nth-child(even) .feature-image {
  order: 2;
}

.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}


.feature-content h3 {
  margin-bottom: var(--space-md);
}

.feature-content p {
  font-size: 1.0625rem;
}

.feature-content ul {
  margin-top: var(--space-md);
  list-style: none;
}

.feature-content ul li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--on-surface-variant);
}

.feature-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* --- How It Works --- */
.how-it-works {
  background: var(--surface-bright);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.step-card {
  text-align: center;
  padding: var(--space-xl);
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--space-lg);
}

.step-card h3 {
  margin-bottom: var(--space-sm);
}

.step-card p {
  font-size: 0.9375rem;
}

/* --- Creators --- */
.creators {
  background: var(--surface);
}

.creators-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}


.creators-content h2 {
  margin-bottom: var(--space-md);
}

.creators-content > p {
  font-size: 1.0625rem;
  margin-bottom: var(--space-lg);
}

.creator-features {
  display: grid;
  gap: var(--space-md);
}

.creator-feature {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.creator-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--secondary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.creator-feature h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.creator-feature p {
  font-size: 0.875rem;
  margin: 0;
}

/* --- Pricing --- */
.pricing {
  background: var(--surface-bright);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1080px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--outline-variant);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

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

.pricing-card.featured {
  border-color: var(--primary);
  border-top: 3px solid var(--primary);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  margin-bottom: var(--space-sm);
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--on-surface-variant);
}

.pricing-list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--on-surface-variant);
  font-size: 0.9375rem;
}

.pricing-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* --- Download CTA --- */
.download-cta {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: var(--space-4xl) 0;
}

.download-cta h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.download-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.download-cta .hero-badges {
  justify-content: center;
}

.download-cta .badge-link {
  background: #fff;
  color: var(--on-surface);
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-mockup {
    order: -1;
  }

  .hero-mockup .phone-mockup {
    width: 220px;
    height: 440px;
  }

  .feature-card {
    gap: var(--space-xl);
  }

  .creators-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .creators-grid .phone-mockup {
    width: 220px;
    height: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-xl));
    padding-bottom: var(--space-2xl);
  }

  .feature-card {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
  }

  .feature-card:nth-child(even) .feature-image {
    order: 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .stats-bar .container {
    gap: var(--space-xl);
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .feature-image .phone-mockup {
    width: 200px;
    height: 400px;
  }

  .hero-mockup .phone-mockup {
    width: 200px;
    height: 400px;
  }

  .creators-grid .phone-mockup {
    width: 200px;
    height: 400px;
  }
}
