/* Zencora shared site shell: header, footer, type floor, feedback button placement.
   Include on every page:  <link rel="stylesheet" href="site-shell.css">  <script src="site-shell.js" defer></script>
   See SHELL.md. No orange anywhere. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root{
  --ink:#000;
  --paper:#fff;
  --blue:#3FA9F5;
  --blue-text:#1A73C8;
  --blue-dark:#7FD3FF;
  --zs-ink:#000;
  --zs-header-h:76px;
  --zs-font:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
}

/* Global floors */
html,body{overflow-x:clip}
html{scroll-padding-top:calc(var(--zs-header-h) + 12px)}
body{font-size:16px;margin:0}
small,.fine,.eyebrow,caption,figcaption small{font-size:max(14px,1em)}
img,video{max-width:100%}

/* ---------- Header ---------- */
header.zs-header{
  position:sticky;top:0;z-index:1000;
  height:var(--zs-header-h);min-height:var(--zs-header-h);
  margin:0;padding:0 clamp(16px,4vw,56px);
  display:flex;align-items:center;gap:28px;
  /* .85 black per spec; the extra opacity floor keeps it true black over white sections, never dusty grey */
  background:rgba(0,0,0,.85);background:rgba(0,0,0,.95);color:#fff;
  -webkit-backdrop-filter:blur(16px) saturate(140%);backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid rgba(255,255,255,.10);
  font-family:var(--zs-font);font-size:16px;line-height:1.2;
  box-sizing:border-box;
}
header.zs-header *{box-sizing:border-box}
.zs-mark{display:inline-flex;flex-direction:column;gap:5px;color:#fff;text-decoration:none;line-height:1;flex:none}
.zs-mark b{font-weight:500;font-size:22px;letter-spacing:.24em}
.zs-mark i{font-style:normal;font-weight:600;font-size:14px;letter-spacing:.62em;color:var(--blue-dark)}
.zs-mark:focus-visible,.zs-nav a:focus-visible,.zs-cta:focus-visible,.zs-menu-btn:focus-visible,.zs-footer a:focus-visible{outline:2px solid var(--blue-dark);outline-offset:4px}

nav.zs-nav{display:flex;align-items:center;gap:clamp(18px,2.2vw,34px);margin:0 0 0 auto;font-size:16px}
nav.zs-nav a{color:#fff;text-decoration:none;font-size:16px;font-weight:500;padding:8px 0;min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center;border-bottom:2px solid transparent;white-space:nowrap}
nav.zs-nav a:hover{color:var(--blue-dark)}
nav.zs-nav a[aria-current]{color:var(--blue-dark);border-bottom-color:var(--blue-dark)}

a.zs-cta{flex:none;display:inline-flex;align-items:center;gap:10px;background:var(--blue);color:var(--zs-ink);text-decoration:none;font-weight:600;font-size:16px;padding:13px 22px;border-radius:8px;white-space:nowrap;transition:background .15s}
a.zs-cta:hover{background:var(--blue-dark);color:var(--zs-ink)}

button.zs-menu-btn{display:none;flex:none;align-items:center;gap:10px;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:8px;padding:10px 14px;font:600 16px var(--zs-font);cursor:pointer}
button.zs-menu-btn:hover{border-color:var(--blue-dark);color:var(--blue-dark)}
.zs-burger{position:relative;width:18px;height:12px;display:inline-block}
.zs-burger:before,.zs-burger:after,.zs-burger span{content:"";position:absolute;left:0;right:0;height:2px;background:currentColor;border-radius:2px;transition:transform .2s,opacity .2s}
.zs-burger:before{top:0}.zs-burger span{top:5px}.zs-burger:after{top:10px}
.zs-open .zs-burger:before{transform:translateY(5px) rotate(45deg)}
.zs-open .zs-burger span{opacity:0}
.zs-open .zs-burger:after{transform:translateY(-5px) rotate(-45deg)}

@media (max-width:900px){
  :root{--zs-header-h:68px}
  header.zs-header{gap:12px;padding:0 16px}
  .zs-mark b{font-size:19px}
  button.zs-menu-btn{display:inline-flex;margin-left:auto}
  a.zs-cta{padding:11px 14px;font-size:16px}
  nav.zs-nav{
    display:none;position:absolute;left:0;right:0;top:100%;margin:0;
    flex-direction:column;align-items:stretch;gap:0;
    background:#000;
    border-bottom:1px solid rgba(255,255,255,.12);
    padding:8px 16px 20px;max-height:calc(100svh - var(--zs-header-h));overflow-y:auto;
  }
  .zs-open nav.zs-nav{display:flex}
  nav.zs-nav a{font-size:18px;padding:16px 4px;border-bottom:1px solid rgba(255,255,255,.12)}
  nav.zs-nav a[aria-current]{border-bottom-color:rgba(255,255,255,.12);box-shadow:inset 3px 0 0 var(--blue-dark);padding-left:14px}
}
@media (max-width:380px){
  .zs-mark b{font-size:17px;letter-spacing:.2em}
  a.zs-cta{padding:10px 12px}
  button.zs-menu-btn{padding:10px}
  .zs-menu-btn .zs-menu-word{display:none}
}

/* ---------- Footer ---------- */
footer.zs-footer{
  display:block;margin:0;border:0;
  background:var(--zs-ink);color:#fff;
  padding:72px clamp(16px,6vw,96px) 112px;
  font-family:var(--zs-font);font-size:16px;line-height:1.6;
  box-sizing:border-box;
}
.zs-footer-top{display:grid;grid-template-columns:minmax(240px,1.2fr) 2fr;gap:48px;align-items:start;padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,.14)}
footer.zs-footer .zs-mark b{font-size:24px}
footer.zs-footer p.zs-tag{margin:22px 0 0;font-size:24px;line-height:1.3;font-weight:500;letter-spacing:-.01em;text-align:left;font-family:var(--zs-font);color:#fff}
footer.zs-footer p.zs-tag em{font-style:normal;color:var(--blue-dark)}
.zs-foot-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 32px;list-style:none;margin:0;padding:0}
.zs-foot-links a{color:#fff;text-decoration:none;font-size:16px;display:inline-block;padding:6px 0}
.zs-foot-links a:hover,.zs-foot-links a[aria-current]{color:var(--blue-dark)}
.zs-foot-legal{display:flex;flex-wrap:wrap;gap:8px 28px;justify-content:space-between;padding-top:28px;color:rgba(255,255,255,.78);font-size:14px}
footer.zs-footer p.zs-fine{margin:0;font-size:14px;max-width:760px;text-align:left;font-family:var(--zs-font);color:rgba(255,255,255,.78)}
@media (max-width:900px){
  footer.zs-footer{padding:56px 16px 104px}
  .zs-footer-top{grid-template-columns:1fr;gap:32px}
  footer.zs-footer p.zs-tag{font-size:21px}
}

/* ---------- Feedback tool placement (feedback.js) ---------- */
#fb-btn{left:auto!important;right:24px!important;bottom:24px!important;z-index:2147483000!important;font-size:14px!important;background:#000!important;border-color:rgba(255,255,255,.35)!important}
#fb-btn.on{background:var(--blue)!important;color:var(--zs-ink)!important}
#fb-panel{left:auto!important;right:24px!important;bottom:84px!important;z-index:2147483001!important}
#fb-panel .fb-where,#fb-panel ol,#fb-status,#fb-panel li small{font-size:14px!important}
@media (max-width:900px){
  #fb-btn{right:16px!important;bottom:16px!important;padding:12px 16px!important}
  #fb-panel{right:16px!important;bottom:72px!important;width:calc(100vw - 32px)!important}
}
html.zs-fb-wait #fb-btn:not(.on){opacity:0!important;pointer-events:none!important}
#fb-btn{transition:opacity .3s}
@media print{header.zs-header,#fb-btn,#fb-panel{display:none!important}}

/* tap targets: 44px minimum on the header controls (vis10) */
.zs-cta,.zs-menu-btn{min-height:44px;box-sizing:border-box}
button.zs-menu-btn{min-width:44px;justify-content:center}
.zs-mark{min-height:44px;justify-content:center}
/* Focus ring, one for the whole site (vis17, 19 Nov): two bands so one always reads, on white, on near-black and over photos.
   Inner light band = box-shadow at the element edge; outer dark band = outline just outside it. Specificity (0,2,2) beats page rules. */
html body :is(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:2px solid #050609;outline-offset:2px;box-shadow:0 0 0 2px #7FD3FF}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* Forced colors / Windows high contrast (vis18, 19 Nov): backgrounds are stripped, so give every action an edge and keep the current-page marker */
@media (forced-colors:active){
  a.zs-cta,a.pill,a.cta,a.ap-act,button,[role=button]{border:1px solid ButtonText!important}
  a.zs-cta:focus-visible,a.pill:focus-visible,a.cta:focus-visible,a.ap-act:focus-visible,button:focus-visible{outline:2px solid Highlight!important;outline-offset:3px}
  nav.zs-nav a{border-bottom-color:Canvas!important}
  nav.zs-nav a[aria-current]{border-bottom-color:Highlight!important}
  button[aria-pressed=true],.eco-opt.active,button.active{outline:2px solid Highlight!important}
}
/* vis19: macOS Increase Contrast / Windows "more contrast" (prefers-contrast: more). Faint text rises to 7:1 (AAA).
   :root:root and .pv.pv beat the page and kit styles that load after this file. Light sections only change ink; dark sections lift greys. */
@media (prefers-contrast: more) {
  :root:root { --blue-text: #0B5394; --z-mist: #474C55; }
  .pv.pv { --pv-fg3: #474C55; --pv-blue-text: #0B5394; }
  [style*="#1A73C8"], [style*="#1a73c8"] { color: #0B5394 !important; }
  html body .pk-card small { color: #0B5394; }
  html body .eco-opt, html body .eco-opt small, html body .eco-rep .h, html body .eco-rep .r span, html body .eco-rep .f { opacity: 1; color: #30343A; }
  html body .eco-opt b { color: #050609; }
  html body .eco .src, html body #eco .src { color: #B4BAC3; }
  html body #chart text[style*="opacity:0"], html body #chart text[style*="opacity:."] { opacity: .85 !important; }
}
/* vis19: print (privacy and support get printed). Browsers drop backgrounds by default, so white-on-dark text
   would print white on white and the device dots would vanish. Dark ink everywhere, keep the dots, open scroll boxes. */
@media print {
  html body { background: #fff !important; color: #000 !important; }
  html body :not(svg):not(svg *) { color: #000 !important; text-shadow: none !important; }
  html body a { text-decoration: underline; }
  html body .dot, html body .mx-dot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html body .sp-hero, html body .pv-hero { padding: 0 0 16px; }
  html body .z-eco { display: none; } /* the app-family strip scrolls sideways and printed cut off; paper copies keep the policy text */
  html body .pv-tw, html body .lg-fig, html body .sp-table-wrap { overflow: visible; }
  html body h1, html body h2, html body h3 { break-after: avoid; }
  html body tr, html body .z-card, html body figure { break-inside: avoid; }
  html body * { box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } /* vis20: Chromium PDF rasterizes big shadows and backdrop blur as grey slabs */
  html body :not(svg):not(svg *):not(.dot):not(.mx-dot):not(#comp .track i):not(#comp .track .zero), html body *::before, html body *::after { background-color: transparent !important; background-image: none !important; } /* vis22: with "Print backgrounds" ticked (Safari/Chrome), dark section, card and footer fills printed under the forced-black text; paper now matches the default backgrounds-off print */
  /* vis21: app-page worlds on paper: drop screen-blend glow layers (they washed the photo out), headline above the photo, compact footer */
  html body main section:has(>[class$="-stage"]>[class$="-hero"]) [class$="-abs"],html body main section:has(>[class$="-stage"]>[class$="-hero"]) [class*="-abs "],html body main section:has(>[class$="-stage"]>[class$="-hero"]) [class*="-flash"],html body main section:has(>[class$="-stage"]>[class$="-hero"]) [class$="-gl"],html body main section:has(>[class$="-stage"]>[class$="-hero"]) [class*="-gl "],html body main section:has(>[class$="-stage"]>[class$="-hero"]) [class*="-sweep"],html body main section:has(>[class$="-stage"]>[class$="-hero"]) [class*="-sheen"],html body main section:has(>[class$="-stage"]>[class$="-hero"]) video,html body main section:has(>[class$="-stage"]>[class$="-hero"]) div[class$="-stage"]>svg{display:none!important}
  html body main section:has(>[class$="-stage"]>[class$="-hero"]) div[class$="-stage"]{aspect-ratio:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
  html body main section:has(>[class$="-stage"]>[class$="-hero"]) div[class$="-hero"]{position:relative!important;inset:auto!important;height:auto!important;overflow:visible!important;display:flex;flex-direction:column}
  html body main section:has(>[class$="-stage"]>[class$="-hero"]) div[class$="-words"]{position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;width:auto!important;margin:24px 5.5% 18px;order:-1;transform:none!important}
  html body main section:has(>[class$="-stage"]>[class$="-hero"]) div[class$="-words"]>div[class$="-line"]{position:relative!important;inset:auto!important;transform:none!important;filter:none!important}
  html body main section:has(>[class$="-stage"]>[class$="-hero"]) div[class$="-words"]>div[class$="-line"][style^="opacity: 0;"]{display:none!important}
  html body main section:has(>[class$="-stage"]>[class$="-hero"]) div[class$="-hero"]>img{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;max-height:4.6in;object-fit:cover}
  html body .ap-act{border:1.5px solid #000;padding:10px 22px}
  html body .ap-dev li{border:1px solid #888}
  html body footer.zs-footer{padding:28px 5.5% 0!important;break-inside:avoid}
  html body .zs-footer-top{gap:20px;padding-bottom:16px}
  html body .zs-foot-links{grid-template-columns:repeat(4,auto);gap:4px 24px}
  html body .zs-foot-links a{padding:2px 0;min-height:0}
  html body footer.zs-footer p.zs-tag{margin-top:10px;font-size:18px}
  html body .zs-foot-legal{padding-top:12px}
  /* vis23: index contact block: founder and contact side by side on paper so the footer prints on the same page instead of alone on the last one */
  html body #start{grid-template-columns:1fr 1fr!important;gap:0 32px!important;padding-top:40px!important;padding-bottom:24px!important}
  html body #start>div:first-child{display:contents}
  html body #start>div:first-child>p.eyebrow,html body #start>div:first-child>h2,html body #start>div:first-child>p{grid-column:1/-1}
  html body #start .founder{grid-column:1;margin-top:20px!important}
  html body #start .contact{grid-column:2;margin-top:20px!important}
  /* vis23: privacy: tighter policy sections on paper so the footer does not print alone on the last page (12->11 pages) */
  html body main:has(.lg-sec){padding-bottom:0!important}html body .lg-sec{padding-top:18px!important;padding-bottom:18px!important}
}
