/* =====================================================================
   Zero Metrics V4 — site layer (multi-page site on top of /zm-v4.css)
   Page shell, breadcrumbs, forms (demo + data inspection), prose for the
   blog, pricing, product blocks and the content classes used by site/pages.mjs.
   ===================================================================== */
html{scroll-padding-top:calc(var(--hh) + 40px)}
.view{padding-top:calc(var(--hh) + var(--top-pad) + 12px);min-height:60vh;outline:0}
@media(max-width:639px){.view{padding-top:calc(var(--hh) + var(--top-pad) + 5px)}}
.skip{position:fixed;left:12px;top:-60px;z-index:400;background:var(--ink-bg,var(--ink));color:#fff;padding:10px 14px;border-radius:var(--radius-control);font-family:var(--f-head);font-weight:700;transition:top .2s ease}
.skip:focus{top:12px}
.wiping .wipe{clip-path:inset(0 0 0 0)}
.sig{color:inherit}
main p a:not(.btn):not(.text-link):not(.chip),.prose a:not(.btn),.qa .ans a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
main p a:not(.btn):not(.text-link):not(.chip):hover,.prose a:hover{color:var(--orange)}
.muted a{color:var(--ink)}
.f-cols li span{font-size:14px;color:rgba(255,255,255,.7)}
.f-cols a,.f-legal a,.caption a{text-decoration:none}
footer .caption a:hover{color:#fff}
.mm-foot{gap:8px}
.mm-foot .caption a{color:rgba(255,255,255,.75)}
.h-link{text-decoration:none}

/* ---------- page hero ---------- */
.phero.solo{grid-template-columns:minmax(0,1fr)}
.phero.solo .hero{min-height:clamp(420px,34vw,560px)}
/* room under the copy for the falling shapes */
.phero .hero-copy,.contact-hero .hero-copy,.cta-card .hero-copy,.nf-card .hero-copy{padding-bottom:clamp(170px,15vw,230px)}
.phero .hero{min-height:0}
.phero .h1{margin-top:20px;max-width:15ch}
.phero.solo .h1{max-width:18ch}
.phero .body1{margin-top:24px;max-width:600px;color:var(--ink-70)}
.phero .btns,.phero .chips-row{margin-top:32px}
.phero .stat{min-height:180px}
a.stat{color:var(--ink)}
.hero-copy .crumbs{margin-bottom:22px}
.hero-copy .cta-chips{margin-top:20px}
.hero-copy .chips-row{pointer-events:auto}
.post-hero .h1{font-size:clamp(34px,4.2vw,68px);max-width:20ch;line-height:.98}
.bento .hero-copy .eyebrow{margin-bottom:0}
.bento .h1{margin-top:20px}
.bento .cta-chips{margin-top:20px}
@media(max-width:639px){.phero .h1{max-width:none}.phero .hero-copy,.contact-hero .hero-copy,.cta-card .hero-copy{padding-bottom:190px}}

/* breadcrumbs */
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-family:var(--f-head);font-weight:600;font-size:14px;letter-spacing:-.01em;color:var(--ink-70)}
.crumbs li{display:inline-flex;align-items:center;gap:6px}
.crumbs li+li::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--orange)}
.crumbs a{pointer-events:auto;text-decoration:none;transition:color .15s ease}
.crumbs a:hover{color:var(--ink)}
.crumbs [aria-current]{color:var(--ink)}

/* ---------- generic content ---------- */
.vstack{display:flex;flex-direction:column;gap:16px}
.row2{display:grid;grid-template-columns:5fr 7fr;gap:5px;align-items:start}
@media(max-width:1023px){.row2{grid-template-columns:minmax(0,1fr)}}
.row2 .sec-head-row{margin-bottom:0}
.card .ico svg{width:20px;height:20px;color:var(--ink)}
.point .ico{margin-bottom:6px}
.point h3{margin-top:4px}
.card .eb{font-family:var(--f-head);font-weight:600;font-size:13px;letter-spacing:-.01em;color:var(--orange)}
.point .foot,.aud .foot{margin-top:auto;padding-top:20px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.grid-2.checks .check{display:flex;gap:14px;align-items:flex-start;min-height:110px}
.check .ico{width:32px;height:32px}
.check .body1{font-size:18px;line-height:25px}
.step.short{min-height:240px}
.step.short p{margin-top:auto}
.aud{min-height:240px}
.int-group .ico{width:40px;height:40px}
a.text-link{color:var(--ink)}
.ink-card a.text-link{color:#fff}
.zero-band+.prose{font-size:18px;line-height:28px}
.story p{font-size:18px;line-height:28px;color:var(--ink-80)}

/* product blocks */
.subnav.inner{position:sticky;top:calc(var(--hh) + var(--top-pad) - 4px);z-index:30;margin-top:96px}
.hdr.compact~.subnav,.subnav{transition:top .55s var(--ease-expo)}
@media(max-width:639px){.subnav.inner{margin-top:64px}}
.pblocks>.sec:first-child{padding-top:64px}
.ptext .eyebrow{margin-bottom:4px}
.ptext .h2{max-width:16ch}
.ptext .body2{font-size:18px;line-height:26px}
.ptext p:last-child:has(a){margin-top:auto}
.ptext a.link,.ptext p a{font-family:var(--f-head);font-weight:700;text-decoration:none;letter-spacing:-.02em}
.pviz>[data-live]{min-width:0}
.panel{display:flex;flex-direction:column;gap:5px;justify-content:center}
.panel .cap{font-family:var(--f-head);font-weight:600;font-size:14px;color:var(--ink-70);margin-bottom:8px}
.panel .r{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;background:var(--page);border-radius:var(--radius-option);font-size:15px}
.panel .r b{font-family:var(--f-head);font-weight:700;letter-spacing:-.02em}
.panel .r.hot{background:var(--orange);color:var(--ink)}
.panel .code{padding:16px;background:var(--ink-bg,var(--ink));color:#fff;border-radius:var(--radius-option);font-family:var(--f-head);font-weight:600;font-size:16px;letter-spacing:-.01em;word-break:break-all;margin-bottom:5px}
.panel .code em{font-style:normal;color:var(--orange)}
.shot{padding:0;overflow:hidden;margin:0}
.shot img{display:block;width:100%;height:auto}

/* integrations */
.int-group .int-grid{margin-top:auto}

/* ---------- forms ---------- */
.form-card{--pad:32px;align-self:stretch;display:flex;flex-direction:column}
@media(max-width:1023px){.form-card{--pad:20px}}
.form-card .form{flex:1}
.form .h3{margin:0}
.fs-top{display:flex;justify-content:space-between;gap:12px;font-family:var(--f-head);font-weight:600;font-size:14px;color:var(--ink-70)}
.fbar{height:4px;border-radius:4px;background:var(--soft);overflow:hidden;margin-top:-4px}
.fbar i{display:block;height:100%;width:33.3%;background:var(--orange);border-radius:4px;transition:width .55s var(--ease-expo)}
.fstep{display:none;border:0;min-width:0;flex-direction:column;gap:16px}
.fstep.on{display:flex}
.fstep>.h3{font-size:clamp(23px,2vw,30px);letter-spacing:-.04em}
.choices{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.choices.tools{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:639px){.choices.tools{grid-template-columns:1fr 1fr}}
.choice{position:relative;display:block;cursor:pointer}
.choice input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.choice span{display:flex;align-items:center;min-height:64px;padding:12px 16px;border-radius:var(--radius-control);background:var(--page);font-family:var(--f-head);font-weight:700;font-size:17px;letter-spacing:-.03em;box-shadow:inset 0 0 0 1.5px transparent;transition:background-color .2s ease,color .2s ease,box-shadow .15s ease}
.choices.tools .choice span{min-height:52px;font-size:15px}
.choice:hover span{box-shadow:inset 0 0 0 1.5px var(--ink-15)}
.choice input:checked+span{background:var(--ink-bg,var(--ink));color:#fff}
.choice input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}
.factions{display:flex;justify-content:space-between;gap:5px;margin-top:8px}
.factions .btn{--btn-h:52px;font-size:16px}
.fdone{align-items:flex-start;padding:16px 0}
.fdone .ico,.insp-done .ico{width:56px;height:56px;background:var(--orange)}
.fnote{font-size:14px;line-height:20px;color:var(--ink-70);min-height:0}
.fnote:empty{display:none}
.fnote.err{color:#C42B2B}
.field input[aria-invalid="true"]{border-color:#C42B2B}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.insp-top{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.insp-done{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.insp-done[hidden]{display:none}
.insp-form.sent>:not(.insp-done){display:none}
.contact-grid{align-items:stretch}
.contact-hero{min-height:0}
.contact-hero .h1{margin-top:20px;max-width:12ch}
.contact-hero .body1{margin-top:24px;max-width:520px;color:var(--ink-70)}
.contact-hero .list{margin-top:28px;max-width:470px}
.contact-hero .list li{background:rgba(242,242,242,.88)}
.cinfo{display:flex;flex-wrap:wrap;gap:5px;margin-top:20px;pointer-events:auto}
.cinfo .chip{background:var(--page)}
#demo .cta-card{min-height:0}

/* inspection band (ink card + white form) */
.insp-ink{grid-template-columns:6fr 5fr;align-items:start}
.insp-copy{display:flex;flex-direction:column;gap:16px}
.insp-copy .ink-list{margin-top:8px}
.insp-card{color:var(--ink)}
@media(max-width:1023px){.insp-ink{grid-template-columns:minmax(0,1fr)}}

/* ---------- pricing ---------- */
.pp-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.pp-year p+p{margin-top:2px}
.plan .pp-year{min-height:40px}
.plan.rec .pp-year b{color:#fff}
.plan .btn{margin-top:4px}
.setup .label{margin-bottom:6px}
.pp-terms .text-link{white-space:normal}

/* ---------- blog ---------- */
.post .meta .chip{height:28px}
.posts .lead-post{grid-column:span 2;background:var(--orange-100);min-height:340px}
.posts .lead-post .h4{font-size:clamp(26px,2.6vw,40px);line-height:1;letter-spacing:-.045em;max-width:20ch}
.posts .lead-post p{font-size:18px;line-height:26px;max-width:60ch}
@media(max-width:1023px){.posts .lead-post{grid-column:auto}}
.post-sec{padding-top:5px}
.post-g{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:5px;align-items:start}
@media(max-width:1023px){.post-g{grid-template-columns:minmax(0,1fr)}}
.post-aside{position:sticky;top:calc(var(--hh) + 32px);display:flex;flex-direction:column;gap:5px}
@media(max-width:1023px){.post-aside{position:static}}
.toc ol{list-style:none;counter-reset:t;display:flex;flex-direction:column;gap:2px;margin-top:10px}
.toc li{counter-increment:t}
.toc a{display:flex;gap:10px;padding:8px 10px;border-radius:var(--radius-option);font-size:14px;line-height:19px;text-decoration:none;color:var(--ink-80);transition:background-color .15s ease,color .15s ease}
.toc a::before{content:counter(t,decimal-leading-zero);font-family:var(--f-head);font-weight:700;color:var(--orange);font-size:13px}
.toc a:hover{background:var(--page);color:var(--ink)}
.aside-cta{border-radius:var(--radius-card);padding:24px;display:flex;flex-direction:column;gap:10px}
.aside-cta .btn{margin-top:8px;--btn-h:48px;font-size:16px}
.aside-cta.ink{background:var(--ink-bg,var(--ink));color:#fff}.aside-cta.ink .body3{color:rgba(255,255,255,.7)}
.aside-cta.tint{background:var(--orange-100)}
/* article typography */
.prose{--pad:clamp(20px,4vw,56px);font-size:18px;line-height:29px;color:var(--ink-80);min-width:0}
.prose>*+*{margin-top:18px}
.prose h2{font-family:var(--f-head);font-weight:700;font-size:clamp(26px,2.4vw,36px);line-height:1.05;letter-spacing:-.04em;color:var(--ink);margin-top:48px;scroll-margin-top:calc(var(--hh) + 40px)}
.prose h2:first-child{margin-top:0}
.prose h3{font-family:var(--f-head);font-weight:700;font-size:22px;line-height:1.15;letter-spacing:-.03em;color:var(--ink);margin-top:32px}
.prose h4{font-family:var(--f-head);font-weight:700;font-size:18px;color:var(--ink);margin-top:24px}
.prose strong{font-weight:600;color:var(--ink)}
.prose ul,.prose ol{padding-left:0;list-style:none;display:flex;flex-direction:column;gap:5px}
.prose ul li,.prose ol li{position:relative;padding:12px 14px 12px 38px;background:var(--page);border-radius:var(--radius-option);font-size:17px;line-height:26px}
.prose ul li::before{content:"";position:absolute;left:16px;top:21px;width:8px;height:8px;border-radius:2px;background:var(--orange)}
.prose ol{counter-reset:o}
.prose ol li{counter-increment:o}
.prose ol li::before{content:counter(o);position:absolute;left:14px;top:12px;font-family:var(--f-head);font-weight:700;color:var(--orange)}
.prose blockquote{border-radius:var(--radius-option);background:var(--orange-100);padding:20px 24px;color:var(--ink);font-size:19px;line-height:28px}
.prose code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;background:var(--page);border-radius:4px;padding:2px 6px;color:var(--ink);word-break:break-word}
.prose .tw{overflow-x:auto;border-radius:var(--radius-option);box-shadow:inset 0 0 0 1px var(--soft)}
.prose table{font-size:15px;line-height:21px}
.prose th,.prose td{text-align:left;white-space:normal;height:auto;padding:12px 14px;vertical-align:top;position:static;min-width:120px}
.prose th{background:var(--page);color:var(--ink);font-size:13px}
.prose .post-end{margin-top:40px;padding:20px 24px;border-radius:var(--radius-option);background:var(--ink-bg,var(--ink));color:rgba(255,255,255,.85)}
.prose .post-end strong{color:#fff}
.prose .post-end a{color:#fff}
.legal-prose{max-width:900px}

/* ---------- misc ---------- */
.zg-gallery.one-mode .zg-mode,.one-mode .zg-mode{display:none}
.mcta{position:fixed;left:5px;right:5px;bottom:5px;z-index:120;display:none;transform:translateY(130%);transition:transform .45s var(--ease-expo)}
.mcta .btn{width:100%;box-shadow:0 10px 30px rgba(38,38,38,.25)}
@media(max-width:639px){.mcta{display:block}.past-hero .mcta{transform:none}footer{padding-bottom:72px}}
/* 404 (served by index.html for unknown paths) */
.nf{display:none}
.is404 .nf{display:block;padding-top:calc(var(--hh) + var(--top-pad) + 12px)}
.is404 .nf-card{min-height:clamp(520px,60vh,720px)}
.is404 .nf .h1{margin-top:20px}
.is404 .nf .body1{margin-top:24px;color:var(--ink-70)}
.is404 .nf .btns{margin-top:32px}
.is404 main.view,.is404 .mcta{display:none}
@media print{.hdr-wrap,.mega,.mega-bd,.mmenu,.wipe,.mcta,.phys{display:none!important}.view{padding-top:0}}
@media(max-width:639px){.bento>.hero{min-height:760px}.bento .cta-chips .chip{height:28px;font-size:13px}}

/* footer social icons */
.f-social{display:flex;gap:10px;margin-top:20px}
.f-social a{width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.1);color:#fff;transition:background-color .2s ease,transform .3s cubic-bezier(.22,1,.36,1)}
.f-social a:hover{background:var(--orange);transform:translateY(-2px)}
.f-social a:focus-visible{outline:2px solid var(--orange);outline-offset:3px}

/* =====================================================================
   HEADER v5: one clean bar. Brand · menu · Log in + Book a demo.
   (Keeps #hdr, #hNav, .h-link, .h-hl, .h-active, #hCta, #burger, .h-logo for zm-v4.js.)
   ===================================================================== */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hdr-wrap{padding-top:10px}
.hdr-wrap::before{display:none}
.hdr.hdr5{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;height:var(--hh);padding:0 10px 0 12px;
  background:rgba(255,255,255,.94);border:1px solid var(--ink-08);border-radius:14px;pointer-events:auto;
  box-shadow:0 1px 2px rgba(38,38,38,.04);transition:height .4s var(--ease-expo),box-shadow .3s ease,background-color .3s ease}
.hdr.hdr5.compact{--hh:56px;background:rgba(255,255,255,.98);box-shadow:0 12px 32px -16px rgba(38,38,38,.28)}
.hdr5 .h5-brand{justify-self:start;display:flex;align-items:center;gap:10px;color:var(--ink);font-family:var(--f-head);font-weight:800;font-size:20px;letter-spacing:-.05em;white-space:nowrap}
.hdr5 .h-logo{width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:var(--orange);display:grid;place-items:center;transition:none}
.hdr5 .h-logo svg{width:20px;height:20px;color:#fff}
.hdr.hdr5 .h-nav{display:flex;align-items:center;gap:2px;height:auto;padding:0;background:none;border-radius:0;position:relative}
.hdr5 .h-link{height:38px;padding:0 13px;border-radius:9px;font-family:var(--f-head);font-weight:600;font-size:15px;letter-spacing:-.01em;color:var(--ink-70);gap:5px;transition:color .15s ease}
.hdr5 .h-link:hover,.hdr5 .h-link.on,.hdr5 .h-link[aria-expanded="true"]{color:var(--ink)}
.hdr5 .h-hl{top:0;height:38px;border-radius:9px;background:var(--ink-08)}
.hdr5 .h-active{bottom:-6px;height:2px;width:16px}
.hdr5 .h-progress{display:none}
.hdr5 .h5-acts{justify-self:end;display:flex;align-items:center;gap:6px}
.hdr5 .h5-login{height:40px;padding:0 14px;border-radius:10px;display:flex;align-items:center;font-family:var(--f-head);font-weight:600;font-size:15px;color:var(--ink);transition:background-color .15s ease}
.hdr5 .h5-login:hover{background:var(--ink-08)}
.hdr.hdr5 .h-cta{display:flex;align-items:center;gap:8px;height:40px;margin:0;padding:0 16px;border-radius:10px;background:var(--orange);color:#fff;
  font-family:var(--f-head);font-weight:700;font-size:15px;letter-spacing:-.02em;white-space:nowrap;transition:background-color .15s ease}
.hdr.hdr5 .h-cta:hover{background:var(--orange-hover)}
.hdr5 .h-cta .arr{transition:transform .2s ease}
.hdr5 .h-cta:hover .arr{transform:translateX(3px)}
.hdr.hdr5 .h-burger{display:none;width:40px;height:40px;border-radius:10px;background:var(--ink-bg,var(--ink));align-items:center;justify-content:center;pointer-events:auto}
@media(max-width:1023px){
  .hdr.hdr5{grid-template-columns:1fr auto}
  .hdr.hdr5 .h-nav{display:none}
  .hdr.hdr5 .h-burger{display:flex}
}
@media(max-width:639px){
  .hdr-wrap{padding-top:6px}
  .hdr.hdr5{--hh:56px;padding:0 8px 0 10px;border-radius:12px}
  .hdr5 .h5-login{display:none}
  .hdr5 .h5-brand{font-size:19px}
}
@media(max-width:379px){.hdr.hdr5 .h-cta{display:none}}

/* =====================================================================
   HOME HERO v5: centred message + the real pivot table screenshot.
   Sized to the screen height so ~70% of the screenshot shows on first load.
   ===================================================================== */
.hero5{position:relative;margin-top:-14px;padding:clamp(0px,1vh,12px) 0 0;text-align:center}
.hero5-copy{max-width:980px;margin:0 auto;display:flex;flex-direction:column;align-items:center}
.hero5 .eyebrow{justify-content:center}
.hero5 .h1{margin-top:clamp(8px,1.3vh,14px);font-size:clamp(38px,min(5vw,7.2vh),74px);line-height:.98;letter-spacing:-.045em}
.hero5 .body1{margin-top:clamp(10px,1.6vh,16px);max-width:800px;text-wrap:balance;font-size:clamp(16px,2.1vh,19px);line-height:1.5;color:var(--ink-70)}
.hero5 .btns{margin-top:clamp(16px,2.6vh,26px);justify-content:center;flex-wrap:wrap}
.hero5-trust{margin-top:clamp(10px,1.6vh,16px);display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;font-family:var(--f-head);font-weight:600;font-size:14px;color:var(--ink-70)}
.hero5-trust span{display:inline-flex;align-items:center;gap:7px}
.hero5-trust span::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--orange)}
.hero5-shot{position:relative;margin:clamp(16px,2.6vh,30px) auto 0;max-width:min(1240px,calc((100vh - 150px) * 1.62));animation:shotIn .9s var(--ease-expo) .45s both}
.hero5-shot::before{content:"";position:absolute;left:8%;right:8%;top:-40px;height:60%;z-index:0;pointer-events:none;
  background:radial-gradient(closest-side,rgba(253,59,31,.16),transparent)}
.shot-scroll{position:relative;z-index:1;border-radius:16px;outline:none}
.shot-frame{background:var(--white);border:1px solid var(--ink-10);border-radius:16px;overflow:hidden;
  box-shadow:0 0 0 6px rgba(255,255,255,.55),0 50px 90px -40px rgba(38,38,38,.40),0 18px 36px -24px rgba(38,38,38,.22)}
.shot-bar{height:36px;display:flex;align-items:center;gap:7px;padding:0 14px;background:#FAFAFA;border-bottom:1px solid var(--ink-08)}
.shot-bar i{width:10px;height:10px;border-radius:50%;background:#E3E3E3}
.shot-bar span{margin:0 auto;transform:translateX(-24px);font-family:var(--f-head);font-weight:600;font-size:12px;color:var(--caption);background:var(--page);border-radius:7px;padding:4px 14px;white-space:nowrap}
.shot-frame img{display:block;width:100%;height:auto}
@keyframes shotIn{from{opacity:0;transform:translateY(28px) scale(.985)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.hero5-shot{animation:none}}
/* Phones: keep the table readable; it scrolls sideways like in the app. */
@media(max-width:767px){
  .hero5{text-align:left;margin-top:0;padding-top:4px}
  .hero5-copy{align-items:flex-start}
  .hero5 .h1{font-size:clamp(36px,10.5vw,48px)}
  .hero5 .eyebrow,.hero5 .btns,.hero5-trust{justify-content:flex-start}
  .hero5 .btns .btn{width:100%}
  .hero5-trust{font-size:13px;gap:6px 14px}
  .hero5-shot{max-width:none;margin-right:calc(-1 * var(--gut));margin-left:calc(-1 * var(--gut))}
  .shot-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:0 var(--gut) 24px;border-radius:0}
  .shot-scroll::-webkit-scrollbar{display:none}
  .shot-frame{width:760px;border-radius:12px}
  .shot-bar span{transform:none}
}

/* =====================================================================
   v5: zero-only logo, theme switch, dark mode, real tool icons, motion
   ===================================================================== */
/* Logo: just the zero mark, no tile */
.hdr5 .h-logo{background:none;width:34px;height:34px;flex-basis:34px;border-radius:0}
.hdr5 .h-logo svg{width:32px;height:32px;color:var(--orange)}
/* Theme switch */
.h5-theme{position:relative;width:40px;height:40px;border-radius:10px;display:grid;place-items:center;color:var(--ink);background:transparent;border:0;cursor:pointer;overflow:hidden;transition:background-color .15s ease,border-color .15s ease}
.h5-theme:hover{background:var(--ink-08)}
.h5-theme svg{position:absolute;transition:transform .55s var(--ease-expo),opacity .3s ease}
.h5-theme .i-moon,[data-theme="dark"] .h5-theme .i-sun{transform:translateY(140%) rotate(-90deg);opacity:0}
[data-theme="dark"] .h5-theme .i-moon{transform:none;opacity:1}
.mm-theme{gap:10px}
.mm-theme .i-sun,.mm-theme .lbl-light,[data-theme="dark"] .mm-theme .i-moon,[data-theme="dark"] .mm-theme .lbl-dark{display:none}
[data-theme="dark"] .mm-theme .i-sun,[data-theme="dark"] .mm-theme .lbl-light{display:inline}
@media(max-width:479px){.hdr5 .h5-theme{display:none}}

/* Dark mode: same design, dark palette. Dark panels (footer, ink cards) stay a step lighter than the page. */
:root[data-theme="dark"]{color-scheme:dark;
  --ink:#EDEDED;--ink-80:rgba(237,237,237,.8);--ink-70:rgba(237,237,237,.68);--ink-15:rgba(237,237,237,.15);--ink-10:rgba(237,237,237,.10);--ink-08:rgba(237,237,237,.08);
  --caption:#9C9C9C;--white:#181818;--page:#0E0E0E;--soft:#202020;--line:#2E2E2E;
  --orange-50:#26130F;--orange-100:#36170F;--orange-200:#552014;--orange-300:#87301F;
  --ink-bg:#222222}
[data-theme="dark"] body{background:var(--page);color:var(--ink)}
[data-theme="dark"] .hdr.hdr5{background:rgba(24,24,24,.92);border-color:rgba(255,255,255,.08)}
[data-theme="dark"] .hdr.hdr5.compact{background:rgba(24,24,24,.97);box-shadow:0 12px 32px -16px rgba(0,0,0,.7)}
[data-theme="dark"] .shot-bar{background:#1E1E1E;border-color:rgba(255,255,255,.06)}
[data-theme="dark"] .shot-frame{border-color:rgba(255,255,255,.08);box-shadow:0 0 0 6px rgba(255,255,255,.04),0 50px 90px -40px rgba(0,0,0,.8)}
[data-theme="dark"] .stat .num{color:var(--ink)}
[data-theme="dark"] .stat[style*="--orange)"] .num,[data-theme="dark"] .stat[style*="--orange)"] .tag{color:#1a0b07}
[data-theme="dark"] ::selection{background:var(--orange);color:#fff}
[data-theme="dark"] img:not(.mono img):not(.shot-frame img){filter:brightness(.92)}
html.theme-anim,html.theme-anim *{transition:background-color .45s ease,color .45s ease,border-color .45s ease,fill .45s ease!important}

/* Real tool icons (white tile, like an app icon, in both themes) */
.mono.logo{background:#fff;padding:5px;border:1px solid rgba(0,0,0,.06);overflow:hidden}
.mono.logo img{width:100%;height:100%;object-fit:contain;border-radius:5px;display:block}
.tool .mono.logo{width:32px;height:32px}

/* Bouncing zeros section, back under the tools strip */
.zeros-wrap{margin-top:clamp(48px,6vw,88px)}
.zeros-wrap .bento>.hero{min-height:clamp(360px,34vw,520px)}
.zeros-wrap .hero-copy .btns{margin-top:24px}

/* ---------- Motion ---------- */
/* Hero screenshot: 3D tilt + glare (driven by zm-v5.js) */
.hero5-shot{perspective:1600px}
.shot-scroll{transform-style:preserve-3d;will-change:transform}
.shot-glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:3;opacity:0;transition:opacity .35s ease;
  background:radial-gradient(600px circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.28),transparent 45%)}
.hero5-shot:hover .shot-glare{opacity:1}
.hero5-float{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:visible}
.hero5-float svg{position:absolute;color:var(--orange);opacity:.14;will-change:transform}
/* Word-by-word headline reveals */
.wsplit .w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em;margin-bottom:-.08em}
.wsplit .w>span{display:inline-block;transform:translateY(105%) rotate(4deg);transform-origin:0 100%;transition:transform .9s var(--ease-expo);transition-delay:calc(var(--i)*45ms)}
.wsplit.w-in .w>span{transform:none}
/* Scroll progress, cursor ring */
.zm-progress{position:fixed;left:0;top:0;height:3px;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,var(--orange),#FF8A5B);z-index:400;pointer-events:none}
.zm-cursor{position:fixed;left:0;top:0;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;border:1.5px solid var(--orange);pointer-events:none;z-index:500;opacity:0;transition:width .25s var(--ease-expo),height .25s var(--ease-expo),margin .25s var(--ease-expo),opacity .3s ease,background-color .25s ease;mix-blend-mode:normal}
.zm-cursor.on{opacity:.9}
.zm-cursor.big{width:64px;height:64px;margin:-32px 0 0 -32px;background:rgba(253,59,31,.10)}
.zm-dot{position:fixed;left:0;top:0;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--orange);pointer-events:none;z-index:501;opacity:0;transition:opacity .3s ease}
.zm-dot.on{opacity:1}
/* Cards tilt slightly toward the cursor; magnetic buttons */
.tilt{transform-style:preserve-3d;will-change:transform}
.magnet{will-change:transform}
/* Tools strip leans with scroll speed */
.marquee{will-change:transform}
/* Section titles float in from below with a slight blur */
@keyframes zmFloat{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-14px) rotate(8deg)}}
@media(prefers-reduced-motion:reduce){
  .wsplit .w>span{transform:none!important;transition:none}
  .zm-cursor,.zm-dot,.hero5-float{display:none}
}
@media(hover:none),(pointer:coarse){.zm-cursor,.zm-dot{display:none}}
/* The live app demos are pictures of the (light) app: they keep the light palette in dark mode. */
[data-theme="dark"] [data-live]{color-scheme:light;color:#262626;
  --ink:#262626;--ink-80:rgba(38,38,38,.8);--ink-70:rgba(38,38,38,.7);--ink-15:rgba(38,38,38,.15);--ink-10:rgba(38,38,38,.10);--ink-08:rgba(38,38,38,.08);
  --caption:#6B6B6B;--white:#FFFFFF;--page:#F2F2F2;--soft:#EEEEEE;--line:#D9D9D9;
  --orange-300:#FE9483;--orange-200:#FEC0B5;--orange-100:#FFDCD5;--orange-50:#FFF0ED;--ink-bg:#262626}
.hero5-copy{position:relative;z-index:1}
@media(max-width:767px){
  .hero5-float{display:none}
  .zeros-wrap .bento>.hero .hero-copy{padding-bottom:200px}
}
