/* PATCH / NAVIGATION + MOTION
   Load after styles.css. The existing layout and image assets are preserved.
   Motion is progressively enhanced by motion.js and can be paused in the footer. */
:root {
  --header-height: 96px;
  --ease-patch: cubic-bezier(.22, 1, .36, 1);
}

/* A readable, stable header. Never shrink the links to make them fit. */
.site-header {
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: #e9eeec;
  box-shadow: 0 8px 28px #102a2110;
}
.nav-wrap {
  width: min(1280px, calc(100% - 64px));
  min-height: 96px;
  gap: 22px;
}
.site-header .brand img { width: 156px; }
.desktop-nav { gap: 6px; }
.desktop-nav a {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.015em;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.desktop-nav a:hover { color: #0f1115; background: #f3f7f5; }
.desktop-nav a[aria-current="page"] { color: #173d33; background: #e6f9f1; }
.desktop-nav a::after,
.desktop-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  width: auto;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease-patch);
}
.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after { transform: scaleX(1); }
.nav-actions { gap: 10px; }
.nav-actions .button-small {
  min-height: 50px;
  padding: 14px 21px;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
}
.nav-actions .button-small .icon { display: block; width: 18px; height: 18px; }
.nav-cta-short { display: none; }
.menu-toggle { border-radius: 50%; background: #f1f6f3; flex: 0 0 46px; width: 46px; height: 46px; }
.menu-toggle:hover { background: #ddf7ed; }
.menu-toggle[aria-expanded="true"] { background: #d7f6e9; }
.mobile-nav {
  padding: 15px max(24px, calc((100vw - 1280px) / 2)) max(26px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #edf1ef;
  border-bottom: 1px solid #e7eeea;
  background: #fff;
  box-shadow: 0 22px 30px #13251c12;
  max-height: calc(100dvh - var(--header-height));
}
.mobile-nav a:not(.button) {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 5px;
  border-radius: 13px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.mobile-nav a:not(.button)::after { content: '\2197'; color: #708078; font-size: 19px; }
.mobile-nav a:not(.button):hover { background: #f2f7f4; }
.mobile-nav a[aria-current="page"] { color: #153e30; background: #e1f9ee; }
.mobile-nav .button { width: 100%; min-height: 51px; font-size: 16px; margin-top: 13px; }
.header-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--coral), var(--mint));
  transform-origin: left;
  transform: scaleX(var(--page-progress, 0));
}
@media (min-width: 1440px) {
  .desktop-nav { gap: 8px; }
  .desktop-nav a { font-size: 17px; }
}
@media (min-width: 1120px) {
  .desktop-nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none; }
}
@media (max-width: 1119.98px) {
  :root { --header-height: 88px; }
  .nav-wrap { min-height: 88px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav:not([hidden]) { display: block; }
  .site-header .brand img { width: 145px; }
}
@media (max-width: 600px) {
  :root { --header-height: 80px; }
  .nav-wrap { width: calc(100% - 36px); min-height: 80px; gap: 12px; }
  .site-header .brand img { width: 120px; }
  .nav-actions { gap: 8px; }
  .nav-actions .button-small { min-height: 44px; padding: 12px 16px; font-size: 14px; }
  .nav-actions .button-small .icon, .nav-cta-long { display: none; }
  .nav-cta-short { display: inline; }
  .mobile-nav { padding-inline: 18px; }
}
@media (max-width: 380px) {
  :root { --header-height: 76px; }
  .nav-wrap { width: calc(100% - 28px); min-height: 76px; gap: 8px; }
  .site-header .brand img { width: 104px; }
  .nav-actions { gap: 6px; }
  .nav-actions .button-small { padding: 11px 12px; font-size: 13px; min-height: 44px; }
  .menu-toggle { flex-basis: 44px; width: 44px; height: 44px; }
  .mobile-nav a:not(.button) { font-size: 18px; }
}

/* All animation is optional. Content is never hidden pending an observer. */
.hero-copy, .hero-hand, .floating-deal { animation: none; }
.button, .platform-button {
  transition: background-color .2s ease, color .2s ease, transform .28s var(--ease-patch), box-shadow .28s ease;
}
.button .icon, .platform-button .icon { transition: transform .28s var(--ease-patch); }
.button:hover .icon, .platform-button:hover .icon { transform: translateX(4px); }
.button:active, .platform-button:active { transform: translateY(0); }
.category-card, .step-card, .story-card, .integration-card, .price-card, .benefit-grid > article {
  transition: transform .35s var(--ease-patch), border-color .25s ease, box-shadow .35s ease;
}
.category-image { overflow: hidden; }
.category-image img, .wide-category-grid article > img {
  transition: transform .7s var(--ease-patch);
}
@media (hover: hover) and (pointer: fine) {
  html[data-motion="on"] .category-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px #14271f0d; }
  html[data-motion="on"] .category-card:hover .category-image img { transform: scale(1.045); }
  html[data-motion="on"] .integration-card:hover { transform: translateY(-4px); }
  html[data-motion="on"] .step-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #14271f08; }
  html[data-motion="on"] .price-card:hover { transform: translateY(-5px); }
}

/* Breathe around the product, not through its text. The hand + app stay still. */
html[data-motion="on"] .floating-deal {
  --float-y: -10px;
  --float-x: 3px;
  animation: patch-drift 7s ease-in-out infinite;
  animation-play-state: paused;
}
html[data-motion="on"] .float-fitness { --float-y: -13px; --float-x: -3px; animation-duration: 8s; animation-delay: -2s; }
html[data-motion="on"] .float-hair { --float-y: -8px; --float-x: -2px; animation-duration: 8.5s; animation-delay: -4s; }
html[data-motion="on"] .float-nails { --float-y: -11px; --float-x: 2px; animation-duration: 9s; animation-delay: -1s; }
html[data-motion="on"] .orbit-icon,
html[data-motion="on"] .faq-icons > span {
  --float-y: -7px;
  --float-x: 0px;
  animation: patch-drift 8s ease-in-out infinite;
  animation-play-state: paused;
}
html[data-motion="on"] .orbit-icon:nth-of-type(even),
html[data-motion="on"] .faq-icons > span:nth-of-type(even) { animation-delay: -3s; }
html[data-motion="on"] .business-float,
html[data-motion="on"] .notification-card,
html[data-motion="on"] .collage-label {
  --float-y: -6px;
  --float-x: 0px;
  animation: patch-drift 8s ease-in-out infinite;
  animation-play-state: paused;
}
html[data-motion="on"] .motion-in-view .floating-deal,
html[data-motion="on"] .motion-in-view .orbit-icon,
html[data-motion="on"] .motion-in-view.faq-icons > span,
html[data-motion="on"] .motion-in-view .business-float,
html[data-motion="on"] .motion-in-view .notification-card,
html[data-motion="on"] .motion-in-view .collage-label { animation-play-state: running; }
.hero-wires .motion-signal { opacity: 0; }
html[data-motion="on"] .hero-wires .motion-signal {
  stroke: #55c6a6;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 5 220;
  opacity: .65;
  animation: patch-signal 12s linear infinite;
  animation-play-state: paused;
}
html[data-motion="on"] .hero-wires .motion-signal:nth-child(even) { stroke: #ffb2aa; animation-delay: -5s; }
html[data-motion="on"] .motion-in-view .hero-wires .motion-signal { animation-play-state: running; }
html[data-page-hidden="true"] *, html[data-page-hidden="true"] *::before, html[data-page-hidden="true"] *::after { animation-play-state: paused !important; }
@keyframes patch-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: var(--float-x, 0px) var(--float-y, -10px); }
}
@keyframes patch-signal { to { stroke-dashoffset: -450; } }
@media (max-width: 600px) {
  html[data-motion="on"] .floating-deal { --float-x: 0px; --float-y: -5px; }
  html[data-motion="on"] .hero-wires .motion-signal { animation: none; opacity: 0; }
}

/* Persistent motion preference. Available in each page's footer. */
.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 99px;
  color: #3b5146;
  background: #f0f7f3;
  border: 1px solid #e7eee9;
  white-space: nowrap;
}
.motion-toggle .icon { width: 14px; height: 14px; }
.motion-toggle:hover { background: #e0f6eb; }
.motion-toggle[aria-disabled="true"] { cursor: default; color: #657269; }
.footer-actions { flex-wrap: wrap; }
@media (max-width: 1000px) {
  .footer-main { flex-wrap: wrap; }
  .footer-actions { margin-left: auto; }
}
@media (max-width: 600px) {
  .motion-toggle { font-size: 11px; padding-inline: 10px; }
}
/* Keep the user-supplied Access logo in its full-width wordmark proportions. */
.provider-brand--access-collins .provider-logo {
  width: min(100%, 198px);
  height: 60px;
  object-fit: contain;
  object-position: left center;
}
.provider-brand--access-collins .provider-product-name { display: none !important; }
@media (max-width: 600px) {
  .provider-brand--access-collins .provider-logo { height: 47px; }
}
/* Newer browsers progressively enhance same-origin page changes. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: patch-page-out .14s ease both; }
::view-transition-new(root) { animation: patch-page-in .24s ease both; }
@keyframes patch-page-out { to { opacity: 0; } }
@keyframes patch-page-in { from { opacity: 0; } to { opacity: 1; } }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-motion="off"] .hero-wires .motion-signal { display: none; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-wires .motion-signal { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
@media print {
  .motion-toggle, .header-progress { display: none !important; }
  *, *::before, *::after { animation: none !important; }
}
/* Useful navigation remains available if JavaScript is disabled. */
@media (max-width: 1119.98px) {
  .no-js .site-header { position: relative; }
  .no-js .menu-toggle { display: none !important; }
  .no-js .mobile-nav[hidden] {
    display: block !important;
    position: static;
    max-height: none;
    box-shadow: none;
  }
  .no-js .mobile-nav a:not(.button) { display: inline-flex !important; font-size: 16px !important; margin: 0 3px 4px 0 !important; min-height: 44px; }
  .no-js .mobile-nav a::after { display: none; }
}
