/* ===== DESIGN TOKENS ===== */
:root {
  /* Background — soft lavender matching app background */
  --bg: #e8e8f5;
  --bg-soft: #f0f0fa;
  --bg-card: #ffffff;

  /* Accent colors from the app category cards */
  --coral: #ff6b4a;
  --coral-light: #ff8c6e;
  --purple: #6c63e0;
  --purple-light: #8b84f0;
  --purple-soft: #a09bff;
  --green: #4caf7d;
  --teal: #38bfa1;
  --blue: #4a90d9;
  --orange: #f5a623;
  --pink: #e84fa0;

  /* Text */
  --text: #1a1a2e;
  --text-soft: #5a5a7a;
  --text-muted: #9a9ab0;

  /* UI */
  --radius-card: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 24px rgba(108, 99, 224, 0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-float: 0 12px 40px rgba(108, 99, 224, 0.20), 0 2px 8px rgba(0,0,0,0.08);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', ui-rounded, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 10% -10%, rgba(108,99,224,0.12), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 20%, rgba(255,107,74,0.08), transparent 60%),
    radial-gradient(ellipse 800px 600px at 50% 110%, rgba(76,175,125,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(232, 232, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108, 99, 224, 0.12);
  box-shadow: 0 2px 20px rgba(108, 99, 224, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(108, 99, 224, 0.25);
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--purple);
  letter-spacing: -0.3px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== BUTTONS ===== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(108, 99, 224, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(108, 99, 224, 0.45);
  text-decoration: none;
  color: #fff;
}

.cta-btn.cta-large {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: 20px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--purple);
  background: rgba(108, 99, 224, 0.08);
  border: 1.5px solid rgba(108, 99, 224, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ghost-btn:hover {
  background: rgba(108, 99, 224, 0.14);
  border-color: rgba(108, 99, 224, 0.4);
  text-decoration: none;
}

.ghost-btn.ghost-large {
  padding: 16px 28px;
  font-size: 16px;
  border-radius: 20px;
}

/* ===== HERO ===== */
.hero {
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 520px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  display: inline-block;
}

.title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 18px;
  color: var(--text);
}

.title-accent {
  background: linear-gradient(135deg, var(--purple), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 28px;
}

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

.trust-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(108,99,224,0.15);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* Hero mock image — transparent, no shell */
.hero-phones {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mock {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

/* Floating decoration letters */
.deco-letters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.deco-letter {
  position: absolute;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  opacity: 0.07;
  color: var(--purple);
  user-select: none;
}

.dl-a  { font-size: 180px; top: -30px; right: 5%; }
.dl-b  { font-size: 120px; bottom: 5%; left: 2%; color: var(--coral); }
.dl-1  { font-size: 140px; top: 40%; right: 2%; color: var(--green); }
.dl-star { font-size: 100px; top: 10%; left: 5%; color: var(--orange); }
.dl-c  { font-size: 90px; bottom: 10%; right: 20%; color: var(--teal); }

/* ===== SECTIONS ===== */
.section {
  padding: 72px 0;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(108, 99, 224, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  line-height: 1.15;
}

.section-sub {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-soft);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.55;
}

/* ===== CATEGORY GRID ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: default;
  overflow: hidden;
  position: relative;
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  opacity: 0.12;
}

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

.cat-icon-bg {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -1px;
}

.cat-card h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--text);
}

.cat-card p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Color overrides per category */
.cat-letters { border-top: 4px solid var(--coral); }
.cat-letters .cat-icon-bg { background: linear-gradient(135deg, #ff6b4a, #ff9a6c); color: #fff; }

.cat-numbers { border-top: 4px solid var(--purple); }
.cat-numbers .cat-icon-bg { background: linear-gradient(135deg, #6c63e0, #a09bff); color: #fff; }

.cat-shapes { border-top: 4px solid var(--green); }
.cat-shapes .cat-icon-bg { background: linear-gradient(135deg, #4caf7d, #7dd4a0); color: #fff; font-size: 14px; letter-spacing: -1px; }

.cat-symbols { border-top: 4px solid var(--pink); }
.cat-symbols .cat-icon-bg { background: linear-gradient(135deg, #e84fa0, #f07abf); color: #fff; }

.cat-sight { border-top: 4px solid var(--orange); }
.cat-sight .cat-icon-bg { background: linear-gradient(135deg, #f5a623, #f7c96a); color: #fff; font-size: 18px; font-weight: 900; text-align: center; line-height: 1.2; }

.cat-color { border-top: 4px solid var(--teal); }
.cat-color .cat-icon-bg { background: linear-gradient(135deg, #38bfa1, #6de0c8); color: #fff; font-size: 32px; }

/* ===== HOW IT WORKS ===== */
.section-how {
  background: linear-gradient(135deg, rgba(108,99,224,0.06), rgba(255,107,74,0.04));
  border-radius: 40px;
  margin: 0 20px;
  padding: 72px 0;
}

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

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  text-align: center;
}

.step-num {
  position: absolute;
  top: -14px;
  left: 24px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(108,99,224,0.35);
}

.step-icon {
  font-size: 40px;
  margin-bottom: 16px;
  margin-top: 10px;
}

.step-card h3 {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===== SCREENSHOTS ===== */
.section-screens { background: transparent; }

.screens-scroll {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 40px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.screen-card {
  flex: 0 0 180px;
  text-align: center;
}

.screen-card img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-float);
  aspect-ratio: 390 / 844;
  object-fit: cover;
  background: #fff;
  border: 3px solid rgba(255,255,255,0.9);
}

.screen-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ===== FEATURE GRID ===== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.feat-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.feat-emoji {
  font-size: 28px;
  margin-bottom: 14px;
}

.feat-card h3 {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 8px;
}

.feat-card p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 40px;
  margin: 0 20px 72px;
  padding: 64px 24px;
  text-align: center;
  color: #fff;
  box-shadow: 0 16px 60px rgba(108, 99, 224, 0.35);
}

.cta-band-stars {
  font-size: 28px;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-band p {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 32px;
}

.cta-band .cta-btn {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.cta-band .cta-btn:hover {
  background: rgba(255,255,255,0.93);
  color: var(--purple);
}

/* ===== FAQ ===== */
.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 0;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1.5px solid transparent;
  transition: border-color 0.15s;
}

.faq-item[open] {
  border-color: rgba(108,99,224,0.25);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--purple);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(108,99,224,0.12);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(108,99,224,0.2);
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--purple);
}

.footer-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-soft);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--purple);
  text-decoration: none;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== APP STORE BADGE ===== */
.badge-link {
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}
.badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}
.badge-img {
  height: 40px;
  width: auto;
  display: block;
}
.badge-img-large {
  height: 54px;
}
/* On the purple CTA band, wrap badge in a white rounded pill */
.badge-on-dark {
  background: #fff;
  border-radius: 14px;
  padding: 6px 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.badge-on-dark .badge-img {
  /* badge stays black, white pill provides contrast */
}

/* Phone image fallback while hero_mock / letters assets are pending */
.phone img {
  background: linear-gradient(135deg, #e8e8f5, #c8c8f0);
}


@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

  .hero-mock { max-width: 320px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }

  .screens-scroll {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-how { margin: 0 12px; }
  .cta-band { margin: 0 12px 60px; }
}

@media (max-width: 640px) {
  .nav-actions .ghost-btn { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .screens-scroll { grid-template-columns: repeat(2, 1fr); }

  .hero { padding: 48px 0 60px; }
  .section { padding: 52px 0; }

  .hero-mock { max-width: 260px; margin: 0 auto; }
  .hero-grid { gap: 20px; }

  .section-how { margin: 0 8px; padding: 52px 0; }
  .cta-band { margin: 0 8px 52px; padding: 48px 20px; border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-btn, .ghost-btn, .cat-card { transition: none; }
}
