/* Balance layer (21 Nov 2026, Jack: "everywhere needs to flow better ... cards the same size ... nothing in no man's land").
   Loaded last on every page, after every other stylesheet, so it settles alignment, spacing and card sizing without
   rewriting the older layers underneath it.
   A. Section heads (sitewide)   B. Automation page   C. CRM agent orb   D. Sitewide cards and spacing   E. Receptionist */

/* ---------- A. Section heads: the heading, then its lede directly under it (.section-head--keep opts a head out) ----------
   The split heads put the heading on the left and the paragraph on the right at a different height, so the paragraph
   floated on its own. One pattern everywhere: eyebrow, heading, lede, left aligned on the container edge. */
.ag-split--head,
.section-head--mid:not(.callout-panel),
.section-head:not(.section-head--keep):not(.callout-panel){display:block;max-width:none;text-align:left;border-top:0;padding-top:0}
.ag-split--head>*,.section-head--mid>*,.section-head:not(.section-head--keep)>*{margin-left:0;margin-right:0}
.ag-split--head>p,.ag-split--head>div+p,
.section-head--mid>p,
.section-head:not(.section-head--keep)>p{max-width:62ch;margin-top:.9rem;font-size:1.06rem;line-height:1.6}
.ag-split--head>div>.v4-key{margin-bottom:0}
.ag-split--head,.section-head--mid,.section-head:not(.section-head--keep){margin-bottom:clamp(1.5rem,3vw,2.25rem)}
.section-head[data-n]::before{display:block;margin-bottom:.6rem}

/* ---------- B. Automation page ---------- */

/* B1. Hero: the two columns centre on each other, and the Ask BISMO card keeps one size however long the chat gets.
   The conversation scrolls inside the card, newest at the bottom, so the orb above it is never pushed or covered. */
.v2-ag-hero .ag-hero__grid{align-items:center}
.v4-ask{gap:0}
.v4-ask__orb{width:min(60%,300px);margin:0 auto -1rem}
.v4-ask__panel{z-index:1;display:grid;grid-template-rows:auto auto auto auto auto}
.v4-ask__head{max-width:none;margin:0 0 .65rem;padding-bottom:.6rem;border-bottom:1px solid rgba(42,31,10,.1)}
.v4-ask__log{height:9.25rem;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;align-content:safe end;
  padding:.35rem .25rem .1rem 0;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 1.2rem);mask-image:linear-gradient(to bottom,transparent 0,#000 1.2rem)}
.v4-ask__msg{max-width:88%;margin:0}
.v4-ask__chips{margin:.7rem 0 .6rem}
.v4-ask__chip{white-space:nowrap}
.v4-ask__note{max-width:none;margin-top:.6rem}
@media (max-width:760px){.v4-ask__orb{width:min(58%,220px);margin-bottom:-.5rem}.v4-ask__log{height:11.5rem}}

/* B2. The CRM section starts closer to the hero, so its heading and lede read as one block. */
.ag-window-sec{padding-top:clamp(2.5rem,6vw,4.5rem)}
.ag-window-sec .bz-themes{margin-bottom:12px}
.ag-window-sec .cg-win{position:relative}
.ag-window-sec .cg{padding-inline:0}

/* B3. Tools wall: 28 logos, seven across and four down, every tile the same size. */
.bz-wall{gap:10px;margin-top:clamp(22px,3vw,30px)}
.bz-wall li{display:flex}
.bz-tool{flex:1;grid-template-rows:32px auto;gap:.55rem;min-height:0;height:auto;padding:.9rem .45rem .75rem;border-radius:12px}
.bz-logo{max-width:none;max-height:32px}
.bz-tool__lab{font-size:.66rem;letter-spacing:.05em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.bz-wall__note{max-width:none;margin-top:12px;font-size:.82rem}
@media (max-width:1100px){.bz-wall{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:560px){
  .bz-wall{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .bz-tool{grid-template-rows:26px auto;gap:.4rem;padding:.65rem .2rem .55rem;border-radius:10px}
  .bz-logo{max-height:26px;width:calc(var(--lw) * .85px)}
  .bz-tool__lab{font-size:.56rem;letter-spacing:.02em}
}

/* B4. The four CRM points: one ruled grid, equal columns. */
.ag-window-sec .rd-crm-points{gap:0 clamp(24px,4vw,48px);margin-top:clamp(28px,4vw,40px)}
.ag-window-sec .rd-crm-points li{padding:18px 0 20px;border-top:1px solid rgba(42,31,10,.16)}
.ag-window-sec .rd-crm-points b{font-size:1.2rem;margin-bottom:6px}

/* B5. One operator, a team behind it. The BISMO card spans both rows on the left; what it is built for and the wider
   team sit to its right, so the three blocks end level and nothing is left as empty space. */
.ag-org{grid-template-columns:minmax(0,.95fr) minmax(0,2fr);grid-template-rows:auto auto;gap:clamp(14px,2vw,22px);align-items:stretch}
.ag-org__boss{grid-row:1/span 2;align-content:center;justify-items:center;gap:1.1rem;padding:clamp(1.4rem,2.4vw,2rem);text-align:center;
  background:radial-gradient(120% 70% at 50% 18%,rgba(248,106,26,.16),transparent 60%),var(--x-ink,#2A1F0A)}
.ag-org__boss::after{display:none}
.v4-boss-orb{--pxs-dot:242,233,214;--pxs-spark:248,106,26;--pxs-shade:0,0,0;--pxs-shade-a:.35;width:min(78%,240px);margin:0 auto}
.ag-org__copy{display:grid;gap:.35rem}
.ag-org__role{margin:0;font:600 .72rem/1 var(--font-body,'Work Sans',sans-serif);letter-spacing:.16em;text-transform:uppercase;color:#F8A66E}
.ag-org__boss h3{font-size:2rem}
.ag-org__boss .ag-org__copy p:not(.ag-org__role){max-width:30ch;margin:.25rem auto 0}
.ag-org__flow{list-style:none;margin:0;padding:0;width:100%;display:grid;gap:8px;text-align:left}
.ag-org__flow li{display:flex;align-items:center;gap:.7rem;margin:0;padding:.6rem .8rem;border-radius:10px;background:rgba(242,233,214,.07);
  border:1px solid rgba(242,233,214,.12);font-size:.9rem;line-height:1.3;color:#F2E9D6}
.ag-org__flow li::before{content:none}
.ag-org__flow i{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(248,106,26,.18);color:#F8A66E;font-size:1rem}
.ag-org__tier{padding:clamp(1.1rem,2vw,1.5rem)}
.ag-org__label{margin-bottom:.4rem}
.ag-org__list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(1.2rem,3vw,2.2rem)}
.ag-org__list li,.ag-org__list li:first-child{padding:.8rem 0;border-top:1px solid var(--x-line,rgba(42,31,10,.12))}
.ag-org__list li:nth-child(-n+2){border-top:0}
.ag-org__names{columns:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(1rem,2.4vw,1.8rem)}
.ag-org__names li,.ag-org__names li:last-child{padding:.6rem 0;border-bottom:0;border-top:1px solid var(--x-line,rgba(42,31,10,.12))}
.ag-org__names li:nth-child(-n+3){border-top:0}
@media (max-width:1000px){
  .ag-org{grid-template-columns:minmax(0,1fr)}
  .ag-org__boss{grid-row:auto}
  .ag-org__names{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ag-org__names li:nth-child(3){border-top:1px solid var(--x-line,rgba(42,31,10,.12))}
}
@media (max-width:560px){
  .ag-org__list,.ag-org__names{grid-template-columns:minmax(0,1fr)}
  .ag-org__list li:nth-child(2),.ag-org__names li:nth-child(2){border-top:1px solid var(--x-line,rgba(42,31,10,.12))}
}

/* B6. Capability grid: equal cards, and the pointer back to the demo centred under them. */
.v4-can{gap:12px}
.v4-can li{display:flex;flex-direction:column;padding:1.1rem 1.1rem 1.2rem}
.v4-can__foot{margin:1.6rem auto 0;text-align:center;font-size:1.1rem}
.v4-can__foot a{color:#93380B;text-decoration:underline;text-underline-offset:3px}

/* B7. Pricing: the three steps, the plan note and the bigger builds share one left edge and one rhythm. */
#agents .ag-deal{margin-bottom:0}
#agents .rd-core-head,#agents .rd-builds-head{max-width:none;margin-top:clamp(2rem,4vw,3rem)}
#agents .rd-core-head p,#agents .rd-builds-head p{max-width:62ch}
#agents .rd-builds{gap:14px}
#agents .rd-builds li{display:flex;flex-direction:column}
#agents .rd-builds li em{margin-top:auto;padding-top:.9rem}
#agents .rd-builds-note{max-width:78ch;margin-top:14px}

/* B8. By industry: five equal cards in one row, then the guides as a two-column index. */
.ag-industries{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.ag-industries li{margin:0;padding:0;display:flex}
.ag-industries li::before{content:none}
.ag-industries a{position:relative;flex:1;display:flex;flex-direction:column;gap:.4rem;padding:1.05rem 1.05rem 2.6rem;border:1px solid rgba(42,31,10,.14);
  border-radius:14px;background:rgba(255,250,240,.72);color:#2A1F0A;text-decoration:none;transition:border-color .2s ease,transform .2s ease}
.ag-industries a:hover{border-color:rgba(147,56,11,.5);transform:translateY(-2px)}
.ag-industries b{font:500 1.15rem/1.2 'Fraunces RD','Fraunces','Fraunces Fallback',Georgia,serif}
.ag-industries span{font-size:.9rem;line-height:1.45;color:#4a3b20}
.ag-industries i{position:absolute;left:1.05rem;bottom:.95rem;font-size:1.05rem;color:#93380B}
.ag-guides{margin-top:clamp(2.5rem,5vw,3.5rem);display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,2fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:start}
.ag-guides__head h2{margin:0;font-size:clamp(1.5rem,2.4vw,1.9rem);line-height:1.15}
.ag-guides__head p{margin:.7rem 0 0;font-size:.98rem;line-height:1.55;color:#4a3b20}
.ag-guides__list{list-style:none;margin:0;padding:0;columns:2;column-gap:clamp(1.5rem,3vw,2.5rem)}
.ag-guides__list li{break-inside:avoid;margin:0;padding:.7rem 0;border-top:1px solid rgba(42,31,10,.14)}
.ag-guides__list li::before{content:none}
.ag-guides__list a{display:block;font-weight:600;color:#93380B;text-decoration:none}
.ag-guides__list a:hover{text-decoration:underline;text-underline-offset:2px}
.ag-guides__list span{display:block;margin-top:.15rem;font-size:.88rem;line-height:1.4;color:#4a3b20}
@media (max-width:1000px){
  .ag-industries{grid-template-columns:minmax(0,1fr);gap:8px}
  .ag-industries a{display:grid;grid-template-columns:9rem minmax(0,1fr) auto;align-items:center;gap:.4rem 1rem;padding:.85rem 1rem}
  .ag-industries i{position:static}
  .ag-guides{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  .ag-industries a{grid-template-columns:minmax(0,1fr) auto}
  .ag-industries span{grid-column:1;grid-row:2}
  .ag-industries i{grid-column:2;grid-row:1/span 2}
  .ag-guides__list{columns:1}
}
@media (prefers-reduced-motion:reduce){.ag-industries a{transition:none}.ag-industries a:hover{transform:none}}

/* ---------- C. BISMO at work inside the CRM window (assets/js/crm-orb.js) ---------- */
.cg-agent{position:absolute;left:0;top:0;z-index:6;width:56px;height:56px;pointer-events:none;will-change:transform}
.cg-agent__orb{--pxs-dot:242,233,214;--pxs-spark:248,106,26;--pxs-shade:0,0,0;--pxs-shade-a:.28;position:relative;width:56px;height:56px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(20,14,6,.7),rgba(20,14,6,.45) 64%,transparent);transition:box-shadow .3s ease}
.cg-agent__tag{position:absolute;left:50%;top:calc(100% + 4px);transform:translateX(-50%);display:flex;align-items:center;gap:.35rem;
  max-width:230px;padding:4px 10px;border-radius:999px;background:rgba(20,14,6,.85);border:1px solid rgba(248,106,26,.35);
  font:500 11px/1.2 var(--font-body,'Work Sans',sans-serif);color:#F2E9D6;white-space:nowrap;opacity:0;transition:opacity .25s ease}
.cg-agent__tag b{font-weight:700;letter-spacing:.06em;color:#F8A66E}
.cg-agent__tag span{overflow:hidden;text-overflow:ellipsis}
.cg-agent.is-labelled .cg-agent__tag{opacity:1}
.cg-agent.is-working .cg-agent__orb{box-shadow:0 0 0 1px rgba(248,106,26,.5),0 0 24px rgba(248,106,26,.4)}
.cg-card.is-agent{box-shadow:0 0 0 1.5px rgba(248,106,26,.8),0 0 28px -4px rgba(248,106,26,.45)}
.cg-card{transition:box-shadow .3s ease}
@media (max-width:720px){.cg-agent,.cg-agent__orb{width:46px;height:46px}.cg-agent__tag{font-size:10px;max-width:180px}}
@media (prefers-reduced-motion:reduce){.cg-agent__tag,.cg-agent__orb,.cg-card{transition:none}}

/* ---------- D. Sitewide: one content edge, even cards, no stranded notes ---------- */

/* D1. One left edge. .rd-wrap (home sections) and the home CRM window used their own widths, so their content started
   38px and 12px right of every .container on the same page. Both now match the 1220px container. */
.rd-wrap{max-width:calc(1220px + 2 * clamp(16px,4vw,48px))}
body[data-page="home"] .cg{max-width:calc(1220px + 2 * clamp(14px,2.4vw,32px))}

/* D2. Narrow blocks that were centred under left-aligned headings now share the left edge. Reading widths stay. */
.table-wrap,.rules{max-width:none;margin-inline:0}
.cta{max-width:none}
.section .container>.cta__row{justify-content:flex-start}
.container[style*="max-width:52rem"]{margin-left:max(var(--gut,20px),calc((100% - 1220px) / 2));margin-right:auto}
@media (min-width:62rem){.rules{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hero .note-mid{margin-inline:0;text-align:left}

/* D3. Gaps: notes and grids no longer sit flush against the block below them. */
.note-mid{margin-block:clamp(1.25rem,2.4vw,1.9rem)}
.grid+.table-wrap,.grid+.note-mid+.table-wrap{margin-top:clamp(1.5rem,3vw,2.5rem)}
.ag-fine{margin:1.25rem 0 0;max-width:80ch}

/* D4. Pricing tables: the row label gets room, and on phones a price and its unit stay together. */
.rate-table th[scope="row"]{width:30%}
@media (max-width:47.99rem){
  .table-wrap--stack .rate-table td{display:block;position:relative;padding-left:calc(40% + 1.75rem)}
  .table-wrap--stack .rate-table td::before{position:absolute;left:1rem;width:40%}
}

/* D5. Row heads with a button sit on the left edge. The home reviews section (heading, button and staggered cards) stays exactly
   as it was: it carries .section-head--keep, which every head rule in this file skips (Jack, 21 Nov 2026). */
.section-head--row:not(.section-head--keep){text-align:left;margin-inline:0}

/* D6. About: the second founder row starts on the same edge as the first. */
.founder-row{align-items:center}
.founder-row--flip .founder-row__body{justify-self:start;max-width:none}

/* D7. Work: the logo wall is 5 by 3 on desktop and 3 by 5 on phones, never 4+4+4+3. Every flow card looks alike. */
.wk-wall{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:760px){.wk-wall{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* D8. BISMO page: the hero clears the sticky nav, and the quote summary matches the form beside it. */
@media (min-width:900px){.bm-hero__in{padding-top:clamp(2.5rem,4vw,3.5rem)}}
.bm-qf{align-items:stretch}

/* D9. Footer: the copyright line and the legal links share a baseline (the analytics button is placed in D11). */
.footer__bottom{align-items:center}

/* D10. Phones: the home hero is as tall as its content, not a full screen with a gap under the buttons. */
@media (max-width:47.99rem){.rd-hero{min-height:0}}

/* D11. Notes under tables and card grids start on the same edge as the block above them. */
.note-mid:not(.note-mid--long){margin-inline:0;text-align:left;max-width:62ch}
.note-mid--long,.answer-panel,.next-list,.prose-cols{margin-inline:0}
.prose-cols{max-width:none}
.table-wrap+.prose-cols,.grid+.prose-cols{margin-top:clamp(1.25rem,2.4vw,1.9rem)}
.wf,.wf-key,.wf-note{margin-inline:0}
.la-links[style]{justify-content:flex-start!important}
.la-fine[style]{text-align:left!important}
body>.px-preferences{margin:0 0 24px max(var(--gut,20px),calc((100% - 1220px) / 2));font:inherit;font-size:.85rem}

/* D12. Question-and-answer sections: the heading on the left, the answers in a wide column on the right, the same
   shape as the accordion FAQs elsewhere. Before, a 52rem column sat centred (or hugged the left) on its own. */
@media (min-width:62rem){
  .faq-set .container[style*="max-width:52rem"]{max-width:1220px!important;width:min(100% - var(--gut,20px) * 2,1220px);margin-inline:auto;
    display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,2fr);column-gap:clamp(2rem,5vw,4rem);align-items:start}
  .faq-set .container[style*="max-width:52rem"]>.section-head{grid-column:1;grid-row:1/span 60;position:sticky;top:6rem;margin:0}
  .faq-set .container[style*="max-width:52rem"]>:not(.section-head){grid-column:2}
  .faq-set .container[style*="max-width:52rem"]>.section-head h2{font-size:clamp(1.7rem,2.6vw,2.3rem)}
}

/* D14. Work: each logo cell sizes to its column, not to its logo, so wide marks never overlap. */
.wk-wall a{grid-template-columns:minmax(0,1fr);padding-inline:.6rem}
@media (max-width:760px){.wk-wall__meta{justify-content:center;font-size:.58rem;letter-spacing:.06em}.wk-wall__meta i{display:none}}

/* D15. Phone price tables: a two-line label never touches the row line under it. */
@media (max-width:47.99rem){.table-wrap--stack .rate-table td{min-height:3.25rem}}

/* D16. Step rows fill their width whatever the count: four steps get four columns, not four of five. */
@media (min-width:62rem){
  .xs-steps:has(>li:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
  .xs-steps:has(>li:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
  .xs-steps:has(>li:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ---------- E. AI receptionist, "Have a listen" (#listen) ----------
   The orb sat loose in a wide column with the controls and three cramped cards beside it, and those cards ran straight
   into the sample-call cards. Now the orb is centred on its column and on the copy beside it, the three links are full
   width rows, and the sample calls start a clear gap below. */
.v4-talk{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:center;gap:clamp(2rem,5vw,4.5rem);margin:0 0 clamp(2.25rem,4vw,3.25rem)}
.v4-talk__orb{width:min(100%,360px);max-width:360px;margin:0 auto}
.v4-talk .v4-key{margin:.5rem 0 1.1rem}
.v4-talk__line{margin:1rem 0 0;max-width:46ch}
.v4-talk__links{grid-template-columns:minmax(0,1fr);gap:8px;margin-top:1.1rem}
.v4-talk__links li{display:grid;grid-template-columns:13.5rem minmax(0,1fr);gap:.2rem 1.1rem;align-items:baseline;padding:.8rem 1rem}
.v4-talk__links li::before{content:none}
.v4-talk__links b{margin:0}
@media (max-width:800px){.v4-talk{grid-template-columns:minmax(0,1fr)}.v4-talk__orb{max-width:240px}.v4-talk__links li{grid-template-columns:minmax(0,1fr)}}
