/* ═══════════════════════════════════════════════════════════
   Cue — shared styles for SEO landing pages (Phase 2-5)
   Design system extracted from index.html. Keep in sync.
   ═══════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  background: #fff;
  color: #1d1a1a;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ── LAYOUT ── */
.page { max-width: 1040px; margin: 0 auto; padding: 0 48px; }
.divider { border: none; border-top: 1px solid #f0f0f0; max-width: 1040px; margin: 0 auto; }

/* ── SCROLL PROGRESS ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, #2563eb, #93c5fd);
  width: 0%; z-index: 9999; pointer-events: none;
  transition: width 0.08s linear;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #f0f0f0;
  transition: box-shadow 0.3s ease, border-bottom-color 0.3s ease;
}
nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.06); border-bottom-color: #e5e5e5; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #1d1a1a; }
.nav-logo span { font-size: 30px; font-weight: 800; letter-spacing: -1.2px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 17px; color: #888; text-decoration: none; transition: color 0.15s; font-weight: 500; }
.nav-links a:hover { color: #1d1a1a; }
.btn-nav {
  font-size: 16px; font-weight: 600; padding: 10px 24px;
  background: #1d1a1a; color: #fff; border-radius: 10px;
  text-decoration: none; transition: opacity 0.15s;
}
.btn-nav:hover { opacity: 0.8; }
.logo-svg { width: 40px; height: 40px; }

/* ── LANG SWITCH ── */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 4px;
  background: none; border: 1px solid #eee; border-radius: 6px;
  padding: 5px 10px; font-size: 12px; color: #555; cursor: pointer;
}
.lang-btn:hover { border-color: #ccc; }
.lang-menu {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 4px;
  background: #fff; border: 1px solid #eee; border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 4px 0;
  min-width: 100px; z-index: 200;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
  display: block; padding: 6px 14px; font-size: 12px;
  color: #555; text-decoration: none;
}
.lang-menu a:hover { background: #f5f5f5; }

/* ── HERO (landing-page variant — text-only, no video) ── */
.hero {
  padding: 140px 0 80px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: #555;
  background: #f5f5f5; border: 1px solid #eee;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 20px;
}
.hero-badge .dot {
  width: 5px; height: 5px; background: #2563eb; border-radius: 50%;
  animation: bdot 2s ease-in-out infinite;
}
@keyframes bdot { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero h1 {
  font-size: 72px; font-weight: 800; letter-spacing: -3.5px; line-height: 1.05;
  margin-bottom: 20px; max-width: 820px;
}
.hero h1 em { font-style: normal; color: #9ca3af; }
.hero-sub {
  font-size: 18px; color: #666; line-height: 1.6;
  margin: 0 auto 32px; max-width: 580px;
}
.hero-actions { display: flex; gap: 14px; align-items: center; justify-content: center; margin-bottom: 0; flex-wrap: wrap; }
.btn-disabled {
  opacity: 0.55; cursor: not-allowed !important; pointer-events: none;
  user-select: none;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1d1a1a; color: #fff;
  font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 10px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.15s !important;
}
.btn-primary:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: #555;
  font-size: 15px; font-weight: 500;
  padding: 13px 22px; border-radius: 10px;
  text-decoration: none; border: 1px solid #e5e5e5;
  transition: border-color 0.15s;
}
.btn-ghost:hover { border-color: #ccc; color: #1d1a1a; }
.hero-meta { font-size: 12px; color: #bbb; letter-spacing: 0.2px; margin-top: 14px; }

/* ── SECTIONS ── */
.section { padding: 120px 0; }
.section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: #bbb; margin-bottom: 10px;
}
.section-title { font-size: 56px; font-weight: 800; letter-spacing: -2.2px; line-height: 1.05; margin-bottom: 18px; }
.section-desc { font-size: 18px; color: rgba(17,17,17,0.55); line-height: 1.65; max-width: 640px; margin-bottom: 48px; }

/* ── STATS BAR ── */
.stats-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 40px 48px; max-width: 1040px; margin: 0 auto;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.stat-item { flex: 1; text-align: center; padding: 0 24px; }
.stat-num {
  font-size: 42px; font-weight: 800; letter-spacing: -1.6px;
  color: #1d1a1a; line-height: 1.1; margin-bottom: 6px;
  white-space: nowrap;
}
.stat-label { font-size: 14px; color: rgba(17,17,17,0.45); font-weight: 400; }
.stat-div { width: 1px; height: 40px; background: #f0f0f0; flex-shrink: 0; }

/* ── COMPARE TABLE ── */
.compare-wrap { border: 1px solid #eee; border-radius: 14px; overflow: hidden; background: #fff; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th {
  text-align: center; padding: 14px 18px;
  border-bottom: 2px solid #f0f0f0;
  font-size: 13px; font-weight: 600; color: #999; background: #fafafa;
}
.compare-table th:first-child { text-align: left; }
.compare-table th.hi { color: #1d1a1a; background: #f0f6ff; font-weight: 700; }
.compare-table td { padding: 13px 18px; border-bottom: 1px solid #f5f5f5; text-align: center; }
.compare-table td.fname { font-weight: 600; color: #1d1a1a; text-align: left; }
.compare-table td.fname small { display: block; font-size: 11px; color: #888; font-weight: 400; margin-top: 2px; }
.compare-table td.hi { background: #f8fbff; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tbody tr { cursor: default; transition: background 0.12s; }
.compare-table tbody tr:hover td { background: #f5f8ff; }
.compare-table tbody tr:hover td.hi { background: #e9f1ff; }
.compare-table tbody tr:hover td.fname { color: #2563eb; transition: color 0.12s; }
.yes { color: #059669; font-weight: 600; }
.no  { color: #dc2626; }
.partial { color: #ea580c; }

/* ── CARDS GRID (differentiators, pricing, use cases) ── */
.cards { display: grid; gap: 16px; }
.cards.c2 { grid-template-columns: 1fr 1fr; }
.cards.c3 { grid-template-columns: repeat(3,1fr); }
.cards.c4 { grid-template-columns: repeat(4,1fr); }
.card {
  border: 1px solid #eee; border-radius: 14px;
  padding: 28px 26px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  background: #fff;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); border-color: #ddd; transform: translateY(-2px); }
.card.featured { border: 1.5px solid #1d1a1a; background: #1d1a1a; color: #fff; }
.card.featured h3 { color: #fff; }
.card.featured .card-eyebrow { color: #93c5fd; }
.card.featured .card-desc { color: #d1d5db; }
.card-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #2563eb; margin-bottom: 10px; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.4px; }
.card-desc { font-size: 14px; color: #666; line-height: 1.65; }
.card-price { font-size: 44px; font-weight: 800; letter-spacing: -2px; margin: 16px 0 4px; }
.card-price small { font-size: 14px; font-weight: 500; color: #888; letter-spacing: 0; }
.card ul.card-list { list-style: none; margin-top: 18px; }
.card ul.card-list li {
  font-size: 13px; color: #555; line-height: 1.6; padding: 6px 0;
  display: flex; align-items: flex-start; gap: 8px;
}
.card.featured ul.card-list li { color: #d1d5db; }
.card ul.card-list li::before { content: '✓'; color: #2563eb; font-weight: 700; flex-shrink: 0; }
.card.featured ul.card-list li::before { color: #93c5fd; }

/* ── TAKEAWAY CALLOUT (when to pick which) ── */
.takeaway {
  border-left: 3px solid #2563eb;
  padding: 16px 20px;
  background: #f0f6ff;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
}
.takeaway h4 { font-size: 14px; font-weight: 700; color: #1d1a1a; margin-bottom: 6px; }
.takeaway p { font-size: 14px; color: #444; line-height: 1.65; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; text-align: left; }
#faq { text-align: left; }
#faq .section-label, #faq .section-title, #faq .section-desc { max-width: 720px; margin-left: auto; margin-right: auto; }
.faq-item { border-bottom: 1px solid #f0f0f0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 16px;
  color: #1d1a1a; background: none; border: none; width: 100%; text-align: left;
}
.faq-q::after { content: '+'; font-size: 18px; color: #888; transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  opacity: 0;
  transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
  font-size: 14px; color: #555; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; opacity: 1; }
.faq-a p { padding: 0 0 16px; }

/* ── FINAL CTA ── */
.final-cta { padding: 120px 0; text-align: center; }
.final-cta h2 { font-size: 64px; font-weight: 800; letter-spacing: -2.8px; line-height: 1.0; margin-bottom: 20px; }
.final-cta p { font-size: 16px; color: #888; margin-bottom: 32px; max-width: 440px; margin-left: auto; margin-right: auto; }
.final-meta { font-size: 12px; color: #bbb; margin-top: 14px; }

/* ── RELATED LINKS ── */
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  max-width: 960px; margin: 40px auto 0;
}
.related-card {
  padding: 20px 22px; border: 1px solid #eee; border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.related-card:hover { border-color: #ccc; box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.related-card .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: #2563eb; margin-bottom: 8px; }
.related-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.3px; }
.related-card p { font-size: 13px; color: #888; line-height: 1.55; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid #f0f0f0; padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 960px; margin: 0 auto;
}
.footer-left { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #bbb; }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: 12px; color: #bbb; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #1d1a1a; }

/* ── FADE UP ANIMATION ── */
.fade-up { transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.will-anim { opacity: 0; transform: translateY(22px); }
.fade-up.visible   { opacity: 1; transform: translateY(0); }
.fade-stagger > * { transition: opacity 0.50s ease, transform 0.50s ease; }
.fade-stagger.will-anim > * { opacity: 0; transform: translateY(18px); }
.fade-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.08s; }
.fade-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.16s; }
.fade-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.24s; }
.fade-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.32s; }

/* ── HERO ENTRANCE ── */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge   { animation: heroIn 0.55s ease forwards 0.05s; opacity: 0; }
.hero h1      { animation: heroIn 0.65s ease forwards 0.12s; opacity: 0; }
.hero-sub     { animation: heroIn 0.60s ease forwards 0.22s; opacity: 0; }
.hero-actions { animation: heroIn 0.60s ease forwards 0.32s; opacity: 0; }
.hero-meta    { animation: heroIn 0.50s ease forwards 0.40s; opacity: 0; }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: 1040px; margin: 88px auto 0; padding: 0 48px;
  font-size: 13px; color: #999;
}
.breadcrumbs a { color: #999; text-decoration: none; transition: color 0.15s; }
.breadcrumbs a:hover { color: #1d1a1a; }
.breadcrumbs .sep { margin: 0 8px; color: #ddd; }
.breadcrumbs .current { color: #555; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .page { padding: 0 24px; }
  nav { padding: 0 20px; height: 60px; }
  .nav-logo span { font-size: 22px; }
  .logo-svg { width: 28px; height: 28px; }
  .btn-nav { font-size: 13px; padding: 8px 16px; }
  .nav-links { display: none; }
  .hero { padding-top: 100px; }
  .hero h1 { font-size: 40px; letter-spacing: -1.5px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-wrap: wrap; justify-content: center; }
  .breadcrumbs { margin-top: 68px; padding: 0 24px; }
  .section-title { font-size: 32px; letter-spacing: -1.2px; }
  .section { padding: 70px 0; }
  .section-desc { font-size: 15px; }
  .stat-num { font-size: 28px; }
  .final-cta { padding: 70px 0; }
  .final-cta h2 { font-size: 34px; letter-spacing: -1.3px; }
  .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table { min-width: 520px; }
  .compare-table th, .compare-table td { padding: 10px 10px; font-size: 12px; }
  .cards.c2, .cards.c3, .cards.c4 { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .card-price { font-size: 34px; }
}
@media (max-width: 480px) {
  .stats-bar { flex-wrap: wrap; }
  .stat-div { display: none; }
  .stat-item { flex-basis: 100%; padding: 12px 0; }
}
