/* ---------- pricing view (#pricing): the loopster-x prototype/pricing, on the home page's grid and type scale ----------
   Plan cards sit in the live crayon-fill frames (9-sliced), the compare table keeps the live rows and tooltips,
   and the Scale column stands in a tall crayon frame of its own. */
:root{--hdr:66px;--fg-90:rgba(0,0,0,.9)}
@media (max-width:1023px){:root{--hdr:60px}}
@media (max-width:720px){:root{--hdr:56px}}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* the home view stays laid out while hidden, so the feature scenes keep their measurements */
body[data-view="pricing"] #home,body[data-view="how-it-works"] #home,body[data-view="waterfalls"] #home,body[data-view="unlimited-data"] #home,body[data-view="loopgents"] #home{position:absolute;top:0;left:0;right:0;height:0;overflow:hidden;visibility:hidden}

.pricing{position:relative;isolation:isolate;overflow-x:clip;padding:clamp(112px,8.6vw,124px) var(--gut) clamp(64px,6vw,88px)}
.pr-cloud,.pr-rim{position:absolute;z-index:-1;height:auto;max-width:none;pointer-events:none}
.pr-cloud{top:58px;left:-64px;width:181px}
@media (max-width:720px){.pricing{padding-top:136px}.pr-cloud{top:58px;left:-50px;width:132px}}
.pr-rim{display:none;top:745px;left:calc(50% + 694px);width:257px}
@media (min-width:1280px){.pr-cloud{top:92px;left:calc(50% - 937px);width:290px}.pr-rim{display:block}}
/* tablets and small desktops: the headline, now on the left edge, starts under the cloud (phones: the padding above) */
@media (min-width:721px) and (max-width:1279px){.pr-head h1{margin-top:38px}}

.pr-wrap{display:flex;flex-direction:column;gap:clamp(32px,3vw,44px);width:min(var(--grid),100%);margin:0 auto}
.pr-head{display:flex;flex-direction:column;align-items:flex-start;gap:14px;text-align:left}   /* phones and tablets: stacked, left-aligned (desktop splits it: v2-pricing.css) */
.pr-head h1{font:500 var(--h1-sub)/1.1 var(--sans);letter-spacing:-.02em;color:var(--ink);text-wrap:balance}
.pr-head p{max-width:32em;font:500 15.5px/1.45 var(--sans);color:var(--fg-80);text-wrap:pretty}
.pr-rule{height:1px;background:#BFBFBF}
.pr-note{font:400 13.5px/1.4 var(--sans);color:var(--fg-70)}

/* ---- plan cards ---- */
.plans{display:flex;flex-direction:column;align-items:center;gap:22px}
.plan{position:relative;display:flex;flex-direction:column;gap:20px;width:100%;max-width:480px;padding:clamp(22px,2vw,28px)}
.plan::before{content:"";position:absolute;inset:-9px;pointer-events:none;border-style:solid;border-width:58px;border-image-source:var(--frame);border-image-slice:116 fill;border-image-width:58px;border-image-repeat:repeat}
.plan>:not(.plan-badge){position:relative}
@media (min-width:1024px){.plans{flex-direction:row;align-items:stretch;gap:clamp(18px,1.8vw,26px)}.plan{flex:1 1 0;min-width:0;max-width:none}}
.plan-top{display:flex;flex-direction:column;gap:10px}
.plan-name{display:flex;align-items:center;justify-content:space-between;height:22px}
.plan-name h2{margin:0;font:18px/1 var(--pixel);color:#000}
.plan-name img{flex:none}
.plan-price{display:flex;align-items:center;gap:8px;white-space:nowrap;color:var(--pink)}
.plan-price b{font:500 clamp(29px,2.25vw,32.5px)/1.05 var(--sans);letter-spacing:-.02em}
.plan-price span{font:400 13.5px/1 var(--sans)}
.plan-rule{height:1px;background:var(--rule)}
.plan-for{min-height:2.9em;font:400 14px/1.45 var(--sans);color:var(--fg-70);text-wrap:pretty}
.plan-cta{display:flex;align-items:center;justify-content:center;height:48px;padding:0 20px;border:2px solid var(--fg-20);border-radius:6px;background:var(--cta);color:var(--ink);font:500 14.5px/1 var(--sans);text-decoration:none;white-space:nowrap;transition:filter .3s ease-out}
.plan-cta:hover{filter:brightness(.93)}
.plan-ctas{display:flex;flex-direction:column;gap:10px}
/* Book a call (Scale, Unlimited): the same frame as the trial button above (2px border, 6px corners, 48px), on white */
.plan-cta.plan-book{background:#fff}
.plan-cta.plan-book:hover{filter:none;background:#F4F3EF}
.plan-book-gap{display:block;height:48px}
@media (max-width:1023px){.plan-book-gap{display:none}}
.plan-inc{display:flex;flex-direction:column;gap:12px}
.plan-inc>p{font:500 13.5px/1.4 var(--sans);color:var(--fg-80)}
.plan-inc ul{display:flex;flex-direction:column;gap:11px}
.plan-inc li{display:flex;align-items:flex-start;gap:9px;font:400 13.5px/1.4 var(--sans);color:#000}
.pi{flex:none;display:grid;place-items:center;width:16px;height:21px}
.pi img{width:16px;height:16px}
.pi img.sm{width:13.5px;height:13.5px}
.plan-badge{position:absolute;top:0;left:50%;z-index:2;transform:translate(-50%,-50%);padding:5px 12px;border:1px solid #FF6DDF;border-radius:4px;background:#fff;font:11px/1 var(--pixel);color:#000;white-space:nowrap}

/* ---- info tooltips (hover, keyboard focus, tap) ---- */
.tip{position:relative;display:inline-flex;vertical-align:-2px;margin-left:6px;padding:0;border:0;border-radius:4px;background:none;cursor:help}
.tip>img{display:block}
.tip-pop{position:absolute;z-index:40;bottom:calc(100% + 9px);left:50%;width:270px;max-width:calc(100vw - 32px);padding:10px 13px;border:1px solid var(--fg-10);border-radius:8px;background:#fff;box-shadow:0 12px 28px -12px rgba(0,0,0,.3);font:400 12.5px/1.45 var(--sans);color:var(--fg-70);text-align:left;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;transform:translate(calc(-50% + var(--dx,0px)),4px);transition:opacity .15s ease-out,transform .15s ease-out,visibility .15s}
.tip-pop b{display:block;margin-bottom:4px;font-weight:500;color:var(--fg-90)}
.tip:focus-visible .tip-pop,.tip.is-open .tip-pop{opacity:1;visibility:visible;transform:translate(calc(-50% + var(--dx,0px)),0)}
/* hover only where the pointer really hovers: a tapped button keeps :hover (and :focus) on touch screens, which kept a popup
   open after a second tap had closed it (.is-open, set by the page script, is what taps toggle) */
@media (hover:hover){.tip:hover .tip-pop{opacity:1;visibility:visible;transform:translate(calc(-50% + var(--dx,0px)),0)}}
/* Escape dismisses it without moving focus or the pointer (WCAG 1.4.13); the page script lifts it once they move on */
.tip.is-hushed .tip-pop{opacity:0;visibility:hidden}
/* a 24px target around the 14px icon with a mouse (WCAG 2.5.8), 40px on touch, without moving the layout */
.tip::after{content:"";position:absolute;inset:-5px}
@media (pointer:coarse){.tip::after{content:"";position:absolute;inset:-13px}}

/* ---- compare table ---- */
.cmp{--label:34%}
.cmp-box{position:relative}
.cmp-hl{position:absolute;top:-4px;bottom:-12px;left:calc(var(--label) + (100% - var(--label)) / 3);width:calc((100% - var(--label)) / 3);border-style:solid;border-width:58px;border-image-source:url(assets/site/pricing/plan-scale.webp);border-image-slice:116 fill;border-image-width:58px;border-image-repeat:repeat;pointer-events:none}
.cmp table{position:relative;z-index:1;width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;text-align:left}
.cmp tr>:first-child{width:var(--label)}
.cmp thead :is(th,td){position:sticky;top:var(--hdr);z-index:3;padding:16px 14px 15px;border-bottom:1px solid #D7D7D7;transition:background-color .2s}
.cmp thead th{font:500 17px/1.2 var(--sans);color:var(--fg-90);text-align:center}
.cmp-name{display:inline-flex;align-items:center;gap:12px}
.cmp-price{display:flex;align-items:baseline;justify-content:center;gap:4px;margin-top:6px;font:400 12.5px/1 var(--sans);color:var(--fg-60)}
.cmp-price b{font:500 23.5px/1.1 var(--sans);letter-spacing:-.02em;color:var(--pc)}
.cmp thead th:nth-child(3),.cmp .end>:nth-child(3){border-bottom-color:#B5A5B2}
.cmp.is-stuck thead :is(th,td){background:var(--paper-veil),var(--page) var(--paper-img) 0 0/256px 256px fixed}
.cmp.is-stuck thead th:nth-child(3){background:linear-gradient(#FBB9EF,#FBB9EF) center/calc(100% - 18px) 100% no-repeat,var(--paper-veil),var(--page) var(--paper-img) 0 0/256px 256px fixed}
.cmp .grp th{padding:30px 14px 6px;font:500 16px/1.3 var(--sans);color:#000;white-space:nowrap}
.cmp tbody th[scope=row]{padding:13px 14px;font:500 13.5px/1.4 var(--sans);color:var(--fg-60);vertical-align:top}
.cmp tbody td{padding:13px 12px;font:400 13.5px/1.4 var(--sans);color:var(--fg-80);text-align:center;vertical-align:top}
.cmp .end>*{padding-bottom:28px;border-bottom:1px solid #D7D7D7}
.cmp .ck{display:inline-block;vertical-align:middle}
.cmp .no{display:inline-block;width:22px;height:2px;border-radius:1px;background:rgba(0,0,0,.22);vertical-align:middle}
.cmp-switch{display:none}

@media (max-width:1023px){.cmp{--label:30%}.cmp thead th{font-size:16px}.cmp-name{gap:10px}.cmp-price b{font-size:20px}}
@media (max-width:767px){
  .cmp{--label:62%}
  .cmp thead,.cmp-hl{display:none}
  /* one plan shown: the label column takes the room the single value column doesn't need (a fixed layout split it 50/50
     whatever --label said). And no layer of its own: it only lifted the table over the Scale outline, which phones hide,
     and it kept the info popups under the sticky plan switcher */
  .cmp table{z-index:auto;table-layout:auto}
  .cmp-switch{position:sticky;top:var(--hdr);z-index:5;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--fg-10);border-radius:6px;background:#fff}
  .cmp-switch button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:52px;border:1px solid transparent;border-radius:4px;background:none;color:var(--fg-90);font:500 13.5px/1 var(--sans);cursor:pointer}
  .cmp-switch small{font:400 12.5px/1 var(--sans);color:var(--fg-60)}
  .cmp-switch button[aria-pressed="true"]{border-color:var(--fg-10);background:var(--sel)}
  .cmp tbody th[scope=row]{padding:12px 8px 12px 4px}
  .cmp tbody td{padding:12px 4px}
  .cmp .grp th{padding:26px 4px 6px}
  .cmp[data-show="1"] tr>:nth-child(3),.cmp[data-show="1"] tr>:nth-child(4),
  .cmp[data-show="2"] tr>:nth-child(2),.cmp[data-show="2"] tr>:nth-child(4),
  .cmp[data-show="3"] tr>:nth-child(2),.cmp[data-show="3"] tr>:nth-child(3){display:none}
  .cmp .end>:nth-child(3){border-bottom-color:#D7D7D7}
  .plan-for{min-height:0}
}
@media (prefers-reduced-motion:reduce){.tip-pop,.plan-cta,.cmp thead :is(th,td){transition:none}}
.nw{white-space:nowrap}

/* the data tooltip: what is free, the database in numbers, fair use in one line */
.tip-pop.tip-rich{width:340px;padding:14px 16px 15px}
.tip-rich b{margin-bottom:6px;font-size:13.5px}
.tip-p{display:block}
.tip-p+.tip-p{margin-top:8px}
.tip-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:11px 0;padding:11px 0;border-block:1px solid var(--fg-10)}
.tip-stats>span{display:flex;flex-direction:column;gap:1px;font-size:11.5px;line-height:1.25;color:var(--fg-60)}
.tip-stats>span:first-child{grid-column:1 / -1}
.tip-stats em{font:600 15.5px/1.15 var(--sans);font-style:normal;letter-spacing:-.01em;color:#000}
.tip-stats>span:first-child em{font-size:19px}
.tip-fair{padding:9px 11px;border-radius:6px;background:#F4F3EE}
.tip-fair i{display:block;margin-bottom:2px;font-style:normal;font-weight:600;color:var(--fg-90)}
/* opens below when there is no room above (under the sticky header); --lift: one too tall for the screen even then rides
   up over its icon (set by the page's script on a tap) */
.tip.below .tip-pop{top:calc(100% + 9px - var(--lift,0px));bottom:auto;transform:translate(calc(-50% + var(--dx,0px)),-4px)}
.tip.below:focus-visible .tip-pop,.tip.below.is-open .tip-pop{transform:translate(calc(-50% + var(--dx,0px)),0)}
@media (hover:hover){.tip.below:hover .tip-pop{transform:translate(calc(-50% + var(--dx,0px)),0)}}
/* "Updated daily": a live dot next to the headline number */
.tip-stats>.tip-top{flex-direction:row;align-items:flex-end;justify-content:space-between;gap:12px}
.tip-top>span:first-child{display:flex;flex-direction:column;gap:1px}
.tip-upd{display:inline-flex;align-items:center;gap:7px;height:22px;margin-bottom:1px;padding:0 8px 0 7px;border-radius:5px;background:#E8F6EE;box-shadow:inset 0 0 0 1px rgba(35,162,109,.34);color:#1B7550;font:11px/1 var(--pixel);letter-spacing:.02em;white-space:nowrap}
.tip-upd::before{content:"";width:6px;height:6px;border-radius:50%;background:#23A26D;box-shadow:0 0 0 3px rgba(35,162,109,.18)}


/* fair use: plain words + a crayon-outlined button to the policy */
.pr-fair{display:flex;align-items:center;justify-content:space-between;gap:24px 40px;flex-wrap:wrap}
.pr-fair-txt{display:flex;flex-direction:column;gap:6px;max-width:40em}
.pr-fair-h{font:500 16px/1.3 var(--sans);color:#000}
.pr-fair-txt p:not(.pr-fair-h){font:400 14px/1.5 var(--sans);color:var(--fg-70)}
.pr-fair-btn{--cc:#ED410B;position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:10px;height:50px;padding:0 18px 0 16px;border:0;border-radius:14px;background:none;color:#18161D;font:500 15px/1 var(--sans);text-decoration:none;white-space:nowrap;cursor:pointer}
.pr-fair-btn .f-box{inset:-10px}
.pr-fair-btn .f-box path{stroke-width:2.8}
.pr-fair-btn .f-box .fill{transition:fill .25s ease-out}
.pr-fair-btn:hover .f-box .fill{fill:color-mix(in srgb,var(--cc) 10%,rgba(255,255,255,.6))}
.pr-fair-ic{width:24px;height:24px;flex:none;color:var(--cc)}
.pr-fair-ar{width:16px;height:16px;flex:none;color:var(--cc);transition:transform .25s ease-out}
.pr-fair-btn:hover .pr-fair-ar{transform:translateX(3px)}
@media (max-width:767px){.pr-fair-btn{width:100%;justify-content:center}}

/* table info buttons: the cards' pixel "i", a little quieter until you point at it */
.cmp .tip>img{opacity:.5;transition:opacity .2s}
.cmp .tip:focus-visible>img,.cmp .tip.is-open>img{opacity:1}
@media (hover:hover){.cmp .tip:hover>img{opacity:1}}
@media (hover:none){.cmp .tip>img{opacity:.75}}   /* nothing to point with: a step stronger from the start */
.cmp .tip-pop{width:320px;font-weight:400}
.tip-stats:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}

/* phones: the popups' small print a step larger */
@media (max-width:767px){
  .tip-pop{font-size:13.5px}
  .tip-rich b{font-size:14.5px}
  .tip-stats>span{font-size:12.5px}
}
/* the headline is two lines, one per sentence: a new line after "Stop counting credits." (Nick, 2026-10-25) */
.pr-h1s{display:block}
