/* =====================================================
   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) {
  nav {
    width: calc(100% - 3rem);
  }

  .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.75rem;
    width: calc(100% - 2rem);
    padding: 0.7rem 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .nav-cta .btn-ghost {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* ── 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;
  }

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

  .call-orb {
    width: 78px;
    height: 78px;
  }

  /* Shrink floating cards */
  .card-meeting,
  .card-leads,
  .card-live {
    transform: scale(0.88);
    transform-origin: center;
  }

  /* ── 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.5rem;
    width: calc(100% - 1.5rem);
    padding: 0.6rem 0.85rem;
    border-radius: 1rem;
  }

  .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 {
    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;
  }

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

  .call-orb {
    width: 68px;
    height: 68px;
  }

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

  /* Floating cards — smaller and tighter */
  .card-meeting,
  .card-leads,
  .card-live {
    transform: scale(0.78);
    transform-origin: center;
  }

  /* ── 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 1rem;
    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: 60px;
    height: 60px;
  }

  /* 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;
  }
}

/* ─────────────────────────────────────────────────
   HAMBURGER MENU  (mobile nav toggle)
───────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.nav-hamburger:hover {
  background: rgba(5, 26, 20, 0.06);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--deep-emerald);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

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

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

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

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

/* ── Mobile nav drawer ── */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 4.5rem;
  left: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 1.25rem;
  border: 1px solid rgba(5, 26, 20, 0.08);
  box-shadow: 0 16px 48px -8px rgba(5, 26, 20, 0.18);
  padding: 0.75rem;
  z-index: 9000;
  flex-direction: column;
  gap: 0.25rem;
  animation: drawerIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

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

.nav-mobile-drawer a {
  display: block;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--deep-emerald);
  text-decoration: none;
  border-radius: 0.75rem;
  transition: background 0.15s;
}

.nav-mobile-drawer a:hover {
  background: rgba(5, 26, 20, 0.05);
}

.nav-mobile-drawer .drawer-divider {
  height: 1px;
  background: rgba(5, 26, 20, 0.07);
  margin: 0.25rem 0;
}

.nav-mobile-drawer .drawer-cta {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile-drawer .drawer-cta .btn-primary {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  display: flex;
}

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