/* ---------- How it works view (#how-it-works) ----------
   v2 (2026-10-23): an editorial column (640px) with wide parts (960px): the cover film, "two tools, now one", then four
   crayon-outlined idea cards, each with a small static product picture on a marble (no scenes: plain HTML, readable). */
.hiw{position:relative;isolation:isolate;overflow-x:clip}
.hw{position:relative;display:flex;flex-direction:column;align-items:center;gap:20px;padding:128px var(--gut) 80px}
@media (min-width:768px){.hw{padding:176px max(32px,env(safe-area-inset-right,0px)) 120px max(32px,env(safe-area-inset-left,0px))}}   /* a sideways phone: off its notch */
@media (min-width:1024px){.hw{padding-left:48px;padding-right:48px}}
@media (min-width:1280px){.hw{padding-top:192px;padding-bottom:160px}}
.hw-deco{position:absolute;display:none;max-width:none;height:auto;pointer-events:none}
@media (min-width:1280px){.hw-deco{display:block}}

.hw-head,.hw-h2{width:100%;max-width:960px}
.hw-head{display:flex;flex-direction:column;gap:20px;padding-bottom:32px}
.hw-eyebrow{font:14.5px/1 var(--pixel);color:var(--fg-60)}
.hw h1{margin:0;font:500 var(--h1-sub)/1.2 var(--sans);letter-spacing:-.02em;color:var(--ink);text-wrap:balance;scroll-margin-top:128px}
.hw-cover{position:relative;isolation:isolate;width:100%;max-width:960px;aspect-ratio:2088/1000;margin:0 0 32px;overflow:hidden;border-radius:16px}
@media (min-width:768px){.hw-cover{margin-bottom:48px}}
.hw-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:bottom}
.hw-cover i{position:absolute;inset:0;background-size:256px 256px;opacity:.1}
.hw-cover .g1{background-image:url(assets/site/grain-dark.avif);mix-blend-mode:difference}
.hw-cover .g2{background-image:url(assets/site/grain-light.avif);mix-blend-mode:plus-lighter}
.hw-lede{max-width:34em;font:400 clamp(16.5px,1.3vw,18.5px)/1.55 var(--sans);color:var(--fg-70);text-wrap:pretty}

/* "That's the whole model." on a strip of yellow tape */
.hw-tape{position:relative;display:inline-block;margin-left:-16px;padding:8px 16px;transform:rotate(-2deg);font:16px/1.3 var(--pixel);color:var(--ink)}
.hw-tape::before{content:"";position:absolute;inset:0;background:rgba(255,213,89,.55);box-shadow:0 1px 2px rgba(0,0,0,.08);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 8px),transparent);mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 8px),transparent)}
.hw-tape span{position:relative}


.hw-h2{margin:0;padding:64px 0 32px;font:500 var(--h2)/1.2 var(--sans);letter-spacing:-.02em;color:var(--ink);text-wrap:balance;scroll-margin-top:128px}
@media (min-width:768px){.hw-h2{padding-top:88px}}
/* phones: a 116px band under the cover read as a dead gap; keep each heading closer to its own content */
@media (max-width:767px){.hw-h2{padding:48px 0 24px}.hw-cover{margin-bottom:8px}}


/* ---- "two tools, now one": a workflow tool + a data provider = Loopster ---- */
.hx-eq{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr) 44px minmax(0,1.15fr);align-items:stretch;gap:14px;width:100%;max-width:960px;margin:0;padding:0;list-style:none}
.hx-eq-box{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:8px;padding:22px 22px 20px;font:400 15px/1.45 var(--sans);color:var(--fg-70)}
.hx-eq-box .f-box path{stroke-width:2.8}
.hx-eq-lp .f-box .fill{fill:color-mix(in srgb,#ED410B 5%,rgba(255,255,255,.75))}
.hx-eq-h{display:flex;align-items:center;min-height:26px;font:500 17px/1.25 var(--sans);color:#18161D}
.hx-eq-h img{display:block;width:auto;height:26px}
/* the tools on each side: three logos, no names; Loopster's box says its price model in the text */
.hx-tools{display:flex;gap:8px;margin:auto 0 0;padding:10px 0 0;list-style:none}
.hx-tools li{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:rgba(255,255,255,.8);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.hx-tools img{display:block;width:26px;height:26px;border-radius:6px;object-fit:contain}
.hx-eq-lp b{font-weight:500;color:#18161D}
.hx-op{display:grid;place-items:center;color:rgba(0,0,0,.55)}
.hx-op svg{width:36px;height:36px}
@media (max-width:767px){
  .hx-eq{grid-template-columns:minmax(0,1fr);gap:6px}
  /* stacked, each box puts its three logos on the heading's line instead of a row of their own */
  .hx-eq-box{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;padding:18px}
  .hx-eq-box>p:not(.hx-eq-h){grid-column:1/-1}
  .hx-tools{grid-area:1/2;margin:0;padding:0;gap:6px}
  .hx-tools li{width:32px;height:32px;border-radius:8px}
  .hx-tools img{width:22px;height:22px;border-radius:5px}
  .hx-op{height:28px}
  .hx-op svg{width:26px;height:26px}
}

/* ---- the four ideas ---- */
.hx-ideas{display:flex;flex-direction:column;gap:clamp(36px,4vw,52px);width:100%;max-width:960px}
.hx-idea{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:clamp(24px,3.4vw,48px);padding:clamp(22px,2.4vw,32px);scroll-margin-top:110px}
.hx-flip{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.hx-flip .hx-well{order:-1}
.hx-text{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0}
.hx-title{margin:4px 0 0;font:500 var(--h3)/1.15 var(--sans);letter-spacing:-.018em;color:#18161D;text-wrap:balance}
.hx-kick{display:flex;align-items:center;gap:12px}
.hx-n{font:400 14px/1 var(--pixel);letter-spacing:.04em;color:color-mix(in srgb,var(--cc) 75%,#18161D)}
.hx-body{margin:0;font:400 clamp(15.5px,1.15vw,16.5px)/1.55 var(--sans);color:var(--fg-70);text-wrap:pretty}
.hx-body b{font-weight:500;color:#18161D}
.hx-more{margin:0;font:400 14.5px/1.5 var(--sans);color:var(--fg-60);text-wrap:pretty}
.hx-old{display:flex;align-items:baseline;gap:10px;width:100%;margin:4px 0 0;padding-top:14px;border-top:1.5px dashed color-mix(in srgb,var(--cc) 38%,transparent);font:400 14px/1.45 var(--sans);color:var(--fg-60)}
.hx-old span{flex:none;font:400 11px/1 var(--pixel);letter-spacing:.05em;text-transform:uppercase;color:color-mix(in srgb,var(--cc) 70%,#18161D)}
.hx-well{display:grid;place-items:center;aspect-ratio:auto;min-height:clamp(300px,30vw,380px);margin:0;padding:clamp(16px,2.4vw,30px);container-type:inline-size}
@media (max-width:860px){
  .hx-idea,.hx-flip{grid-template-columns:minmax(0,1fr)}
  .hx-flip .hx-well{order:0}
}
@media (max-width:480px){
  .hx-old{flex-direction:column;gap:6px}
  /* three nested insets (gutter, card, marble) left the app windows 252px wide at 360 */
  .hx-idea{padding:20px 16px}
  .hx-well{min-height:0;padding:20px 8px}
}

/* the pictures: white app windows in the scenes' type (Geist), sized for reading, reflowing on phones */
.hx-win,.hx-receipt,.hx-vs-card{font-family:"Geist",var(--sans);font-feature-settings:"tnum" 1;color:#1C1A24;-webkit-font-smoothing:antialiased}
.hx-win,.hx-vs-card{background:#fff;border-radius:12px;box-shadow:0 0 0 1px rgba(28,22,70,.07),0 26px 52px -22px rgba(30,24,60,.42),0 8px 18px -8px rgba(30,24,60,.18)}
.hx-win{width:100%;max-width:470px;overflow:hidden;font-size:13px;line-height:1.3}
.hx-bar{display:flex;align-items:center;gap:9px;height:32px;padding:0 12px;border-bottom:1px solid #EFEEF4;color:#7B788A;font-size:12px;white-space:nowrap}
.hx-dots{display:flex;gap:5px}
.hx-dots i{width:9px;height:9px;border-radius:50%;background:#E6E4EB}
.hx-bar-r{margin-left:auto;padding:3px 7px;border-radius:5px;background:#F2F1F6;font:10.5px/1 var(--pixel);color:#5B5868}
.hx-ic{width:16px;height:16px}

/* 01: a table with a Function column and a Loopgent column */
.hx-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12.5px}
.hx-table th,.hx-table td{padding:9px 10px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid #F1F0F5}
.hx-table th{background:#FAFAFC;font-size:11.5px;font-weight:500;color:#7B788A}
.hx-table th:first-child{width:29%}
.hx-table th:nth-child(2){width:39%;color:#127C8F}
.hx-table th:nth-child(3){color:#C4380A}
.hx-table td:nth-child(2){background:#F4FAFB}
.hx-table td:nth-child(3){background:#FFF7F2;color:#4A4656}
.hx-th{display:inline-flex;align-items:center;gap:6px;max-width:100%}
.hx-th-ic{width:14px;height:14px;flex:none}
.hx-fn{color:#1597AE}
.hx-co{display:inline-flex;align-items:center;gap:7px;font-weight:500}
.hx-co b{display:grid;place-items:center;width:18px;height:18px;border-radius:5px;color:#fff;font-size:10.5px;font-weight:600}
.hx-mail{display:inline-block;max-width:calc(100% - 18px);overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.hx-ok{width:12px;height:12px;margin-left:5px;vertical-align:middle;color:#1E9E62}
.hx-sk{display:block;height:8px;width:72%;border-radius:4px;background:linear-gradient(90deg,#EEEDF2 0,#F8F7FA 40%,#EEEDF2 80%) 0 0/200% 100%;animation:hx-sk 1.6s linear infinite}
@keyframes hx-sk{to{background-position:-200% 0}}
.hx-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px}
.hx-chip{padding:5px 9px;border-radius:6px;box-shadow:inset 0 0 0 1px #E6E4EC;font-size:12px;color:#5B5868}
.hx-legend{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:#7B788A;white-space:nowrap}
.hx-legend img{margin-left:6px}
/* phones (windows 280-344px at 360-430, 363-370px just past the 480px inset step): drop the letter tiles and checks
   so names and emails fit, and keep the type at 12px */
@container (max-width:370px){
  .hx-table{font-size:12px}
  .hx-table th,.hx-table td{padding:8px 6px}
  .hx-table th{white-space:normal;line-height:1.25;vertical-align:bottom}
  .hx-table th:first-child{width:26%}
  .hx-table th:nth-child(2){width:41%}
  .hx-co b,.hx-ok{display:none}
  .hx-co{display:inline}   /* the name alone, as plain text: the cell's ellipsis can then end it ("Northwi…" at 320px) */
  .hx-mail{max-width:100%}
  .hx-legend{display:none}
  .hx-vs-row .hx-logo{display:none}
  .hx-well .hx-rc-s,.hx-well .hx-rc-n,.hx-well .hx-vn span,.hx-well .hx-vp span,.hx-well .hx-zero{font-size:12px}   /* .hx-well: beats the base sizes set further down */
}

/* 02: a receipt where every line is $0.00 */
.hx-rc-wrap{filter:drop-shadow(0 18px 26px rgba(20,40,90,.3)) drop-shadow(0 3px 6px rgba(20,40,90,.16))}
.hx-receipt{width:min(100%,330px);padding:20px 22px 30px;background:#fff;transform:rotate(-1.5deg);font-size:13px;line-height:1.3;
  -webkit-mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50%/14px 100%;mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50%/14px 100%}
.hx-rc-h{font-size:14.5px;font-weight:600}
.hx-rc-s{margin-top:3px;font-size:11.5px;color:#7B788A}
.hx-receipt ul{margin:16px 0 0;padding:12px 0 0;border-top:1.5px dashed #DAD8E0;list-style:none}
.hx-receipt li{display:flex;align-items:baseline;gap:6px;padding:4px 0}
.hx-receipt li i{flex:1;border-bottom:1.5px dotted #D3D0DA;transform:translateY(-3px)}
.hx-receipt li b,.hx-rc-t b{font:12.5px/1 var(--pixel);font-weight:400;color:#1B8A55}
.hx-rc-t{display:flex;align-items:baseline;justify-content:space-between;margin-top:10px;padding-top:12px;border-top:1.5px dashed #DAD8E0;font-weight:600}
.hx-rc-t b{font-size:17px}
.hx-rc-n{display:flex;align-items:center;gap:7px;margin-top:14px;font-size:11.5px;color:#7B788A}
.hx-live{flex:none;width:7px;height:7px;border-radius:50%;background:#22B573;box-shadow:0 0 0 3px rgba(34,181,115,.18)}

/* 03: vendor prices with +$0 margin, and your own key at $0 */
.hx-vend{margin:0;padding:0;list-style:none}
.hx-vend li{display:grid;grid-template-columns:22px minmax(0,1fr) auto auto;align-items:center;gap:6px 11px;padding:11px 12px;border-bottom:1px solid #F1F0F5}
.hx-vend li:last-child{border-bottom:0}
.hx-logo{display:block;width:22px;height:22px;border-radius:6px;object-fit:contain}
.hx-vn{display:flex;flex-direction:column;gap:2px;min-width:0}
.hx-vn b{font-size:13px;font-weight:600}
.hx-vn span{font-size:11.5px;color:#7B788A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hx-vp{display:flex;align-items:baseline;gap:2px;justify-self:end}
.hx-vp b{font:13.5px/1 var(--pixel);font-weight:400}
.hx-vp span{font-size:11px;color:#7B788A}
.hx-zero{padding:4px 7px;border-radius:5px;background:#E8F6EE;color:#17804E;font-size:11px;font-weight:500;white-space:nowrap}
.hx-byok{background:#FAFAFC}
.hx-key{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#EDECF3;color:#5B5868}
.hx-key svg{width:15px;height:15px}
.hx-tog{position:relative;justify-self:end;width:28px;height:16px;border-radius:8px;background:#22B573}
.hx-tog i{position:absolute;top:2px;right:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2)}
/* phones: name over type on the left, price over "+$0 margin" on the right (the pill used to take a third line) */
@container (max-width:350px){
  .hx-vend li{grid-template-columns:22px minmax(0,1fr) auto;gap:4px 11px}
  .hx-vn{display:contents}
  .hx-vend .hx-logo,.hx-key{grid-row:1/3}
  .hx-vn b{grid-area:1/2}
  .hx-vn span{grid-area:2/2}
  .hx-vp{grid-area:1/3}
  .hx-zero,.hx-tog{grid-area:2/3;justify-self:end}
}

/* 04: credits (the old way, greyed) next to the wallet */
.hx-vs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:clamp(10px,3cqw,18px);width:min(100%,440px)}
.hx-vs-card{position:relative;padding:22px 16px 16px;font-size:12.5px;line-height:1.3}
.hx-vs-old{background:#F3F2F6;color:#77737F;opacity:.9;transform:rotate(-3deg) scale(.94)}
.hx-vs-new{transform:rotate(1.5deg)}
.hx-vs-h{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:#5B5868}
.hx-vs-ic{width:15px;height:15px;color:#C98A0C}
.hx-vs-big{margin:6px 0 10px;font-size:clamp(21px,6.4cqw,29px);font-weight:600;letter-spacing:-.02em;line-height:1.1}
.hx-vs-old .hx-vs-big{text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:rgba(119,115,127,.7)}
.hx-vs-l{display:flex;align-items:center;gap:7px;margin-top:5px;color:inherit}
.hx-vs-new .hx-vs-l{color:#4A4656}
.hx-vs-row{margin-top:12px;padding-top:10px;border-top:1px solid #F0EFF4}
.hx-vs-row .hx-logo{width:16px;height:16px;border-radius:4px}
.hx-vs-row span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hx-vs-row b{font:12px/1 var(--pixel);font-weight:400;color:#1C1A24}
.hx-tag{position:absolute;top:-10px;left:12px;display:inline-flex;align-items:center;height:21px;padding:0 8px;border-radius:5px;font:10.5px/1 var(--pixel);letter-spacing:.03em;background:#E6E4EB;color:#6E6A78}
.hx-vs-new .hx-tag{background:#FFE7A8;color:#6B4A00}

/* the end of the page */
/* the page's own buttons (QA 2026-10-25: the body had no way to sign up or book a call): under the film, and the trial
   again where the four ideas end */
.hw-ctas{display:flex;flex-wrap:wrap;gap:12px;width:100%;max-width:960px;margin-top:-16px}
@media (max-width:767px){.hw-ctas{margin-top:16px}}
.hx-end{display:flex;flex-direction:column;align-items:center;gap:20px;padding-top:clamp(56px,6vw,88px)}
.hx-end .btn{flex:none;margin-top:4px}
.hx-end .hw-tape{margin:0}
.hx-link{display:inline-flex;align-items:center;gap:7px;min-height:44px;margin:calc((20.8px - 44px) / 2) 0;padding:0 4px;font:500 16px/1.3 var(--sans);color:#18161D;text-decoration:underline;text-decoration-color:rgba(0,0,0,.25);text-underline-offset:4px}
.hx-link:hover{text-decoration-color:currentColor}
.hx-link svg{width:16px;height:16px;transition:transform .2s}
.hx-link:hover svg{transform:translateX(3px)}
@media (prefers-reduced-motion:reduce){.hx-link svg{transition:none}}

/* ---- "On this page" rail (wide screens) ---- */
.hw-toc{position:fixed;top:50%;left:32px;z-index:10;display:none;transform:translateY(-50%)}
/* only beside a wide enough column (at 1280 a hovered label ran into the first card) and with a mouse: its labels show on
   hover, so on a touch screen it was a row of unlabelled dashes */
@media (min-width:1360px) and (hover:hover){.hw-toc{display:block}}
.hw-toc ul{display:flex;flex-direction:column;gap:12px}
.hw-toc a{display:flex;align-items:center;gap:12px;font:400 11.5px/1.2 var(--sans);color:var(--fg-60);text-decoration:none}   /* keyboard focus: the site's ring */
.hw-toc i{display:block;width:16px;height:1px;background:var(--fg-20);transition:width .2s,background-color .2s}
.hw-toc span{opacity:0;transition:opacity .2s}
.hw-toc a:hover,.hw-toc a:focus-visible{color:#000}
.hw-toc a:hover i,.hw-toc a:focus-visible i,.hw-toc a.is-active i{width:24px;background:var(--fg-80)}
.hw-toc a:hover span,.hw-toc a:focus-visible span{opacity:1}

/* ---- footer CTA on this page: the live river art and its own copy ---- */
.foot-cta-river{display:none}
body[data-view="how-it-works"] .foot-cta-main{display:none}
body[data-view="how-it-works"] .foot-cta-river{display:flex}
.foot-cta.foot-cta-river{height:auto;min-height:448px;flex-direction:column;align-items:center;justify-content:flex-start;padding:48px 24px 0}
/* phones: when the copy is shorter than the card's min-height, the art still sits on the card's bottom edge (it
   stopped short, leaving a dark band above the link panel) */
@media (max-width:767px){.foot-cta-river .fc-in{margin-bottom:auto}}
.river-art{position:relative;z-index:-1;order:2;width:calc(100% + 48px);max-width:none;height:auto;margin:calc(14px - 28.3%) -24px 0;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 50%);mask-image:linear-gradient(to bottom,transparent,#000 50%)}
.foot-cta-river .fc-grain{position:absolute;inset:0;z-index:-1;background-size:256px 256px;opacity:.1;pointer-events:none}
.foot-cta-river .fc-grain.g1{background-image:url(assets/site/grain-dark.avif);mix-blend-mode:difference}
.foot-cta-river .fc-grain.g2{background-image:url(assets/site/grain-light.avif);mix-blend-mode:plus-lighter}
.fc-in{position:relative;display:flex;flex-direction:column;align-items:center;gap:32px;width:100%;max-width:1076px;text-align:center}
.fc-in>div{display:flex;flex-direction:column;gap:16px}
.fc-in .fc-h{font:500 clamp(36px,3.6vw,50.5px)/1.1 var(--sans);letter-spacing:-.02em;color:#fff}
/* phones: at 36px each sentence broke in two ("Stop paying for / facts."); this CTA only, the mountain one is waterfalls.css's */
@media (max-width:767px){.foot-cta-river .fc-in .fc-h{font-size:clamp(26px,7.8vw,36px);text-wrap:balance}}
.fc-in .fc-sub{max-width:30em;font:500 16px/1.45 var(--sans);color:rgba(255,255,255,.9);text-wrap:balance}
.fc-in .btn{width:100%;border-color:rgba(255,255,255,.14)}
@media (min-width:640px){.fc-in .btn{width:auto}}
@media (min-width:768px){
  .foot-cta.foot-cta-river{padding:64px 48px 0;border-radius:32px 32px 0 0}
  .river-art{width:calc(100% + 96px);margin:calc(1px - 28.3%) -48px 0}
  .fc-in{align-items:flex-start;text-align:left}
}
@media (min-width:1280px){
  /* text pinned to the top: centred, a three-line paragraph ran into the river art */
  .foot-cta.foot-cta-river{height:408px;min-height:0;flex-direction:row;align-items:flex-start;padding:56px 48px 0}
  /* the card is 1060 wide here (the body column, index.html --grid-body): the painting keeps the size it has on a 1180
     card (104% and -4.3% of 1180), centred, so the river stays clear of the paragraph; the card shows less of its sides */
  .river-art{position:absolute;top:-16px;left:-7.9%;z-index:auto;order:0;width:115.8%;margin:-4.79% 0 0}
  .fc-in{flex-direction:row;align-items:flex-end;justify-content:space-between}
}
@media (prefers-reduced-motion:reduce){.hw-toc i,.hw-toc span{transition:none}}
