/* =====================================================
   BINATE — RESPONSIVE STYLESHEET
   Breakpoints:
     ≤ 1100px  Large tablet / small laptop
     ≤  900px  Tablet landscape (extends binate.css rules)
     ≤  768px  Tablet portrait
     ≤  480px  Mobile
     ≤  380px  Small mobile
===================================================== */

/* ─────────────────────────────────────────────────
   GLOBAL SAFETY
───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

img, canvas, svg {
  max-width: 100%;
}

/* ─────────────────────────────────────────────────
   LARGE TABLET  (≤ 1100px)
───────────────────────────────────────────────── */
@media (max-width: 1100px) {

  .hero-headline {
    font-size: clamp(2.5rem, 4.8vw, 3.75rem);
  }

  .voice-orb-wrap {
    width: 380px;
    height: 380px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─────────────────────────────────────────────────
   TABLET LANDSCAPE  (≤ 900px)
───────────────────────────────────────────────── */
@media (max-width: 900px) {

  /* ── Nav ── */
  nav {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 0.7rem 1.25rem;
    justify-content: center;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  /* ── Hero: switch to single column ── */
  .hero-section {
    padding: 5.5rem 0 3rem;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    padding: 0 1.25rem;
  }

  .hero-left {
    align-items: center;
    order: 1;
  }

  .hero-right {
    order: 2;
    margin: 0 auto;
  }

  /* Remove nowrap so accent text wraps and underline stays aligned */
  .hero-headline .accent {
    white-space: normal;
    display: inline;
  }

  .hero-headline .accent::after {
    display: none; /* hide underline that misaligns on wrap */
  }

  .hero-sub {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
  }

  /* Stack the CTA buttons */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 0.75rem;
  }

  .btn-hero-primary,
  .btn-hero-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  /* Orb sizing for tablet */
  .voice-orb-wrap {
    width: 300px;
    height: 300px;
  }

  /* Float cards — scale down */
  .card-meeting,
  .card-leads,
  .card-live {
    padding: 0.6rem 0.85rem;
    font-size: 0.78rem;
    gap: 0.5rem;
  }

  /* Logo strip */
  .logo-track-wrap {
    margin-top: 2rem;
  }

  /* ── Problem/Solution ── */
  .ps-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.25rem;
  }

  .ps-left {
    position: static;
    text-align: center;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-num-main {
    font-size: 2.4rem;
  }

  /* ── How It Works ── */
  .hiw-container {
    padding: 0 1.25rem;
  }

  .hiw-track {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hiw-connector {
    display: none;
  }

  .hiw-step {
    padding: 1.75rem 1.5rem;
  }

  .hiw-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  /* ── Features ── */
  .features-container {
    padding: 0 1.25rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card.large,
  .feature-card.wide,
  .feature-card.high {
    grid-column: span 1;
    grid-row: span 1;
  }

  .feature-card {
    padding: 1.75rem 1.5rem;
  }

  /* ── Comparison ── */
  .comp-container {
    padding: 0 1.25rem;
  }

  .comp-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .comp-card {
    padding: 2.5rem 1.75rem;
    border-radius: 1.75rem;
  }

  .comp-vs {
    display: none;
  }

  .comp-card.left,
  .comp-card.right {
    transform: translateY(20px);
  }

  /* ── Outcomes ── */
  .outcomes-container {
    padding: 0 1.25rem;
  }

  .outcomes-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 1rem;
  }

  .outcome-card.featured-wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem 1.75rem;
  }

  .outcome-ticker {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .outcome-wide-divider {
    display: none;
  }

  /* ── CTA Banner ── */
  .cta-banner-inner {
    grid-template-columns: 1fr;
    padding: 3.5rem 2rem;
    border-radius: 1.75rem;
    gap: 2rem;
  }

  .cta-banner-right {
    align-items: flex-start;
  }

  /* ── Pricing ── */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ── Footer ── */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
}

/* ─────────────────────────────────────────────────
   TABLET PORTRAIT  (≤ 768px)
───────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Hero ── */
  .hero-section {
    padding: 5rem 0 2.5rem;
  }

  .hero-container {
    gap: 2rem;
    padding: 0 1rem;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  /* Orb */
  .voice-orb-wrap {
    width: 260px;
    height: 260px;
    margin-bottom: 7.5rem !important; /* Make room for floating cards below */
  }

  #waveCanvas {
    width: 260px !important;
    height: 260px !important;
  }

  .call-orb {
    width: 92px; /* Increased for readability */
    height: 92px;
  }

  /* Position and scale floating cards underneath the central orb */
  .card-meeting,
  .card-leads,
  .card-live {
    --card-scale: 0.8;
    top: auto !important;
  }

  .card-meeting {
    bottom: -20% !important;
    left: -15% !important;
    right: auto !important;
    --card-translate-x: 0px;
  }

  .card-leads {
    bottom: -20% !important;
    right: -15% !important;
    left: auto !important;
    --card-translate-x: 0px;
  }

  .card-live {
    bottom: -50% !important;
    left: 50% !important;
    right: auto !important;
    --card-translate-x: -50%;
  }

  /* ── Stats: single column ── */
  .stat-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* ── Comp cards ── */
  .comp-card {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
  }

  /* ── CTA Banner ── */
  .cta-banner-inner {
    padding: 2.75rem 1.5rem;
    border-radius: 1.5rem;
  }

  .cta-banner-headline {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }

  .cta-time-badge {
    display: none;
  }

  /* ── Pricing ── */
  .price-card {
    padding: 2.5rem 1.75rem;
    border-radius: 1.5rem;
  }

  /* ── Footer ── */
  .footer-container {
    padding: 0 1rem;
  }
}

/* ─────────────────────────────────────────────────
   MOBILE  (≤ 480px)
───────────────────────────────────────────────── */
@media (max-width: 480px) {

  /* ── Nav ── */
  nav {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 0.6rem 0.85rem;
    justify-content: center;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .nav-logo-img {
    width: 26px;
    height: 26px;
  }

  .btn-primary {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  /* ── Hero ── */
  .hero-section {
    padding: 5rem 0 2rem;
  }

  .hero-container {
    padding: 0 1rem;
    gap: 1.75rem;
  }

  .hero-badge {
    margin-top: 1rem;
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem 0.3rem 0.3rem;
  }

  .badge-text {
    font-size: 0.7rem;
  }

  .hero-headline {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .hero-sub {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Fully stacked full-width CTA buttons */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 0.75rem;
  }

  .btn-hero-primary,
  .btn-hero-ghost {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.85rem 1.25rem;
  }

  /* Orb */
  .voice-orb-wrap {
    width: 220px;
    height: 220px;
    margin-bottom: 7.5rem !important; /* Make room for cards below */
  }

  #waveCanvas {
    width: 220px !important;
    height: 220px !important;
  }

  .call-orb {
    width: 84px; /* Increased from 68px for legibility */
    height: 84px;
  }

  .call-orb-label {
    font-size: 0.58rem;
  }

  /* Scale down and adjust positions for tight mobile query */
  .card-meeting,
  .card-leads,
  .card-live {
    --card-scale: 0.72;
    top: auto !important;
  }

  .card-meeting {
    bottom: -20% !important;
    left: -28% !important;
    right: auto !important;
    --card-translate-x: 0px;
  }

  .card-leads {
    bottom: -20% !important;
    right: -28% !important;
    left: auto !important;
    --card-translate-x: 0px;
  }

  .card-live {
    bottom: -50% !important;
    left: 50% !important;
    right: auto !important;
    --card-translate-x: -50%;
  }

  /* ── Section padding ── */
  .hero-section,
  .ps-section,
  .hiw-section,
  .features-section,
  .comp-section,
  .outcomes-section,
  .cta-banner-section,
  .pricing-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    height: auto !important;
  }

  /* ── Problem / Solution ── */
  .ps-container {
    padding: 0 1rem;
    gap: 2rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1.2rem 1.1rem;
  }

  /* ── How It Works ── */
  .hiw-container {
    padding: 0 1rem;
  }

  .hiw-step {
    padding: 1.5rem 1.25rem;
    border-radius: 1.25rem;
  }

  /* ── Features ── */
  .features-container {
    padding: 0 1rem;
  }

  .feature-card {
    padding: 1.5rem 1.25rem;
    border-radius: 1.25rem;
  }

  /* ── Comparison ── */
  .comp-container {
    padding: 0 1rem;
  }

  .comp-card {
    padding: 1.75rem 1.25rem;
    border-radius: 1.25rem;
    gap: 1.5rem;
  }

  /* ── Outcomes ── */
  .outcomes-container {
    padding: 0 1rem;
  }

  .outcome-card {
    padding: 1.5rem 1.25rem;
    border-radius: 1.25rem;
    gap: 1.25rem;
  }

  .outcome-big-num {
    font-size: 3.5rem;
  }

  .outcome-big-num {
    font-size: 4.5rem;
  }

  /* ── CTA Banner ── */
  .cta-banner-section {
    padding: 0 1rem 4rem;
  }

  .cta-banner-inner {
    padding: 2.25rem 1.25rem;
    border-radius: 1.25rem;
    gap: 1.75rem;
  }

  .cta-banner-headline {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .cta-banner-sub {
    font-size: 0.88rem;
  }

  .btn-cta-banner,
  .btn-cta-ghost-dark {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .cta-banner-right {
    width: 100%;
  }

  /* ── Pricing ── */
  .pricing-section {
    padding: 4rem 1rem;
  }

  .price-card {
    padding: 2rem 1.25rem;
    border-radius: 1.25rem;
  }

  .pricing-grid {
    max-width: 100%;
  }

  /* ── Footer ── */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1;
    text-align: center;
  }

  .footer {
    padding: 3rem 1rem 5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }
}

/* ─────────────────────────────────────────────────
   SMALL MOBILE  (≤ 380px)
───────────────────────────────────────────────── */
@media (max-width: 380px) {

  .hero-headline {
    font-size: 1.8rem;
  }

  .voice-orb-wrap {
    width: 190px;
    height: 190px;
  }

  #waveCanvas {
    width: 190px !important;
    height: 190px !important;
  }

  .call-orb {
    width: 76px; /* Increased for legibility */
    height: 76px;
  }

  /* Hide floating cards on the tiniest screens */
  .card-meeting,
  .card-leads,
  .card-live {
    display: none;
  }

  .cta-banner-headline {
    font-size: 1.55rem;
  }

  .btn-cta-banner {
    font-size: 0.9rem;
    padding: 0.85rem 1.25rem;
  }
}

/* ─────────────────────────────────────────────────
   MOBILE BOTTOM NAVIGATION
───────────────────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(5, 26, 20, 0.08);
  z-index: 9000;
  padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(5, 26, 20, 0.05);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--deep-emerald);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.4rem;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 60px;
}

.bottom-nav-item:hover, .bottom-nav-item:active {
  opacity: 1;
  color: var(--lime-dark, #89EB34);
}

.bottom-nav-item svg {
  margin-bottom: 2px;
}

/* ─────────────────────────────────────────────────
   HAMBURGER ICON WRAPPER
───────────────────────────────────────────────── */
.hamburger-icon-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 24px;
  height: 20px;
}

.hamburger-icon-wrapper span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Open / animated state */
.nav-hamburger.open .hamburger-icon-wrapper span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-hamburger.open .hamburger-icon-wrapper span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open .hamburger-icon-wrapper span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .mobile-bottom-nav {
    display: flex;
  }
}

/* ── Mobile nav drawer (Full Screen Popup) ── */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: 8999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  animation: drawerIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav-mobile-drawer.open {
  display: flex;
}

.drawer-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--deep-emerald);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close-btn:hover {
  background: rgba(5, 26, 20, 0.05);
}

.nav-mobile-drawer a.drawer-link {
  display: block;
  font-family: var(--font-body);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--deep-emerald);
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  text-align: center;
}

.nav-mobile-drawer a.drawer-link:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.nav-mobile-drawer .drawer-divider {
  width: 40px;
  height: 2px;
  background: var(--lime-dark, #89EB34);
  margin: 0.5rem 0;
}

.nav-mobile-drawer .drawer-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
}

.nav-mobile-drawer .drawer-cta .btn-primary {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 1.1rem;
  padding: 1rem;
}

.nav-mobile-drawer .btn-ghost {
  display: block;
  text-align: center;
  font-size: 1.1rem;
}
