/* Two drawn graphics shared by the home page and its variation: the hub ("everything comes into one place") and the
   "How it works" timeline with illustrated step cards. Everything is SVG and CSS in the site's own colours, with no
   image files. graphics.js adds the classes that start the motion (.in, .seen, .on) and sets --g-fill from the scroll
   position. Without JavaScript, or with reduced motion or Data Saver, both show finished. No inline styles. */
:root{--g-ease:cubic-bezier(.22,.8,.24,1);--g-green-2:#8DB283;--g-blue:#A9C6DA;--g-sand:#E9D29B;--g-violet:#BFB2E6}

/* ---------- The hub ---------- */
.g-turn{padding-block:0 clamp(40px,6vw,88px)}
.feat-problem + .g-turn{margin-top:calc(-1 * clamp(24px,4vw,48px))}
.g-how-list{min-width:0}
.g-turn-in{display:flex;flex-direction:column;align-items:center;text-align:center;gap:clamp(28px,4vw,48px)}
.g-hub{margin:0;width:min(100%,720px)}
.g-hub svg{display:block;width:100%;height:auto;overflow:visible}
.g-hub-ring{fill:none;stroke:#fff;stroke-width:2;transform-box:fill-box;transform-origin:center}
.g-hub-wave{fill:none;stroke:#fff;stroke-width:3;opacity:0;transform-box:fill-box;transform-origin:center}
.g-hub-star{fill:#fff;transform-box:fill-box;transform-origin:center}
.g-hub-card{transform-box:fill-box;transform-origin:center}
.g-hub-card rect{stroke:#fff;stroke-width:3}
.g-hub-card circle{fill:none;stroke:currentColor;stroke-width:2.5}
.g-hub-card .g-ico{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.g-hub-card text{font:600 25px/1 var(--sans);letter-spacing:-.01em;text-anchor:middle;fill:currentColor}
.g-hub-c1{color:#2C4F26}.g-hub-c1 rect{fill:#DCEBD3}
.g-hub-c2{color:#5B4712}.g-hub-c2 rect{fill:#F6EBD2}
.g-hub-c3{color:#24425A}.g-hub-c3 rect{fill:#DDE9F2}
.g-hub-arrow,.g-hub-point{fill:none;stroke:#6F7573;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.g-hub-arrow{stroke-dasharray:1;stroke-dashoffset:0}
.g-hub-mark{transform-box:fill-box;transform-origin:center;filter:drop-shadow(0 18px 22px rgba(40,70,35,.28))}
.g-hub-name{font:600 24px/1 var(--sans);letter-spacing:-.015em;text-anchor:middle;fill:var(--ink)}

@keyframes g-pop{from{opacity:0;transform:translateY(14px) scale(.9)}to{opacity:1;transform:none}}
@keyframes g-fade{from{opacity:0}to{opacity:1}}
@keyframes g-draw{from{stroke-dashoffset:1;opacity:0}8%{opacity:1}to{stroke-dashoffset:0;opacity:1}}
@keyframes g-bump{0%,100%{transform:none}40%{transform:scale(1.09)}}
@keyframes g-ring{0%,100%{transform:none;stroke-opacity:1}45%{transform:scale(1.05);stroke-opacity:.45}}
@keyframes g-wave{from{opacity:.9;transform:scale(.6)}to{opacity:0;transform:scale(2.9)}}
@keyframes g-twinkle{0%,100%{opacity:.35;transform:scale(.7)}50%{opacity:1;transform:scale(1)}}

/* Held back until the hub scrolls into view */
.g-js [data-g-hub]:not(.in) :is(.g-hub-card,.g-hub-mark,.g-hub-arrow,.g-hub-point,.g-hub-name){opacity:0}
[data-g-hub].in .g-hub-card{animation:g-pop .7s var(--g-ease) both}
[data-g-hub].in .g-hub-c2{animation-delay:.1s}
[data-g-hub].in .g-hub-c3{animation-delay:.2s}
[data-g-hub].in .g-hub-mark{animation:g-pop .8s .25s var(--g-ease) both,g-bump .8s 2.05s var(--g-ease)}
[data-g-hub].in .g-hub-name{animation:g-fade .8s .5s both}
/* The arrows draw in one after another, then the point lands on the mark and the rings pulse once */
[data-g-hub].in .g-hub-arrow{animation:g-draw .6s .65s ease-in-out both}
[data-g-hub].in .g-hub-a2{animation-delay:1.05s}
[data-g-hub].in .g-hub-a3{animation-delay:1.45s}
[data-g-hub].in .g-hub-point{animation:g-fade .3s 1.95s both}
[data-g-hub].in .g-hub-ring{animation:g-ring 1s 2.05s var(--g-ease)}
[data-g-hub].in .g-hub-ring:nth-of-type(2){animation-delay:2.17s}
[data-g-hub].in .g-hub-ring:nth-of-type(3){animation-delay:2.29s}
[data-g-hub].in .g-hub-wave{animation:g-wave 1.5s 2.05s ease-out}
.g-hub-star{animation:g-twinkle 4.2s ease-in-out infinite}
.g-hub-star:nth-of-type(2){animation-duration:5.1s;animation-delay:-1.2s}
.g-hub-star:nth-of-type(3){animation-duration:3.6s;animation-delay:-2.1s}
.g-hub-star:nth-of-type(4){animation-duration:4.8s;animation-delay:-.6s}
.g-hub-star:nth-of-type(5){animation-duration:5.6s;animation-delay:-3s}
.g-hub-star:nth-of-type(6){animation-duration:3.9s;animation-delay:-1.7s}

/* ---------- How it works: the timeline ---------- */
.g-how{padding-block:clamp(56px,8vw,112px);scroll-margin-top:64px}
.g-how-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(28px,5vw,80px);align-items:start}
.g-how-head{position:sticky;top:104px;display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.g-how-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}
.g-how-cta .btn-ghost{border-color:var(--green);color:var(--green)}
.g-how-cta .btn-ghost:hover{background:var(--soft)}

.g-steps{--g-rail:48px;position:relative;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:clamp(16px,2.2vw,26px)}
/* The line: a grey track, and a green one on top that grows with --g-fill (0 to 1) as you scroll */
.g-steps::before,.g-steps::after{content:"";position:absolute;left:calc(var(--g-rail) / 2 - 2px);top:0;bottom:0;width:4px;border-radius:2px;background:var(--line);
  -webkit-mask-image:linear-gradient(#000 calc(100% - 72px),transparent);mask-image:linear-gradient(#000 calc(100% - 72px),transparent)}
.g-steps::after{background:var(--green);transform-origin:50% 0;transform:scaleY(var(--g-fill,1))}
.g-step{position:relative;display:grid;grid-template-columns:var(--g-rail) minmax(0,1fr);column-gap:clamp(14px,2.4vw,30px);align-items:center}
.g-step:first-child::before{content:"";position:absolute;z-index:1;left:calc(var(--g-rail) / 2 - 6px);top:-4px;width:12px;height:12px;border-radius:50%;background:var(--green)}
.g-step-n{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:var(--g-rail);height:var(--g-rail);border-radius:50%;background:var(--green);color:#fff;
  font:600 15px/1 var(--sans);letter-spacing:.03em;transition:background-color .4s,color .4s,box-shadow .4s,transform .5s var(--g-ease)}
.g-js .g-step:not(.on) .g-step-n{background:#fff;color:var(--muted);box-shadow:inset 0 0 0 2px var(--line);transform:scale(.9)}
.g-step-card{display:grid;grid-template-columns:minmax(0,216px) minmax(0,1fr);gap:clamp(18px,2.6vw,36px);align-items:center;padding:clamp(22px,2.6vw,34px);
  border-radius:clamp(22px,2.4vw,30px);background:#fff;box-shadow:0 0 0 1px rgba(43,46,49,.07),0 26px 50px -34px rgba(25,30,24,.34);
  transition:opacity .7s,transform .9s var(--g-ease)}
.g-js .g-step:not(.seen) .g-step-card{opacity:0;transform:translateY(26px)}
.g-step-text{display:flex;flex-direction:column;gap:8px;min-width:0}
.g-step-card h3{margin:0;font:600 clamp(20px,1.9vw,25px)/1.2 var(--sans);letter-spacing:-.02em}
.g-step-card p{margin:0;color:var(--muted);font-size:17px;line-height:1.5}

/* The drawings. Classes carry the colour so the SVG holds no style attributes. */
.g-ill{display:block;width:100%;height:auto;overflow:visible}
.g-ill .f-g{fill:var(--green)} .g-ill .f-g2{fill:var(--g-green-2)} .g-ill .f-b{fill:var(--g-blue)} .g-ill .f-s{fill:var(--g-sand)}
.g-ill .f-v{fill:var(--g-violet)} .g-ill .f-w{fill:#fff} .g-ill .f-l{fill:var(--line)} .g-ill .f-soft{fill:#DCEBD3}
.g-ill :is(.s-g,.s-g2,.s-b,.s-s,.s-w,.s-l){fill:none;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
.g-ill .s-g{stroke:var(--green)} .g-ill .s-g2{stroke:var(--g-green-2)} .g-ill .s-b{stroke:var(--g-blue)} .g-ill .s-s{stroke:var(--g-sand)}
.g-ill .s-w{stroke:#fff} .g-ill .s-l{stroke:#B8BCB4}
.g-ill .join{stroke-width:7;stroke-linejoin:round}
.g-ill .join.f-g{stroke:var(--green)}
.g-ill .pop,.g-ill .knob,.g-ill .bar{transform-box:fill-box;transform-origin:center}
.g-ill .draw{stroke-dasharray:1;stroke-dashoffset:0}
@keyframes g-knob{from{transform:translateX(-26px)}to{transform:none}}
@keyframes g-track{from{fill:var(--g-violet)}to{fill:var(--green)}}
@keyframes g-bars{0%,100%{transform:scaleY(.45)}50%{transform:scaleY(1)}}
.g-js .g-step:not(.seen) .g-ill :is(.pop,.draw){opacity:0}
.g-step.seen .g-ill .pop{animation:g-pop .65s .2s var(--g-ease) both}
.g-step.seen .g-ill .draw{animation:g-draw .7s .45s ease-in-out both}
.g-step.seen .g-ill .t1{animation-delay:.32s} .g-step.seen .g-ill .t2{animation-delay:.44s} .g-step.seen .g-ill .t3{animation-delay:.56s}
.g-step.seen .g-ill .t4{animation-delay:.68s} .g-step.seen .g-ill .t5{animation-delay:.8s} .g-step.seen .g-ill .t6{animation-delay:.95s}
.g-step.seen .g-ill .t7{animation-delay:1.15s}
.g-step.seen .g-ill .knob{animation:g-knob .55s .95s var(--g-ease) both}
.g-step.seen .g-ill .track{animation:g-pop .65s .44s var(--g-ease) both,g-track .55s .95s both}
.g-step.seen .g-ill .bar{animation:g-bars 1.5s ease-in-out infinite}
.g-step.seen .g-ill .bar:nth-of-type(2){animation-delay:-.3s} .g-step.seen .g-ill .bar:nth-of-type(3){animation-delay:-.75s}
.g-step.seen .g-ill .bar:nth-of-type(4){animation-delay:-.5s} .g-step.seen .g-ill .bar:nth-of-type(5){animation-delay:-1.1s}

@media (max-width:860px){
  .g-how-grid{grid-template-columns:minmax(0,1fr)}
  .g-how-head{position:static}
  .g-steps{--g-rail:40px}
  .g-step{align-items:start}
  .g-step-n{margin-top:26px;font-size:14px}
  .g-step-card{grid-template-columns:minmax(0,1fr);gap:16px;padding:22px 20px 24px}
  .g-ill{width:min(100%,208px)}
}
@media (max-width:480px){.g-how-cta .btn{flex:1 1 100%}}

/* Reduced motion (and Data Saver, which graphics.js marks with .g-calm): everything shows finished and still */
@media (prefers-reduced-motion:reduce){
  .g-hub *,.g-steps *,.g-steps::after{animation:none!important;transition:none!important}
}
.g-calm .g-hub *,.g-calm .g-steps *{animation:none!important;transition:none!important}
