/* /widget page blocks only (GQC 2026-11-10). Everything else comes from site.css. Real captures only. */

/* page headings: one line on desktop (the site caps .s-h at 640px) */
#reach .s-h,#agent .s-h,#how .s-h,#install .s-h,#free .s-h{max-width:1180px}
#reach .s-h p,#agent .s-h p,#free .s-h p{max-width:640px}
#reach .s-h h2,#agent .s-h h2,#how .s-h h2,#install .s-h h2,#free .s-h h2{max-width:none}
/* two proof figures side by side from 561px; phones keep site.css's one-column stack (GQC-SITE-05: at 390 the
   two-column rule out-specified the stack and «+8.7 مليون» overprinted «5,300+») */
@media (min-width:561px){#wg-nums .figs3{grid-template-columns:repeat(2,minmax(0,300px));justify-content:center}}
#wg-nums .figs3 > div{min-width:0}


/* hero: the home's arch stage; the new widget fills the window like the home's chat card (top-rounded, rising from
   the bottom edge, cropped by it) */
.hero .stage .win .card.wg-card{height:100%;margin:0;padding:0;border-radius:26px 26px 0 0;overflow:hidden;background:#F8F7F4;box-shadow:0 30px 70px -30px rgb(var(--gb-color-night-rgb) / .45),0 0 0 1px rgb(var(--gb-color-ink-rgb) / .06)}
.hero .stage .win .card.wg-card img{display:block;width:100%;height:auto}

/* two sides of one conversation: the visitor's widget → your inbox */
.wg-two{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,2.3fr);gap:28px;align-items:center;margin-top:44px}
.wg-two figure{margin:0;display:flex;flex-direction:column;gap:12px}
.wg-two figcaption{font-size:var(--gb-type-caption-size);color:var(--gb-text-muted)}
.wg-two figcaption b{display:block;color:var(--gb-text);font-size:var(--gb-type-ui-size);font-weight:600}
.wg-two .w img{display:block;width:100%;max-width:300px;height:auto;border-radius:22px;box-shadow:0 0 0 1px var(--hair),0 30px 60px -35px rgb(var(--gb-color-night-rgb) / .45)}
.wg-two .i img{display:block;width:100%;height:auto;border-radius:16px}
.wg-arrow{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--gb-color-ink);color:#fff}
.wg-arrow svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}

/* four steps in a row (the order is the information) */
.wg-steps{list-style:none;margin:40px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;counter-reset:s}
.wg-steps li{counter-increment:s;border-top:1px solid var(--gb-border-strong);padding-top:18px}
.wg-steps li::before{content:counter(s);display:block;font-family:var(--gb-font-display);font-weight:300;font-size:var(--gb-type-figure-2-size);line-height:1;margin-bottom:14px;color:var(--gb-text-brand)}
.wg-steps b{display:block;font-size:var(--gb-type-body-size);line-height:var(--gb-type-body-lh);font-weight:600;margin-bottom:6px}
.wg-steps span{font-size:var(--gb-type-body-sm-size);color:var(--gb-text-muted);line-height:var(--gb-type-body-sm-lh)}

/* install: the code line + platforms */
.wg-inst{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:start;margin-top:40px}
.wg-code{max-width:100%;direction:ltr;text-align:left;background:var(--gb-color-ink);color:#e9e9ee;border-radius:14px;padding:18px 20px;font-family:var(--gb-font-mono,ui-monospace,monospace);font-size:var(--gb-type-caption-size);line-height:1.7;overflow-x:auto;white-space:nowrap}
.wg-code .t{color:#a3b1ff}.wg-code .a{color:var(--gb-color-green)}.wg-code .s{color:#f2d58a}
.wg-plat{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.wg-plat li{display:flex;align-items:center;gap:8px;height:44px;padding:0 16px;border:1px solid var(--gb-border-strong);border-radius:999px;font-size:var(--gb-type-ui-size);background:var(--gb-surface)}
.wg-plat img{width:20px;height:20px}
.wg-inst .pts{grid-template-columns:1fr;margin-top:24px;gap:18px}

/* free vs plans: two quiet columns, no prices */
.wg-free{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin-top:40px}
.wg-free > div{border:1px solid var(--gb-border-strong);border-radius:18px;padding:28px;background:var(--gb-surface)}
.wg-free > div.on{border-color:var(--gb-color-ink);box-shadow:0 0 0 1px var(--gb-color-ink)}
.wg-free h3{font-family:var(--gb-font-display);font-weight:400;font-size:var(--gb-type-heading-2-size);line-height:var(--gb-type-heading-2-lh);margin:0 0 4px}
.wg-free .k{font-size:var(--gb-type-caption-size);color:var(--gb-text-muted);margin:0 0 18px}
.wg-free ul{list-style:none;margin:0;padding:0}
.wg-free li{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-top:1px solid var(--hair);font-size:var(--gb-type-body-sm-size)}
.wg-free li span:last-child{font-weight:600;text-align:left}
.wg-free a{display:inline-block;margin-top:18px;font-size:var(--gb-type-ui-size);color:var(--gb-text);text-decoration:underline;text-underline-offset:4px}

/* close: no arch, just the box */
.wg-close{padding:120px var(--pad) 120px;text-align:center}
.wg-close h2{font-family:var(--gb-font-display);font-weight:300;font-size:var(--gb-type-display-3-size);line-height:var(--gb-type-display-3-lh);margin:0 0 12px}   /* the section-head step; was 34→52 at line-height 1.2 (under the Arabic 1.3 rule) */
.wg-close p{color:var(--gb-text-muted);margin:0 0 28px;font-size:var(--gb-type-lead-size);line-height:var(--gb-type-lead-lh)}
.wg-close .go-build{margin:0 auto;max-width:560px}

.statband .sl-src{display:none}

@media (max-width:860px){
  .wg-two{grid-template-columns:minmax(0,1fr);justify-items:center}
  .wg-two .i{width:100%}
  .wg-arrow{transform:rotate(-90deg)}
  .wg-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wg-inst,.wg-free{grid-template-columns:minmax(0,1fr)}
  .wg-two figure{width:100%;align-items:center}
  .wg-two figcaption{text-align:center}
  .wg-close{padding:80px var(--gutter)}
}
@media (max-width:560px){ .wg-steps{grid-template-columns:minmax(0,1fr)} .wg-free > div{padding:22px} }
/* phones (owner 2026-11-10): the URL box stacks — the field on its own row, the button full width under it */
@media (max-width:560px){
  .go-build{flex-wrap:wrap;padding:6px;gap:6px}
  .go-build input{flex:1 1 0;padding:12px 4px}
  .go-build button{flex:1 0 100%;justify-content:center;height:48px}
}
