/* ============================================
   CoffeeWorx Landing Page — style.css
   Hand-crafted, warm, conversion-focused
   ============================================ */

/* ----- Font ----- */
@font-face {
  font-family: 'Flapstick';
  src: url('../assets/fonts/FlapstickDEMO.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

/* ----- Custom Properties ----- */
:root {
  --primary: #E65137;
  --primary-dark: #C43E28;
  --primary-light: rgba(230, 81, 55, 0.08);
  --tertiary: #EB9A42;
  --quaternary: #65C0B0;
  --accent: #F2A46C;
  --bg-paper: #F8F6F1;
  --bg-warm: #FFF9F5;
  --text-primary: #212121;
  --text-secondary: #757575;
  --white: #FFFFFF;
  --shadow-warm: 0 4px 20px rgba(230, 81, 55, 0.10);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.10);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-width: 1100px;
  --font-display: 'Flapstick', 'Georgia', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ----- Reset ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  background-color: #FFFFFF;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

input, textarea, button {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ----- Screen Reader Only ----- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.nav.is-visible {
  transform: translateY(0);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__brand img {
  border-radius: 8px;
}

.nav__brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--primary);
}

.btn--nav {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__link {
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    width: 100%;
  }

  .nav__link:last-child {
    border-bottom: none;
  }

  .nav .btn--nav {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }
}

/* ----- Skip Link ----- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 16px;
}

/* ----- Container ----- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Section Title ----- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-primary);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.3;
}

.btn__icon {
  flex-shrink: 0;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(230, 81, 55, 0.3);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(230, 81, 55, 0.4);
  transform: translateY(-2px);
}

.btn--large {
  padding: 20px 40px;
  font-size: 1.15rem;
}

.btn--tertiary {
  background: var(--tertiary);
  color: var(--white);
  padding: 12px 24px;
  font-size: 0.95rem;
}

.btn--tertiary:hover {
  background: #D88A35;
  color: var(--white);
  transform: translateY(-1px);
}

.btn--secondary-sm {
  background: var(--text-primary);
  color: var(--white);
  padding: 12px 20px;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.btn--secondary-sm:hover {
  background: #333;
  color: var(--white);
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ----- Store Badges ----- */
.store-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.store-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: transform var(--transition), opacity var(--transition);
}

.store-badge:hover {
  transform: scale(1.05);
}

.store-badge img {
  display: block;
  height: 52px;
  width: auto;
}

/* Google Play badge has built-in padding; reduce App Store SVG to visually match */
.store-badge img[alt*="App Store"] {
  height: 38px;
}

/* ----- Scroll Animations ----- */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   SECTION 1 — HERO
   ============================================ */
.hero {
  position: relative;
  padding: 48px 0 64px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(230, 81, 55, 0.06) 0%, rgba(235, 154, 66, 0.06) 100%);
}

.hero__swoosh {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__swoosh--1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(230, 81, 55, 0.07) 0%, transparent 70%);
  top: -80px;
  right: -60px;
}

.hero__swoosh--2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(235, 154, 66, 0.06) 0%, transparent 70%);
  bottom: -40px;
  left: -40px;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero__content {
  flex: 1;
  min-width: 0;
}

.hero__logo {
  margin-bottom: 20px;
}

.hero__logo img {
  border-radius: 14px;
}

.hero__slogan {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero__sub {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero__ctas {
  margin-bottom: 20px;
}

.hero__ios-waitlist {
  margin-top: 16px;
}

.hero__ios-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 560px;
}

.waitlist-form input[type="email"],
.waitlist-form input[type="text"],
.waitlist-form .country-select__input {
  flex: 1 1 150px;
  padding: 12px 16px;
  border: 2px solid #E0D9D0;
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  min-width: 0;
}

.waitlist-form input[type="email"]:focus,
.waitlist-form input[type="text"]:focus,
.waitlist-form .country-select__input:focus {
  border-color: var(--primary);
}

.waitlist-form .country-select {
  flex: 1 1 150px;
  min-width: 0;
}

.waitlist-form .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.hero__micro {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.hero__visual {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.hero__phone-frame {
  width: 280px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  background: var(--white);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}

.hero__phone-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero__phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   SECTION 2 — SOCIAL PROOF STRIP
   ============================================ */
.proof-strip {
  padding: 20px 0;
  background: rgba(230, 81, 55, 0.04);
  border-top: 1px solid rgba(230, 81, 55, 0.08);
  border-bottom: 1px solid rgba(230, 81, 55, 0.08);
}

.proof-strip__text {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.proof-strip__stat {
  font-weight: 700;
  color: var(--primary);
}

/* ============================================
   SECTION 3 — THE PROBLEM
   ============================================ */
.problem {
  padding: 80px 0;
}

.problem__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.problem__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.problem__card:nth-child(1) { transform: rotate(-1.5deg); }
.problem__card:nth-child(2) { transform: rotate(0.5deg); }
.problem__card:nth-child(3) { transform: rotate(1.5deg); }

.problem__card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.problem__icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.problem__question {
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
}

.problem__answer {
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
}

/* ============================================
   SECTION 4 — HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: 80px 0;
  background: #FAFAFA;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(230, 81, 55, 0.25);
}

.step__connector {
  width: 60px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0,
    var(--primary) 8px,
    transparent 8px,
    transparent 14px
  );
  align-self: center;
  margin-top: -18px;
  flex-shrink: 0;
  opacity: 0.4;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   SECTION 5 — FEATURES AS BENEFITS
   ============================================ */
.features {
  padding: 80px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

/* Center the last (odd) card */
.features__grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 438px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   SECTION 6 — APP SCREENSHOTS
   ============================================ */
.screenshots {
  padding: 80px 0;
  background: #FAFAFA;
}

.screenshots__carousel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -24px;
  padding: 0 24px;
}

.screenshots__carousel::-webkit-scrollbar {
  display: none;
}

.screenshots__track {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 16px 0;
}

.screenshots__item {
  flex-shrink: 0;
  width: 260px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition);
}

.screenshots__item:nth-child(1) { transform: rotate(-2deg); }
.screenshots__item:nth-child(2) { transform: rotate(0deg) scale(1.05); z-index: 1; }
.screenshots__item:nth-child(3) { transform: rotate(2deg); }

.screenshots__item:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 2;
}

.screenshots__item img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshots__carousel-wrapper {
  position: relative;
}

.screenshots__carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(to right, transparent, #FAFAFA);
  pointer-events: none;
  display: none;
}

.screenshots__caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 32px;
  font-style: italic;
}

.screenshots__dots {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.screenshots__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #D9D3CA;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.screenshots__dot--active {
  background: var(--primary);
  transform: scale(1.2);
}

/* ============================================
   SECTION 7 — FAQ
   ============================================ */
.faq {
  padding: 80px 0;
}

.faq__list {
  max-width: 700px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq__item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}

.faq__question:hover {
  color: var(--primary);
}

.faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}

.faq__chevron::before,
.faq__chevron::after {
  content: '';
  position: absolute;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.faq__chevron::before {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq__chevron::after {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq__question[aria-expanded="true"] .faq__chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__answer p {
  padding-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq__item.is-open .faq__answer {
  max-height: 300px;
}

/* ============================================
   SECTION 8A — CITY EXPANSION MAP
   ============================================ */
.expansion {
  padding: 80px 0;
  background: #FAFAFA;
}

.expansion__body {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: -24px auto 40px;
  line-height: 1.6;
}

.expansion__map {
  max-width: 550px;
  margin: 0 auto 40px;
}

.sea-map {
  width: 100%;
  height: auto;
}

.sea-map text {
  font-family: var(--font-body);
}

.map-ping {
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  0% { r: 12; opacity: 0.4; }
  100% { r: 24; opacity: 0; }
}

.city-vote-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.city-vote-form__label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: block;
  color: var(--text-primary);
}

.city-vote-form__row {
  display: flex;
  gap: 12px;
}

.city-vote-form__row input,
.city-vote-form__row .country-select__input {
  flex: 1 1 150px;
  min-width: 0;
  padding: 12px 16px;
  border: 2px solid #E0D9D0;
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.city-vote-form__row input:focus,
.city-vote-form__row .country-select__input:focus {
  border-color: var(--tertiary);
}

.city-vote-form__row .country-select {
  flex: 1 1 150px;
  min-width: 0;
}

.city-vote-form__row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.city-vote-form__micro {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 10px;
  font-style: italic;
}

/* ============================================
   SECTION 8B — GET IN TOUCH
   ============================================ */
.contact {
  padding: 80px 0;
}

.contact__body {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: -24px auto 40px;
  line-height: 1.7;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.contact-form__field {
  margin-bottom: 16px;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E0D9D0;
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--primary);
}

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

.contact__direct {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact__direct a {
  font-weight: 600;
}

/* ============================================
   SECTION 9 — FINAL CTA
   ============================================ */
.final-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(230, 81, 55, 0.05) 0%, rgba(235, 154, 66, 0.05) 100%);
  text-align: center;
}

.final-cta__headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.final-cta__sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.final-cta__ios {
  width: 100%;
  max-width: 560px;
}

.waitlist-form--dark input[type="email"] {
  border-color: #D4CBC0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

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

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  border-radius: 10px;
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.footer__links {
  display: flex;
  gap: 16px;
}

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

.footer__links a:hover {
  color: var(--primary);
}

.footer__legal {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
}

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

.footer__legal a:hover {
  color: var(--primary);
}

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

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================
   STICKY MOBILE CTA BAR
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  display: none;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sticky-cta__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sticky-cta__badge img {
  display: block;
  height: 46px;
}

.sticky-cta__badge img[alt*="App Store"] {
  height: 34px;
}

/* ============================================
   RESPONSIVE — TABLET (768px)
   ============================================ */
@media (max-width: 1024px) {
  .hero__phone-frame {
    width: 240px;
  }

  .steps {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .step__connector {
    width: 2px;
    height: 32px;
    background: repeating-linear-gradient(
      180deg,
      var(--primary) 0,
      var(--primary) 8px,
      transparent 8px,
      transparent 14px
    );
    margin-top: 0;
  }
}

/* ----- Country Selector Dropdown ----- */
.country-select {
  position: relative;
}

.country-select__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: min(200px, 40vh);
  overflow-y: auto;
  background: var(--white);
  border: 2px solid #E0D9D0;
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.country-select--open .country-select__dropdown {
  display: block;
}

.country-select--open .country-select__input {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.country-select__option {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: background 0.1s ease;
}

.country-select__option:hover,
.country-select__option--active {
  background: var(--primary-light);
}

.country-select__empty {
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
}

/* ============================================
   RESPONSIVE — MOBILE (768px)
   ============================================ */
@media (max-width: 768px) {
  .hero {
    padding: 32px 0 48px;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .hero__ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .waitlist-form {
    margin: 0 auto;
    width: 100%;
  }

  .hero__visual {
    order: -1;
  }

  .hero__phone-frame {
    width: 220px;
    transform: rotate(0deg);
  }

  .problem__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .problem__card:nth-child(1),
  .problem__card:nth-child(2),
  .problem__card:nth-child(3) {
    transform: none;
  }

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

  .features__grid > :last-child:nth-child(odd) {
    max-width: none;
  }

  .screenshots__carousel {
    scroll-snap-type: x mandatory;
    scroll-padding: 0 calc((100% - 75vw) / 2);
  }

  .screenshots__track {
    justify-content: flex-start;
    padding: 16px 0;
    gap: 16px;
    padding-left: calc((100% - 75vw) / 2);
    padding-right: calc((100% - 75vw) / 2);
  }

  .screenshots__item {
    width: 75vw;
    scroll-snap-align: center;
  }

  .screenshots__item:nth-child(1),
  .screenshots__item:nth-child(2),
  .screenshots__item:nth-child(3) {
    transform: none;
  }

  .screenshots__item:nth-child(2) {
    transform: none;
  }

  .screenshots__carousel-wrapper::after {
    display: none;
  }

  .screenshots__dots {
    display: flex;
  }

  .section-title {
    margin-bottom: 36px;
  }

  .problem,
  .how-it-works,
  .features,
  .screenshots,
  .faq,
  .expansion,
  .contact,
  .final-cta {
    padding: 56px 0;
  }

  .sticky-cta {
    display: block;
  }

  /* Add bottom padding so footer isn't hidden behind sticky bar */
  .footer {
    padding-bottom: 80px;
  }

  .expansion__map {
    max-width: 100%;
  }

  .sea-map text {
    font-size: 12px;
  }

  .sea-map .map-sublabel {
    font-size: 9px;
  }

  .sea-map .map-label--live {
    font-size: 13px;
  }

  .city-vote-form__row {
    flex-direction: column;
    gap: 16px;
  }

  .waitlist-form {
    flex-direction: column;
    gap: 16px;
  }

  /* In column layout, prevent inputs/wrappers from stretching vertically.
     flex-basis 150px was for the horizontal row — reset to auto when stacked.
     Selectors must match or exceed the specificity of the base rules
     (e.g. .waitlist-form input[type="email"]) to override them. */
  .city-vote-form__row input,
  .city-vote-form__row .country-select,
  .waitlist-form input[type="email"],
  .waitlist-form input[type="text"],
  .waitlist-form .country-select__input,
  .waitlist-form .country-select {
    flex: 0 0 auto;
    width: 100%;
  }

  /* Action button gets extra separation from the last input field.
     16px gap + 8px margin = 24px total — creates a clear "action zone" break. */
  .city-vote-form__row .btn,
  .waitlist-form .btn {
    margin-top: 8px;
  }

  .waitlist-form .country-select__input,
  .city-vote-form__row .country-select__input {
    width: 100%;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (< 400px)
   ============================================ */
@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  .btn--primary {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .hero__phone-frame {
    width: 190px;
  }

  .screenshots__item {
    width: 80vw;
  }
}

/* ============================================
   FOCUS STYLES (Accessibility)
   ============================================ */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================
   DECORATIVE RED SWOOSH (section divider)
   ============================================ */
.problem::before,
.features::before {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 4px;
  margin: 0 auto 48px;
  opacity: 0.3;
}

/* ============================================
   LEGAL PAGES (Privacy Policy, Terms)
   ============================================ */
.legal-page {
  padding: 48px 0 80px;
  min-height: 100vh;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  transition: color var(--transition);
}

.legal-page__back:hover {
  color: var(--primary);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-page__updated {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-page p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-page ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.legal-page ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

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

.legal-page a {
  font-weight: 600;
}

.legal-page__contact {
  margin-top: 40px;
  padding: 24px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
}

.legal-page__contact p {
  margin-bottom: 0;
}
