/* =====================================================================
   BIR E-Invoicing landing page — v8 layer (v8.1.0)
   Loaded last. Everything new in v8 lives here so earlier files stay intact.
   1. Palette   2. Step connectors (end of file)   3. Urgency / deadline (red)
   5. JSON demo   6. Colour accents
   7. Video resources   8. Motion   9. Dark theme   10. Responsive
   ===================================================================== */

/* 1. Palette ---------------------------------------------------------- */
:root{
  --v-red:#e5394a;--v-red-deep:#b4232f;--v-coral:#ff6b4a;--v-red-soft:#fff2f3;--v-red-line:#ffd0d5;
  --v-violet:#6d5dfc;--v-amber:#e8930c;--v-blue:#2f6fed;--v-green:#16a34a;
  --v-urgent:linear-gradient(135deg,#ff5463 0%,#e5394a 45%,#b4232f 100%);
}

/* completed steps get a tick */
.scene-node:after{content:"";position:absolute;top:10px;right:10px;width:20px;height:20px;border-radius:50%;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/62% no-repeat,var(--bgrad,#007e80);
  transform:scale(0);transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
:is([data-current="1"] [data-node="0"],[data-current="2"] :is([data-node="0"],[data-node="1"]),[data-current="3"] :is([data-node="0"],[data-node="1"],[data-node="2"])).scene-node:after{transform:scale(1);transition-delay:.15s}
.story-hero .scene-node:after{width:16px;height:16px;top:7px;right:7px}


/* 3. Urgency / deadline ------------------------------------------------ */
.urgency-bar{position:relative;z-index:31;background:var(--v-urgent);background-size:200% 100%;color:#fff;font-size:13px;line-height:1.4;animation:ub-shift 8s ease-in-out infinite alternate}
.urgency-bar .container{display:flex;align-items:center;justify-content:center;gap:12px;min-height:40px;padding:6px 0;flex-wrap:wrap;text-align:center}
.urgency-bar strong{font-weight:700}
.ub-days{font-weight:600;color:#ffe3e3}
.urgency-bar a{color:#b4232f;background:#fff;border-radius:999px;padding:4px 12px;font-weight:700;font-size:12px;white-space:nowrap;transition:transform .2s}
.urgency-bar a:hover{text-decoration:none;transform:translateX(2px)}
.ub-pulse{width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 0 0 0 #ffffffaa;animation:ub-pulse 1.8s ease-out infinite;flex:0 0 9px}
@keyframes ub-pulse{0%{box-shadow:0 0 0 0 #ffffffb0}100%{box-shadow:0 0 0 10px #ffffff00}}
@keyframes ub-shift{from{background-position:0 0}to{background-position:100% 0}}

/* hero deadline badge: solid red, glowing */
html[data-theme] .hero .deadline-badge{background:var(--v-urgent);color:#fff;border:0;border-radius:12px;padding:10px 14px;gap:10px;box-shadow:0 12px 26px -12px #e5394acc;animation:dl-glow 2.6s ease-in-out infinite;font-size:14px}
html[data-theme] .hero .deadline-badge strong{color:#fff}
html[data-theme] .hero .deadline-badge .icon{color:#fff;stroke:#fff}
html[data-theme] .hero .deadline-badge .countdown{background:#fff;color:var(--v-red-deep);border-radius:999px;padding:2px 10px;font-size:12px;font-weight:800;margin-left:2px}
@keyframes dl-glow{0%,100%{box-shadow:0 12px 26px -12px #e5394acc,0 0 0 0 #e5394a55}50%{box-shadow:0 12px 26px -12px #e5394acc,0 0 0 8px #e5394a00}}

/* countdown tiles */
.countdown-tiles{display:flex;gap:10px;margin:14px 0 18px;flex-wrap:wrap}
.countdown-tiles span{min-width:74px;padding:10px 10px 8px;border-radius:14px;background:#fff;border:1px solid var(--v-red-line);text-align:center;box-shadow:0 10px 22px -16px #e5394a99}
.countdown-tiles b{display:block;font-family:Poppins,system-ui,sans-serif;font-weight:700;font-size:30px;line-height:1.1;color:var(--v-red);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.countdown-tiles small{display:block;margin-top:3px;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#9b5a61}
.countdown-tiles b.tick{animation:cd-tick .45s cubic-bezier(.3,1.4,.5,1)}
@keyframes cd-tick{0%{transform:translateY(-35%);opacity:.2}100%{transform:none;opacity:1}}

/* step 4 (deadline) panel */
html[data-theme] .deadline-date{font-family:Poppins,system-ui,sans-serif;font-size:clamp(30px,3.4vw,42px)!important;line-height:1.15;font-weight:700;background:var(--v-urgent);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;margin:6px 0 0}
html[data-theme] .calendar span{background:var(--v-urgent)!important;color:#fff}
.calendar strong{color:var(--v-red)}
.calendar-dots i:last-child{background:var(--v-red)!important;box-shadow:0 0 0 3px #e5394a33}
html[data-theme] #overview-panel-3 .note{background:var(--v-red-soft);border:1px solid var(--v-red-line);border-left:5px solid var(--v-red);color:#6b2a31}
html[data-theme] #overview-panel-3 .note strong{color:var(--v-red-deep)}
html[data-theme] #overview-panel-3 .note .checks .icon{color:var(--v-red)}
.tab-days{display:block;font-style:normal;font-size:10px;font-weight:700;letter-spacing:.02em;color:#fff;background:var(--v-red);border-radius:999px;padding:1px 8px;margin-top:4px;line-height:1.6}
.tab-days:empty{display:none}
html[data-theme] .overview-steps button[data-overview="3"]{color:var(--v-red-deep)}
html[data-theme] .overview-steps button[data-overview="3"][aria-pressed=true]{background:var(--v-urgent);color:#fff;box-shadow:0 10px 24px -10px #e5394acc}
html[data-theme] .overview-steps button[data-overview="3"][aria-pressed=true] .tab-days{background:#fff;color:var(--v-red-deep)}

/* eligibility heading: "December" in red */
.hl-red{position:relative;display:inline-block;background:linear-gradient(90deg,#ff8a8a,#ff4d5e);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.hl-red:after{content:"";position:absolute;left:0;right:0;bottom:.02em;height:.12em;border-radius:1em;background:linear-gradient(90deg,#ff8a8a,#ff4d5e);transform-origin:left;transform:scaleX(0);transition:transform .9s .3s cubic-bezier(.65,0,.35,1)}
.is-visible .hl-red:after,.hl-red.is-drawn:after,html:not(.js) .hl-red:after{transform:scaleX(1)}
.section-head:not(.reveal-ready) .hl-red:after{transform:scaleX(1)}

/* final CTA turns red */
html[data-theme] .final-section.urgent .final-cta{background:radial-gradient(ellipse at 100% 0,#ff9b7a66,transparent 60%),radial-gradient(ellipse at 0 100%,#7a0f2a66,transparent 60%),var(--v-urgent);border:0;color:#fff;box-shadow:0 40px 80px -40px #b4232fcc}
html[data-theme] .final-section.urgent .final-cta h2{color:#fff;-webkit-text-fill-color:#fff;background:none}
html[data-theme] .final-section.urgent .final-cta p{color:#ffe6e8}
html[data-theme] .final-section.urgent .final-cta .eyebrow{color:#ffd5d9}
html[data-theme] .final-section.urgent .countdown-tiles span{background:#ffffff1f;border-color:#ffffff40;box-shadow:none;backdrop-filter:blur(4px)}
html[data-theme] .final-section.urgent .countdown-tiles b{color:#fff}
html[data-theme] .final-section.urgent .countdown-tiles small{color:#ffd5d9}
html[data-theme] .final-section.urgent .button:not(.secondary){background:#fff;color:var(--v-red-deep);box-shadow:0 14px 30px -12px #4a0010aa}
html[data-theme] .final-section.urgent .button:not(.secondary) .icon{color:var(--v-red-deep)}
html[data-theme] .final-section.urgent .button.secondary{background:transparent;color:#fff;border:1.5px solid #ffffffaa;box-shadow:none}
html[data-theme] .final-section.urgent .button.secondary:hover{background:#ffffff1a}
html[data-theme] .final-section.urgent .calendar{box-shadow:0 26px 50px -20px #4a0010aa}

/* sticky mobile CTA */
html[data-theme] .sticky-cta{background:var(--v-urgent);color:#fff}
.sc-days{display:inline-block;margin-left:6px;background:#fff;color:var(--v-red-deep);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:800}
.sc-days:empty{display:none}

/* JSON demo form: last field spans the row */
#invoice-form .field-grid .field:last-child{grid-column:1/-1}

/* 5. JSON demo -------------------------------------------------------- */
html[data-theme] .code-window{background:#0b1726;border:1px solid #1c3550;color:#cfe3f5;box-shadow:0 30px 60px -32px #0b1726cc}
html[data-theme] .code-window .window-bar{background:#0f2236;border-bottom:1px solid #1c3550;color:#7f9bb8}
.wb-dots{display:inline-flex;gap:7px}.wb-dots i{width:11px;height:11px;border-radius:50%;background:#ff5f57}
.wb-dots i:nth-child(2){background:#febc2e}.wb-dots i:nth-child(3){background:#28c840}
html[data-theme] .code-window pre{color:#cfe3f5;counter-reset:ln}
html[data-theme] .code-window code{color:inherit}
.jl{display:inline-block;counter-increment:ln;border-radius:4px;padding-right:6px}
.jl:before{content:counter(ln);display:inline-block;width:1.8em;margin-right:1.1em;text-align:right;color:#3e5c7c;user-select:none;-webkit-user-select:none}
.jk{color:#7dd3fc}.js{color:#86efac}.jn{color:#fbbf24}.jp{color:#8aa4bf}
.typing .jl{animation:jl-in .5s both;animation-delay:calc(var(--i,0) * 85ms)}
.typing .jl.changed{animation:jl-in .5s both,jl-hl 2.4s ease-out both;animation-delay:calc(var(--i,0) * 85ms),calc(var(--i,0) * 85ms + .3s)}
@keyframes jl-in{from{opacity:0;clip-path:inset(0 100% 0 0)}to{opacity:1;clip-path:inset(0 0 0 0)}}
@keyframes jl-hl{0%{background:#28c84040}100%{background:transparent}}
.conversion-stages [data-conversion="0"].active{background:#d9f5f2;color:#03645f}
.conversion-stages [data-conversion="1"].active{background:#ebe8ff;color:#4a3cc9;box-shadow:inset 0 0 0 1px #c8c0ff}
.conversion-stages [data-conversion="2"].active{background:#dcf7e4;color:#13703a;box-shadow:inset 0 0 0 1px #a6e6bb}
.invoice-form{position:relative;overflow:hidden}
.demo-board.converting .invoice-form:after{content:"";position:absolute;left:0;right:0;top:-80px;height:80px;pointer-events:none;background:linear-gradient(180deg,transparent,#12b5bf2e 60%,#12b5bf66 98%,transparent);animation:beam 1.1s cubic-bezier(.5,0,.4,1) forwards}
@keyframes beam{to{top:100%}}

/* 6. Colour accents --------------------------------------------------- */
html[data-theme] .node-icon .icon{stroke:currentColor}
html[data-theme=light] .scene-node[data-node="1"] .node-icon{background:#efecff;border-color:#ddd7ff;color:var(--v-violet)}
html[data-theme=light] .scene-node[data-node="2"] .node-icon{background:#fff3df;border-color:#fde2b0;color:#c97a05}
html[data-theme=light] .scene-node[data-node="3"] .node-icon{background:#e9f0ff;border-color:#cfdcff;color:var(--v-blue)}
html[data-theme] .overview-steps button[data-overview="1"]:not([aria-pressed=true]) .icon{color:var(--v-violet)}
html[data-theme] .overview-steps button[data-overview="2"]:not([aria-pressed=true]) .icon{color:var(--v-blue)}
html[data-theme] .overview-steps button[data-overview="3"]:not([aria-pressed=true]) .icon{color:var(--v-red)}
.preparation li>span{transition:background .4s,color .4s,transform .4s}
html[data-theme] .preparation li:nth-child(1)>span{background:#d9f5f2;color:#03645f}
html[data-theme] .preparation li:nth-child(2)>span{background:#e3edff;color:#2552c4}
html[data-theme] .preparation li:nth-child(3)>span{background:#ebe8ff;color:#4a3cc9}
html[data-theme] .preparation li:nth-child(4)>span{background:#fff0d6;color:#a35f00}
html[data-theme] .preparation li:nth-child(5)>span{background:var(--v-urgent);color:#fff}
html[data-theme] .preparation li:nth-child(5){border:1px solid var(--v-red-line)}
html[data-theme] .preparation li:nth-child(5) strong{color:var(--v-red-deep)}
summary>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e6f6f7;font-size:20px;line-height:1;transition:transform .3s,background .3s,color .3s}
details[open] summary>span{background:var(--teal);color:#fff}
details[open]{box-shadow:inset 4px 0 0 var(--c1,#12b5bf)}

/* 7. Video resources --------------------------------------------------- */
.resource-art.has-thumb{background:#0b1726}
.resource-art .yt-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.resource-art.has-thumb:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0b172600 45%,#0b1726b3);pointer-events:none}
.resource-art.has-thumb .institution,.resource-art.has-thumb .resource-paper{display:none}
.resource-art .play-button{position:relative;z-index:2}
.resource-art.has-thumb .play-button{background:#ff0033;color:#fff;box-shadow:0 12px 30px -8px #ff003399}
.yt-source{display:none}
.has-thumb .yt-source{display:block;position:absolute;left:16px;bottom:14px;z-index:2;color:#fff;font-size:12px;font-weight:650;background:#0006;padding:4px 10px;border-radius:999px;backdrop-filter:blur(4px)}
.video-feature:hover .yt-thumb{transform:scale(1.05)}
.video-caption h3{font-size:19px;line-height:1.4}
.rl-thumb{position:relative;display:grid;place-items:center;flex:0 0 auto}
.rl-thumb.has-thumb{flex:0 0 132px;width:132px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#0b1726}
.rl-thumb.has-thumb .icon-bubble{display:none}
.rl-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s}
.rl-play{display:none}
.rl-thumb.has-thumb .rl-play{display:block;position:relative;z-index:1;width:30px;height:30px;border-radius:50%;background:#ff0033 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 7l9 5-9 5z'/%3E%3C/svg%3E") center/60% no-repeat;box-shadow:0 6px 14px -4px #0008}
.resource-link:hover .rl-thumb img{transform:scale(1.07)}
.resource-link strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}

/* 8. Motion -------------------------------------------------------------- */
.overview-panel:not([hidden]){animation:panel-in .55s cubic-bezier(.2,.7,.2,1)}
@keyframes panel-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.scene-node.is-active .node-icon{animation:icon-bob 2.4s ease-in-out infinite}
@keyframes icon-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.button.cta-primary{overflow:hidden;isolation:isolate}
.button.cta-primary:before{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;z-index:1;pointer-events:none;background:linear-gradient(100deg,transparent,#ffffff59,transparent);transform:skewX(-20deg);animation:cta-shine 5s ease-in-out infinite}
@keyframes cta-shine{0%,62%{left:-60%}100%{left:130%}}
[data-prep] li{opacity:.35;transform:translateY(8px);transition:opacity .5s,transform .5s cubic-bezier(.2,.7,.2,1)}
[data-prep].lit li{opacity:1;transform:none}
[data-prep].lit li:nth-child(2){transition-delay:.15s}[data-prep].lit li:nth-child(3){transition-delay:.3s}
[data-prep].lit li:nth-child(4){transition-delay:.45s}[data-prep].lit li:nth-child(5){transition-delay:.6s}
[data-prep].lit li>span{animation:prep-pop .5s cubic-bezier(.3,1.6,.5,1) both}
[data-prep].lit li:nth-child(2)>span{animation-delay:.15s}[data-prep].lit li:nth-child(3)>span{animation-delay:.3s}
[data-prep].lit li:nth-child(4)>span{animation-delay:.45s}[data-prep].lit li:nth-child(5)>span{animation-delay:.6s}
@keyframes prep-pop{0%{transform:scale(.6)}100%{transform:scale(1)}}
.faq-grid.reveal-ready,.resources-grid.reveal-ready{opacity:1;transform:none}
.faq-grid.reveal-ready>*,.resource-list.reveal-ready>*,.resources-grid.reveal-ready>*{opacity:0;transform:translateY(16px);transition:opacity .6s var(--ease),transform .6s var(--ease);transition-delay:var(--rd,0s)}
.faq-grid.is-visible>*,.resources-grid.is-visible>*{opacity:1;transform:none}
.motion-paused .urgency-bar,.motion-paused .ub-pulse,.motion-paused .button.cta-primary:before,.motion-paused .hero .deadline-badge{animation-play-state:paused}
/* was @media(prefers-reduced-motion:reduce) — now only for motion-off (see motion.js) */html.motion-off [data-prep] li{opacity:1;transform:none}html.motion-off .faq-grid.reveal-ready>*,html.motion-off .resources-grid.reveal-ready>*{opacity:1;transform:none}html.motion-off .hl-red:after{transform:scaleX(1)}html.motion-off .fl-fill{transition:none!important}

/* 9. Dark theme ---------------------------------------------------------- */
html[data-theme=dark] .scene-node[data-node="1"] .node-icon{background:#221d4f;border-color:#3b3380;color:#a99dff}
html[data-theme=dark] .scene-node[data-node="2"] .node-icon{background:#35270c;border-color:#5a4210;color:#fbbf24}
html[data-theme=dark] .scene-node[data-node="3"] .node-icon{background:#102a52;border-color:#1f4380;color:#8fb6ff}
html[data-theme=dark] .scene-node:after{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304202b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/62% no-repeat,var(--bgrad)}
html[data-theme=dark] .countdown-tiles span{background:#ff5c6a14;border-color:#ff7a8640;box-shadow:none}
html[data-theme=dark] .countdown-tiles b{color:#ff8f99}
html[data-theme=dark] .countdown-tiles small{color:#ffb8bd}
html[data-theme=dark] #overview-panel-3 .note{background:#ff5c6a14;border-color:#ff7a8640;border-left-color:#ff5c6a;color:#ffd0d4}
html[data-theme=dark] #overview-panel-3 .note strong{color:#ff9aa2}
html[data-theme=dark] .overview-steps button[data-overview="3"]:not([aria-pressed=true]){color:#ff9aa2}
html[data-theme=dark] .preparation li:nth-child(1)>span{background:#2cc6cf26;color:#8ff0f0}
html[data-theme=dark] .preparation li:nth-child(2)>span{background:#2f6fed33;color:#a8c4ff}
html[data-theme=dark] .preparation li:nth-child(3)>span{background:#6d5dfc33;color:#c4bbff}
html[data-theme=dark] .preparation li:nth-child(4)>span{background:#fbbf2426;color:#fcd28a}
html[data-theme=dark] .preparation li:nth-child(5){border-color:#ff7a8640}
html[data-theme=dark] .preparation li:nth-child(5) strong{color:#ff9aa2}
html[data-theme=dark] .conversion-stages [data-conversion="1"].active{background:#6d5dfc33;color:#c4bbff;box-shadow:inset 0 0 0 1px #6d5dfc66}
html[data-theme=dark] .conversion-stages [data-conversion="2"].active{background:#16a34a33;color:#9af0b5;box-shadow:inset 0 0 0 1px #16a34a66}
html[data-theme=dark] summary>span{background:#ffffff12}
html[data-theme=dark] details[open] summary>span{background:#2cc6cf;color:#04202b}
html[data-theme=dark] .code-window{background:#071320;border-color:#ffffff1a}

/* 10. Responsive ------------------------------------------------------- */
@media(max-width:850px) and (min-width:651px){
  .story-sales .flow-link:nth-child(4){display:none}
  .story-sales .scene-node:nth-child(5){grid-column:1;grid-row:2}
  .story-sales .flow-link:nth-child(6){grid-column:2;grid-row:2}
  .story-sales .scene-node:nth-child(7){grid-column:3;grid-row:2}
}
@media(max-width:650px){
  .urgency-bar{font-size:12px}.urgency-bar .container{gap:6px 10px;padding:8px 0}
  .ub-sep{display:none}.urgency-bar strong{display:block}.urgency-bar .container>span:nth-child(2){flex:1 1 60%;text-align:left}
  .story-hero .scene-node:after{display:none}
  .countdown-tiles{gap:8px}.countdown-tiles span{min-width:0;flex:1;padding:8px 4px}.countdown-tiles b{font-size:24px}.countdown-tiles small{font-size:9px;letter-spacing:.08em}
  .rl-thumb.has-thumb{flex-basis:104px;width:104px}
  .video-caption h3{font-size:17px}
}
@media(max-width:560px){#invoice-form .field-grid{grid-template-columns:1fr}}

/* v8.0.0 fixes after QA */
.preparation li>span{display:grid!important;place-items:center;width:30px;height:30px;border-radius:50%;font-size:12px;font-weight:800;margin-bottom:12px;padding:0}
@media(max-width:650px){.preparation li>span{width:26px;height:26px;font-size:11px}}
html[data-theme] .hero .deadline-badge:before,html[data-theme] .hero .deadline-badge:after{background:#fff!important;box-shadow:0 0 0 0 #ffffff80}
html[data-theme] #overview-panel-3 .note .checks .icon{background:#ffe1e4;color:var(--v-red)}
html[data-theme=dark] #overview-panel-3 .note .checks .icon{background:#ff5c6a26;color:#ff9aa2}

/* 2. Step connectors (v8.1.0) ------------------------------------------
   One element: a soft line that fades in at both ends, a progress fill that
   glows left → right, and a small circle with a chevron sitting on the line.
   The circle's ring uses the line colour, so they read as one piece.       */
.flow-link,.pline{position:relative;display:block;align-self:center;height:32px;
  --line:#cfe5ec;--on:#12b5bf;--knob:26px;--knob-bg:#fff;--chev:#8fb3be}
.flow-link{flex:0 0 64px;width:64px;margin:0 4px}
.story-hero .flow-link{flex-basis:44px;width:44px;margin:0 2px;--knob:22px}
.story-sales .flow-link{flex-basis:52px;width:52px}
.fl-track{position:absolute;left:0;right:0;top:50%;height:14px;margin-top:-7px;pointer-events:none;
  -webkit-mask:linear-gradient(90deg,transparent,#000 24%,#000 76%,transparent);mask:linear-gradient(90deg,transparent,#000 24%,#000 76%,transparent)}
.fl-track:before,.fl-fill,.fl-track:after{content:"";position:absolute;top:50%;height:3px;margin-top:-1.5px;border-radius:3px}
.fl-track:before{left:0;right:0;background:var(--line)}
.fl-fill{left:0;right:0;background:linear-gradient(90deg,color-mix(in srgb,var(--on) 25%,transparent),var(--on));
  box-shadow:0 0 10px 1px color-mix(in srgb,var(--on) 55%,transparent);transform:scaleX(0);transform-origin:left center;transition:transform .35s ease}
.fl-track:after{left:0;width:45%;opacity:0;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--on) 60%,#fff),transparent);
  box-shadow:0 0 8px color-mix(in srgb,var(--on) 60%,transparent);transform:translateX(-110%)}
.fl-knob{position:absolute;left:50%;top:50%;z-index:1;width:var(--knob);height:var(--knob);margin:calc(var(--knob)/-2) 0 0 calc(var(--knob)/-2);
  display:grid;place-items:center;border-radius:50%;background:var(--knob-bg);
  box-shadow:0 0 0 2px var(--line),0 6px 14px -6px #0b3a4a55;transition:background .35s ease,box-shadow .35s ease}
.fl-chev{width:56%;height:56%;translate:1px 0;fill:none;stroke:var(--chev);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;transition:stroke .35s ease}

/* passed links: line fills with a glow, then the circle lights up */
:is([data-current="1"] [data-link="0"],[data-current="2"] :is([data-link="0"],[data-link="1"]),[data-current="3"] :is([data-link="0"],[data-link="1"],[data-link="2"])) .fl-fill{transform:scaleX(1);transition:transform .9s cubic-bezier(.65,0,.35,1)}
:is([data-current="1"] [data-link="0"],[data-current="2"] :is([data-link="0"],[data-link="1"]),[data-current="3"] :is([data-link="0"],[data-link="1"],[data-link="2"])) .fl-knob,
.pline .fl-knob{background:var(--bgrad,linear-gradient(135deg,#19bcc3,#007e80));box-shadow:0 0 0 2px transparent,0 0 0 5px color-mix(in srgb,var(--on) 16%,transparent),0 8px 16px -6px color-mix(in srgb,var(--on) 70%,transparent);transition-delay:.4s}
:is([data-current="1"] [data-link="0"],[data-current="2"] :is([data-link="0"],[data-link="1"]),[data-current="3"] :is([data-link="0"],[data-link="1"],[data-link="2"])) .fl-chev,
.pline .fl-chev{stroke:#fff;transition-delay:.4s}
/* the link that was just completed pops once */
:is([data-current="1"] [data-link="0"],[data-current="2"] [data-link="1"],[data-current="3"] [data-link="2"]) .fl-knob{animation:knob-pop .5s .55s cubic-bezier(.3,1.6,.5,1) both}
@keyframes knob-pop{0%{scale:1}45%{scale:1.22}100%{scale:1}}
/* the next link: a light runs along the line and the circle pulses, while the walkthrough plays */
.is-running :is([data-current="0"] [data-link="0"],[data-current="1"] [data-link="1"],[data-current="2"] [data-link="2"]) .fl-track:after,
:is([data-motion].in-view,.downstream) .pline .fl-track:after{opacity:1;animation:fl-sweep 1.8s cubic-bezier(.45,0,.35,1) infinite}
.is-running :is([data-current="0"] [data-link="0"],[data-current="1"] [data-link="1"],[data-current="2"] [data-link="2"]) .fl-knob{animation:knob-wait 1.8s ease-out infinite}
.eis-flow .pline:nth-of-type(2) .fl-track:after,.sales-flow .pline:nth-of-type(2) .fl-track:after{animation-delay:.6s}
@keyframes fl-sweep{0%{transform:translateX(-110%)}100%{transform:translateX(230%)}}
@keyframes knob-wait{0%{box-shadow:0 0 0 2px var(--line),0 0 0 0 color-mix(in srgb,var(--on) 35%,transparent)}100%{box-shadow:0 0 0 2px var(--line),0 0 0 9px color-mix(in srgb,var(--on) 0%,transparent)}}

/* secondary connectors (EIS flow, sales cards, downstream) are always "flowing" */
.pline{flex:0 0 56px;width:56px}
.sales-flow>.pline{flex:0 0 48px;width:48px}.downstream>.pline{flex:0 0 72px;width:72px}
.pline .fl-fill{display:none}

html[data-theme=dark] .flow-link,html[data-theme=dark] .pline{--line:#ffffff24;--on:#7df0dc;--knob-bg:#0c2233;--chev:#ffffff80}
html[data-theme=dark] :is([data-current="1"] [data-link="0"],[data-current="2"] :is([data-link="0"],[data-link="1"]),[data-current="3"] :is([data-link="0"],[data-link="1"],[data-link="2"])) .fl-chev,
html[data-theme=dark] .pline .fl-chev{stroke:#04202b}

@media(max-width:850px) and (min-width:651px){
  .story-sales .scene-canvas{grid-template-columns:1fr 52px 1fr!important}
  .story-sales .flow-link{width:52px;flex-basis:auto;margin:0}
}
/* phones: vertical flows rotate the same connector to point down */
@media(max-width:650px){
  .story-scene:not(.story-hero) .flow-link,.eis-flow>.pline,.sales-flow>.pline{width:56px;height:32px;flex:0 0 32px;margin:12px auto;rotate:90deg}
  .story-hero .flow-link{flex-basis:22px;width:22px;margin:0 1px;--knob:18px}
  .story-hero .fl-track{display:none}
  .story-hero .scene-node:after{display:none}
}
/* was @media(prefers-reduced-motion:reduce) — now only for motion-off (see motion.js) */html.motion-off .fl-knob,html.motion-off .fl-track:after{animation:none!important}html.motion-off .fl-track:after{opacity:0!important}
.motion-paused .fl-knob,.motion-paused .fl-track:after{animation-play-state:paused}

/* 11. Marketplace logo containers (v8.1.0) -------------------------------
   The logo PNGs are rounded-square app icons. A container around one should use
   concentric corners: container radius = icon radius + padding. Fully round
   pills around square icons left uneven gaps at the corners.               */
html[data-theme] .hero .platform,html[data-theme] .final-section .platform{border-radius:14px;padding:6px 14px 6px 6px;gap:9px;font-size:13px}
.hero .plat-logo,.final-section .plat-logo{width:28px;height:28px;border-radius:8px}
html[data-theme] .hero .platform b,html[data-theme] .final-section .platform b{font-size:13.5px}
.hero .platforms{gap:10px!important}
html[data-theme] .art-orbit .platform{border-radius:14px;padding:6px 12px 6px 6px}
.art-orbit .plat-logo{width:28px;height:28px;border-radius:8px}
.channel-pills span{border-radius:10px!important;padding:5px 10px 5px 5px!important}
.channel-pills .plat-logo{border-radius:5px}
.choice .plat-logo{border-radius:6px}
.flow-card .platform .plat-logo{border-radius:10px}
.fx-logo img{border-radius:14px}
@media(max-width:650px){.fx-logo img{border-radius:10px}html[data-theme] .hero .platform,html[data-theme] .final-section .platform{border-radius:13px}}
@media(min-width:651px){
  html[data-theme] .hero .platform{padding:5px 10px 5px 5px;border-radius:12px;gap:7px}
  .hero .plat-logo{width:24px;height:24px;border-radius:7px}
  html[data-theme] .hero .platform b{font-size:12.5px}
  .hero .platforms{gap:6px!important;flex-wrap:wrap}
}

/* 12. Polish (v8.1.0) ------------------------------------------------------ */
/* red final panel: white glow ring instead of the teal one */
.final-section.urgent .final-cta{--glowc:#ffd2d6}
html[data-theme] .final-section.urgent .final-cta:after{border-color:#ffffff1f}
/* JSON demo: both panels line up; the button sits at the bottom */
.demo-board{align-items:stretch}
.invoice-form .field-grid{margin-bottom:22px}
.demo-tip{display:flex;gap:10px;align-items:flex-start;margin:18px 0 0;padding:12px 14px;border-radius:12px;background:#f2f8fb;border:1px dashed #cfe3ea;font-size:12.5px;line-height:1.55;color:var(--muted)}
.demo-tip b{color:var(--ink)}
.demo-tip svg{flex:0 0 18px;margin-top:1px;color:var(--v-amber)}
html[data-theme=dark] .demo-tip{background:#ffffff08;border-color:#ffffff1f}
/* consistent keyboard focus ring */
:where(a,button,input,select,summary,[tabindex]):focus-visible{outline:3px solid color-mix(in srgb,var(--c1,#12b5bf) 70%,transparent);outline-offset:3px;border-radius:8px}
::selection{background:#12b5bf33}
html[data-theme=dark] ::selection{background:#7df0dc40}
/* footer */
.version-tag{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;background:#e6f6f7;color:var(--teal-dark);font-size:10.5px;font-weight:700;letter-spacing:.02em}
html[data-theme=dark] .version-tag{background:#ffffff12;color:#8ff0f0}
.footer{align-items:center}
.footer>span{order:1}.footer>a{order:2;margin-left:auto}
.footer p{order:3;flex:0 0 auto;width:calc(100% - 190px)!important;color:var(--muted)}
.footer #motion-toggle{order:4;margin-left:auto}
@media(max-width:650px){.footer p{width:100%!important}.footer #motion-toggle{margin-left:0}}
/* headings: avoid one-word last lines */
h1,h2,h3{text-wrap:balance}
p{text-wrap:pretty}
/* softer, more even card hover */
html[data-theme] :is(.resource-link,.video-feature,details):hover{transform:translateY(-2px)}

/* 13. v8.2.0 — anchor offset + A4 invoice illustrations ---------------------- */
/* fallback when JS is off: stop exactly under the sticky menu */
html{scroll-padding-top:var(--hdr,85px)}
:where(section h2)[tabindex="-1"]:focus{outline:none}
/* "Electronic invoice" drawings use A4 proportions (210 × 297).
   The one inside the eligibility form (.checker-aside) is unchanged. */
:is(.who-art,.flow-card,.final-art) .invoice-visual{aspect-ratio:210/297;min-height:0!important;height:auto;display:flex;flex-direction:column;padding:16px 16px 14px}
.who-art .invoice-visual{width:196px;max-width:none}
.flow-card .invoice-visual{width:178px;max-width:none;margin-left:auto;margin-right:auto}
.final-art .invoice-visual{width:196px;max-width:none}
:is(.who-art,.flow-card,.final-art) .invoice-visual>strong{margin:16px 0 10px}
:is(.who-art,.flow-card,.final-art) .invoice-visual .paper-table{margin:12px 0}
:is(.who-art,.flow-card,.final-art) .invoice-visual .paper-total{margin-top:auto}
@media(max-width:650px){.who-art .invoice-visual,.final-art .invoice-visual{width:170px}.flow-card .invoice-visual{width:160px}}

/* 14. v8.2.0 — "Who Needs to Comply?" artwork: logos float around the invoice --- */
.who-art{min-height:420px}
.who-art .invoice-visual{margin-top:0!important;position:relative;z-index:1}
.who-art .art-orbit{inset:0;z-index:2;pointer-events:none}
.who-art .art-orbit .platforms{position:static;margin:0;display:block}
html[data-theme] .who-art .art-orbit .platform{position:absolute;padding:0;margin:0;background:none;border:0;box-shadow:none;border-radius:16px;
  animation:who-float 6s ease-in-out infinite;pointer-events:auto}
.who-art .art-orbit .plat-logo{width:54px;height:54px;border-radius:15px;
  box-shadow:0 18px 32px -14px #0b3a5a88,0 0 0 1px #ffffffb3,0 0 30px -10px var(--glowc,#12b5bf)}
/* names stay readable for screen readers but are hidden visually */
html[data-theme] .who-art .art-orbit .platform b{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.who-art .platform-0{left:9%;top:9%;--r:-8deg;animation-delay:0s}
.who-art .platform-1{right:10%;top:6%;--r:7deg;animation-delay:-1.2s}
.who-art .platform-2{left:3%;top:52%;--r:6deg;animation-delay:-2.4s}
.who-art .platform-3{right:3%;top:46%;--r:-6deg;animation-delay:-3.6s}
.who-art .platform-4{left:22%;bottom:4%;--r:-4deg;animation-delay:-4.8s}
@keyframes who-float{0%,100%{transform:translateY(0) rotate(var(--r,0deg))}50%{transform:translateY(-10px) rotate(calc(var(--r,0deg) * -.4))}}
.who-art .art-caption{z-index:3}
html[data-theme=dark] .who-art .art-orbit .plat-logo{box-shadow:0 18px 32px -14px #000,0 0 0 1px #ffffff2e,0 0 30px -10px var(--glowc)}
@media(max-width:650px){
  .who-art{min-height:360px}
  .who-art .art-orbit .plat-logo{width:42px;height:42px;border-radius:12px}
  .who-art .platform-0{left:4%;top:6%}.who-art .platform-1{right:4%;top:4%}
  .who-art .platform-2{left:0;top:50%}.who-art .platform-3{right:0;top:46%}.who-art .platform-4{left:12%;bottom:3%}
}
/* was @media(prefers-reduced-motion:reduce) — now only for motion-off (see motion.js) */html.motion-off[data-theme] .who-art .art-orbit .platform{animation:none;transform:rotate(var(--r,0deg))}
.motion-paused .who-art .art-orbit .platform{animation-play-state:paused}
/* A4 drawings: fill the taller page with an itemised body instead of empty space */
:is(.who-art,.flow-card,.final-art) .invoice-visual .paper-line{display:block;flex:0 0 5px;height:5px;margin:6px 0;background:#dbe9f0;opacity:1}
:is(.who-art,.flow-card,.final-art) .invoice-visual .paper-table{flex:1 1 auto;min-height:0;align-content:space-evenly;grid-auto-rows:4px;margin:12px 0 14px;border-radius:8px}
:is(.who-art,.flow-card,.final-art) .invoice-visual>strong{margin:14px 0 8px}
.flow-card .invoice-visual{width:168px;padding:13px 13px 11px}
.flow-card .invoice-visual>strong{font-size:16px!important;margin:10px 0 6px!important}
.flow-card .invoice-visual .paper-top .tiny{font-size:7.5px}
.flow-card .invoice-visual .paper-table{margin:8px 0 10px!important}
@media(max-width:650px){
  .who-art .invoice-visual{width:150px}
  .who-art .art-orbit .plat-logo{width:38px;height:38px;border-radius:11px}
  .who-art .platform-0{left:2%;top:8%}.who-art .platform-1{right:2%;top:6%}
  .who-art .platform-2{left:0;top:48%}.who-art .platform-3{right:0;top:44%}.who-art .platform-4{left:8%;bottom:6%}
}
:is(.who-art,.final-art) .invoice-visual .paper-table{min-height:52px}
@media(max-width:650px){
  .who-art .invoice-visual{width:160px;padding:12px 12px 10px}
  .who-art .invoice-visual>strong{font-size:15px!important;margin:8px 0 4px!important}
  .who-art .invoice-visual .paper-top .tiny{font-size:7px}
  .who-art .invoice-visual .paper-table{min-height:34px;margin:8px 0!important;padding:8px}
  .who-art .invoice-visual .seal{width:42px;height:42px;right:-12px}
}

/* 15. v8.3.0 — "Who Needs to Comply?" richer panel ------------------------------ */
#overview-panel-0{position:relative;overflow:hidden}
#overview-panel-0:before{content:"";position:absolute;right:-120px;top:-140px;width:520px;height:520px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,#12b5bf1f,transparent 65%)}
#overview-panel-0 .split{position:relative;grid-template-columns:1.05fr .95fr}
/* taxpayer groups strip */
.tier-strip{margin:22px 0 24px}
.tier-label{display:block;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.tiers{list-style:none;margin:0;padding:4px;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;border-radius:14px;background:#eef6f9;border:1px solid #dcebf1}
.tier{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:center;padding:9px 10px;border-radius:10px;opacity:0;transform:translateY(6px);animation:tier-in .5s cubic-bezier(.2,.7,.2,1) forwards}
.tier i{grid-row:1/3;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-style:normal}
.tier b{font:600 14px/1.2 Poppins,system-ui,sans-serif;color:var(--ink);letter-spacing:-.01em}
.tier small{font-size:10.5px;font-weight:600;line-height:1.3}
.tier.on{background:#fff;box-shadow:0 6px 16px -10px #0b6b7a66}
.tier.on i{background:var(--bgrad,#007e80);color:#fff}
.tier.on small{color:#05706b}
.tier.off i{background:#e3e9ee;color:#8597a6}
.tier.off b{color:#7c8d9b}.tier.off small{color:#8597a6}
.tier:nth-child(2){animation-delay:.08s}.tier:nth-child(3){animation-delay:.16s}.tier:nth-child(4){animation-delay:.24s}
@keyframes tier-in{to{opacity:1;transform:none}}
/* "you may be covered" cards */
.who-sub{display:block;font:600 15px/1.3 Poppins,system-ui,sans-serif;color:var(--ink);margin-bottom:12px}
.who-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.wc{--wc:#12b5bf;--wcbg:#e3f6f7;position:relative;display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:14px;background:#fff;border:1px solid #e1edf2;
  font-size:13.5px;line-height:1.45;color:var(--text);box-shadow:0 10px 24px -20px #0b3a5a66;overflow:hidden;
  opacity:0;transform:translateY(10px);animation:tier-in .55s cubic-bezier(.2,.7,.2,1) forwards;transition:transform .3s,box-shadow .3s,border-color .3s}
.wc:after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--wc);opacity:.85}
.wc:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--wc) 40%,transparent);box-shadow:0 16px 30px -20px color-mix(in srgb,var(--wc) 80%,transparent)}
.wc-ic{flex:0 0 36px;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--wcbg);color:var(--wc)}
.wc-ic svg{width:20px;height:20px}
.wc-2{--wc:#6d5dfc;--wcbg:#efecff;animation-delay:.3s}.wc-1{animation-delay:.22s}
.wc-3{--wc:#e8930c;--wcbg:#fff3df;animation-delay:.38s}.wc-4{--wc:#2f6fed;--wcbg:#e9f0ff;animation-delay:.46s}
/* artwork */
.who-art:before{display:none}
.who-art{background:none;isolation:isolate}
.who-fx{position:absolute;inset:0;z-index:0;pointer-events:none}
.who-glow{position:absolute;inset:6% 8%;border-radius:50%;filter:blur(8px);
  background:radial-gradient(circle at 50% 50%,#c9f1f1 0,#e3f6fb 38%,transparent 66%),radial-gradient(circle at 20% 80%,#e7e3ff 0,transparent 45%),radial-gradient(circle at 85% 20%,#fff0d6 0,transparent 40%)}
.ring{position:absolute;left:50%;top:50%;aspect-ratio:1;border-radius:50%;translate:-50% -50%}
.ring.r1{height:62%;border:1px solid #bfe3ea;background:radial-gradient(circle,#ffffff99,transparent 70%)}
.ring.r2{height:84%;border:1.5px dashed #a9d6e0;animation:ring-spin 40s linear infinite}
.ring.r3{height:104%;border:1px dotted #c3dde6;animation:ring-spin 60s linear infinite reverse}
.ring i{position:absolute;left:50%;top:-4px;width:8px;height:8px;margin-left:-4px;border-radius:50%;background:#12b5bf;box-shadow:0 0 0 4px #12b5bf26,0 0 12px #12b5bf}
.ring.r3 i:nth-child(2){top:auto;bottom:-4px;background:#6d5dfc;box-shadow:0 0 0 4px #6d5dfc26,0 0 12px #6d5dfc}
@keyframes ring-spin{to{rotate:360deg}}
.who-beams{position:absolute;inset:0;width:100%;height:100%;color:#12b5bf;overflow:visible}
.who-beams path{fill:none;stroke:currentColor;stroke-opacity:.55;stroke-width:1.6;vector-effect:non-scaling-stroke;stroke-dasharray:3 6;stroke-linecap:round;animation:beam-flow 1.6s linear infinite}
.who-beams path:nth-child(3){animation-delay:-.3s}.who-beams path:nth-child(4){animation-delay:-.6s}.who-beams path:nth-child(5){animation-delay:-.9s}.who-beams path:nth-child(6){animation-delay:-1.2s}
@keyframes beam-flow{to{stroke-dashoffset:-18}}
.who-chip{position:absolute;z-index:3;display:inline-flex;align-items:center;gap:7px;padding:7px 12px 7px 8px;border-radius:12px;font:600 11.5px/1 Inter,system-ui,sans-serif;color:var(--ink);
  background:#ffffffe6;border:1px solid #ffffff;box-shadow:0 14px 30px -14px #0b3a5a66;backdrop-filter:blur(8px);animation:who-float 6s ease-in-out infinite}
.who-chip b{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#ebe8ff;color:#5b4ce0;font:700 10px/1 ui-monospace,monospace}
.who-chip i{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--bgrad,#007e80);color:#fff;font-style:normal;font-size:11px}
.wch-1{left:20%;top:30%;--r:-3deg;animation-delay:-2s}
.wch-2{right:16%;bottom:15%;--r:3deg;animation-delay:-4s}
.spark{position:absolute;width:10px;height:10px;background:#f5b941;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);animation:spark 3.2s ease-in-out infinite}
.spark.s1{left:33%;top:8%}.spark.s2{right:28%;bottom:8%;background:#6d5dfc;animation-delay:-1.1s}.spark.s3{left:6%;top:36%;background:#12b5bf;animation-delay:-2.2s;width:8px;height:8px}
@keyframes spark{0%,100%{opacity:.25;scale:.6}50%{opacity:1;scale:1.15}}
html[data-theme] .who-art .art-caption{z-index:3;padding:7px 12px;border-radius:12px;background:#ffffffe0;border:1px solid #fff;box-shadow:0 12px 26px -16px #0b3a5a66;backdrop-filter:blur(6px);line-height:1.5;bottom:0}
/* dark theme */
html[data-theme=dark] #overview-panel-0:before{background:radial-gradient(circle,#2cc6cf1f,transparent 65%)}
html[data-theme=dark] .tiers{background:#ffffff08;border-color:#ffffff14}
html[data-theme=dark] .tier.on{background:#ffffff0f;box-shadow:none}
html[data-theme=dark] .tier.on i{color:#04202b}
html[data-theme=dark] .tier.on small{color:#8ff0f0}
html[data-theme=dark] .tier.off i{background:#ffffff14;color:#8aa6b8}
html[data-theme=dark] .tier.off b,html[data-theme=dark] .tier.off small{color:#8aa6b8}
html[data-theme=dark] .wc{background:#ffffff08;border-color:#ffffff14;box-shadow:none}
html[data-theme=dark] .wc-1{--wc:#7df0dc;--wcbg:#2cc6cf1f}html[data-theme=dark] .wc-2{--wc:#a99dff;--wcbg:#6d5dfc26}
html[data-theme=dark] .wc-3{--wc:#fbbf24;--wcbg:#fbbf241f}html[data-theme=dark] .wc-4{--wc:#8fb6ff;--wcbg:#2f6fed26}
html[data-theme=dark] .who-glow{background:radial-gradient(circle,#2cc6cf33 0,#2cc6cf0d 45%,transparent 66%),radial-gradient(circle at 20% 80%,#6d5dfc26 0,transparent 45%),radial-gradient(circle at 85% 20%,#fbbf241a 0,transparent 40%)}
html[data-theme=dark] .ring.r1{border-color:#2cc6cf33;background:radial-gradient(circle,#2cc6cf14,transparent 70%)}
html[data-theme=dark] .ring.r2{border-color:#2cc6cf55}html[data-theme=dark] .ring.r3{border-color:#ffffff1f}
html[data-theme=dark] .who-beams{color:#7df0dc}
html[data-theme=dark] .who-chip,html[data-theme=dark] .who-art .art-caption{background:#0e2a3de6;border-color:#ffffff1f;color:#e3f4fb}
html[data-theme=dark] .who-chip b{background:#6d5dfc33;color:#c4bbff}
html[data-theme=dark] .who-chip i{color:#04202b}
/* responsive */
@media(max-width:1100px){.who-cards{grid-template-columns:1fr}}
@media(max-width:850px){#overview-panel-0 .split{grid-template-columns:1fr}.who-cards{grid-template-columns:1fr 1fr}}
@media(max-width:650px){
  .tiers{grid-template-columns:1fr 1fr}
  .who-cards{grid-template-columns:1fr}
  .wc{font-size:13px;padding:12px}
  .who-beams,.spark.s3{display:none}
  .wch-1{left:2%;top:26%}.wch-2{right:2%;bottom:12%}
  .who-chip{font-size:10.5px;padding:6px 10px 6px 6px}
}
/* was @media(prefers-reduced-motion:reduce) — now only for motion-off (see motion.js) */html.motion-off .ring,html.motion-off .who-beams path,html.motion-off .spark,html.motion-off .who-chip{animation:none!important}html.motion-off .tier,html.motion-off .wc{opacity:1;transform:none;animation:none}
.motion-paused :is(.ring,.who-beams path,.spark,.who-chip){animation-play-state:paused}
/* chips sit above the invoice and in open space */
.who-fx{z-index:auto}
.wch-1{left:auto;right:1%;top:29%}
.wch-2{right:14%;bottom:17%}
@media(max-width:1100px) and (min-width:851px){.tiers{grid-template-columns:1fr 1fr}.wch-1{right:0;top:26%}}
@media(max-width:650px){.who-chip{display:none}}
@media(max-width:1100px) and (min-width:651px){.wch-1{display:none}}

/* 16. v8.5.0 — solid red for every deadline element (no gradients) -------------- */
:root{--v-red:#e11d2e;--v-red-deep:#e11d2e;--v-urgent:#e11d2e}
.urgency-bar{background:var(--v-red)!important;animation:none!important}
.urgency-bar a{color:var(--v-red)}
html[data-theme] .hero .deadline-badge{background:var(--v-red);box-shadow:0 12px 26px -12px #e11d2ecc}
html[data-theme] .deadline-date{background:none!important;color:var(--v-red)!important;-webkit-text-fill-color:var(--v-red)!important}
html[data-theme] .calendar span{background:var(--v-red)!important}
.hl-red{background:none;color:#ff3b4b;-webkit-text-fill-color:#ff3b4b}
.hl-red:after{background:#ff3b4b}
html[data-theme] .final-section.urgent .final-cta{background:var(--v-red)!important}
html[data-theme] .final-section.urgent .button:not(.secondary),html[data-theme] .final-section.urgent .button:not(.secondary) .icon{color:var(--v-red)}
html[data-theme] .sticky-cta{background:var(--v-red)}
.sc-days{color:var(--v-red)}
html[data-theme] .preparation li:nth-child(5)>span{background:var(--v-red)}
html[data-theme=dark] .countdown-tiles b,html[data-theme=dark] .deadline-date{color:#ff3b4b!important;-webkit-text-fill-color:#ff3b4b!important}

/* 17. v8.5.0 — "BIR E-Invoicing" step tabs: clearly clickable cards + auto-play --- */
.tabs-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.th-tip{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--muted)}
.th-tip svg{color:var(--teal);animation:tap-nudge 2.4s ease-in-out infinite}
@keyframes tap-nudge{0%,60%,100%{transform:none}70%{transform:translate(2px,3px) scale(.92)}80%{transform:none}}
.tabs-auto{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:999px;padding:6px 12px 6px 8px;font:600 12px/1 Inter,system-ui,sans-serif;cursor:pointer;transition:border-color .2s,background .2s}
.tabs-auto:hover{border-color:var(--teal)}
.ta-ic{position:relative;width:18px;height:18px;border-radius:50%;background:var(--teal)}
.ta-ic:before,.ta-ic:after{content:"";position:absolute;top:5px;width:2.5px;height:8px;border-radius:1px;background:#fff}
.ta-ic:before{left:6px}.ta-ic:after{left:9.5px}
.tabs-auto[aria-pressed=false] .ta-ic:before{left:7px;top:5px;width:0;height:0;border-radius:0;background:none;border-left:6px solid #fff;border-top:4px solid transparent;border-bottom:4px solid transparent}
.tabs-auto[aria-pressed=false] .ta-ic:after{display:none}
html[data-theme] .overview-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:0;background:none;border:0;border-radius:0;margin-bottom:24px}
html[data-theme] .overview-steps button{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:76px;padding:14px 38px 16px 14px;text-align:left;cursor:pointer;
  background:#fff;border:1.5px solid #d6e8ee;border-radius:16px;color:var(--ink);box-shadow:0 10px 22px -18px #0b3a5a88,0 2px 0 #e6f1f5;
  transition:transform .25s cubic-bezier(.2,.7,.2,1),box-shadow .25s,border-color .25s,background .25s,color .25s}
html[data-theme] .overview-steps button:hover:not([aria-pressed=true]){transform:translateY(-3px);border-color:var(--c1,#12b5bf);background:#fff;box-shadow:0 18px 30px -18px #0b6b7a99,0 2px 0 #d3eaef}
html[data-theme] .overview-steps button:active{transform:translateY(0) scale(.98)}
.tab-ic{flex:0 0 40px;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#e6f6f7;color:var(--teal);transition:background .25s,color .25s}
html[data-theme] .overview-steps .tab-ic .icon{width:22px;height:22px;color:inherit}
.tab-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.tab-txt b{font:600 15px/1.2 Poppins,system-ui,sans-serif;letter-spacing:-.01em}
.tab-num{font-size:11px;font-weight:700;opacity:.6;margin-right:2px}
.tab-txt small{font-size:12px;font-weight:500;color:var(--muted);line-height:1.3}
.tab-go{position:absolute;right:12px;top:50%;width:18px;height:18px;margin-top:-9px;color:#9cbfc9;transition:transform .25s,color .25s}
html[data-theme] .overview-steps button:hover .tab-go{transform:translateX(3px);color:var(--teal)}
/* per-step icon tints */
html[data-theme] .overview-steps button[data-overview="1"] .tab-ic{background:#efecff;color:var(--v-violet)}
html[data-theme] .overview-steps button[data-overview="2"] .tab-ic{background:#e9f0ff;color:var(--v-blue)}
html[data-theme] .overview-steps button[data-overview="3"] .tab-ic{background:#ffe8ea;color:var(--v-red)}
html[data-theme] .overview-steps button[data-overview="3"]{color:var(--ink)}
html[data-theme] .overview-steps button[data-overview="3"] .tab-txt b{color:var(--v-red)}
html[data-theme] .overview-steps .tab-days{position:absolute;top:-9px;right:12px;margin:0;background:var(--v-red);color:#fff;box-shadow:0 6px 14px -6px #e11d2eaa}
/* active tab: solid fill (teal, or red for the deadline step) */
html[data-theme] .overview-steps button[aria-pressed=true]{background:var(--teal);border-color:var(--teal);color:#fff;transform:translateY(-2px);box-shadow:0 18px 32px -16px #007e80aa}
html[data-theme] .overview-steps button[aria-pressed=true] .tab-ic{background:#ffffff26!important;color:#fff!important}
html[data-theme] .overview-steps button[aria-pressed=true] .tab-txt small,html[data-theme] .overview-steps button[aria-pressed=true] .tab-txt b{color:#fff!important}
html[data-theme] .overview-steps button[aria-pressed=true] .tab-go{color:#fff;transform:rotate(90deg)}
html[data-theme] .overview-steps button[data-overview="3"][aria-pressed=true]{background:var(--v-red);border-color:var(--v-red);box-shadow:0 18px 32px -16px #e11d2ebb}
html[data-theme] .overview-steps button[data-overview="3"][aria-pressed=true] .tab-days{background:#fff;color:var(--v-red)}
/* little pointer under the active tab, joining it to the panel */
html[data-theme] .overview-steps button[aria-pressed=true]:before{content:"";position:absolute;left:50%;bottom:-8px;width:14px;height:14px;margin-left:-7px;background:inherit;transform:rotate(45deg);border-radius:3px}
/* auto-play progress bar on the active tab */
.tab-bar{position:absolute;left:14px;right:14px;bottom:7px;height:3px;border-radius:3px;background:#ffffff40;overflow:hidden;opacity:0;transition:opacity .3s}
.tab-bar:after{content:"";position:absolute;inset:0;border-radius:inherit;background:#fff;transform:scaleX(0);transform-origin:left center}
.overview-steps.is-auto button[aria-pressed=true] .tab-bar{opacity:1}
.overview-steps.is-auto button.fill .tab-bar:after{animation:tab-fill var(--tab-dur,8s) linear forwards}
.overview-steps.is-auto:not(.is-playing) button.fill .tab-bar:after{animation-play-state:paused}
@keyframes tab-fill{to{transform:scaleX(1)}}
/* the next step gently "breathes" while auto-play runs, hinting it's next */
.overview-steps.is-playing button[aria-pressed=true]+button .tab-ic{animation:tab-breathe 2s ease-in-out infinite}
.overview-steps.is-playing button[data-overview="3"][aria-pressed=true]~button,.overview-steps.is-playing button:last-child[aria-pressed=true]{}
@keyframes tab-breathe{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,currentColor 30%,transparent)}50%{box-shadow:0 0 0 6px color-mix(in srgb,currentColor 0%,transparent)}}
/* dark theme */
html[data-theme=dark] .tabs-auto{background:#ffffff0a;border-color:#ffffff1f;color:var(--ink)}
html[data-theme=dark] .overview-steps button{background:#0e2a3d;border-color:#ffffff1a;box-shadow:none;color:var(--ink)}
html[data-theme=dark] .overview-steps button:hover:not([aria-pressed=true]){background:#12354b;border-color:#2cc6cf}
html[data-theme=dark] .tab-ic{background:#2cc6cf1f}
html[data-theme=dark] .overview-steps button[data-overview="1"] .tab-ic{background:#6d5dfc26;color:#a99dff}
html[data-theme=dark] .overview-steps button[data-overview="2"] .tab-ic{background:#2f6fed26;color:#8fb6ff}
html[data-theme=dark] .overview-steps button[data-overview="3"] .tab-ic{background:#e11d2e26;color:#ff6b78}
html[data-theme=dark] .overview-steps button[data-overview="3"] .tab-txt b{color:#ff6b78}
html[data-theme=dark] .overview-steps button[aria-pressed=true]:not([data-overview="3"]){background:#0f8c90;border-color:#2cc6cf;box-shadow:0 18px 36px -16px #2cc6cf88}
/* responsive */
@media(max-width:1100px){.tab-txt small{display:none}html[data-theme] .overview-steps button{min-height:64px}}
@media(max-width:650px){
  html[data-theme] .overview-steps{grid-template-columns:1fr 1fr;gap:10px}
  html[data-theme] .overview-steps button{padding:12px 30px 14px 10px;gap:9px;min-height:60px}
  .tab-ic{flex-basis:34px;width:34px;height:34px;border-radius:10px}
  .tab-txt b{font-size:13.5px}
  .tab-go{right:8px;width:15px;height:15px;margin-top:-7.5px}
  html[data-theme] .overview-steps button[aria-pressed=true]:before{display:none}
  .th-tip{font-size:12px}
}
/* was @media(prefers-reduced-motion:reduce) — now only for motion-off (see motion.js) */html.motion-off .th-tip svg,html.motion-off .overview-steps .tab-ic{animation:none!important}
.motion-paused .th-tip svg{animation-play-state:paused}
/* deadline step CTA in solid red */
html[data-theme] #overview-panel-3 .button.cta-primary{background:var(--v-red);color:#fff;box-shadow:0 14px 28px -12px #e11d2ecc}
html[data-theme] #overview-panel-3 .button.cta-primary .icon{color:#fff}
@media(max-width:850px){html[data-theme] .overview-steps button{flex-direction:row;font-size:inherit}}

/* 18. v8.6.0 — LITE MOTION (html.motion-lite, set by motion.js) ------------------------
   For devices with Reduce Motion, Data Saver, slow 2G, low memory/CPU or low battery.
   KEEPS the calm, meaningful motion: scroll fade-ins, the 3-step walkthroughs and their
   arrows filling, tab auto-play + progress bar, panel switches, countdown ticks, JSON
   typing, preparation steps lighting up, small status pulses.
   STOPS the heavy/looping decoration: rotating rings, flowing beams, sparkles, drifting
   logos and chips, floating invoices/calendars, background orbs and orbits, shines and
   glows, scan lines, blur/glass effects, 3D tilt.                                        */
html.motion-lite :is(
  .orb,.fx-in,.who-art .invoice-visual,.final-art .invoice-visual,.invoice-visual:after,
  .final-cta .calendar,.deadline-layout .calendar,.calendar,.calendar:after,
  .ring,.who-beams path,.spark,.who-chip,.who-art .art-orbit .platform,
  .teal,h1>span,.final-cta:before,.button.cta-primary:before,.hero .deadline-badge,
  .scan-line,.scene-node.is-active .node-icon,.th-tip svg,.pline .fl-track:after
){animation:none!important}
html.motion-lite .orb,html.motion-lite .hero:before,html.motion-lite .spark,html.motion-lite .scan-line,html.motion-lite .invoice-visual:after{display:none!important}
html.motion-lite .button.cta-primary:before{display:none}
html.motion-lite[data-theme] .teal,html.motion-lite[data-theme] h1>span{background-position:0 0}
html.motion-lite .who-art .art-orbit .platform{transform:rotate(var(--r,0deg))}
html.motion-lite .who-art .invoice-visual{transform:rotate(-4deg)}
/* glass/blur effects are expensive on weak GPUs */
html.motion-lite *,html.motion-lite *:before,html.motion-lite *:after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html.motion-lite .who-glow{filter:none}
html.motion-lite .site-header{background:#fffffff7}
html.motion-lite[data-theme=dark] .site-header{background:#050f1af2}
/* calm motion a touch quicker */
html.motion-lite .reveal-ready{transition-duration:.45s}
html.motion-lite [data-tilt]{transform:none!important}
/* v8.6.0 fix: dark mode countdown inside the red final panel stays white (was red on red) */
html[data-theme=dark] .final-section.urgent .countdown-tiles b{color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme=dark] .final-section.urgent .countdown-tiles small{color:#ffe1e4!important}
html[data-theme=dark] .final-section.urgent .countdown-tiles span{background:#ffffff1f;border-color:#ffffff4d}

/* 19. v9.0.0 fixes ----------------------------------------------------------- */
/* iOS Safari renders <input type=date> centred, with its own height and no left padding; normalise it (Android keeps working the same) */
#invoice-form input[type=date]{-webkit-appearance:none;appearance:none;display:block;width:100%;min-width:0;min-height:48px;text-align:left;line-height:1.2;background-clip:padding-box}
#invoice-form input[type=date]::-webkit-date-and-time-value{text-align:left;margin:0}
#invoice-form input[type=date]::-webkit-datetime-edit{padding:0}
html[data-theme=dark] input,html[data-theme=dark] select{color-scheme:dark}
/* mobile menu button visible in dark mode */
html[data-theme=dark] .menu-toggle{background:#ffffff12;border-color:#ffffff2e;color:#eef7fb}
/* final CTA logo pills: equal size, centred (incl. WooCommerce on its own row) */
html[data-theme] .final-section>.container>.platforms{justify-content:center}
html[data-theme] .final-section .platform{flex:0 0 172px;width:172px;justify-content:flex-start}
@media(max-width:650px){
  html[data-theme] .final-section>.container>.platforms{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  html[data-theme] .final-section .platform{width:100%;flex:none}
  html[data-theme] .final-section .platform:last-child{grid-column:1/-1;justify-self:center;width:calc(50% - 5px)}
}
html[data-theme=dark] .skip-link{background:#eef7fb;color:#04202b}
html[data-theme=dark] .modal-num{background:#2cc6cf;color:#04202b}

/* 20. v9.1.0 — mobile only: WooCommerce logo layout */
@media(max-width:650px){
  /* hero pills: WooCommerce same width as the others, centred on its own row (matches footer) */
  html[data-theme] .hero .platforms{display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important}
  html[data-theme] .hero .platform{width:100%;margin:0}
  html[data-theme] .hero .platform:last-child{grid-column:1/-1;justify-self:center;width:calc(50% - 5px)}
  /* sales channels card: same 2 + 2 + 1 layout as desktop */
  .flow-card .platforms{display:grid!important;grid-template-columns:1fr 1fr!important;row-gap:18px}
  .flow-card .platforms .platform:last-child{grid-column:1/-1;justify-self:center}
}
/* v9.2.0 — mobile sales channels card: 3 + 2 layout (second row centred) */
@media(max-width:650px){
  .flow-card .platforms{grid-template-columns:repeat(6,1fr)!important;column-gap:4px}
  .flow-card .platforms .platform{grid-column:span 2;justify-self:center;min-width:0}
  .flow-card .platforms .platform:nth-child(4){grid-column:2/span 2}
  .flow-card .platforms .platform:nth-child(5){grid-column:4/span 2}
}
