/* QuoteNod homepage · stage 3 redo · motion graphics told by the quote itself.
   Every moving thing is either the product (real screens in device frames), the paper quote, or a data graphic. */

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;isolation:isolate}
.hero .wrap{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:var(--space-10);align-items:center;min-height:calc(100svh - 72px);padding-block:var(--space-10) var(--space-12)}
.hero .copy{display:flex;flex-direction:column;gap:var(--space-6);position:relative;z-index:2}
.hero h1{font-size:var(--display-xl)}
.hero .ctas{display:flex;gap:var(--space-3);align-items:center;flex-wrap:wrap}
.hero .proof{font-size:var(--text-sm);color:var(--text-secondary);max-width:46ch}
.hero .proof b{font-family:var(--font-display);font-size:18px;color:var(--text-primary);font-weight:700}
.w{display:inline-block;white-space:nowrap}
.js .w>span{display:inline-block;will-change:transform}
.stroke{position:relative;display:inline-block}
.stroke svg{position:absolute;left:0;right:0;bottom:-.02em;width:100%;height:.16em;overflow:visible}
.stroke path{fill:none;stroke:var(--g-nod-500);stroke-width:9;stroke-linecap:round;stroke-dasharray:420;stroke-dashoffset:420}
.no-js .stroke path,.reduce .stroke path{stroke-dashoffset:0}

/* the lit floor behind the devices: one gradient, one job (light falls on the paper) */

.scene{position:relative;container-type:inline-size;width:min(100%,560px);aspect-ratio:1/1.14;justify-self:end;z-index:1}
.scene .dev-phone{position:absolute;--pw:38cqw}
.scene .ph-a{left:2cqw;top:5cqw;transform:rotate(-5deg);z-index:1}
.scene .ph-b{right:1cqw;top:13cqw;transform:rotate(4deg);z-index:3}
.scene .sheet{position:absolute;left:12cqw;top:40cqw;width:48cqw;z-index:2;transform:rotate(-2deg);padding:4cqw;display:flex;flex-direction:column;gap:.9cqw;font-size:2.3cqw}
.scene .sheet .line{font-size:2.3cqw;padding:1.3cqw 0}
.scene .sheet .line span:last-child{font-size:2.7cqw}
.scene .sheet .tot b{font-size:6cqw}
.scene .sheet .tot span,.scene .sheet .sub{font-size:2cqw}
.scene .sheet .hd{display:flex;justify-content:space-between;align-items:baseline;gap:2cqw}
.scene .sheet .hd b{font-size:2.6cqw}
.scene .sheet .hd .q{font-family:var(--font-display);font-weight:700;color:var(--text-on-paper-2);font-size:2.6cqw}
.scene .sheet .ttl{font-family:var(--font-display);font-weight:700;font-size:4.6cqw;line-height:1}
.scene .sigbox{height:12cqw;margin-top:1cqw}
.scene .sigbox .hint{font-size:1.8cqw}
.scene .sigbox path{stroke-dasharray:640;stroke-dashoffset:640}
.scene .sigbox .stamp-ok{position:absolute;right:2cqw;bottom:1.6cqw;font-size:2.4cqw;opacity:0}
.no-js .scene .sigbox path,.reduce .scene .sigbox path{stroke-dashoffset:0}
.no-js .scene .stamp-ok,.reduce .scene .stamp-ok{opacity:1}
.scene .ph-b .sig{position:absolute;left:4.1%;top:21.2%;width:91.4%;height:22.2%;z-index:2}
.scene .ph-b .sig path{fill:none;stroke:#10203A;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:720;stroke-dashoffset:720}
.no-js .scene .ph-b .sig path,.reduce .scene .ph-b .sig path{stroke-dashoffset:0}
@media (max-width:980px){
  .hero .wrap{grid-template-columns:1fr;min-height:0;gap:var(--space-8);padding-top:var(--space-8)}
  .hero h1{max-width:none}
  .scene{justify-self:center;width:min(100%,520px);aspect-ratio:1/1.3}
  .static .chapters{gap:var(--space-12)}
}

/* ---------- four benefits under the hero ---------- */
.trust{border-top:1px solid var(--border-divider);border-bottom:1px solid var(--border-divider)}
.trust .wrap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-8);padding-block:var(--space-10)}
.ben{display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;column-gap:var(--space-3);row-gap:var(--space-1);align-content:start;min-width:0}
.ben .ic{width:24px;height:24px;color:var(--g-nod-500);grid-row:1/3;margin-top:2px}
.ben .t{font-family:var(--font-display);font-weight:700;font-size:var(--title-sm);line-height:1.1;text-wrap:balance}
.ben .s{font-size:var(--text-sm);color:var(--text-secondary);max-width:30ch}
.js .ben{opacity:0;transform:translateY(10px);transition:opacity .5s var(--ease-out),transform .55s var(--ease-out);transition-delay:calc(var(--i,0)*60ms)}
.js .trust.in .ben{opacity:1;transform:none}
@media (max-width:980px){.trust .wrap{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-6);padding-block:var(--space-8)}}
@media (max-width:600px){.trust .wrap{grid-template-columns:1fr}}

/* ---------- the story: one phone at a time, pushed in, with a close-up ---------- */
.story{position:relative}
.story .wrap,.more .wrap{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:var(--space-10);align-items:center}
.chapters,.feats{position:relative;display:flex;flex-direction:column;gap:var(--space-8)}
.chapter,.feat{display:flex;flex-direction:column;gap:var(--space-5)}
.chapter h2{font-size:var(--display-2xl);transform-origin:0 100%}
.feat h3{font-size:var(--display-md);transform-origin:0 100%}
.chapter p,.feat p{font-size:var(--text-lg);line-height:1.5;color:var(--text-secondary);max-width:38ch}
.feats .lead{display:flex;flex-direction:column;gap:var(--space-4)}
.feats .lead h2{font-size:var(--display-lg)}
.steps{display:flex;flex-direction:column;gap:2px;margin-top:var(--space-2)}
.steps li{display:flex;align-items:center;gap:12px;min-height:36px;font-family:var(--font-display);font-weight:700;font-size:18px;color:var(--text-muted)}
.steps li i{width:10px;height:10px;border-radius:50%;background:var(--border-control);flex:none}
.steps li.on{color:var(--text-primary)}
.steps li.on i{background:var(--text-primary)}
.steps li.done{color:var(--text-secondary)}
.steps li.done i{background:var(--g-nod-700)}

/* the stage: a perspective box; each shot is a phone plus its close-up */
.stage{position:relative;height:min(74vh,760px);perspective:1400px;perspective-origin:50% 40%}
.shot{position:absolute;inset:0;display:grid;place-items:center;visibility:hidden;opacity:0}
.shot .dev-phone{--pw:min(30vh,300px);transform-style:preserve-3d;will-change:transform,opacity}
.shot .scr .dim{position:absolute;inset:0;background:var(--g-night-800);opacity:0;z-index:3}
.shot .sig{position:absolute;left:4.1%;top:21.2%;width:91.4%;height:22.2%;z-index:2}
.sig path,.lens-sig path{fill:none;stroke:#10203A;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.lens{position:absolute;right:max(0px,calc(50% - 46vh));bottom:5%;width:min(520px,64%);background:var(--surface-paper);border-radius:var(--paper-radius);box-shadow:var(--shadow-paper-dark),0 0 0 1px rgba(255,255,255,.14);overflow:hidden;will-change:transform,opacity}
.lens img{width:100%;height:auto;display:block;max-height:min(58vh,560px);object-fit:cover;object-position:top}
.lens .lens-sig{position:absolute;left:2.1%;top:13.3%;width:95.3%;height:73.5%}
.shot[data-shot="2"] .lens{bottom:auto;top:18%}
.shot[data-shot="4"] .lens,.more .shot[data-shot="5"] .lens{bottom:auto;top:3%;width:min(440px,56%)}
.more .shot[data-shot="3"] .lens,.more .shot[data-shot="6"] .lens{bottom:auto;top:8%}
.lens .lens-sig path{stroke-width:3}

.slot{display:flex;flex-direction:column;gap:var(--space-16)}
/* every chapter and feature shows its close-up picture */
.static .stage,.no-js .stage,.static .steps,.no-js .steps{display:none}
.static .story .wrap,.static .more .wrap,.no-js .story .wrap,.no-js .more .wrap{grid-template-columns:1fr}
.static .chapters,.static .feats{gap:var(--space-16)}
.still{position:relative;width:min(100%,560px);margin:var(--space-2) 0 0;background:var(--surface-paper);border-radius:var(--paper-radius);box-shadow:var(--shadow-paper-dark),0 0 0 1px rgba(255,255,255,.14);overflow:hidden}
.still img{width:100%;height:auto;display:block}
.still .lens-sig{position:absolute;left:2.1%;top:13.3%;width:95.3%;height:73.5%}
.static .still.in .lens-sig path,.no-js .still .lens-sig path{animation:sign .9s linear .1s forwards}
.no-js .still .lens-sig path{animation:none;stroke-dashoffset:0}
@keyframes sign{to{stroke-dashoffset:0}}
@media (max-width:980px){.chapter h2{font-size:var(--display-xl)}.feat h3{font-size:var(--display-md)}.feats .lead h2{font-size:var(--display-md)}}

/* type that moves with the scroll: masked words, a drawn stroke, a stamp, a slot bar, a scrubbed line */
.wm{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.1em;margin-bottom:-.1em}
.wm>span{display:inline-block;will-change:transform}
.hstroke{display:block;width:62%;height:.14em;margin-top:-.08em;overflow:visible}
.hstroke path{fill:none;stroke:var(--g-nod-500);stroke-width:9;stroke-linecap:round;stroke-linejoin:round}
.slotbar{display:block;height:6px;width:34%;margin-top:10px;background:var(--text-primary);transform-origin:0 50%;transform:scaleX(0);will-change:transform}
[data-line] .lw{display:inline-block}
.static .wm>span{transform:translateY(110%);transition:transform .55s var(--ease-out-expo);transition-delay:calc(var(--i,0)*45ms)}
.static .in .wm>span,.static .in.slotted .wm>span{transform:none}
.static .slotbar{transition:transform .4s var(--ease-out) .3s}
.static .in .slotbar{transform:scaleX(1)}
.static .hstroke path{stroke-dasharray:var(--len,300);stroke-dashoffset:var(--len,300);transition:stroke-dashoffset .6s var(--ease-in-out) .25s}
.static .in .hstroke path{stroke-dashoffset:0}
.no-js .wm>span,.reduce .wm>span{transform:none;transition:none}
.no-js .slotbar,.reduce .slotbar{transform:scaleX(1);transition:none}
.no-js .hstroke path,.reduce .hstroke path{stroke-dashoffset:0;transition:none}
.found .n500{display:inline-block;will-change:transform}
.wr .wrw{display:inline-block;opacity:0;transform:translate3d(0,14px,0);transition:opacity .6s var(--ease-out-expo),transform .6s var(--ease-out-expo);transition-delay:calc(var(--w,0)*70ms)}
.wr.is-visible .wrw{opacity:1;transform:none}
.wr.scrubbed .wrw{transition:none}
.reduce .wr .wrw,.no-js .wr .wrw{opacity:1;transform:none;transition:none}

/* ---------- facts ---------- */
.facts .wrap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-8);padding-block:var(--space-12);border-top:1px solid var(--border-divider);border-bottom:1px solid var(--border-divider)}
.fact{display:flex;flex-direction:column;gap:var(--space-2);min-width:0}
.fact .n{font-family:var(--font-display);font-weight:800;font-size:var(--display-lg);line-height:.9;font-variant-numeric:tabular-nums lining-nums}
.fact .n small{font-size:.5em;font-weight:700;color:var(--text-secondary)}
.fact p{font-size:var(--text-sm);color:var(--text-secondary);max-width:28ch}
.js .fact .n{clip-path:inset(0 100% 0 0)}
.js .fact.in .n{animation:wipe .7s var(--ease-out) forwards;animation-delay:calc(var(--i,0)*70ms)}
@keyframes wipe{to{clip-path:inset(0 0 0 0)}}
@media (max-width:980px){.facts .wrap{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-8) var(--space-6);padding-block:var(--space-10)}}

/* the features section: same stage language as the story */
.more{position:relative}
.static .more,.no-js .more{padding-top:var(--space-16)}

/* ---------- founding 500 ---------- */
#founding.sec-pivot{padding-block:var(--space-16) var(--space-24)}
.found{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:var(--space-12);align-items:center}
.found h2{font-size:var(--display-2xl)}
.price{display:flex;align-items:flex-start;gap:var(--space-4);flex-wrap:wrap}
.price .was{position:relative;font-family:var(--font-display);font-weight:700;font-size:clamp(36px,4vw,56px);color:var(--text-secondary);line-height:1;margin-top:.2em;font-variant-numeric:tabular-nums lining-nums}
.price .was svg{position:absolute;left:-6%;right:-6%;top:50%;height:.22em;width:112%;transform:translateY(-50%);overflow:visible}
.price .was path{fill:none;stroke:var(--g-red-500);stroke-width:7;stroke-linecap:round;stroke-dasharray:200;stroke-dashoffset:200}
.js .found.in .price .was path,.static .price .was path{animation:strike .5s var(--ease-out) .4s forwards}
.no-js .price .was path,.reduce .price .was path{stroke-dashoffset:0;animation:none}
@keyframes strike{to{stroke-dashoffset:0}}
.price .now{display:inline-flex;align-items:flex-start;font-family:var(--font-display);font-weight:800;line-height:.8}
.price .now .gbp{font-size:clamp(44px,6vw,92px);font-weight:700;margin-top:.12em}
.price .now .fig{font-size:clamp(96px,14vw,200px);font-variant-numeric:tabular-nums lining-nums}
.price .per{font-size:var(--text-lg);color:var(--text-secondary);max-width:14ch;line-height:1.3;align-self:flex-end;padding-bottom:.4em}
.terms{display:flex;flex-direction:column;gap:var(--space-3);font-size:var(--text-md)}
.terms li{display:flex;gap:var(--space-3);align-items:flex-start}
.terms li .ic{color:var(--g-nod-500);margin-top:3px}
.found .sheet{padding:var(--space-6);display:flex;flex-direction:column;gap:6px;transform:rotate(2deg)}
.plans-teaser{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-4)}
.plans-teaser .card .n{font-family:var(--font-display);font-weight:700;font-size:26px;line-height:1}
.plans-teaser .card .p{font-family:var(--font-display);font-weight:700;font-size:44px;line-height:.9;margin-top:6px;font-variant-numeric:tabular-nums lining-nums}
.plans-teaser .card .p small{font-family:var(--font-text);font-weight:400;font-size:14px;color:var(--text-secondary)}
@media (max-width:980px){.found{grid-template-columns:1fr}.plans-teaser{grid-template-columns:1fr}.found h2{font-size:var(--display-2xl)}}

/* ---------- close ---------- */
.close{border-top:1px solid var(--border-divider)}
.close .wrap{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:var(--space-10);align-items:center;padding-block:var(--space-24)}
.close .copy{display:flex;flex-direction:column;gap:var(--space-6)}
.close h2{font-size:var(--display-2xl)}
.endmark{display:flex;align-items:center;gap:var(--space-4);margin-top:var(--space-4)}
.endmark img{width:72px;height:72px}
.close .dev-phone{--pw:min(280px,60vw);justify-self:center;transform:rotate(-3deg)}
@media (max-width:980px){.close .wrap{grid-template-columns:1fr;padding-block:var(--space-16)}}

/* reveals */
.js .rv{opacity:0;transform:translateY(12px);transition:opacity .5s var(--ease-out),transform .55s var(--ease-out)}
.js .rv.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  .js .rv{opacity:1;transform:none;transition:none}
  .js .fact .n{clip-path:none;animation:none}
  .still .lens-sig path{animation:none;stroke-dashoffset:0}
  .js .ben{opacity:1;transform:none;transition:none}
}

/* the 35 styles: four real invoices, fanned once as they arrive. */
.lens.fanlens{background:transparent;box-shadow:none;overflow:visible;width:min(500px,64%);aspect-ratio:1716/2320;right:auto;left:50%;margin-left:calc(-1 * min(250px,32%))}
.lens.fanlens img{position:absolute;inset:0;width:100%;height:auto;border-radius:var(--paper-radius);box-shadow:var(--shadow-paper-dark),0 0 0 1px rgba(255,255,255,.14);transform-origin:50% 100%;will-change:transform}
.lens.fanlens img[data-i="0"]{transform:rotate(-7deg) translateX(-9%)}
.lens.fanlens img[data-i="1"]{transform:rotate(-2.5deg) translateX(-3%)}
.lens.fanlens img[data-i="2"]{transform:rotate(2.5deg) translateX(3%)}
.lens.fanlens img[data-i="3"]{transform:rotate(7deg) translateX(9%)}
.still.fan{background:transparent;box-shadow:none;overflow:visible;aspect-ratio:780/730;margin:var(--space-6) auto 0;width:min(86%,520px)}
.static .more{overflow-x:clip}
.static .story{overflow-x:clip}
.still.fan img{position:absolute;inset:0;width:100%;height:auto;border-radius:var(--paper-radius);box-shadow:var(--shadow-paper-dark),0 0 0 1px rgba(255,255,255,.14);transform-origin:50% 100%}
.still.fan img:nth-child(1){transform:rotate(-7deg) translateX(-9%)}
.still.fan img:nth-child(2){transform:rotate(-2.5deg) translateX(-3%)}
.still.fan img:nth-child(3){transform:rotate(2.5deg) translateX(3%)}
.still.fan img:nth-child(4){transform:rotate(7deg) translateX(9%)}
.static .still.fan img{transition:transform .6s var(--ease-out-expo);transition-delay:calc(var(--k,0)*70ms)}
.static .still.fan:not(.in) img{transform:none}

/* the page scrolls normally: the four steps sit two by two and the six features three across, each with its own picture */
.story{padding-block:var(--space-24) var(--space-16)}
.more{padding-block:var(--space-16) var(--space-24)}
.chapter .still img,.feat .still:not(.fan) img{max-height:420px;object-fit:cover;object-position:top}
@media (min-width:981px){
  .static .story .slot,.no-js .story .slot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-16) var(--space-12);align-items:start}
  .static .more .slot,.no-js .more .slot{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-16) var(--space-10);align-items:start}
  .static .chapter h2,.no-js .chapter h2{font-size:var(--display-lg)}
  .static .feat h3,.no-js .feat h3{font-size:var(--title-lg)}
  .static .feat .still:not(.fan) img,.no-js .feat .still:not(.fan) img{max-height:300px}
  .static .feats .lead{max-width:760px}
}
