/* Copied verbatim from Claude Design, Sibonix Design System V54 LOCKED, 12/11/2026 (SIBN-294). Do not edit here: change it in Claude Design. */
/* ==========================================================================
   V53 + V54 · locked 12/11/2026 · add after site.css (uses its tokens)
   Markup:
   V53  <aside class="pcta" aria-label="Free check">
          <h3 class="h3">Can ChatGPT see <span class="serif">your store?</span></h3>
          <button class="btn btn-ink" type="button" data-lead-open>Check my store</button>
        </aside>                                   (inside .col .prose)
   V54  <div class="lead-overlay" hidden>
          <div class="lead-dialog" role="dialog" aria-modal="true" aria-labelledby="leadT">
            <span class="lead-handle" aria-hidden="true"></span>
            <div class="lead-band"><button class="lead-close" type="button" aria-label="Close">[close svg]</button></div>
            <div class="lead-body">
              <h2 class="h3" id="leadT">Free AI visibility <span class="serif">check.</span></h2>
              <p class="label lead-step">Step 1 of 2</p>
              <div class="lead-frame"><iframe title="Free AI visibility check" src="[tally embed url]"></iframe></div>
            </div>
          </div>
        </div>
   End  <section class="section lead-end"><div class="wrap"><div class="lead-panel">
          <div class="hd"><span class="chip">Free check</span><h2 class="h2">Can ChatGPT see <span class="serif">your store?</span></h2></div>
          <div class="formcard"><div class="lead-card-head"><span class="h4">Free AI visibility check</span><span class="lead-card-step">Step 1 of 2</span></div>
            <div class="lead-frame"><iframe title="Free AI visibility check" src="[tally embed url]"></iframe></div></div>
        </div></div></section>
   ========================================================================== */

/* ---------- V53 · CTA inside a blog post (the V1 band, stacked for the 680 column) ---------- */
.pcta{background:var(--mari);color:var(--ink);border-radius:var(--r-band);padding:48px;display:flex;flex-direction:column;align-items:flex-start;gap:24px}
.pcta .h3{margin:0}
/* space in the article: prose gap 24 + 24 = 48 above and below */
.prose .pcta{margin-block:24px}
.prose .pcta + h2,.prose .pcta + h3{margin-top:0}   /* a heading right after keeps the 48, not 72 */
@media (max-width:639px){

 .pcta{padding:32px 24px}                 /* corners come from --r-band (32 on phone) */
 .pcta .btn{width:100%}
 .prose .pcta{margin-block:8px}           /* 24 + 8 = 32 above and below */
}

/* ---------- V54 · popup (V29b): Butter dialog, Marigold shapes band ---------- */
body.lead-open{overflow:hidden}
.lead-overlay{position:fixed;inset:0;z-index:90;background:rgba(22,19,15,.6);display:flex;align-items:center;justify-content:center;padding:32px;overflow-y:auto;overscroll-behavior:contain}
.lead-overlay[hidden]{display:none}
.lead-dialog{position:relative;width:100%;max-width:560px;margin:auto;background:var(--butter);color:var(--ink);border-radius:var(--r-card);overflow:hidden}
.lead-band{position:relative;height:120px;background:var(--mari);overflow:hidden}
.lead-band::before{content:"";position:absolute;right:-30px;top:-40px;width:150px;height:150px;border-radius:999px;background:var(--ink)}
.lead-band::after{content:"";position:absolute;right:140px;top:38px;width:120px;height:38px;border-radius:999px;background:var(--butter);transform:rotate(-16deg)}
.lead-close{position:absolute;inset-inline-start:32px;top:24px;z-index:1;width:44px;height:44px;border-radius:999px;border:2px solid var(--butter);background:var(--butter);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
.lead-close svg{width:18px;height:18px}
.lead-body{padding:32px;display:flex;flex-direction:column;gap:20px}
.lead-body .h3{margin:0}
.lead-step{margin:0}                      /* .label: 13 / 700 / uppercase / muted */
.lead-handle{display:none}

/* the frame that holds the Tally iframe (Tally: transparent background, title hidden, dynamic height) */
.lead-frame{width:100%}
.lead-frame iframe{display:block;width:100%;min-height:148px;border:0;background:transparent}

/* phone: bottom sheet */
@media (max-width:639px){
 .lead-overlay{align-items:flex-end;padding:0}
 .lead-dialog{max-width:none;margin:0;border-radius:var(--r-card) var(--r-card) 0 0;max-height:100%;overflow-y:auto}
 .lead-handle{display:block;position:absolute;left:50%;top:8px;z-index:2;width:40px;height:4px;margin-left:-20px;border-radius:999px;background:var(--ink);opacity:.4}
 .lead-band{height:96px}
 .lead-band::before{right:-24px;top:-32px;width:120px;height:120px}
 .lead-band::after{right:112px;top:30.4px;width:96px;height:30.4px}

 .lead-close{inset-inline-start:20px;top:16px}
 .lead-body{padding:24px 24px calc(32px + env(safe-area-inset-bottom,0px));gap:16px}
}

/* ---------- V54 · end of the post: the V51 Butter panel, header inside, formcard beside it ---------- */
.lead-panel{background:var(--butter);color:var(--ink);border-radius:var(--r-band);padding:56px;display:grid;grid-template-columns:minmax(0,1fr) 520px;gap:56px;align-items:center}
.lead-panel .hd{display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.lead-panel .h2{font-size:56px;margin:0}
.lead-panel .formcard{max-width:520px}
.lead-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.lead-card-step{font-size:13px;font-weight:700;color:var(--muted);white-space:nowrap}
@media (max-width:1023px){
 .lead-panel{padding:40px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px}
}
@media (max-width:639px){
 .lead-panel{border-radius:var(--r-card);padding:32px 20px;grid-template-columns:minmax(0,1fr);gap:24px}
 .lead-panel .hd{gap:12px}
 .lead-panel .h2{font-size:36px}
}

/* V53 inside v2-post.css posts · add after v2-post.css
   article.prose is a flex column with gap 24 (site.css), so margin + gap = the spacing */
.legal .prose > .pcta{margin-block:24px}               /* 24 gap + 24 = 48 above and below */
.legal .prose > :has(+ .pcta){margin-bottom:0}
.legal .prose > .pcta + *{margin-top:0}
.legal .prose .pcta .h3{font-size:var(--h3);line-height:1;letter-spacing:-.03em;margin:0;padding:0;border:0}
@media (max-width:639px){
 .legal .prose > .pcta{margin-block:8px}               /* 24 gap + 8 = 32 above and below */
}

/* ---------- V54.1 · phone sheet while the keyboard is open (.kb set by JS) · Claude Design, locked 12/11/2026 ---------- */
@media (max-width:639px){
 .lead-overlay.kb{inset:auto 0 auto 0;top:var(--vvt,0px);height:var(--vvh,100%);align-items:flex-end}
 .lead-overlay.kb .lead-dialog{max-height:100%;overflow-y:auto}
 .lead-overlay.kb .lead-body{padding-bottom:16px}
}

/* V54.1a · band folds away, close joins the title row, H3 title */
@media (max-width:639px){
 .lead-overlay.kb .lead-band,.lead-overlay.kb .lead-handle{display:none}
 .lead-overlay.kb .lead-close{top:16px;inset-inline-start:auto;inset-inline-end:16px;background:transparent;border-color:var(--ink)}
 .lead-overlay.kb .lead-body{padding-top:16px;gap:12px}
 .lead-overlay.kb .lead-body .h3{padding-inline-end:56px;min-height:44px;padding-top:9px}
}
