/* Hero: meters and certificate, an arrow to the table, scroll opens the table and turns it into the graph. */
.hero{position:relative;background:linear-gradient(165deg,var(--deep) 0%,var(--deep-2) 62%,#0a6652 100%);color:var(--on-deep);padding:32px 16px 48px}
.hero-sticky{position:relative}
.hero-bg{display:none}
.hero-grid{display:grid;gap:32px;max-width:88rem;margin:0 auto;position:relative}
.side-label{display:flex;align-items:center;gap:12px;font-size:.8125rem;font-weight:500;letter-spacing:.02em;color:var(--yellow)}
.side-label::before{content:"";width:28px;height:1px;background:var(--yellow)}
.lede{max-width:34rem;color:var(--on-deep-2);margin-top:12px}
.hero-cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:24px}
.hero-btn{display:inline-flex;align-items:center;text-decoration:none}
.hero-link{color:#fff;text-underline-offset:4px;text-decoration-thickness:1px}
.hero-link:hover{color:var(--yellow-2)}

.hero-logo{display:block;margin:0 0 4px}
.hero-logo img{display:block;width:132px;height:auto;filter:drop-shadow(0 2px 8px rgba(0,25,20,.35))}
.hero-facts{list-style:none;margin:28px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:12px}
.hero-facts li{display:flex;flex-direction:column;gap:2px}
.hero-facts b{color:var(--yellow);font-weight:600;font-size:clamp(2.75rem,4.7vw,5rem);line-height:1.05;white-space:nowrap;font-variant-numeric:tabular-nums;text-shadow:0 2px 16px rgba(0,25,20,.4)}
.hero-facts span{font-size:clamp(.875rem,1vw,1rem);color:#fff}
.hero-facts{gap:12px 32px}
.hero-stack{position:relative;width:min(100%,40rem);margin:0 auto;animation:hs-in .9s var(--ease-out) .3s backwards}
.hero-stack img{display:block;width:100%;height:auto;filter:drop-shadow(0 18px 30px rgba(0,20,16,.45))}
@keyframes hs-in{from{opacity:0;translate:0 40px}to{opacity:1;translate:0 0}}

/* arrow: drawn on load */
.hero-arrow{display:block;width:56px;height:76px;margin:-8px auto 0;rotate:6deg;overflow:visible}
.ha-line,.ha-head{fill:none;stroke:var(--yellow);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:ha-draw .9s var(--ease-out) 1.1s forwards}
.ha-head{animation-delay:1.8s;animation-duration:.35s}
@keyframes ha-draw{to{stroke-dashoffset:0}}

.hero-intro{display:none}
.hero-surface{max-width:88rem;margin:0 auto}
.hero .invoice,.hero .c-act,.hero .s-bar,.hero .s-tabs,.hero .s-tools,.hero .s-summary{display:none}
.hero .s-body{grid-template-columns:minmax(0,1fr)}
.hero .tbl-wrap{scrollbar-width:none}
.hero .tbl-wrap::-webkit-scrollbar{display:none}
html:not(.staged) .hero .tbl-wrap{max-height:26rem}
#panel-graph:not([hidden]){animation:g-in .5s var(--ease-out)}
@keyframes g-in{from{opacity:0;translate:0 10px}}

/* wide screens: sticky, scroll-scrubbed */
.staged .hero{height:460vh;padding:0;--e:0;--W:min(1600px,calc(100vw - 120px));--s0:.5;--sy0:.6;--SW:min(44vw,56rem);--gap:calc(100vw - 80px - var(--SW) - var(--W) * var(--s0));--H:min(calc(100svh - 112px),660px)}
.staged .hero-sticky{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
.staged .hero-bg{display:block;position:absolute;inset:0}
.hero-bg video{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.4s var(--ease-out)}
.hero-bg video.on{opacity:.5}
.hero-shade{position:absolute;inset:0;background:linear-gradient(100deg,rgba(7,63,53,.94) 0%,rgba(7,63,53,.72) 48%,rgba(7,63,53,.5) 100%),linear-gradient(0deg,rgba(5,40,33,.7) 0%,transparent 40%)}
.hero-bg::after{content:"";position:absolute;inset:0;background:#04261f;opacity:calc(var(--e) * .82)}

.staged .hero-grid{position:absolute;inset:0;max-width:none;padding:0 40px;display:block}
.staged .hero-copy{max-width:44rem;padding-top:6svh;opacity:max(0,calc(1 - var(--e) * 1.7));translate:0 calc(var(--e) * -36px)}
.staged .hero-stack{position:absolute;left:40px;bottom:6svh;width:var(--SW);margin:0;opacity:max(0,calc(1 - var(--e) * 1.7));translate:0 calc(var(--e) * 50px);scale:calc(1 - var(--e) * .1)}
.staged .hero-arrow{position:absolute;margin:0;rotate:-80deg;width:clamp(24px,calc(var(--gap) * .45),72px);height:auto;aspect-ratio:3/4;left:calc(40px + var(--SW) + var(--gap) / 2 - clamp(24px,calc(var(--gap) * .45),72px) / 2);bottom:calc(6svh + var(--H) * var(--sy0) / 2 - 24px);z-index:3;opacity:max(0,calc(1 - var(--e) * 3))}
.staged .hero-facts{position:absolute;margin:0;right:40px;top:17svh;width:auto;max-width:calc(100vw - 80px);display:grid;grid-template-columns:repeat(3,auto);gap:0 clamp(24px,3vw,48px);opacity:max(0,calc(1 - var(--e) * 1.7));translate:0 calc(var(--e) * -36px)}

.staged .hero-intro{display:flex;align-items:center;justify-content:center;position:absolute;inset:0;z-index:6;padding:0 24px;pointer-events:none;
  background:rgba(4,26,21,.82);opacity:0}
.hero-intro span{display:inline-block;font-size:clamp(1.5rem,3.2vw,2.75rem);font-weight:600;color:#fff;text-align:center;text-shadow:0 6px 30px rgba(0,20,16,.5)}


.staged .hero-surface{
  position:absolute;left:40px;top:0;width:var(--W);height:var(--H);max-width:none;margin:0;transform-origin:0 0;will-change:transform;
  --x0:calc(100vw - 80px - var(--W) * var(--s0));--x1:calc((100vw - var(--W)) / 2 - 40px);
  --y0:calc(94svh - var(--H) * var(--sy0));--y1:76px;
  transform:translate3d(calc(var(--x0) + (var(--x1) - var(--x0)) * var(--e)),calc(var(--y0) + (var(--y1) - var(--y0)) * var(--e)),0) scale(calc(var(--s0) + (1 - var(--s0)) * var(--e)),calc(var(--sy0) + (1 - var(--sy0)) * var(--e)));
}
.staged .hero-surface .surface{height:100%;animation:none}
.staged .hero #graph{margin-top:auto}
.staged .hero .tbl-wrap{max-height:none}
.staged .hero #tbl tbody td,.staged .hero #tbl .st{height:60px}
.staged .hero #tbl thead th{height:48px}

@media (prefers-reduced-motion:reduce){.ha-line,.ha-head{stroke-dashoffset:0}.hs{animation:none}}

.hero-topcta{display:none}
.staged .hero-topcta{display:inline-flex;align-items:center;position:absolute;right:40px;top:16px;height:36px;padding:0 16px;border-radius:999px;background:var(--yellow);color:var(--deep);font-weight:600;font-size:.875rem;text-decoration:none;z-index:3;opacity:0;pointer-events:none;translate:0 -8px;transition:opacity .35s var(--ease-out),translate .35s var(--ease-out)}
.staged .hero-topcta:hover{background:var(--yellow-2)}
.hero:not([data-phase="0"]) .hero-topcta{opacity:1;pointer-events:auto;translate:none}

/* cookie consent: centered card over a soft dim */
.ck{position:fixed;left:50%;bottom:16px;z-index:60;width:min(calc(100% - 32px),48rem);translate:-50% 16px;opacity:0;transition:opacity .3s var(--ease-out),translate .3s var(--ease-out)}
.ck.on{opacity:1;translate:-50% 0}
.ck-card{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 16px;padding:16px 20px;border-radius:20px;background:#fff;color:var(--ink);box-shadow:0 16px 48px rgba(0,25,20,.4),0 0 0 1px rgba(0,0,0,.06)}
.ck-ic{grid-row:span 2;display:inline-grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--yellow-wash);color:var(--warn)}
.ck-t{font-weight:600;font-size:1.125rem;color:var(--deep)}
.ck-d{font-size:.875rem;line-height:1.65;color:var(--ink-2)}
.ck-d a{color:var(--green-d);text-underline-offset:3px}
.ck-b{grid-column:1/-1;display:flex;flex-wrap:nowrap;gap:8px;margin-top:8px}
@media (min-width:720px){.ck-card{grid-template-columns:auto 1fr auto}.ck-b{grid-column:3;grid-row:1/span 2;margin:0;flex-wrap:nowrap}.ck-b button{flex:none;padding:0 18px}}
.ck-b button{flex:1 1 0;white-space:nowrap;height:44px;padding:0 12px;border-radius:var(--r-ctl);font:inherit;font-size:.9375rem;font-weight:600;cursor:pointer}
.ck-no{border:1px solid var(--line-2);background:#fff;color:var(--green-d)}
.ck-no:hover{background:var(--mint-2)}
.ck-yes{border:0;background:var(--yellow);color:var(--deep)}
.ck-yes:hover{background:var(--yellow-2)}
@media (prefers-reduced-motion:reduce){.ck{transition:none}}

/* liquid glass buttons */
.hero-glass,.staged .hero-topcta{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 28px;border-radius:999px;color:#fff;font-weight:600;font-size:1rem;text-decoration:none;
  background:linear-gradient(135deg,rgba(255,255,255,.28) 0%,rgba(255,255,255,.08) 45%,rgba(255,255,255,.18) 100%);
  -webkit-backdrop-filter:blur(16px) saturate(1.7);backdrop-filter:blur(16px) saturate(1.7);
  border:1px solid rgba(255,255,255,.42);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset 0 -1px 0 rgba(255,255,255,.12),inset 0 0 14px rgba(255,255,255,.08),0 8px 24px rgba(0,25,20,.35);
  text-shadow:0 1px 6px rgba(0,25,20,.35);transition:background-color .2s var(--ease),box-shadow .2s var(--ease),scale .15s var(--ease),opacity .35s var(--ease-out),translate .35s var(--ease-out)}
.hero-glass:hover,.staged .hero-topcta:hover{background:linear-gradient(135deg,rgba(255,255,255,.4) 0%,rgba(255,255,255,.14) 45%,rgba(255,255,255,.28) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.75),inset 0 -1px 0 rgba(255,255,255,.18),inset 0 0 18px rgba(255,255,255,.12),0 10px 28px rgba(0,25,20,.4)}
.hero-glass:active{scale:.97}
.staged .hero-topcta{height:40px;padding:0 20px;font-size:.9375rem}
@supports not (backdrop-filter:blur(1px)){.hero-glass,.staged .hero-topcta{background:rgba(255,255,255,.22)}}

/* secondary button: outline only, no underline */
.hero-ghost{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 24px;border-radius:999px;color:#fff;font-weight:500;font-size:1rem;text-decoration:none;border:1px solid rgba(255,255,255,.5);background:transparent;transition:background-color .2s var(--ease),border-color .2s var(--ease),scale .15s var(--ease)}
.hero-ghost:hover{background:rgba(255,255,255,.12);border-color:#fff}
.hero-ghost:active{scale:.97}
.hero-cta{gap:12px}

/* glass login button, tinted in the brand yellow so it leads */
.hero-glass,.staged .hero-topcta{color:var(--deep);text-shadow:0 1px 0 rgba(255,255,255,.35);
  background:linear-gradient(135deg,rgba(255,236,160,.88) 0%,rgba(242,201,76,.5) 48%,rgba(242,201,76,.72) 100%);
  border-color:rgba(255,244,196,.8);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),inset 0 -1px 0 rgba(255,255,255,.25),inset 0 0 18px rgba(255,255,255,.18),0 8px 28px rgba(242,201,76,.28),0 8px 24px rgba(0,25,20,.35)}
.hero-glass:hover,.staged .hero-topcta:hover{background:linear-gradient(135deg,rgba(255,243,184,.96) 0%,rgba(249,219,117,.62) 48%,rgba(242,201,76,.82) 100%);box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(255,255,255,.3),inset 0 0 20px rgba(255,255,255,.25),0 10px 32px rgba(242,201,76,.38),0 10px 28px rgba(0,25,20,.4)}
@supports not (backdrop-filter:blur(1px)){.hero-glass,.staged .hero-topcta{background:var(--yellow)}}

/* more opaque tint so the label stays readable */
.hero-glass,.staged .hero-topcta{font-weight:700;color:#052b24;text-shadow:none;
  background:linear-gradient(135deg,rgba(255,240,176,.98) 0%,rgba(247,214,100,.94) 50%,rgba(242,201,76,.96) 100%)}
.hero-glass:hover,.staged .hero-topcta:hover{background:linear-gradient(135deg,#fff6c8 0%,#fbe08a 50%,#f5d055 100%)}
