/* Shared navigation/footer rules, loaded after each page's own styles. */
.nav-container { gap: 1.5rem; }
.nav-menu { gap: 1.25rem; }
.nav-cta { white-space: nowrap; gap: .3em; }
.menu-title { font-size: 1.05rem; font-weight: 700; }
.menu-support { display: block; margin-top: 1rem; font-size: .85rem; color: var(--text-muted); }
.footer { background: #f8fafc; padding: 3.5rem 0 1.5rem; }
.footer-container { grid-template-columns: 1.4fr 1fr 1.25fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-container > * { min-width: 0; }
.footer-brand-col .footer-tagline { margin: .6rem 0 1rem; color: #334155; line-height: 1.55; font-size: 1.1rem; }
.footer-powered { line-height: 1.6; margin-bottom: .4rem; }
.footer-powered strong { display: block; }
.footer-cin { font-size: .7rem; line-height: 1.6; color: #64748b; overflow-wrap: anywhere; margin: 0; }
.footer-links-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links-col h4 { font-size: .85rem; letter-spacing: .025em; color: #0f172a; margin-bottom: .8rem; }
.footer-links-col a { display: flex; align-items: center; min-height: 40px; margin: 0; padding: .4rem 0; line-height: 1.4; font-size: .85rem; overflow-wrap: anywhere; max-width: 100%; }
.footer-support > span { margin-top: .5rem; font-size: .8rem; line-height: 1.6; color: #64748b; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; text-align: left; line-height: 1.6; color: #64748b; }
.footer-bottom p { margin: 0; }
.footer-bottom > span { font-size: .75rem; }
a:focus-visible, button:focus-visible { outline: 3px solid #0284c7; outline-offset: 4px; }
.corporate-meta-grid .meta-item { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 1024px) {
  .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-container { padding: .75rem 1.25rem; gap: .75rem; min-height: 72px; }
  .nav-logo { width: 138px; height: auto; max-height: 30px; object-fit: contain; object-position: left; }
  .brand-byline { line-height: 1.3; margin-top: .15rem; }
  .nav-right { gap: .65rem; }
  .nav-cta { min-height: 42px; padding: .65rem 1rem; font-size: .85rem; }
  .hamburger-btn { display: flex; width: 44px; height: 44px; min-width: 44px; flex-shrink: 0; }
  .nav-menu {
    position: fixed; top: 0; right: 0; width: min(88vw, 360px); max-width: none;
    height: 100dvh; padding: 1.25rem; padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    background: #fff; display: flex; flex-direction: column; align-items: stretch; gap: .25rem;
    overflow-y: auto; overscroll-behavior: contain; z-index: 1100;
    transform: translateX(105%); visibility: hidden; box-shadow: -12px 0 40px #0f172a20;
    transition: transform .25s ease, visibility .25s;
  }
  .nav-menu.active { transform: translateX(0); visibility: visible; }
  .mobile-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: .5rem; border-bottom: 1px solid #e2e8f0; }
  .menu-close-btn { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #e2e8f0; border-radius: 50%; background: #f8fafc; font-size: 1.5rem; cursor: pointer; }
  .nav-menu .nav-item { display: flex; width: 100%; min-height: 48px; padding: .75rem; font-size: 1rem; font-weight: 600; border-radius: 10px; }
  .nav-menu .nav-item:hover { background: #f0f9ff; }
  .mobile-menu-bottom { display: block; width: 100%; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }
  .mobile-menu-bottom .btn { width: 100%; min-height: 48px; justify-content: center; }
  .menu-backdrop { display: block; position: fixed; inset: 0; z-index: 990; background: #0f172a66; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .menu-backdrop.active { opacity: 1; visibility: visible; }
  .footer-container { grid-template-columns: 1fr 1fr; column-gap: 2rem; row-gap: 1.75rem; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-product { grid-column: 1; }
  .footer-policies { grid-column: 2; grid-row: 2; }
  .footer-support { grid-column: 1 / -1; padding: 1.25rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; }
}
@media (max-width: 600px) {
  .nav-container { padding: .65rem 1rem; min-height: 68px; gap: .5rem; }
  .nav-logo { width: 126px; }
  .brand-byline { font-size: .6rem; letter-spacing: 0; }
  .nav-cta { padding: .6rem .9rem; font-size: .8rem; min-height: 42px; }
  .nav-cta span { display: none; }
  .nav-right { gap: .5rem; }
  .hero-section { padding-top: 6.25rem; }
  .footer { padding: 2.5rem 0 1.25rem; }
  .footer-container { gap: 1.5rem 1rem; margin-bottom: 1.5rem; }
  .footer-logo { height: 25px; }
  .footer-brand-col { padding-bottom: 1.25rem; border-bottom: 1px solid #e2e8f0; }
  .footer-brand-col .footer-tagline { font-size: 1rem; }
  .footer-links-col a { min-height: 44px; font-size: .82rem; }
  .footer-links-col h4 { margin-bottom: .4rem; }
  .footer-bottom { display: flex; flex-direction: column; gap: .4rem; font-size: .72rem; text-align: left; align-items: flex-start; padding-top: 1.25rem; }
  .checkout-nav-container { padding: 0 1rem; gap: .75rem; }
  .checkout-nav-back { font-size: .75rem; padding: .65rem .75rem; min-height: 44px; }
  .checkout-panel-card { padding: 1.25rem; }
  .checkout-grid { gap: 1.25rem; min-width: 0; }
  .checkout-grid > * { min-width: 0; }
  #cust-email, #cust-org, #confirm-display-msg { overflow-wrap: anywhere; }
  #so-dialog { width: calc(100% - 24px); max-width: 440px; max-height: calc(100dvh - 32px); border-radius: 20px; }
  #so-dialog .so-body { padding: 1.25rem; }
  #so-dialog input:not([type=checkbox]), #so-dialog select { font-size: 16px; min-height: 48px; }
  #so-dialog .so-pay { white-space: normal; font-size: .9rem; line-height: 1.4; min-height: 50px; }
  .cf-turnstile { max-width: 100%; display: flex; justify-content: center; }
  .legal-page { padding-top: 6.5rem; }
  .corporate-box { padding: 1.25rem; }
}
@media (max-width: 360px) {
  .nav-container { padding-inline: .75rem; }
  .nav-logo { width: 112px; }
  .nav-right { gap: .4rem; }
  .nav-cta { padding-inline: .75rem; }
  #so-dialog { width: calc(100% - 12px); }
  #so-dialog .so-body { padding: 1rem; }
  .footer-container { column-gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
[hidden] { display: none !important; }
