/* ZODACK shared shell — header + footer for all secondary pages.
   Header is namespaced with "zs-". The footer uses the SAME classes and
   styles as the homepage footer so both always look identical. */

/* ---------- Sticky-header safety ----------
   Several pages set `overflow-x: hidden` on both <html> and <body>, which turns
   <body> into a scroll container and silently breaks `position: sticky`.
   Keep the sideways-scroll guard on <html> only and let <body> stay visible. */
html:root { overflow-x: hidden !important; }
html body { overflow-x: visible !important; overflow-y: visible !important; }

/* ---------- Header ---------- */
.zs-header {
  position: sticky !important; top: 0 !important; z-index: 40 !important;
  width: 100%; height: 70px;
  background: #F6F6F4; border-bottom: none;
  font-family: 'Inter', sans-serif;
}
.zs-header * { box-sizing: border-box; }
.zs-header-inner {
  height: 100%; width: 100%; margin: 0 auto;
  padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.zs-logo {
  display: flex; align-items: center; height: 100%;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px;
  letter-spacing: -0.03em; line-height: 1; white-space: nowrap;
  color: #0D0E11; text-decoration: none;
}
.zs-nav { display: none; }
.zs-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }

.zs-icon-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 8px; border: 0; background: transparent; cursor: pointer;
  color: #0D0E11; text-decoration: none;
  transition: transform .18s cubic-bezier(.175,.885,.32,1.275), opacity .15s ease;
}
.zs-icon-btn svg { width: 24px; height: 24px; display: block; flex-shrink: 0; }
.zs-burger svg { width: 26px; height: 26px; }
.zs-icon-btn:hover { opacity: .75; }
.zs-icon-btn:active { transform: scale(.88); opacity: .6; }

/* Mobile menu: opacity/visibility transition = no jarring jump */
.zs-mobile {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 24px 20px;
  background: #F6F6F4; border-bottom: 1px solid #E2E4E8;
  box-shadow: 0 16px 32px rgba(13,14,17,.10);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.zs-mobile.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition-delay: 0s;
}
.zs-mobile-link {
  padding: 14px 0; border-bottom: 1px solid #F0F1F3;
  font-size: 14px; font-weight: 700; text-transform: capitalize;
  color: #0D0E11; text-decoration: none;
}
.zs-mobile-login {
  width: 100%; margin-top: 12px; padding: 12px; border: none; border-radius: 12px; cursor: pointer;
  background: #0D0E11; color: #FFFFFF; font: 700 12px 'Inter', sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.zs-mobile-link[aria-current="page"] { color: #FF003C; }

/* ---------- Desktop (>=1024px): nav centered, NO hamburger ---------- */
@media (min-width: 640px) {
  .zs-logo { font-size: 28px; }
}
@media (min-width: 1024px) {
  .zs-header-inner {
    display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 40px;
  }
  .zs-nav { display: flex; align-items: center; gap: 4px; }
  .zs-nav-link {
    display: flex; align-items: center; line-height: 1;
    padding: 12px 14px; font-size: 15px; font-weight: 700; text-transform: capitalize;
    color: #121212; text-decoration: none; transition: color .2s ease;
    position: relative;
  }
  /* Hover: clean black line slides in underneath */
  .zs-nav-link::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: #0D0E11; transform: scaleX(0); transform-origin: center;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  }
  .zs-nav-link:hover::after,
  .zs-nav-link:focus-visible::after { transform: scaleX(1); }
  .zs-nav-link:hover { color: #0D0E11; }
  .zs-actions { gap: 10px; align-items: center; }
  .zs-burger, .zs-mobile { display: none; }
}

/* ---------- Header search pill (desktop) ---------- */
.zs-search-pill {
  display: none; align-items: center; gap: 10px; width: 220px; height: 44px; padding: 0 16px;
  background: #ECECEA; border-radius: 9999px; color: #0D0E11; margin: 0;
  transition: background .2s ease, box-shadow .2s ease;
}
.zs-search-pill:hover { background: #E4E4E1; }
.zs-search-pill:focus-within { background: #FFFFFF; box-shadow: 0 0 0 1.5px #0D0E11; }
.zs-search-pill svg { width: 18px; height: 18px; flex-shrink: 0; display: block; }
.zs-search-pill input {
  flex: 1; min-width: 0; width: 100%; height: 100%; border: none; outline: none; background: transparent; box-shadow: none;
  padding: 0; margin: 0; font: 500 15px/1 'Inter', sans-serif; color: #0D0E11;
}
.zs-search-pill input::placeholder { color: #6B6F76; }
/* Pill needs room beside the larger nav: icon button below 1280px, pill from 1280px up */
@media (min-width: 1280px) {
  .zs-search-pill { display: flex; }
  .zs-actions .zs-search-icon { display: none; }
}
.zs-icon-btn.is-logged-in svg { fill: #0D0E11; }

/* ---------- Login modal (phone + OTP) ---------- */
#zsLoginOverlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
  font-family: 'Inter', sans-serif;
}
#zsLoginOverlay.is-open { opacity: 1; pointer-events: auto; }
#zsLoginOverlay, #zsLoginOverlay * { box-sizing: border-box; }
#zsLoginOverlay .zs-login-card {
  position: relative; background: #FFFFFF; width: 100%; max-width: 400px; border-radius: 24px;
  padding: 32px 28px 28px; color: #0D0E11; box-shadow: 0 25px 50px rgba(0,0,0,.25);
  transform: translateY(20px); transition: transform .35s cubic-bezier(.16,1,.3,1);
  max-height: 94vh; overflow-y: auto;
}
#zsLoginOverlay.is-open .zs-login-card { transform: translateY(0); }
#zsLoginOverlay .zs-login-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; padding: 0; border: none; border-radius: 50%;
  background: transparent; color: #0D0E11; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
#zsLoginOverlay .zs-login-close:hover { background: #F1F1EF; }
#zsLoginOverlay .zs-login-step { display: none; margin: 0; }
#zsLoginOverlay .zs-login-step.is-active { display: block; }
#zsLoginOverlay .zs-login-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.2; margin: 0 0 6px; color: #0D0E11; }
#zsLoginOverlay .zs-login-sub { font-size: 13px; line-height: 1.5; color: #6B6F76; margin: 0 0 22px; }
#zsLoginOverlay .zs-login-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6B6F76; margin-bottom: 6px; }
#zsLoginOverlay .zs-phone-field { display: flex; align-items: center; border: 1.5px solid #E2E4E8; border-radius: 12px; overflow: hidden; background: #FFFFFF; transition: border-color .2s ease; }
#zsLoginOverlay .zs-phone-field:focus-within { border-color: #0D0E11; }
#zsLoginOverlay .zs-phone-field span { padding: 0 12px; font-size: 14px; font-weight: 600; background: #F6F6F4; align-self: stretch; display: flex; align-items: center; border-right: 1.5px solid #E2E4E8; }
#zsLoginOverlay .zs-phone-field input { flex: 1; min-width: 0; border: none; outline: none; box-shadow: none; background: transparent; margin: 0; padding: 14px 12px; font: 600 15px 'Inter', sans-serif; letter-spacing: .04em; color: #0D0E11; }
#zsLoginOverlay .zs-login-error { min-height: 18px; margin: 8px 0 0; font-size: 12px; color: #D92D20; }
#zsLoginOverlay .zs-login-btn {
  display: block; width: 100%; margin: 10px 0 0; padding: 14px; border: none; border-radius: 12px; cursor: pointer;
  background: #0D0E11; color: #FFFFFF; font: 700 12px 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s ease, transform .15s ease;
}
#zsLoginOverlay .zs-login-btn:hover { background: #22252A; }
#zsLoginOverlay .zs-login-btn:active { transform: scale(.97); }
#zsLoginOverlay .zs-login-btn:disabled { opacity: .5; cursor: not-allowed; }
#zsLoginOverlay .zs-login-link { background: none; border: none; padding: 0; cursor: pointer; font: 600 12px 'Inter', sans-serif; color: #0D0E11; text-decoration: underline; }
#zsLoginOverlay .zs-login-link:disabled { color: #9A9EA5; text-decoration: none; cursor: default; }
#zsLoginOverlay .zs-otp-row { display: flex; gap: 8px; justify-content: space-between; }
#zsLoginOverlay .zs-otp-box { width: 100%; max-width: 48px; height: 52px; padding: 0; margin: 0; text-align: center; border: 1.5px solid #E2E4E8; border-radius: 12px; background: #FFFFFF; color: #0D0E11; font: 700 20px 'Inter', sans-serif; outline: none; box-shadow: none; transition: border-color .2s ease; }
#zsLoginOverlay .zs-otp-box:focus { border-color: #0D0E11; }
#zsLoginOverlay .zs-login-note { font-size: 11px; color: #6B6F76; text-align: center; margin: 16px 0 0; line-height: 1.5; }
#zsLoginOverlay .zs-login-note a { color: #0D0E11; }
#zsLoginOverlay .zs-login-tick { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #D1FAE5; color: #059669; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; }

/* ---------- Dark hero banner for policy pages (matches FAQ / Care) ---------- */
.z-policy-banner {
  background-color: #0D0E11 !important; color: #FFFFFF !important;
  padding: 20px 20px !important; text-align: center !important;
  width: 100% !important; box-sizing: border-box !important;
  min-height: 3cm !important; /* slimmer banner (was ~3.5cm) */
  display: flex !important; flex-direction: column !important; justify-content: center !important;
}
.z-policy-banner h1 {
  font-family: 'Syne', sans-serif !important; font-size: 24px !important;
  font-weight: 800 !important; letter-spacing: -0.02em !important;
  color: #FFFFFF !important; margin: 0 !important;
}

/* Same ~3cm banner height on the other secondary pages (higher specificity than
   each page's own inline <style>, so no per-page edits are needed). */
body .care-hero-banner, body .faq-hero-banner, body .contact-hero-banner,
body .track-hero-banner, body .refer-hero-banner, body .fresh-hero-banner,
body .about-hero-banner, body .dna-hero-banner {
  min-height: 3cm !important; padding-top: 20px !important; padding-bottom: 20px !important;
  display: flex !important; flex-direction: column !important; justify-content: center !important;
  box-sizing: border-box !important;
}
@media (min-width: 640px) {
  .z-policy-banner h1 { font-size: 34px !important; }
}
/* Mobile: every black hero heading stays one size, centered, and wraps */
@media (max-width: 768px) {
  body .care-hero-banner h1,
  body .faq-hero-banner h1,
  body .contact-hero-banner h1,
  body .track-hero-banner h1,
  body .refer-hero-banner h1,
  body .fresh-hero-banner h1,
  body .about-hero-banner h1,
  body .dna-hero-banner h1,
  body .z-policy-banner h1 {
    font-size: 22px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
.z-policy-banner p {
  font-family: 'Inter', sans-serif !important; font-size: 11px !important;
  letter-spacing: 0.15em !important; text-transform: uppercase !important;
  color: #929FAE !important; margin: 0 !important;
}

/* ---------- Footer (identical to homepage footer) ---------- */
.z-footer-root {
  background-color: #07080A !important; color: #8C98A4 !important;
  padding-top: 48px !important; padding-bottom: 32px !important;
  border-top: 1px solid #161922 !important; width: 100% !important;
  font-family: 'Inter', sans-serif !important;
  margin: 0 !important;
}
.z-footer-root, .z-footer-root * { box-sizing: border-box !important; }
.z-footer-root h4, .z-footer-root p { font-family: 'Inter', sans-serif !important; }
.z-footer-root .z-container {
  width: 100% !important; max-width: 100% !important; margin: 0 !important;
  padding-left: 12px !important; padding-right: 12px !important;
}
@media (min-width: 640px) {
  .z-footer-root .z-container { padding-left: 40px !important; padding-right: 40px !important; }
}
/* Policy meta (Effective Date / Website) — two clean lines above the policy text */
.policy-meta-lines {
  display: block; margin: 0 0 24px; padding: 0 0 14px;
  border-bottom: 1px solid #D1D5DB;
  font-family: 'Inter', sans-serif;
}
div.policy-meta-lines p {
  margin: 0 0 4px !important; font-size: 13px !important; line-height: 1.5 !important;
  color: #4B5563 !important; letter-spacing: 0 !important; text-transform: none !important;
}
div.policy-meta-lines p:last-child { margin-bottom: 0 !important; }
.policy-meta-lines strong { color: #0D0E11; font-weight: 700; }

.neon-glow-link { color: #929FAE !important; text-decoration: none !important; font-size: 14px !important; line-height: 2.2 !important; display: inline-flex !important; align-items: center !important; gap: 10px !important; transition: all 0.25s ease !important; }
.neon-glow-link:hover { color: #FFFFFF !important; text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); transform: translateX(3px) !important; }
/* Yellow highlighter for exchange-first copy + the Exchanges & Returns jump-link */
.z-hl-ex { background: #FFE600; color: #0D0E11; font-weight: 700; padding: 0 0.28em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.neon-highlight { color: #FFE600 !important; font-weight: 700 !important; text-decoration: none !important; transition: all 0.25s ease !important; display: inline-block !important; }
.neon-highlight:hover { color: #FFFFFF !important; }
.neon-highlight-gray { color: #929FAE !important; font-weight: 600 !important; text-decoration: none !important; }
