/* The front door: /waitlist (templates/waitlist.html) and, once Holdfast opens, /welcome (templates/welcome.html), on the
   light public frame (templates/pub_base.html, static/pub.css). The same sections; the waitlist has the join form where
   welcome has the trial and the demo. Colour in the example figures only means something: green yours or paid, amber
   needs you. */
:root{--hmrc:#C5CED8}
html{scroll-behavior:smooth;scroll-padding-top:80px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.wrap{max-width:1080px;margin:0 auto;padding:0 32px}
.mark{width:28px;height:28px;border-radius:6px;background:var(--ink);color:#fff;display:grid;place-items:center;flex:none}
.mark svg{width:18px;height:18px}
/* hero */
.hero{background:linear-gradient(var(--surface),var(--canvas));border-bottom:1px solid var(--border)}
.hero .wrap{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:56px;align-items:center;padding-top:72px;padding-bottom:80px}
main h1{margin:0;color:var(--ink);font-size:clamp(40px,5.6vw,60px);line-height:1.04;font-weight:600;letter-spacing:-.035em;text-wrap:balance}
.lede{margin:20px 0 0;max-width:52ch;font-size:18px;line-height:1.6;color:var(--ink-2);text-wrap:pretty}
.slot{margin-top:32px;max-width:520px}

/* the form */
.hf-wl-field{display:flex;gap:8px;padding:6px;border-radius:10px;background:var(--surface);box-shadow:var(--shadow-card);transition:box-shadow .15s}
.hf-wl-field:focus-within{box-shadow:0 0 0 1px var(--brand),0 0 0 4px var(--brand-ring)}
.hf-wl-field.is-err{box-shadow:0 0 0 1px var(--bad),0 2px 5px rgba(10,37,64,.06)}
.hf-wl-field input{flex:1;min-width:0;height:40px;padding:0 10px;border:0;background:none;color:var(--ink);font:400 16px var(--font)}
.hf-wl-field input::placeholder{color:#8792A2}
.hf-wl-field input:focus{outline:none;box-shadow:none}
.hf-wl-field .btn{height:40px;padding:0 16px;font-size:15px}
.is-busy .btn{opacity:.7;cursor:progress}
.hf-wl-kind{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;padding:0;border:0;min-width:0}
.hf-wl-kind legend{float:left;width:100%;margin:0 0 8px;padding:0;font-size:13.5px;font-weight:500;color:var(--ink)}
.hf-wl-kind label{position:relative;cursor:pointer}
.hf-wl-kind input{position:absolute;opacity:0;pointer-events:none}
.hf-wl-kind span{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:6px;background:var(--surface);box-shadow:var(--shadow-btn);
  font-size:13.5px;font-weight:500;color:var(--ink-2);transition:background .12s,color .12s,box-shadow .12s}
.hf-wl-kind label:hover span{color:var(--ink)}
.hf-wl-kind input:checked+span{background:var(--brand-soft);color:var(--brand-ink);box-shadow:0 0 0 1px var(--brand)}
.hf-wl-kind input:focus-visible+span{box-shadow:var(--focus)}
.hf-wl-msg{margin:14px 0 0;font-size:13.5px;color:var(--ink-3)}
.hf-wl-msg.is-err{color:var(--bad)}
.hf-wl-msg:empty{margin:0}
.hf-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.hf-wl-ts{margin-top:12px}
.hf-wl-done{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:10px;background:var(--surface);box-shadow:var(--shadow-card)}
.hf-wl-done:focus{outline:none}
.hf-wl-done .tick{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--ok-bg);color:var(--ok);flex:none}
.hf-wl-done .grow{flex:1;min-width:0;display:flex;flex-direction:column}
.hf-wl-done b{color:var(--ink);font-weight:600}
.hf-wl-done .grow span{font-size:14px;color:var(--ink-2)}

/* the hero card: example figures drawn like a dashboard */
.stage{position:relative}
.dash{border-radius:12px;background:var(--surface);box-shadow:var(--shadow-lift);overflow:hidden}
.dash-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid var(--border)}
.dash-h .who{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:600;font-size:14.5px}
.dash-h .mark{width:24px;height:24px;border-radius:5px}
.dash-h .mark svg{width:15px;height:15px}
.dash-b{padding:4px 20px}
.dr{padding:16px 0}
.dr+.dr{border-top:1px solid var(--border)}
.k{font-size:13px;color:var(--ink-3)}
.v{display:block;margin-top:2px;color:var(--ink);font-size:26px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1.2}
.dr-top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.score{display:flex;align-items:baseline;gap:10px}
.score .v{font-size:40px;letter-spacing:-.03em}
.badge{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px;border-radius:4px;font-size:12.5px;font-weight:500;white-space:nowrap}
.badge.ok{background:var(--ok-bg);color:var(--ok)}
.badge.warn{background:var(--warn-bg);color:var(--warn)}
.split{display:flex;height:8px;margin:12px 0 8px;border-radius:4px;overflow:hidden;gap:2px}
.split i{display:block;height:100%}
.split .h{background:var(--hmrc)}
.split .y{background:var(--ok-bar)}
.split .t{background:var(--track)}
.split .f{background:var(--ink)}
.leg{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.leg b{font-weight:500;color:var(--ink-2)}
.leg i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px;vertical-align:0}
.amt-in{color:var(--ok)}
.ex{margin:10px 2px 0;font-size:12.5px;color:var(--ink-3);text-align:right}

/* sections */
.sec{padding:96px 0}
.sec.alt{background:var(--canvas);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.sec-h{max-width:640px}
main h2{margin:0;color:var(--ink);font-size:clamp(28px,3.4vw,38px);line-height:1.15;font-weight:600;letter-spacing:-.03em;text-wrap:balance}
.sec-h p{margin:14px 0 0;font-size:17px;line-height:1.6;text-wrap:pretty}
main h3{margin:0;color:var(--ink);font-size:17px;line-height:1.3;font-weight:600;letter-spacing:-.01em}
.cap{margin:16px 0 0;font-size:12.5px;color:var(--ink-3)}

/* WhatsApp */
.wa{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:56px;align-items:center}
.wa-mark{width:44px;height:44px;border-radius:10px;display:grid;place-items:center;background:#25D366;color:#fff;margin-bottom:20px}
.wa-mark svg{width:26px;height:26px;fill:currentColor}
.wa .sec-h p{max-width:56ch}
.ticks{margin:24px 0 0;padding:0;list-style:none;display:grid;gap:12px}
.ticks li{display:flex;gap:12px;align-items:flex-start;font-size:15.5px;color:var(--ink-2)}
.ticks svg.i{margin-top:3px;color:var(--ok)}
.wa-phone{border-radius:16px;overflow:hidden;background:#EFEAE2;box-shadow:var(--shadow-lift)}
.wa-top{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#F0F2F5;border-bottom:1px solid #E1E4E8}
.wa-av{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:#fff;flex:none}
.wa-av svg{width:18px;height:18px}
.wa-who{display:flex;flex-direction:column;line-height:1.25}
.wa-who b{font-size:14px;font-weight:600;color:#111B21}
.wa-who i{font-style:normal;font-size:12px;color:#667781}
.wa-thread{display:flex;flex-direction:column;justify-content:flex-end;gap:6px;height:280px;padding:14px 12px;overflow:hidden;
  -webkit-mask:linear-gradient(transparent,#000 20%);mask:linear-gradient(transparent,#000 20%)}
.wa-b{position:relative;max-width:84%;padding:7px 10px 18px;border-radius:8px;font-size:14px;line-height:1.42;color:#111B21;box-shadow:0 1px .5px rgba(11,20,26,.13);
  opacity:0;transform:translateY(8px);transition:opacity .4s cubic-bezier(.2,.7,.2,1),transform .4s cubic-bezier(.2,.7,.2,1)}
.wa-b.on{opacity:1;transform:none}
.wa-b p{margin:0;overflow-wrap:anywhere}
.wa-out{align-self:flex-end;background:#D9FDD3;border-top-right-radius:2px}
.wa-in{align-self:flex-start;background:#fff;border-top-left-radius:2px}
.wa-t{position:absolute;right:8px;bottom:3px;display:inline-flex;align-items:center;gap:3px;font-size:10.5px;color:#667781;font-variant-numeric:tabular-nums}
.wa-ticks{width:15px;height:10px;fill:none;stroke:#53BDEB;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.wa-typing{display:flex;gap:4px;padding:11px 12px}
.wa-typing i{width:6px;height:6px;border-radius:50%;background:#8696A0;animation:wa-dot 1.1s ease-in-out infinite}
.wa-typing i:nth-child(2){animation-delay:.15s}.wa-typing i:nth-child(3){animation-delay:.3s}
@keyframes wa-dot{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-3px);opacity:1}}
.wa-bar{display:flex;align-items:center;gap:8px;padding:8px 10px 10px}
.wa-bar span{flex:1;height:36px;border-radius:18px;background:#fff;display:flex;align-items:center;padding:0 14px;font-size:13.5px;color:#8696A0}
.wa-bar i{width:36px;height:36px;border-radius:50%;background:#00A884;display:grid;place-items:center;flex:none}
.wa-bar i svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* three cards */
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:48px}
.card{border-radius:12px;background:var(--surface);box-shadow:var(--shadow-card);overflow:hidden;display:flex;flex-direction:column}
.viz{padding:24px 22px;border-bottom:1px solid var(--border);background:var(--canvas);min-height:132px;display:flex;flex-direction:column;justify-content:center}
.card .txt{padding:20px 22px 24px}
.card p{margin:8px 0 0;font-size:15px;line-height:1.6}
.up{display:flex;align-items:center;gap:12px;color:var(--ink);font-size:36px;font-weight:600;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.up svg.i{width:22px;height:22px;color:var(--ink-3)}
.up .to{color:var(--ok)}
.viz .leg{margin-top:8px}
.rail-k{display:block;font-size:12.5px;color:var(--ink-3);margin-bottom:6px;font-variant-numeric:tabular-nums}
.rail+.rail{margin-top:14px}
.viz .split{margin:0}

/* feature lists */
.feats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 40px;margin:56px 0 0;padding:0;list-style:none}
.feats li{display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:1.6}
.feats svg.i{width:22px;height:22px;color:var(--brand);margin-bottom:8px}
.feats b{color:var(--ink);font-weight:600;font-size:15.5px}
.feats.short{gap:24px 40px}
.feats.short li{flex-direction:row;align-items:center;gap:12px}
.feats.short svg.i{margin:0}
.feats.rule{padding-top:40px;border-top:1px solid var(--border)}

/* promises */
.prom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:48px;border-radius:12px;background:var(--surface);box-shadow:var(--shadow-card)}
.prom div{padding:28px 26px;display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:1.6}
.prom div+div{border-left:1px solid var(--border)}
.prom svg.i{width:22px;height:22px;color:var(--ink);margin-bottom:8px}
.prom b{color:var(--ink);font-weight:600;font-size:15.5px}

/* final call */
.final{padding:104px 0 96px;text-align:center}
.final .sec-h{margin:0 auto}
.final .slot{margin:32px auto 0;text-align:left}
.privacy{max-width:560px;margin:28px auto 0;font-size:13px;line-height:1.6;color:var(--ink-3)}

@media (max-width:920px){
  .hero .wrap{grid-template-columns:1fr;gap:48px;padding-top:48px;padding-bottom:56px}
  .stage{max-width:520px}
  .wa{grid-template-columns:1fr;gap:40px}
  .wa-phone{max-width:400px}
  .cards,.feats{grid-template-columns:1fr 1fr}
  .prom{grid-template-columns:1fr}
  .prom div+div{border-left:0;border-top:1px solid var(--border)}
}
@media (max-width:640px){
  .wrap{padding:0 16px}
  .hero .wrap{padding-top:36px;padding-bottom:48px}
  .lede{font-size:16.5px}
  .hf-wl-field{flex-direction:column;padding:6px}
  .hf-wl-field .btn{width:100%}
  .sec{padding:64px 0}
  .final{padding:72px 0 64px}
  .cards,.feats{grid-template-columns:1fr}
  .cards{margin-top:32px}
  .feats{margin-top:40px;gap:28px}
  .dash-b{padding:2px 16px}
  .dash-h{padding:12px 16px}
}

/* welcome: the trial and the demo where the waitlist has its form */
.go{display:flex;flex-wrap:wrap;gap:10px}
.go .btn{height:44px;padding:0 20px;font-size:15px}
.go .btn svg.i{width:16px;height:16px}
.go-note{margin:14px 0 0;font-size:13.5px;line-height:1.5;color:var(--ink-3)}
.final .go{justify-content:center}
.final .go-note{text-align:center}
@media (max-width:640px){.go .btn{flex:1 1 auto;justify-content:center}}
