/* TheRealConnect — Responsive Overrides */

/* ── MOBILE MENU ── */
.mobile-menu-overlay { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.4); }
.mobile-menu-overlay.open { display: flex; justify-content: flex-end; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu-panel {
  width: 85vw; max-width: 320px; height: 100%; background: #ffffff;
  display: flex; flex-direction: column; box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.mobile-menu-close { width: 40px; height: 40px; border: none; background: #f5f5f5; border-radius: 10px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mobile-menu-nav { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu-link {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  font-size: 17px; font-weight: 600; color: #1a1a2e; text-decoration: none;
  border-radius: 12px; min-height: 56px; -webkit-tap-highlight-color: transparent;
}
.mobile-menu-link:active { background: #f0f7f6; }
.mobile-menu-link span { font-size: 20px; width: 28px; text-align: center; }
.mobile-menu-footer { padding: 20px; border-top: 1px solid #f0f0f0; }
.mobile-menu-cta {
  display: flex; align-items: center; justify-content: center; width: 100%;
  padding: 16px 24px; background: linear-gradient(135deg, #0d9488, #2563eb);
  color: #fff; font-weight: 700; font-size: 16px; border-radius: 12px;
  text-decoration: none; min-height: 52px;
}

/* ── Tablet & below: 968px ── */
@media (max-width: 968px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 100%; }
  .feature-section-inner { grid-template-columns: 1fr; gap: 32px; }
  .feature-section-inner.reverse { direction: ltr; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .token-explainer { grid-template-columns: 1fr 1fr; }
  .data-flow { flex-direction: column; }
  .data-arrow { transform: rotate(90deg); }
  .pixeldo-showcase { grid-template-columns: 1fr 1fr; }
  .pixeldo-cta-strip { flex-direction: column; text-align: center; }

  .nav-links { display: none; }
  .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ── Small tablet / Large phone: 640px ── */
@media (max-width: 640px) {
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 16px 40px; }
  .pricing { padding: 60px 16px; }
  .how-it-works { padding: 60px 16px; }
  .platform { padding: 60px 16px; }
  .feature-section { padding: 50px 16px; }
  .data-section { padding: 60px 16px; }
  .trusted-logos { gap: 20px; }
  .logo-item { font-size: 15px; }
}

/* ── PHONE: 480px and below ── */
@media (max-width: 480px) {
  .navbar { height: 56px; padding: 0 12px; }
  .nav-inner { height: 56px; }
  .nav-brand-icon { width: 32px; height: 32px; font-size: 16px; }
  .nav-brand-text { font-size: 16px; }

  .hero { padding: 72px 14px 32px; min-height: auto; }
  .hero h1 { font-size: clamp(24px, 7vw, 32px) !important; line-height: 1.2; }
  .hero-badge { font-size: 11px; padding: 6px 12px; }
  .hero-desc { font-size: 14px; line-height: 1.6; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary {
    width: 100%; text-align: center; justify-content: center;
    padding: 14px 20px; font-size: 15px; min-height: 48px;
  }
  .hero-card { border-radius: 14px; }
  .cp-name { font-size: 13px; }

  .stats { padding: 24px 14px; }
  .stat-number { font-size: clamp(22px, 6vw, 28px); }
  .stat-label { font-size: 11px; }

  .trusted-by { padding: 24px 14px; }
  .trusted-logos { gap: 16px; }
  .logo-item { font-size: 13px; }

  .section-header h2 { font-size: clamp(22px, 6vw, 28px) !important; }
  .section-header p { font-size: 14px; }
  .section-tag { font-size: 11px; }

  .pillar-card { padding: 20px 16px; }
  .pillar-card h3 { font-size: 15px; }
  .pillar-card p { font-size: 13px; }
  .pillar-number { font-size: 36px; }

  .feature-content h2 { font-size: clamp(20px, 5.5vw, 26px) !important; }
  .feature-content p { font-size: 14px; }
  .feature-list-item div { font-size: 13px; }

  .token-explainer { grid-template-columns: 1fr 1fr; gap: 10px; }
  .token-card { padding: 14px; }
  .token-cost { font-size: 15px; }
  .token-action { font-size: 12px; }

  .price-card { padding: 24px 18px; }
  .price-amount { font-size: 28px; }
  .price-btn { padding: 14px; font-size: 15px; min-height: 48px; }

  .data-step { padding: 20px 14px; min-width: auto; }
  .data-icon { font-size: 28px; }

  .step-card { padding: 20px 16px; }
  .step-number { width: 40px; height: 40px; font-size: 16px; }

  .cta { padding: 50px 16px; }
  .cta h2 { font-size: clamp(22px, 6vw, 30px); }
  .cta p { font-size: 14px; }
  .cta-actions { flex-direction: column; }
  .btn-cta, .btn-cta-secondary { width: 100%; justify-content: center; padding: 14px 24px; font-size: 15px; }

  .footer { padding: 28px 14px; }
  .footer-links { gap: 16px; }

  a, button { -webkit-tap-highlight-color: transparent; }
}

/* ── iPhone safe areas ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .cta, .footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

/* ── Desktop hide mobile menu ── */
@media (min-width: 969px) {
  .mobile-menu-overlay { display: none !important; }
}

/* ── Print ── */
@media print {
  .navbar, .cta, .footer, .mobile-menu-overlay { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   MOBILE-FIRST OVERHAUL — Apr 2026
   Target: Builder sales teams check on phone first
   ═══════════════════════════════════════════════════════════ */

/* ── Channel Partner Intelligence — Phone ── */
@media (max-width: 768px) {
  .cp-intel-section { padding: 48px 14px; }
  .cp-intel-section .section-header h2 { font-size: 22px !important; line-height: 1.3; }
  .cp-intel-section .section-header p { font-size: 13px; }

  .cp-search-box { margin-bottom: 14px; }
  .cp-search-input { padding: 12px 12px 12px 42px; font-size: 14px; border-radius: 10px; }
  .cp-search-icon { left: 14px; font-size: 16px; }
  .cp-search-hint { display: none; }

  .cp-presets { gap: 6px; margin-bottom: 16px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .cp-preset-btn { font-size: 11px; padding: 6px 10px; border-radius: 6px; flex-shrink: 0; }

  .cp-results-panel { border-radius: 12px; }
  .cp-results-header { padding: 10px 14px; }
  .cp-results-label { font-size: 12px; }
  .cp-results-count { font-size: 12px; }
  .cp-results-count strong { font-size: 16px !important; }

  .cp-results-footer { flex-direction: column; gap: 8px; text-align: center; padding: 10px 14px; }
  .cp-results-cta { font-size: 14px; }

  /* Bottom stats cards */
  .cp-qa-bottom-card { grid-template-columns: 1fr !important; gap: 10px; }
  .cp-qa-bottom-stat { padding: 18px 14px; display: flex; align-items: center; gap: 14px; text-align: left; }
  .cp-qa-bottom-number { font-size: 28px !important; margin-bottom: 0; min-width: 80px; }
  .cp-qa-bottom-label { font-size: 12px; margin-bottom: 2px; }
  .cp-qa-bottom-desc { font-size: 11px; }
  .cp-qa-cta .btn-primary { width: 100%; text-align: center; justify-content: center; padding: 14px 20px; font-size: 15px; }
}

/* ── Hero section — better phone fit ── */
@media (max-width: 480px) {
  .hero-card { padding: 16px !important; }
  .hero-card-header { margin-bottom: 8px; }
  .search-preview { padding: 10px 12px !important; font-size: 13px !important; }
  .cp-preview-item { padding: 8px !important; gap: 8px !important; }
  .cp-avatar { width: 32px !important; height: 32px !important; font-size: 10px !important; }
  .cp-name { font-size: 12px !important; }
  .cp-meta { font-size: 10px !important; }
  .cp-tag { font-size: 9px !important; padding: 2px 6px !important; }

  /* Stats row */
  .stats-inner { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .stat-item { padding: 12px 8px; }

  /* Pixeldo — single column on phone */
  .pixeldo-showcase { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .pixeldo-card { border-radius: 10px; }
  .pixeldo-preview { height: 100px; }
  .pixeldo-info { padding: 10px 12px; }
  .pixeldo-info h4 { font-size: 12px; }
  .pixeldo-info p { font-size: 10px; }
  .pixeldo-badge { font-size: 8px !important; padding: 3px 6px !important; }
  .pixeldo-play { width: 36px; height: 36px; font-size: 14px; }

  /* Feature sections */
  .feature-visual { display: none; }  /* Hide the mock cards on tiny phones */
  .feature-list-item { padding: 10px 0; gap: 10px; }
  .feature-check { width: 28px; height: 28px; font-size: 14px; flex-shrink: 0; }

  /* Chat visual */
  .chat-bubble { font-size: 12px !important; padding: 8px 12px !important; }

  /* Pipeline visual */
  .pipeline-row { font-size: 12px; padding: 10px 14px; }

  /* Platform pillars */
  .pillar-card { padding: 16px 14px; }
  .pillar-icon { font-size: 28px; }

  /* Data section */
  .data-step { min-width: auto !important; padding: 16px 12px; }
  .data-icon { font-size: 24px !important; }
  .data-step h3 { font-size: 13px; }
  .data-step p { font-size: 11px; }

  /* How it works */
  .step-card { padding: 16px 14px; }
  .step-content h3 { font-size: 14px; }
  .step-content p { font-size: 12px; }

  /* Pricing */
  .price-card { padding: 20px 14px; border-radius: 14px; }
  .price-amount { font-size: 24px; }
  .price-period { font-size: 12px; }
  .price-features li { font-size: 13px; padding: 6px 0; }
  .price-btn { padding: 12px; font-size: 14px; }

  /* CTA */
  .cta { padding: 40px 14px; }
  .cta h2 { font-size: 22px !important; }
  .cta p { font-size: 13px; margin-bottom: 20px; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 12px; }
}

/* ── Touch optimizations ── */
@media (hover: none) and (pointer: coarse) {
  /* Bigger tap targets */
  .cp-preset-btn { min-height: 36px; }
  .nav-cta { min-height: 44px; display: flex; align-items: center; }
  .btn-primary, .btn-secondary { min-height: 48px; }
  .price-btn { min-height: 48px; }

  /* Remove hover effects that feel weird on touch */
  .cp-qa-bottom-stat:hover { transform: none; }
  .pillar-card:hover { transform: none; }
  .pixeldo-card:hover { transform: none; }
  .cp-result-row:hover { background: transparent; }
}

/* ── Prevent horizontal overflow ── */
* { max-width: 100vw; }
body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }
