/* ====================================
   Alfie Mobile - Base Styles
   Glassmorphism Design System
   ==================================== */

/* ============ CSS VARIABLES ============ */
:root {
  /* Base Colors */
  --bg-gradient: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* Text */
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;

  /* Accents */
  --accent-yellow: #1a1a1a;
  --accent-yellow-hover: #000000;
  --accent-blue: #3b82f6;

  /* Glassmorphism */
  --blur: blur(20px);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Vintage Postcard Colors */
  --postcard-cream: #FFF9E6;
  --postcard-aged: #F5EDD6;
  --postcard-border: #D4C5A9;
  --postcard-text: #2C2416;
  --postcard-blue: #4A7C9E;
  --postcard-red: #C84040;
}

/* ============ FONTS ============ */
@font-face {
  font-family: 'Satoshi';
  src: url('/static/fonts/Satoshi-Variable.ttf') format('truetype');
  font-weight: 300 900;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/static/fonts/Satoshi-VariableItalic.ttf') format('truetype');
  font-weight: 300 900;
  font-style: italic;
}

/* ============ RESET & BASE ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-gradient);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ============ TYPOGRAPHY ============ */
h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-tertiary {
  color: var(--text-tertiary);
}

/* ============ GLASSMORPHISM EFFECTS ============ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-lg);
}

.glass-overlay {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--accent-yellow);
  color: #ffffff;
  /* White text for contrast on black */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--accent-yellow-hover);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover,
.btn-secondary:active {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-large {
  width: 100%;
  padding: 18px 32px;
  font-size: 18px;
}

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: 428px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.screen-header {
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.screen-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-lg) 0;
}

.screen-footer {
  padding: var(--spacing-lg) 0;
  padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
}

/* Landing Page & Animations */
.landing-screen {
  height: 100%;
  position: relative;
  padding: var(--spacing-lg);
  text-align: center;
}

.top-brand {
  position: absolute;
  top: 30vh;
  left: 0;
  right: 0;
  padding: var(--spacing-lg);
  text-align: center;
  z-index: 2;
  animation: fadeInDown 0.6s ease;
}

.top-brand h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.top-brand .logo {
  width: 280px;
  max-width: 80vw;
  height: auto;
  margin-bottom: 16px;
}

.top-brand p.tagline {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 16px;
}

.cta-card {
  position: absolute;
  bottom: 20vh;
  left: 0;
  right: 0;
  padding: var(--spacing-xl) var(--spacing-lg);
  z-index: 2;
  animation: fadeInUp 0.8s ease;
}

/* Destination Input Screen */
.destination-container {
  padding-top: var(--spacing-sm);
}

.search-section {
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.glass-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 40px 16px 48px;
  /* Room for icon */
  font-family: 'Satoshi-Variable', sans-serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.2);
}

.icon-marker {
  position: absolute;
  left: 16px;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 2;
}

#clear-input {
  position: absolute;
  right: 12px;
  padding: 4px;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
}

.action-row {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 16px;
  margin-bottom: var(--spacing-lg);
  justify-content: flex-start;
  gap: var(--spacing-md);
  text-align: left;
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  margin-left: var(--spacing-xs);
}

.suggestion-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 16px;
  gap: var(--spacing-md);
  text-align: left;
}

.suggestion-item .emoji {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.suggestion-item .text-content {
  display: flex;
  flex-direction: column;
}

.suggestion-item .title {
  font-weight: 600;
  color: var(--text-primary);
}

.suggestion-item .subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Route Mode Selection */
.route-mode-container {
  padding-top: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-xs);
}

.mode-selection {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.mode-card {
  display: flex;
  padding: 20px;
  gap: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mode-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.8);
}

.mode-card.selected {
  border-color: var(--accent-yellow);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mode-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-blue-soft {
  background: rgba(59, 130, 246, 0.1);
}

.bg-yellow-soft {
  background: rgba(245, 226, 54, 0.15);
}

.mode-emoji {
  font-size: 1.5rem;
}

.mode-content {
  flex: 1;
}

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

.mode-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mode-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tag-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

.tag-yellow {
  background: var(--accent-yellow);
  color: #ffffff;
}

.mode-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.mode-meta {
  display: flex;
  gap: 12px;
}

.meta-item {
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.selection-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-tertiary);
  position: relative;
  transition: all 0.2s ease;
}

.mode-card.selected .radio-circle {
  border-color: var(--accent-yellow);
  background: var(--accent-yellow);
}

.mode-card.selected .radio-circle::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bottom-action-area {
  margin-top: auto;
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

/* Active Tour Screen */
.tour-screen {
  overflow: hidden;
  /* Prevent scrolling */
}

.tour-header {
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  z-index: 100;
  pointer-events: none;
  /* Let clicks pass through to map where transparent */
}

.tour-header>* {
  pointer-events: auto;
}

.status-badge {
  background: rgba(16, 185, 129, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

.header-right {
  display: flex;
  gap: 8px;
}

.btn-icon-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.tour-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.tour-map-bg {
  width: 100%;
  height: 100%;
  background: #e5e5e5;
  /* Fallback */
  z-index: 0;
}

.route-info {
  position: absolute;
  top: calc(var(--spacing-md) + env(safe-area-inset-top));
  left: var(--spacing-md);
  right: var(--spacing-md);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 12px 20px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 90;
  box-shadow: var(--shadow);
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-item.right {
  align-items: flex-end;
}

.info-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}

.info-item .value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Cards Carousel */
.cards-container {
  position: absolute;
  bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  height: 320px;
  z-index: 100;
}

.swiper {
  width: 100%;
  height: 100%;
  padding-top: 20px;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 260px;
  height: 350px;
  border-radius: 24px;
  /* Swiper cards effect handles positioning */
}

/* 3D Flip Card */
.landmark-card-3d {
  background-color: transparent;
  width: 100%;
  height: 100%;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-radius: 24px;
}

.landmark-card-3d.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
}

.card-front {
  background-color: #bbb;
  background-size: cover;
  background-position: center;
  color: black;
}

.card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.card-text {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  text-align: left;
  color: white;
}

.card-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-text p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.card-back {
  background-color: white;
  color: var(--text-primary);
  transform: rotateY(180deg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-back h3 {
  margin-bottom: 12px;
}

.card-back .desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-white {
  background: var(--text-primary);
  color: white;
  border: none;
}

.pac-container {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
  margin-top: 8px;
  font-family: 'Satoshi-Variable', sans-serif;
}

.pac-item {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 16px;
  color: var(--text-secondary);
  cursor: pointer;
}

.pac-item:hover,
.pac-item-selected {
  background-color: rgba(26, 26, 26, 0.1);
}

.pac-item-query {
  color: var(--text-primary);
  font-weight: 600;
}

/* Tour Selection */
.tour-container {
  padding-top: var(--spacing-sm);
  padding-bottom: 80px;
  /* Space for bottom sheet */
}

.tour-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.tour-card {
  position: relative;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid transparent;
}

.tour-grid .glass-card.tour-card,
.tour-grid .tour-card.glass-card {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.tour-grid .glass-card.tour-card.selected,
.tour-grid .tour-card.glass-card.selected {
  border: 2px solid var(--accent-yellow) !important;
  box-shadow: none !important;
}

.tour-card.hidden-unavailable {
  display: none !important;
}

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

.tour-card.selected {
  border-color: var(--accent-yellow);
  background: rgba(255, 255, 255, 0.9);
}

.tour-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.5;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.tour-card:hover .tour-bg {
  opacity: 0.8;
}

.tour-icon {
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.tour-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.tour-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.full-width {
  grid-column: span 2;
}

.tour-content-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.tour-content-row .tour-text {
  text-align: left;
}

/* ============ CARDS ============ */
.card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
}

.card-interactive {
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-interactive:hover,
.card-interactive:active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-selected {
  border: 2px solid var(--accent-yellow);
  background: rgba(26, 26, 26, 0.05);
}

/* ============ INPUTS ============ */
.input-group {
  margin-bottom: var(--spacing-md);
}

.input-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-field {
  width: 100%;
  padding: 16px;
  font-family: 'Satoshi', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.input-field::placeholder {
  color: var(--text-tertiary);
}

.input-error {
  border-color: #ef4444;
}

.input-helper {
  margin-top: var(--spacing-xs);
  font-size: 14px;
  color: var(--text-tertiary);
}

.input-error-text {
  color: #ef4444;
}

/* ============ LOADING STATES ============ */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(26, 26, 26, 0.2);
  border-top-color: var(--accent-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ============ BOTTOM SHEET ============ */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-lg);
  padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.bottom-sheet.active {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--text-tertiary);
  border-radius: var(--radius-full);
  margin: 0 auto var(--spacing-md);
  opacity: 0.3;
}

.sheet-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  -webkit-tap-highlight-color: transparent;
  z-index: 10;
}

.sheet-close-btn:hover,
.sheet-close-btn:active {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.sheet-close-btn svg {
  display: block;
}

/* ============ UTILITIES ============ */
.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

.hidden {
  display: none !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 390px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }
}

@media (min-width: 768px) {
  body {
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
  }

  /* ============ LANDING PAGE ============ */
  .landing-screen {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .map-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(245, 247, 250, 0.3) 0%,
        rgba(245, 247, 250, 0.8) 100%);
    z-index: 0;
  }

  /* Desktop overrides for landing page positioning */
  .top-brand {
    top: 25%;
  }

  .cta-card {
    bottom: 25%;
  }

  .qr-hint {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: var(--spacing-md);
    text-align: center;
    font-weight: 400;
  }

  /* Animations */
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }

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

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }

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

  .screen {
    width: 390px;
    /* Standard iPhone width */
    height: 844px;
    /* Standard iPhone height */
    max-height: 90vh;
    background: var(--bg-gradient);
    border-radius: 44px;
    /* Matches modern iPhone corners */
    box-shadow:
      0 0 0 12px #1a1a1a,
      /* Phone Bezel */
      0 0 0 14px #2a2a2a,
      /* Outer Frame */
      0 20px 50px rgba(0, 0, 0, 0.3);
    /* Lifted Shadow */
    overflow: hidden;
    /* Clip content to rounded corners */
    margin: auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  /* Reset container max-width since screen is fixed */
  .container {
    max-width: 100%;
  }

  /* Scrollable content area inside the phone */
  .screen-content {
    overflow-y: auto;
    /* Hide scrollbar for cleaner mobile look */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .screen-content::-webkit-scrollbar {
    display: none;
  }
}