:root{--font-body:'Barlow','Noto Sans Devanagari','Noto Sans SC',system-ui,sans-serif;--font-display:'Arvo','Noto Sans Devanagari','Noto Sans SC',Georgia,serif}
/* Responsive overrides shared by all site pages. Desktop (>=768px) is untouched. */
img{max-width:100%}
.zf-burger,.zf-panel{display:none}
@media (max-width:767px){
  body{overflow-x:clip}
  nav[data-screen-label="Nav"] > div{padding:12px 16px!important;flex-wrap:nowrap!important}
  nav[data-screen-label="Nav"] > div > div:last-child{display:none!important}
  nav[data-screen-label="Nav"] img{height:28px!important;flex-shrink:0}
  .zf-burger{display:flex}
  .zf-panel[data-open="true"]{display:flex}
  section,header,footer > div{padding-left:16px!important;padding-right:16px!important}
  h1{overflow-wrap:break-word}
  [data-sticky]{position:static!important}

  /* comparison tables become cards */
  .table-wrap{overflow:visible!important;border:0!important}
  table[data-cards]{display:block;min-width:0!important;width:100%}
  table[data-cards] thead{display:none}
  table[data-cards] tbody{display:flex;flex-direction:column;gap:12px}
  table[data-cards] tr{display:grid;grid-template-columns:repeat(var(--cols,2),minmax(0,1fr));gap:12px 8px;padding:16px;border:1px solid var(--color-border);border-radius:3px;opacity:1!important}
  table[data-cards] td{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:0!important;padding:0!important;text-align:center;box-shadow:none!important;width:auto!important}
  table[data-cards] td:first-child{grid-column:1/-1;align-items:flex-start;text-align:left}
  table[data-cards] td:first-child:empty{display:none}
  table[data-cards] td[data-label]::before{content:attr(data-label);font-family:var(--font-mono);font-size:13px;letter-spacing:.04em;color:var(--color-ink-muted)}
  table[data-cards] [data-desc]{max-height:none!important;opacity:1!important;margin-top:6px!important;max-width:none!important}

  /* testimonials: one per view, swipe */
  [data-m="quotes"]{display:grid!important;grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:88%;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding-bottom:8px}
  [data-m="quotes"] > *{scroll-snap-align:start;min-height:0!important}
  [data-m="quotes"] [data-full]{max-height:none!important;opacity:1!important}

  /* features index: 2 x 2 per group */
  [data-m="idx"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* legal contents */
  details[data-m="toc"] > summary{min-height:44px}
}
@media (max-width:767px),(pointer:coarse){
  .btn,button,select,input:not([type=checkbox]):not([type=radio]){min-height:44px}
  footer a,details[data-m="toc"] a,.zf-panel a{display:inline-flex;align-items:center;min-height:44px}
  footer button{min-height:44px}
  .badge{font-size:13px!important}
}

@media (max-width:1023px){
  [data-m="dlgrid"]{grid-template-columns:minmax(0,1fr)!important}
}
@media (max-width:599px){
  [data-m="frow"]{grid-template-columns:minmax(0,1fr)!important}
}

/* cookie banner */
html[data-cookie-banner] button[aria-label="Back to top"]{bottom:calc(var(--zf-banner-h,0px) + 16px)!important}
html[data-cookie-banner] body{padding-bottom:var(--zf-banner-h,0px)}
@media (max-width:767px){
  .zf-ck-wrap{flex-direction:column!important;align-items:stretch!important;padding:14px 16px calc(10px + env(safe-area-inset-bottom))!important;gap:10px!important}
  .zf-ck-wrap p{font-size:13px!important;line-height:1.5!important}
  .zf-ck-actions{flex:0 0 auto!important}
}
@media (max-width:479px){
  .zf-ck-dbtns{grid-template-columns:minmax(0,1fr)!important}
}

/* trace runner challenge sheet */
@media (max-width:767px){
  [data-m="sheet"]{align-items:flex-end!important;padding:0!important}
  [data-m="sheet"] > [role="dialog"]{max-width:none!important;border-bottom:0!important;border-left:0!important;border-right:0!important;padding-bottom:calc(20px + env(safe-area-inset-bottom))!important}
  section[data-screen-label="Game"]{padding-left:12px!important;padding-right:12px!important}
}
[data-tr-wrap][data-portrait="true"]{max-width:560px!important}
[data-tr-wrap][data-portrait="true"] [data-tr-board]{aspect-ratio:15 / 19!important}

/* License options: 1 year + perpetual side by side; stacked on phones, perpetual first */
@media (max-width:599px){[data-m="lic-opts"]{grid-template-columns:minmax(0,1fr)!important}[data-m="lic-perp"]{order:-1}}
@media (max-width:767px){[data-m="plans"] [data-m-first]{order:-1}}
@media (max-width:1099px){[data-m="plans"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:599px){[data-m="plans"]{grid-template-columns:minmax(0,1fr)!important}}
@media (max-width:1099px){[data-m="caps-plugins"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:599px){[data-m="caps-plugins"]{grid-template-columns:minmax(0,1fr)!important}[data-m="caps-plugins"]>[data-m="caps-step"]{grid-column:auto!important}[data-m="step-halves"]{grid-template-columns:minmax(0,1fr)!important}[data-m="step-half"]+[data-m="step-half"]{border-left:0!important;border-top:1px solid var(--color-border)}}
@media (min-width:700px) and (max-width:1099px){[data-m="flow"]{grid-template-columns:repeat(6,minmax(0,1fr))!important}[data-m="flow-step"]{grid-column:span 2}[data-m="flow-step"]:nth-child(n+4){grid-column:span 3}[data-m="flow-step"]:nth-child(3) [data-m="flow-h"]{display:none!important}}
@media (max-width:699px){[data-m="flow"]{grid-template-columns:minmax(0,1fr)!important;gap:0!important}[data-m="flow-step"]{display:grid!important;grid-template-columns:40px minmax(0,1fr);gap:0 18px!important;padding-bottom:32px}[data-m="flow-step"]:last-child{padding-bottom:0}[data-m="flow-rail"]{flex-direction:column!important;align-items:flex-start!important;margin-bottom:-32px}[data-m="flow-step"]:last-child [data-m="flow-rail"]{margin-bottom:0}[data-m="flow-h"]{display:none!important}[data-m="flow-v"]{display:block!important}}

/* main nav v2 */
@media (min-width:768px) and (max-width:959px){[data-nav-links]{gap:18px!important}}

/* buttons v2 */
.btn-primary,.btn-primary:visited{background:var(--color-brand-green);color:#021409!important}
.btn-primary:hover{background:#21914E;color:#021409!important;text-decoration:none}
.btn-primary [data-dl-sub]{color:#021409;opacity:1!important;font-size:13px!important;font-weight:400}
.btn-secondary,.btn-secondary:visited{background:transparent!important;color:#fff!important;border:1px solid rgba(255,255,255,.4)!important}
.btn-secondary:hover{background:rgba(255,255,255,.06)!important;text-decoration:none}

/* comparison row links */
[data-row-link]{text-decoration:none}
[data-row-link]:hover,[data-row-link]:focus-visible{text-decoration:underline;text-decoration-color:currentColor}
[data-row-link] [data-arr]{opacity:0;transition:opacity 150ms ease}
[data-row-link]:hover [data-arr],[data-row-link]:focus-visible [data-arr]{opacity:1}

/* PCB patterns: phones keep hero + CTA only */
@media (max-width:767px){[data-pcb="grid"],[data-pcb="plugin"]{display:none!important}}

/* parallax for decorative ornaments (desktop, fine pointer, motion allowed, scroll-timeline support only) */
@keyframes zfParHero{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,var(--zf-par-hero,0px),0)}}
@keyframes zfParGrid{from{transform:translate3d(0,-20px,0)}to{transform:translate3d(0,20px,0)}}
@keyframes zfParField{from{transform:translate3d(0,-40px,0)}to{transform:translate3d(0,40px,0)}}
@supports (animation-timeline: view()){
  @media (min-width:768px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
    [data-par]{will-change:transform;animation-fill-mode:both;animation-timing-function:linear;animation-duration:1ms}
    [data-par="hero"]{animation-name:zfParHero;animation-timeline:scroll(root block);animation-range:0 100vh}
    [data-par="grid"]{animation-name:zfParGrid;animation-timeline:view();animation-timing-function:steps(41,jump-none)}
    [data-par="field"]{animation-name:zfParField;animation-timeline:view()}
  }
}

/* Site switches (site.js sets html[data-purchases] / html[data-licensing] from /config/site-status.json) */
html:not([data-purchases="closed"]) [data-if-purchases="closed"],html[data-purchases="closed"] [data-if-purchases="open"],html:not([data-licensing="closed"]) [data-if-licensing="closed"],html[data-licensing="closed"] [data-if-licensing="open"]{display:none!important}
html[data-notice] body{padding-top:var(--zf-notice-h,0px)}
@media (max-width:599px){[data-m="notify-row"]{flex-direction:column!important;align-items:stretch!important}}
@media (max-width:1099px){[data-m="plug-tiles"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:799px){[data-m="plug-top"]{grid-template-columns:minmax(0,1fr)!important;gap:24px!important}}
@media (max-width:599px){[data-m="plug-tiles"]{grid-template-columns:minmax(0,1fr)!important}[data-plug-card]{padding:20px!important}}

@media (max-width:1099px){[data-m="plugin-card"]{grid-template-columns:1fr!important}}
@media (max-width:599px){[data-m="plan-opts"]{grid-template-columns:1fr!important}}
@media (max-width:699px){[data-m="pg-tiles"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (min-width:900px){[data-m="plug-price"]{grid-template-columns:minmax(0,58fr) minmax(0,42fr)!important;grid-template-rows:auto auto 1fr;grid-template-areas:'gal head' 'gal plans' 'gal notes'!important}}
@media (min-width:900px){[data-m="plug-panel"]{grid-template-columns:minmax(0,42fr) minmax(0,58fr)!important;grid-template-rows:auto auto 1fr;grid-template-areas:'head gal' 'list gal' 'buy gal'!important}}
@media (max-width:599px){[data-m="plug-panel"]{padding:20px!important}}
@media (max-width:599px){[data-m="hp-plans"]{grid-template-columns:minmax(0,1fr)!important}}
@media (max-width:479px){[data-m="hp-btns"]{flex-direction:column!important}[data-m="hp-btns"]>*{width:100%!important}}
/* solid secondary */ .btn.btn-secondary{background:#183525!important;border-color:#183525!important;color:#fff!important}.btn.btn-secondary:hover{background:#2E4527!important;border-color:#2E4527!important;text-decoration:none}
@media (max-width:599px){[data-m="g2s-plans"]{grid-template-columns:minmax(0,1fr)!important}[data-m="g2s-btns"]{flex-direction:column!important;align-items:stretch!important}}
@media (min-width:900px){[data-m="g2s-why"]{grid-template-columns:minmax(0,56fr) minmax(0,44fr)!important}}
[data-m="tasks"]>a:nth-child(-n+2){border-top:1px solid rgba(255,255,255,.12)}@media (max-width:899px){[data-m="tasks"]{grid-template-columns:minmax(0,1fr)!important}[data-m="tasks"]>a:nth-child(2){border-top:0}}
@media (max-width:599px){[data-m="comp-legend"]{flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:8px!important}}

/* Home hero: phones stack text above the full-width video */
@media (max-width:767px){[data-hero-text]{position:static!important;padding:40px 20px 32px!important}}
/* Home hero variant C: below 900px headline above video, 16:9 video, stacked band */
@media (max-width:899px){[data-hc-h1]{position:static!important;padding:32px 20px 24px!important;align-items:flex-start!important;text-align:left!important}[data-hc-media]{height:56.25vw!important;min-height:0!important}[data-hc-band]{position:static!important;background:#041D10!important;border-top:0!important}[data-hc-band-in]{flex-direction:column!important;align-items:flex-start!important;gap:24px!important;padding:24px 20px 32px!important;min-height:0!important}[data-hc-cta]{gap:16px 24px!important}}
@media (max-width:767px){header[data-hero]{padding-left:0!important;padding-right:0!important}}
/* Home hero band/plate variants: below 900px video first (16:9), text stacked below */
@media (max-width:899px){[data-hx-fill]{height:auto!important}[data-hx-media]{flex:none!important;height:56.25vw!important}[data-hx-band]{flex-direction:column!important;align-items:flex-start!important;gap:24px!important;padding:24px 20px 32px!important;min-height:0!important}[data-hx-plate]{position:static!important;max-width:none!important;border:0!important;padding:24px 20px 32px!important}[data-hx-cta]{gap:16px 24px!important}}
@media (min-width:900px){[data-hc-h1] h1{text-shadow:0 1px 0 rgba(4,29,16,.85),0 0 1px rgba(4,29,16,.85),1px 0 0 rgba(4,29,16,.85),-1px 0 0 rgba(4,29,16,.85)}}
@media (max-width:899px){[data-wf-sec]{padding-top:80px!important}}

/* email-only license form: button spans the field on mobile */
@media (max-width:767px){[data-m="email-actions"]{align-items:stretch!important}[data-m="email-actions"]>.btn,[data-m="email-actions"]>button{width:100%;justify-content:center}}

/* i18n safety nets (de/pl texts run longer) */
[data-if-purchases="closed"][data-checkout]{white-space:normal!important;text-align:center;max-width:100%}
[data-cta-location="features-plugin"]{white-space:normal!important;max-width:100%;text-align:center}
@media (max-width:479px){h2[style*="font-size:40px"],h2[style*="font-size: 40px"]{font-size:clamp(28px,8vw,40px)!important;overflow-wrap:break-word}}
@media (min-width:768px){html:is([lang|="de"],[lang|="pl"]) [data-m="idx"]{display:flex!important;flex-wrap:wrap}html:is([lang|="de"],[lang|="pl"]) [data-m="idx"]>a{flex:1 1 auto;min-width:112px}}
/* Role question on the key page: hidden unless site-status.json has "roleQuestion": true */
html:not([data-role-question="on"]) [data-role-q]{display:none!important}
[data-role-q][data-role-token="none"]{display:none!important}
