/* ============================================================
   SYNQ HOME PAGE — Additional styles
   (Depends on styles.css being loaded first)
   ============================================================ */

/* ── Override: nav active for home ── */
.nav-cta {
  background: var(--accent) !important;
  color: var(--text-on-accent) !important;
  font-weight: var(--weight-semibold);
  padding: var(--space-2) var(--space-5) !important;
  box-shadow: var(--glow-sm);
  transition: background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out) !important;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: var(--text-on-accent) !important;
  box-shadow: var(--glow-md);
  transform: scale(1.03);
}

/* ── Eyebrow pill (hero) ── */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-5);
}

/* ── HERO ── */
.hero-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-11) var(--gutter) var(--space-7);
  position: relative;
  z-index: 1;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-10);
  margin-bottom: var(--space-9);
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 62px);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}
.hero-text h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: var(--text-title);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  max-width: 440px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
}
.badge {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ── Store buttons ── */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
  min-width: 160px;
}
.btn-store span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.btn-store small {
  font-size: 11px;
  font-weight: var(--weight-regular);
  opacity: 0.8;
}
.btn-store span > *:last-child {
  font-size: 17px;
  font-weight: var(--weight-bold);
  font-family: var(--font-display);
}
.btn-appstore {
  background: var(--text-primary);
  color: var(--ink-900);
  box-shadow: var(--shadow-md);
}
.btn-appstore:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
  color: var(--ink-900);
}
.btn-playstore {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.btn-playstore:hover {
  transform: scale(1.04);
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
  color: var(--text-primary);
}
.btn-store.btn-lg {
  padding: 14px 26px;
  min-width: 190px;
}
.btn-store.btn-lg span > *:last-child { font-size: 20px; }

/* ── Hero phone ── */
.hero-phone-wrap {
  flex-shrink: 0;
}
.hero-phone {
  width: clamp(200px, 22vw, 300px);
  border-radius: 32px;
  box-shadow: var(--shadow-xl), var(--glow-sm);
  display: block;
}

/* ── Feature banner ── */
.feature-banner-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.feature-banner {
  width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════════
   FEATURE ROWS
══════════════════════════════════════════ */
.feature-row {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-11) var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-10);
  position: relative;
  z-index: 1;
}
.feat-row-reverse {
  grid-template-columns: auto 1fr;
}

/* text side */
.feature-text { max-width: 480px; }
.feat-eyebrow {
  display: inline-block;
  font-size: var(--text-micro);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.feature-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}
.feature-text h2 em {
  font-style: normal;
  color: var(--accent);
}
.feature-text > p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-body);
  margin-bottom: var(--space-6);
  max-width: 420px;
}
.feat-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.feat-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-body);
}
.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

/* phone side */
.feature-phone-wrap {
  flex-shrink: 0;
}
.feature-phone {
  width: clamp(160px, 18vw, 240px);
  border-radius: 28px;
  box-shadow: var(--shadow-xl), var(--glow-sm);
  display: block;
}

/* ══════════════════════════════════════════
   STATS STRIP
══════════════════════════════════════════ */
.stats-strip {
  max-width: 1100px;
  margin: 0 auto var(--space-11);
  padding: var(--space-8) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: nowrap;
  gap: var(--space-4);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md), var(--ring-top);
  position: relative;
  z-index: 1;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: var(--weight-extrabold);
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}
.stat-plus {
  color: var(--teal-300);
  font-size: 0.7em;
  vertical-align: super;
}
.stat-label {
  font-size: var(--text-caption);
  color: var(--text-tertiary);
  font-weight: var(--weight-medium);
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-subtle);
}

/* ══════════════════════════════════════════
   DOWNLOAD SECTION
══════════════════════════════════════════ */
.download-section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto var(--space-12);
  padding: 0 var(--gutter);
}
.download-inner {
  background: linear-gradient(135deg, #0d1f1c 0%, var(--surface-1) 50%, #0d1f1c 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-2xl);
  box-shadow: var(--glow-md), var(--shadow-xl);
  padding: var(--space-12) var(--space-9);
  text-align: center;
}
.download-inner .eyebrow {
  display: inline-block;
  font-size: var(--text-micro);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.download-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}
.download-inner > p {
  color: var(--text-secondary);
  font-size: var(--text-body);
  margin-bottom: var(--space-8);
}
.dl-store-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}
.dl-fine-print {
  font-size: var(--text-caption);
  color: var(--text-disabled);
}
.dl-fine-print a { color: var(--text-tertiary); }
.dl-fine-print a:hover { color: var(--accent); }

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 900px)
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-content {
    gap: var(--space-7);
  }
  .hero-phone {
    width: clamp(160px, 18vw, 220px);
  }
  .feature-row {
    gap: var(--space-7);
  }
  .feature-phone {
    width: clamp(140px, 16vw, 200px);
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Hero ── */
  .hero-section {
    padding: var(--space-9) var(--gutter) var(--space-6);
  }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-7);
  }
  /* Show phone image below CTAs on mobile */
  .hero-text { order: 1; }
  .hero-phone-wrap {
    order: 2;
    display: flex;
    justify-content: center;
  }
  .hero-phone {
    width: clamp(200px, 60vw, 280px);
    border-radius: 28px;
  }
  .hero-sub {
    max-width: 100%;
    font-size: var(--text-body);
  }
  .hero-badges { justify-content: center; }
  .hero-ctas { justify-content: center; }

  /* ── Feature rows ──
     Always: text on top, phone on bottom, regardless of DOM order.
     Use explicit grid-row to force text above image every time.  */
  .feature-row,
  .feat-row-reverse {
    grid-template-columns: 1fr;
    gap: var(--space-7);
    padding: var(--space-9) var(--gutter);
    text-align: center;
  }

  /* Normal row (text-left / phone-right on desktop) */
  .feature-row .feature-text    { grid-row: 1; }
  .feature-row .feature-phone-wrap { grid-row: 2; }

  /* Reversed row (phone-left / text-right on desktop) — re-order for mobile */
  .feat-row-reverse .feature-phone-wrap { grid-row: 2; }
  .feat-row-reverse .feature-text       { grid-row: 1; }

  .feature-text {
    max-width: 100%;
  }
  .feature-text > p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Feature phone images */
  .feature-phone-wrap {
    display: flex;
    justify-content: center;
  }
  .feature-phone {
    width: clamp(180px, 58vw, 260px);
  }

  /* Feat list: keep left-aligned inside a centered block */
  .feat-list {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-3);
  }
  /* Wrapper trick: center the inline-flex block */
  .feature-text > ul.feat-list {
    width: auto;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .feat-list li {
    justify-content: flex-start;
  }

  /* ── Stats strip → 2 × 2 grid ── */
  .stats-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6) var(--space-4);
    padding: var(--space-7) var(--space-6);
    margin-left: var(--gutter);
    margin-right: var(--gutter);
    border-radius: var(--radius-xl);
  }
  .stat-divider { display: none; }
  .stat-num { font-size: clamp(24px, 6vw, 32px); }

  /* ── Download CTA ── */
  .download-section {
    margin-bottom: var(--space-10);
  }
  .download-inner {
    padding: var(--space-9) var(--space-6);
    border-radius: var(--radius-xl);
  }
  .download-inner h2 {
    font-size: clamp(24px, 6vw, 36px);
  }
  .dl-store-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
  .btn-store.btn-lg {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-text h1 { font-size: 30px; }
  .hero-sub { font-size: var(--text-label); }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .btn-store {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .feature-row,
  .feat-row-reverse {
    padding: var(--space-8) var(--gutter);
  }
  .feature-text h2 { font-size: 24px; }

  .stats-strip {
    margin-left: var(--space-4);
    margin-right: var(--space-4);
    padding: var(--space-6) var(--space-5);
  }

  .eyebrow-pill { font-size: 11px; }

  .nav-links { gap: var(--space-1); }
  .nav-link { padding: var(--space-2) var(--space-3); font-size: 13px; }
  .nav-cta { padding: var(--space-2) var(--space-3) !important; }
}
