/* ============================================================
   Keepi — Greeting Card Organizer  |  Marketing Site Styles
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-bg: #EDEAF5;
  --color-primary: #7B68C8;
  --color-primary-dark: #5548A8;
  --color-headline: #1A1A2E;
  --color-body: #6B7280;
  --color-muted: #9CA3AF;
  --color-card: #FFFFFF;
  --color-border: #D8D2F0;
  --color-section-light: #F8F6FF;
  --color-section-white: #FFFFFF;
  --launch-bar-height: 30px;
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-body);
  background-color: var(--color-section-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: calc(60px + var(--launch-bar-height));
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-headline);
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 100px;
  width: 100%;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(123, 104, 200, 0.35);
  color: #fff;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.25s ease;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: scale(1.03);
}

/* ---------- Section Utilities ---------- */
.section-heading {
  font-weight: 700;
  font-size: 40px;
  color: var(--color-headline);
  text-align: center;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

/* ============================================================
   NAV
   ============================================================ */
.navbar {
  position: fixed;
  top: var(--launch-bar-height);
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #fff;
  height: 60px;
  border-bottom: 1px solid rgba(220, 214, 240, 0.60);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  border-bottom-color: transparent;
}

.nav-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--color-headline);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-right: 32px;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: #000;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-headline);
}

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

.nav-cta-desktop {
  padding: 10px 24px;
  font-size: 14px;
  flex-shrink: 0;
}

.nav-cta-mobile {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  z-index: 1100;
  padding: 4px 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-headline);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav overlay (mobile) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   HERO  —  alternating bg: light lavender
   ============================================================ */
.hero {
  background-color: var(--color-section-light);
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(255, 228, 196, 0.52) 0%, transparent 66%);
  padding: 64px 20px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 44px;
  max-width: 1160px;
  /* Editorial panel */
  background: linear-gradient(140deg, rgba(255, 253, 250, 0.84) 0%, rgba(247, 243, 255, 0.80) 100%);
  border: 1px solid rgba(210, 196, 238, 0.32);
  border-radius: 24px;
  box-shadow: 0 2px 40px rgba(123, 104, 200, 0.055), 0 1px 6px rgba(0, 0, 0, 0.025);
  padding: 48px 60px;
}

.hero-content {
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: #E4F2E6;
  color: #2C7A40;
  border: 1px solid rgba(44, 122, 64, 0.18);
  box-shadow: 0 2px 10px rgba(44, 122, 64, 0.09);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.hero-badge-icon {
  flex-shrink: 0;
  color: #2C7A40;
}

.hero-headline {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.07;
  color: var(--color-headline);
  margin-bottom: 15px;
  animation: heroFadeIn 0.8s ease forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-description {
  font-size: 18px;
  color: var(--color-body);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.60;
}

.hero-cta {
  display: inline-block;
  min-width: 200px;
  text-align: center;
}

.hero-trust {
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-headline);
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 20px;
  background-color: #1A1A2E;
  color: #fff;
  border-radius: 12px;
}

.coming-soon-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.coming-soon-top {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.coming-soon-bottom {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* ── Hero CTA cluster ── */
.hero-cta-module {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
}

.hero-app-store-badge {
  display: inline-block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hero-app-store-badge:hover {
  transform: scale(1.04);
  opacity: 0.88;
}

.hero-app-store-badge img {
  height: 56px;
  width: auto;
  display: block;
}

.hero-tagline {
  font-size: 14.5px;
  font-weight: 400;
  color: #9D8FAA;
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.45;
  letter-spacing: 0.1px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-see-how {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.hero-see-how:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(85, 72, 168, 0.50);
  color: var(--color-primary-dark);
}

.hero-see-how:focus {
  outline: none;
}

.hero-see-how:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 4px;
  border-radius: 3px;
}

.hero-trust-row {
  font-size: 14.5px;
  font-weight: 500;
  color: #6B6580;
  margin: 0;
  letter-spacing: 0.05px;
  line-height: 1.5;
  background: rgba(123, 104, 200, 0.065);
  padding: 5px 13px;
  border-radius: 50px;
}

.hero-chips {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  user-select: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.hero-chip--snap {
  background-color: #E4F2E6;
  color: #2C7A40;
}

.hero-chip--organize {
  background-color: rgba(123, 104, 200, 0.10);
  color: var(--color-primary-dark);
}

.hero-chip--revisit {
  background-color: #FFF0EA;
  color: #8B5244;
}

/* Single phone mockup — flows naturally, no absolute */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Soft oval glow behind phone — portrait-shaped to follow the device */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 310px;
  height: 545px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 215, 178, 0.42) 0%, rgba(200, 185, 235, 0.13) 54%, transparent 76%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.hero-phone {
  position: relative;
  z-index: 1;
}

/* Hero-specific phone size */
.hero-visual .iphone-frame {
  width: 264px;
}

/* ── Hero phone scene + floating card accents ── */
.hero-scene {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

/* Warmer, more integrated shadow on the hero phone only */
.hero-phone .frame-img {
  filter:
    drop-shadow(0 28px 52px rgba(123, 104, 200, 0.20))
    drop-shadow(0 8px 20px rgba(255, 195, 150, 0.22));
}

/* Scroll indicator */
.scroll-indicator {
  text-align: center;
  margin-top: 24px;
  animation: bounceArrow 2s infinite ease-in-out;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* iPhone frame — real device image overlay */
.iphone-frame {
  width: 280px;
  max-width: 100%;
  margin: 0 auto;
  flex-shrink: 0;
  position: relative;
}

/* The frame image sits on top, defines the size */
.frame-img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* The screenshot sits behind the frame, filling the screen area */
.screen-img {
  position: absolute;
  z-index: 1;
  top: 3%;
  left: 5.2%;
  width: 89.6%;
  height: 94.6%;
  object-fit: cover;
  object-position: top;
  border-radius: 7%;
  background: #fff;
}

/* ============================================================
   SOCIAL PROOF  —  white bg
   ============================================================ */
.social-proof {
  background-color: var(--color-section-white);
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.social-proof .container {
  text-align: center;
}

.social-proof-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-body);
  margin-bottom: 20px;
}

.proof-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #F0EDFC;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 15px;
  border-radius: 50px;
  padding: 10px 20px;
  white-space: nowrap;
}

/* ============================================================
   PROBLEM / NARRATIVE
   ============================================================ */
.problem {
  background: linear-gradient(155deg, #F2EEF9 0%, #FAF7F1 55%, #F2EEF9 100%);
  padding: 104px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Warm radial glow sitting behind the card grid */
.problem::before {
  content: '';
  position: absolute;
  width: 880px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 210, 168, 0.22) 0%, transparent 65%);
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.problem .container {
  position: relative;
  z-index: 1;
}

/* ── Editorial intro ── */
.problem-editorial {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.problem-editorial .section-label {
  margin-bottom: 20px;
}

.problem-headline {
  font-weight: 700;
  font-size: 40px;
  color: var(--color-headline);
  margin-bottom: 28px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.problem-body {
  font-size: 17px;
  line-height: 1.70;
  color: #4B4764;
  margin-bottom: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.problem-body:last-child {
  margin-bottom: 0;
}

/* Fading hairline divider */
.problem-rule {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 104, 200, 0.38), transparent);
  margin: 60px auto;
}

/* ── Problem cards ── */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.problem-card {
  border-radius: 22px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid transparent;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* Tinted gradient backgrounds + matched borders per card */
.problem-card--lavender {
  background: linear-gradient(150deg, #FEFCFF 0%, #F5F1FD 100%);
  border-color: rgba(185, 170, 235, 0.52);
  box-shadow: 0 2px 18px rgba(123, 104, 200, 0.09), 0 1px 3px rgba(26, 26, 46, 0.04);
}
.problem-card--green {
  background: linear-gradient(150deg, #FAFFFB 0%, #EDF7F1 100%);
  border-color: rgba(120, 190, 148, 0.48);
  box-shadow: 0 2px 18px rgba(91, 168, 122, 0.09), 0 1px 3px rgba(26, 26, 46, 0.04);
}
.problem-card--coral {
  background: linear-gradient(150deg, #FFFCFB 0%, #FFF0E8 100%);
  border-color: rgba(224, 165, 135, 0.48);
  box-shadow: 0 2px 18px rgba(224, 122, 95, 0.09), 0 1px 3px rgba(26, 26, 46, 0.04);
}
.problem-card--rose {
  background: linear-gradient(150deg, #FFFAFC 0%, #FDEEF4 100%);
  border-color: rgba(210, 148, 172, 0.48);
  box-shadow: 0 2px 18px rgba(192, 98, 122, 0.09), 0 1px 3px rgba(26, 26, 46, 0.04);
}

/* Accent-matched hover lift */
.problem-card--lavender:hover { transform: translateY(-5px); box-shadow: 0 14px 42px rgba(123, 104, 200, 0.16); }
.problem-card--green:hover    { transform: translateY(-5px); box-shadow: 0 14px 42px rgba(91, 168, 122, 0.16); }
.problem-card--coral:hover    { transform: translateY(-5px); box-shadow: 0 14px 42px rgba(224, 122, 95, 0.16); }
.problem-card--rose:hover     { transform: translateY(-5px); box-shadow: 0 14px 42px rgba(192, 98, 122, 0.16); }

/* Icon holder */
.problem-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.problem-card--lavender .problem-card-icon { background-color: rgba(123, 104, 200, 0.14); color: #5548A8; }
.problem-card--green    .problem-card-icon { background-color: rgba(91, 168, 122, 0.16);  color: #317A50; }
.problem-card--coral    .problem-card-icon { background-color: rgba(224, 122, 95, 0.15);  color: #A04E32; }
.problem-card--rose     .problem-card-icon { background-color: rgba(192, 98, 122, 0.14);  color: #8C3558; }

.problem-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-headline);
  line-height: 1.28;
}

.problem-card p {
  font-size: 14.5px;
  line-height: 1.62;
  color: #5A5570;
}

/* ============================================================
   FEATURES  —  white bg
   ============================================================ */
.features {
  background-color: var(--color-section-white);
  padding: 80px 0;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.feature-card {
  background-color: var(--color-section-light);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 2px 12px rgba(26, 26, 46, 0.05);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(123, 104, 200, 0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--color-headline);
}

.feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
}

/* ============================================================
   HOW IT WORKS (Steps)  —  white bg, horizontal 4-step row
   ============================================================ */
.steps {
  background-color: var(--color-section-white);
  padding: 88px 0 96px;
  text-align: center;
}

.steps-intro {
  max-width: 560px;
  margin: 0 auto 52px;
  font-size: 17px;
  line-height: 1.65;
  color: #4B4764;
}

/* ── Horizontal step row ── */
.steps-row {
  display: flex;
  align-items: stretch;
}

/* Cards flex equally, arrows sit between them */
.step-card {
  flex: 1;
  min-width: 0;
  background: linear-gradient(155deg, #FEFCFF 0%, #F5F2FC 100%);
  border: 1px solid rgba(210, 200, 238, 0.55);
  border-radius: 24px;
  padding: 24px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 1px 10px rgba(26, 26, 46, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(123, 104, 200, 0.12);
}

/* Step number badge */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #D6F0D6;
  color: #3D7A3D;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 14px;
}

/* Phone mockup inside card */
.step-card-image {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.step-card-image .iphone-frame {
  width: 150px;
}

.step-card h3 {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--color-headline);
  margin-bottom: 7px;
  line-height: 1.25;
}

.step-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #5A5570;
  margin: 0;
}

/* Subtle chevron arrows between cards — desktop only */
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  align-self: center;
  color: rgba(180, 166, 230, 0.70);
}

/* ============================================================
   APP SHOWCASE  —  white bg
   ============================================================ */
.showcase {
  background-color: var(--color-section-light);
  padding: 80px 0;
  text-align: center;
}

.showcase-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
}

.showcase-phone {
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.showcase-phone .iphone-frame {
  width: 280px;
}

.showcase-phone:nth-child(1) {
  transform: rotate(-4deg);
}

.showcase-phone:nth-child(2) {
  transform: rotate(0deg);
}

.showcase-phone:nth-child(3) {
  transform: rotate(4deg);
}

.showcase-phone:hover {
  transform: rotate(0deg) scale(1.04);
}

.showcase-caption {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-headline);
}

.showcase-tagline {
  margin-top: 60px;
}

.showcase-tagline h3 {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 12px;
}

.showcase-tagline p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-body);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   FAQ  —  light lavender bg
   ============================================================ */
.faq {
  background-color: var(--color-section-white);
  padding: 80px 0;
  text-align: center;
}

.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.faq-item {
  background-color: var(--color-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(123, 104, 200, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 28px;
  font-weight: 600;
  font-size: 17px;
  color: var(--color-headline);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  gap: 16px;
}

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

.faq-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.35s ease;
  stroke: var(--color-muted);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  stroke: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.35s ease;
  padding: 0 28px;
}

.faq-item.open .faq-answer {
  max-height: 1000px;
  padding: 0 28px 24px;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
}

/* ============================================================
   FINAL CTA  —  purple gradient
   ============================================================ */
.final-cta {
  background: linear-gradient(135deg, #7B68C8, #9B8AE8);
  padding: 80px 0;
  overflow: hidden;
}

.final-cta .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
}

.final-cta-content {
  text-align: left;
}

.final-cta-content h2 {
  font-weight: 700;
  font-size: 36px;
  color: #fff;
  margin-bottom: 20px;
}

.final-cta-content p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.6;
}

.final-cta-note {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

.final-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: var(--color-primary-dark);
  border-radius: 50px;
  padding: 15px 38px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.final-cta-btn:hover {
  background-color: #EDEAFC;
  color: var(--color-primary-dark);
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.final-cta-btn:active {
  transform: scale(0.97);
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.25s ease;
}

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

.final-cta-phone {
  display: flex;
  justify-content: center;
}

.final-cta-phone .iphone-frame {
  width: 280px;
}

/* ============================================================
   FOOTER  —  dark bg
   ============================================================ */
.footer {
  background-color: #1A1A2E;
  padding: 60px 0 36px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.footer-logo-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.3px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 260px;
  line-height: 1.5;
}

.footer-columns {
  display: flex;
  gap: 80px;
}

.footer-col h4 {
  font-weight: 600;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  padding: 5px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-badge {
  flex-shrink: 0;
}

.footer-badge:hover {
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: #fff;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.fade-in-up:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE — Tablet (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .section-heading {
    font-size: 36px;
  }

  /* Hero */
  .hero {
    padding: 48px 16px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding: 40px 36px;
    border-radius: 20px;
  }

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

  .hero-headline {
    font-size: 42px;
  }

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

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

  .hero-cta-module {
    align-items: center;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-trust-row {
    text-align: center;
    font-size: 14px;
  }

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

  .iphone-frame {
    width: 260px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    gap: 32px;
  }

  /* Steps — 2×2 grid on tablet, hide arrows */
  .steps {
    padding: 72px 0 80px;
  }

  .steps-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .step-arrow {
    display: none;
  }

  .step-card {
    padding: 28px 22px 24px;
  }

  .step-card-image .iphone-frame {
    width: 170px;
  }

  .step-card h3 {
    font-size: 17px;
  }

  .step-card p {
    font-size: 15px;
  }

  /* Problem — 2×2 on tablet */
  .problem-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .problem-headline {
    font-size: 34px;
  }

  .problem-rule {
    margin: 52px auto;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-columns {
    gap: 60px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (max 767px)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --launch-bar-height: 28px;
  }

  body {
    font-size: 16px;
  }

  /* Allow launch bar text to wrap gracefully on narrow screens */
  .launch-bar {
    height: auto;
    min-height: var(--launch-bar-height);
    padding: 8px 16px;
  }

  .launch-bar-inner {
    white-space: normal;
    font-size: 12px;
    line-height: 1.35;
  }

  .container {
    padding: 0 20px;
  }

  /* Nav mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--launch-bar-height);
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: calc(100vh - var(--launch-bar-height));
    height: calc(100dvh - var(--launch-bar-height));
    background: #fff;
    z-index: 1060;
    padding: 80px 28px 40px;
    flex-direction: column;
    gap: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-headline);
  }

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

  .nav-cta-desktop {
    display: none;
  }

  .nav-cta-mobile {
    display: block;
    border-bottom: none !important;
    margin-top: 24px;
  }

  .nav-cta-mobile .btn-primary {
    width: 100%;
    text-align: center;
    padding: 14px 32px;
    font-size: 16px;
  }

  .hamburger {
    display: flex;
  }

  .nav-overlay {
    display: block;
  }

  /* Sections */
  .section-heading {
    font-size: 28px;
  }

  /* Hero */
  .hero {
    padding: 32px 12px;
  }

  .hero .container {
    padding: 36px 24px;
    border-radius: 16px;
    gap: 40px;
  }

  .hero-headline {
    font-size: 36px;
  }

  .hero-description {
    font-size: 17px;
  }

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

  .hero-cta-row {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .hero-see-how {
    white-space: normal;
    text-align: center;
    font-size: 15px;
  }

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

  .hero-trust-row {
    text-align: center;
    font-size: 13.5px;
  }

  .iphone-frame {
    width: 240px;
  }

  /* Social Proof */
  .social-proof {
    padding: 32px 0;
  }

  .pill {
    font-size: 13px;
    padding: 8px 16px;
  }

  /* Problem */
  .problem {
    padding: 68px 0 64px;
  }

  .problem-headline {
    font-size: 28px;
    letter-spacing: -0.3px;
  }

  .problem-body {
    font-size: 16px;
  }

  .problem-rule {
    margin: 44px auto;
  }

  /* 1-column on mobile */
  .problem-cards {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 480px;
  }

  .problem-card {
    padding: 26px 22px;
  }

  /* Features */
  .features {
    padding: 60px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-card {
    padding: 32px 24px;
  }

  /* Steps — 1-column on mobile */
  .steps {
    padding: 60px 0 68px;
  }

  .steps-intro {
    font-size: 16px;
    margin-bottom: 36px;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .step-card {
    padding: 24px 20px 22px;
  }

  .step-card-image .iphone-frame {
    width: 180px;
  }

  /* Showcase — horizontal scroll */
  .showcase {
    padding: 60px 0;
  }

  .showcase-phones {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 24px;
    padding: 20px;
    margin: 40px -20px 0;
  }

  .showcase-phone {
    scroll-snap-align: center;
  }

  .showcase-phone .iphone-frame {
    width: 240px;
  }

  .showcase-phone:nth-child(1),
  .showcase-phone:nth-child(2),
  .showcase-phone:nth-child(3) {
    transform: rotate(0deg);
  }

  .showcase-phones::-webkit-scrollbar {
    display: none;
  }

  .showcase-phones {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* FAQ */
  .faq {
    padding: 60px 0;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.open .faq-answer {
    padding: 0 20px 20px;
  }

  /* Final CTA */
  .final-cta {
    padding: 60px 0;
  }

  .final-cta .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .final-cta-content {
    text-align: center;
  }

  .final-cta-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .final-cta-btn {
    display: flex;
    margin-left: auto;
    margin-right: auto;
  }

  .final-cta-content h2 {
    font-size: 28px;
  }

  .final-cta-phone {
    display: flex;
    margin-top: 8px;
  }

  .final-cta-phone .iphone-frame {
    width: 200px;
  }

  /* Footer */
  .footer {
    padding: 48px 0 28px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-columns {
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: center;
  }

  /* Sticky mobile download CTA */
  .sticky-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 997;
    background-color: var(--color-primary);
    padding: 15px 24px;
    padding-bottom: max(15px, env(safe-area-inset-bottom, 15px));
    justify-content: center;
    box-shadow: 0 -4px 20px rgba(123, 104, 200, 0.28);
  }

  .sticky-mobile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.1px;
  }

  /* Push page content above sticky CTA */
  body {
    padding-bottom: max(72px, calc(56px + env(safe-area-inset-bottom, 0px)));
  }

  /* Lift back-to-top button above sticky CTA */
  .back-to-top {
    bottom: max(88px, calc(72px + env(safe-area-inset-bottom, 0px)));
  }
}

/* ============================================================
   RESPONSIVE — Small phones (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .problem-cards {
    max-width: 100%;
  }
}

/* ============================================================
   LAUNCH BAR
   ============================================================ */
.launch-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--launch-bar-height);
  z-index: 1001;
  background-color: #EDE8F8;
  border-bottom: 1px solid rgba(123, 104, 200, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.launch-bar-inner {
  font-size: 13px;
  font-weight: 500;
  color: #4A3D9E;
  letter-spacing: 0.08px;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.launch-bar-inner:hover {
  opacity: 0.65;
  color: #4A3D9E;
}

.launch-bar-cta {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(74, 61, 158, 0.35);
}

/* ============================================================
   STICKY MOBILE DOWNLOAD CTA
   ============================================================ */
.sticky-mobile-cta {
  display: none;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar,
  .scroll-indicator,
  .hamburger,
  .nav-overlay {
    display: none !important;
  }

  body {
    padding-top: 0;
    color: #000;
    background: #fff;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-headline {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .fade-in-up {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(123, 104, 200, 0.4);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  z-index: 999;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: var(--color-primary-dark);
}
