/* ==========================================================================
   Service pages (no-time, years-behind, incorporate, dormant) — mobile pass
   Aligns small-screen spacing with the landing page (css/hero.css).
   Load AFTER each page's inline <style> so these win at mobile widths.
   ========================================================================== */

@media (max-width: 767px) {

  /* Section rhythm: the inline design system clamps section padding to a 72px
     floor; the landing page runs 40/44 on mobile. */
  .section {
    padding: 40px 0 44px;
  }

  .check {
    padding: 40px 0 44px;
  }

  .zt-pricing-section {
    padding: 36px 0 40px;
  }

  /* Quotation summary card: same card language as the landing page */
  .zt-price-card {
    padding: 18px 17px;
    border-radius: 16px;
  }

  /* Add-on rows: drop the verbose sub-copy and compact the cards */
  .zt-addon-card {
    padding: 8px 10px;
    border-radius: 10px;
    min-height: auto;
    align-items: center;
  }

  .zt-addon-card.zt-addon-card-audit .zt-addon-header {
    padding: 8px 10px;
    align-items: center;
  }

  .zt-addon-left {
    gap: 8px;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
  }

  .zt-addon-left>div {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .zt-addon-checkbox {
    width: 15px;
    height: 15px;
    margin-top: 0;
    flex-shrink: 0;
  }

  .zt-addon-title {
    display: block;
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
  }

  .zt-addon-sub {
    display: none;
  }

  .zt-addon-price {
    flex-shrink: 0;
    margin-left: 8px;
    font-size: 0.73rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
  }

  .zt-addon-note {
    padding: 6px 10px;
    margin-top: 4px;
    border-radius: 8px;
    font-size: 0.65rem;
    line-height: 1.3;
  }

  .zt-audit-drawer-inner {
    padding: 10px;
    gap: 8px;
  }

  /* Dormant page uses the .dp-* pricing component instead */
  .dp-calc {
    gap: 14px;
  }
  .dp-left {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .dp-addon-card {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .dp-addon-sub {
    display: none;
  }

  /* FAQ rows: landing page uses 18px */
  .zfaq-q {
    padding: 18px 0;
  }

  .zfaq-body p {
    margin-bottom: 18px;
  }
}

/* Pricing calculator: keep the billing labels on one line and stop the last
   two slider ticks ("1k" / "Custom") from colliding at 360-414px. */
@media (max-width: 767px) {
  .zt-billing-btn {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .zt-free-badge {
    padding: 2px 6px;
    font-size: 0.6rem;
    white-space: nowrap;
  }

  .zt-range-ticks {
    font-size: 0.52rem;
    letter-spacing: -0.01em;
  }

  .zt-range-ticks>span:last-child {
    font-size: 0.47rem;
  }
}

/* The pricing grid item was sized by its widest unbreakable child (the
   incorporation bundle card forced the left column to 480px inside a 327px
   box, so the card was clipped by the section's overflow:hidden). */
@media (max-width: 991px) {
  .zt-calc-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .zt-calc-left,
  .zt-price-card,
  .zt-calc-steps-wrap,
  .zt-bundle-dark-card,
  .zt-bundle-dark-header,
  .zt-bundle-dark-desc,
  .zt-bundle-dark-features,
  .zt-bundle-dark-item {
    min-width: 0;
  }

  .zt-bundle-dark-item span,
  .zt-bundle-dark-desc {
    overflow-wrap: anywhere;
  }
}

/* Bundle feature list: rows were 1fr (equal height) so one-line items floated
   in extra space, making the gaps look random. Let rows hug their content. */
@media (max-width: 575px) {
  .zt-bundle-dark-features {
    grid-auto-rows: min-content;
  }

  .zt-bundle-dark-item {
    min-height: 0;
  }
}

/* Quotation breakdown rows: keep the amount on one line next to its label */
@media (max-width: 767px) {
  .zt-breakdown-row {
    gap: 10px;
  }

  .zt-breakdown-row .price {
    flex-shrink: 0;
    white-space: nowrap;
    text-align: right;
  }
}