/* ============================================================
   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);
}
/* ── Coming Soon / Disabled state ── */
.btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
  filter: grayscale(30%);
}
.btn-disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}
.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; }
}

/* ============================================================
   HOME — MOTION LAYER
   Gated behind <html class="anim">. Reduced-motion users are
   never given the class, so content renders fully static.
   ============================================================ */

/* ---- Hero entrance (staggered fade-up on load) ---- */
html.anim .eyebrow-pill,
html.anim .hero-text h1,
html.anim .hero-sub,
html.anim .hero-badges,
html.anim .hero-ctas,
html.anim .hero-phone-wrap,
html.anim .feature-banner-wrap {
  animation: hero-in 0.8s var(--ease-out) both;
}
html.anim .eyebrow-pill      { animation-delay: 0.05s; }
html.anim .hero-text h1      { animation-delay: 0.15s; }
html.anim .hero-sub          { animation-delay: 0.28s; }
html.anim .hero-badges       { animation-delay: 0.40s; }
html.anim .hero-ctas         { animation-delay: 0.52s; }
html.anim .hero-phone-wrap   { animation-delay: 0.35s; }
html.anim .feature-banner-wrap { animation-delay: 0.65s; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* ---- Eyebrow pill: soft pulsing halo ---- */
html.anim .eyebrow-pill {
  position: relative;
}
html.anim .eyebrow-pill::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--accent-soft-strong);
  animation: pill-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94,234,212,0.28); }
  50%      { box-shadow: 0 0 14px 2px rgba(94,234,212,0.16); }
}

/* ---- Static gradient on accent (em) words ----
   Kept static: background-clip:text can't be composited, so animating
   it repaints every frame. A fixed gradient looks just as vivid, free. */
html.anim .hero-text h1 em,
html.anim .feature-text h2 em,
html.anim .download-inner h2 {
  background: linear-gradient(100deg, var(--teal-400) 0%, var(--teal-300) 40%, var(--violet-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- Hero phone: floating + hover base ---- */
html.anim .hero-phone {
  animation: phone-float 6.5s ease-in-out infinite;
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.hero-phone,
.feature-phone {
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
}
.feature-phone-wrap:hover .feature-phone,
.hero-phone-wrap:hover .hero-phone {
  box-shadow: var(--shadow-xl), var(--glow-md);
}

/* ---- Feature phones: gentle drift (offset per row) ---- */
html.anim .feat-phone-right .feature-phone { animation: phone-float 7.5s ease-in-out infinite; }
html.anim .feat-phone-left  .feature-phone { animation: phone-float 8.2s ease-in-out infinite 0.6s; }

/* ---- Feature icon check: pop when row reveals ---- */
html.anim .feature-row.in-view .feat-icon,
html.anim .feat-row-reverse.in-view .feat-icon {
  animation: icon-pop 0.5s var(--ease-spring) both;
}
html.anim .feature-row.in-view .feat-list li:nth-child(1) .feat-icon { animation-delay: 0.15s; }
html.anim .feature-row.in-view .feat-list li:nth-child(2) .feat-icon { animation-delay: 0.25s; }
html.anim .feature-row.in-view .feat-list li:nth-child(3) .feat-icon { animation-delay: 0.35s; }
html.anim .feat-row-reverse.in-view .feat-list li:nth-child(1) .feat-icon { animation-delay: 0.15s; }
html.anim .feat-row-reverse.in-view .feat-list li:nth-child(2) .feat-icon { animation-delay: 0.25s; }
html.anim .feat-row-reverse.in-view .feat-list li:nth-child(3) .feat-icon { animation-delay: 0.35s; }
@keyframes icon-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

/* ---- Store buttons: sheen sweep on hover ---- */
.btn-store { position: relative; overflow: hidden; }
.btn-store::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
html.anim .btn-store:hover::after {
  animation: store-sheen 0.75s var(--ease-out);
}
@keyframes store-sheen {
  0%   { left: -70%; opacity: 0; }
  15%  { opacity: 1; }
  100% { left: 140%; opacity: 0; }
}

/* ---- Stats: hover + reveal ---- */
.stat-item {
  transition: transform var(--dur-base) var(--ease-out);
}
.stat-item:hover { transform: translateY(-4px); }
.stat-num {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-spring),
              text-shadow var(--dur-base) var(--ease-out);
}
.stat-item:hover .stat-num {
  transform: scale(1.08);
  text-shadow: var(--glow-sm);
}

/* ---- Download CTA: soft breathing glow ----
   Glow uses a composited pseudo-element (opacity), not an animated
   box-shadow, so it never triggers a repaint of the card itself. */
.download-inner { position: relative; }
.download-inner > * { position: relative; z-index: 1; }
html.anim .download-inner::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow: var(--glow-lg);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation: dl-glow 6s ease-in-out infinite;
}
@keyframes dl-glow {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.85; }
}

/* Download heading uses its own gradient — override sizing quirk */
html.anim .download-inner h2 { display: inline-block; }

/* ── Direct APK download row (below store buttons) ── */
.dl-apk-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.btn-apk {
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  box-shadow: none;
}
.btn-apk small { color: var(--text-tertiary); }
.btn-apk .store-name { color: var(--text-primary); }
.btn-apk:hover {
  transform: scale(1.04);
  background: var(--accent-soft-strong);
  box-shadow: var(--glow-sm);
  color: var(--accent);
}
.dl-whatsnew-link {
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}
.dl-whatsnew-link:hover { color: var(--accent); }
