/*
 * Homepage mobile polish.
 * Keeps the white/lavender foundation while giving each Six Path a meaningful,
 * restrained accent and restoring 44px tap targets in the footer.
 */
@media (max-width: 620px) {
  .paths-wrap .path-module {
    --pw-module-accent: var(--pw-accent);
    border-radius: 14px;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .paths-wrap .path-module:nth-child(2) { --pw-module-accent: #b75125; }
  .paths-wrap .path-module:nth-child(3) { --pw-module-accent: #18764b; }
  .paths-wrap .path-module:nth-child(4) { --pw-module-accent: #a33142; }
  .paths-wrap .path-module:nth-child(5) { --pw-module-accent: #8a5a10; }
  .paths-wrap .path-module:nth-child(6) { --pw-module-accent: #2b5d9c; }

  .paths-wrap .path-module:not(.is-mobile-current) {
    border-color: color-mix(in srgb, var(--pw-module-accent) 30%, #ffffff);
    box-shadow: inset 3px 0 0 var(--pw-module-accent), 0 14px 30px #15082d33;
  }

  .paths-wrap .path-module .path-icon {
    width: 52px;
    height: 52px;
    border-color: color-mix(in srgb, var(--pw-module-accent) 55%, #ffffff);
    background: color-mix(in srgb, var(--pw-module-accent) 10%, #ffffff);
  }

  .paths-wrap .path-module .path-icon .path-icon-svg {
    --pw-icon-ink: var(--pw-module-accent);
    --pw-icon-ring: var(--pw-module-accent);
    width: 38px;
    height: 38px;
  }

  .paths-wrap .path-module:not(.is-mobile-current) .module-link {
    color: var(--pw-module-accent);
  }

  .paths-wrap .path-module.is-mobile-current {
    border-color: var(--pw-module-accent);
    box-shadow: inset 3px 0 0 var(--pw-module-accent), inset 0 1px #ffffff29, 0 18px 36px #15082d3d;
  }

  .paths-wrap .path-module.is-mobile-current .path-icon {
    border-color: color-mix(in srgb, var(--pw-module-accent) 62%, #ffffff);
    background: color-mix(in srgb, var(--pw-module-accent) 28%, #28104f);
  }

  .paths-wrap .path-module.is-mobile-current .path-icon .path-icon-svg {
    --pw-icon-ink: #ffffff;
    --pw-icon-ring: color-mix(in srgb, var(--pw-module-accent) 45%, #ffffff);
  }

  .site-footer .footer-nav,
  .site-footer .footer-legal-nav {
    column-gap: 4px;
    row-gap: 0;
  }

  .site-footer .footer-contact {
    gap: 0;
  }

  footer.site-footer .footer-nav a,
  footer.site-footer .footer-contact a,
  footer.site-footer .footer-legal-nav a {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px !important;
    padding-inline: 6px;
  }
}

@media (max-width: 620px) {
  /* Make the hero's positioning signal and changing Path visibly intentional. */
  .va1-grid .hero-eyebrow {
    color: var(--pw-accent);
    font-weight: 800;
    letter-spacing: .15em;
    text-shadow: 0 0 18px rgb(104 64 192 / 24%);
  }

  .hero-copy .hero-path-line {
    height: 32px;
    min-height: 0;
    justify-content: center;
  }

  .hero-path-word {
    --pw-loop-row: 32px;
    width: 9.6em;
    height: var(--pw-loop-row);
    font-size: clamp(1.12rem, 5vw, 1.32rem);
    font-weight: 800;
  }

  .hero-path-word-track .path-icon-svg {
    width: 1.5em;
    height: 1.5em;
    flex-basis: 1.5em;
    filter: drop-shadow(0 4px 9px rgb(104 64 192 / 22%));
  }

  /* Keep the mobile path rail in its own layer, never over a card or icon. */
  .order-journey { isolation: isolate; }
  .order-journey::before { z-index: 0; }
  .order-node { position: relative; z-index: 1; }
  .order-node-top { z-index: 2; }

  /* WPVibe's desktop-sized draft bar used to cover the lower hero on phones. */
  #wpvibe-preview-banner {
    min-height: 50px;
    padding: 7px 10px;
    gap: 7px;
    font-size: 11px;
    flex-wrap: nowrap;
  }

  #wpvibe-preview-banner .wpvibe-badge {
    gap: 4px;
    font-size: 10px;
    white-space: nowrap;
  }

  #wpvibe-preview-banner .wpvibe-dot {
    width: 6px;
    height: 6px;
  }

  #wpvibe-preview-banner .wpvibe-info {
    display: none;
  }

  #wpvibe-preview-banner .wpvibe-btn {
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 10px;
    white-space: nowrap;
  }
}

@media (max-width: 620px) and (max-height: 700px) {
  /* Keep the actual call to action in the first short-phone viewport. */
  .va1-grid {
    padding-top: 74px;
    padding-bottom: 8px;
    gap: 2px;
  }

  .va1-grid .hero-eyebrow,
  .va1-grid .hero-copy h1,
  .hero-copy .hero-path-line {
    margin-bottom: 4px;
  }

  .hero-copy .hero-path-line {
    height: 24px;
    min-height: 0;
  }

  .hero-path-word {
    --pw-loop-row: 24px;
    width: 9em;
    height: var(--pw-loop-row);
    font-size: 1rem;
  }

  .va1-grid > .va1-canvas {
    height: clamp(140px, 25svh, 176px);
  }

  .va1-logo-note {
    display: none !important;
  }
}

/* Final readability pass: make every page headline deliberate and strong. */
#main-content :is(h1, h2, h3) {
  font-weight: 800 !important;
}

/* Keep white sparkle CTAs readable above their animated beam. */
.section-link-row .button-secondary.cta-lumen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  color: #2f155f !important;
}

.section-link-row .button-secondary.cta-lumen .cta-lumen-label,
.section-link-row .button-secondary.cta-lumen > .button-arrow {
  position: relative;
  z-index: 3;
  display: inline-block !important;
  color: #2f155f !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.section-link-row .button-secondary.cta-lumen .cta-lumen-label {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  line-height: 1.1;
}
