/* Heed — Responsive */

/* Nav */
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link { color: var(--text-secondary); }
.nav-cta { padding: 9px 16px; font-size: 14px; }

@media (max-width: 720px) {
  .nav-row { height: 56px; }
  .nav-links { gap: 14px; }
  .nav-link { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
}

/* Section padding tightens on mobile */
@media (max-width: 720px) {
  section { padding: 56px 0; }
  .container { padding: 0 20px; }
}

/* Hero */
@media (max-width: 920px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-display {
    font-size: clamp(36px, 9vw, 52px);
    max-width: 16ch;
  }
  .hero-sub { font-size: 17px; }
}

@media (max-width: 720px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { gap: 40px; }
  .hero-visual {
    height: 480px;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-display { font-size: clamp(34px, 10vw, 44px); }
  .hero-sub { font-size: 16px; }
  .hero-card-sms { width: 240px; top: 160px; }
  .hero-card-google { width: 220px; right: 0; }
  .hero-card-private { width: 220px; left: 0; }
  .hero-arrow-up { right: 16px; top: 230px; transform: none; }
  .hero-arrow-down { left: 16px; top: 100px; transform: rotate(180deg); }
  .hero-arrow svg { width: 44px; height: 30px; }
  .hero-arrow-label,
  .hero-arrow-label-dark { font-size: 9px; }
  .hero-arrow-down .hero-arrow-label,
  .hero-arrow-down .hero-arrow-label-dark { transform: rotate(180deg); }
}

@media (max-width: 420px) {
  .hero-visual { height: 460px; }
  .hero-card-sms { width: 220px; }
  .hero-card-google, .hero-card-private { width: 200px; }
  .hero-card { padding: 14px 16px; }
  .hero-card-body { font-size: 13px; }
  .hero-card-body-sm { font-size: 12px; }
}

/* CTA buttons stack-friendly */
@media (max-width: 480px) {
  .btn { padding: 12px 18px; font-size: 14px; }
  .btn-primary { width: 100%; justify-content: center; }
  .btn-text { width: 100%; justify-content: center; }
  .hero-copy .btn-primary, .hero-copy .btn-text { width: auto; }
}

/* Display / H1 / H2 scale-down */
@media (max-width: 720px) {
  .display { font-size: clamp(34px, 9vw, 44px); letter-spacing: -0.025em; }
  .h1 { font-size: clamp(26px, 6.5vw, 32px); }
  .h2 { font-size: 22px; }
  .body-lg { font-size: 16px; }
}

/* Demo section */
@media (max-width: 720px) {
  .demo-toolbar { padding: 12px 14px; }
  .demo-tab { padding: 6px 12px; font-size: 12px; }
  .demo-status { display: none; }
  .demo-body { min-height: 0; }
  .patient-stage { padding: 32px 16px 40px; gap: 22px; }
  .screen-frame { padding: 22px 20px 20px; min-height: 320px; }
  .trail-line { width: 24px; }
  .side-note { padding: 0 12px; }
}

/* Clinic view: already collapses at 720px in demo.css. Tighten further. */
@media (max-width: 720px) {
  .clinic-side { max-height: 220px; }
  .clinic-row { padding: 12px 14px; }
  .clinic-row-preview { font-size: 12px; }
  .clinic-main { padding: 18px 16px; }
  .clinic-quote { padding: 14px 16px; }
  .clinic-reply { padding: 14px 16px; }
}

.how-step-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 32px;
}
@media (max-width: 720px) {
  .how-step-body { grid-template-columns: 1fr !important; gap: 8px !important; }
  .how-step-row { grid-template-columns: 1fr !important; gap: 8px !important; padding-top: 24px !important; }
}

/* How it works section breathing room */
.how-section {
  padding: clamp(96px, 12vw, 144px) 0 clamp(96px, 12vw, 144px);
}
.how-head {
  max-width: 640px;
  margin-bottom: clamp(56px, 8vw, 88px);
}
.how-section::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
  max-width: 1120px;
  margin: clamp(72px, 10vw, 120px) auto 0;
}
@media (max-width: 720px) {
  .how-section { padding: 64px 0 64px; }
  .how-head { margin-bottom: 40px; }
  .how-section::after { margin-top: 56px; }
}

/* Pricing */
@media (max-width: 720px) {
  .pricing-card { padding: 24px !important; }
  .pricing-price { font-size: 40px !important; }
}

/* CTA / Access */
@media (max-width: 480px) {
  .cta-form { flex-direction: column; align-items: stretch; }
  .cta-form input { width: 100%; }
  .cta-form .btn { width: 100%; justify-content: center; }
}

/* Footer */
@media (max-width: 480px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

/* Tighten the eyebrow on mobile */
@media (max-width: 480px) {
  .eyebrow { font-size: 11px; letter-spacing: 0.1em; }
}
