/* Site v4 (21 Nov 2026). Sitewide layer loaded after exp.css on every page.
   1. Loose orb host   2. Film grain   3. Greek key accents   4. Sticky "Get a quote"
   5. Ask-BISMO demo   6. Receptionist orb   7. Capability grid   8. Logo strip   9. Reduced motion */

:root{--pxs-dot:#2A1F0A;--pxs-spark:#F86A1A;--pxs-shade:#2A1F0A;--pxs-shade-a:.16;
  --v4-key:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cpath d='M0 19h8V5h16v10H14V9h4v2' fill='none' stroke='%2393380B' stroke-width='2'/%3E%3Cpath d='M18 11v-2h-4v6h10V5H8v14h32' fill='none' stroke='%2393380B' stroke-width='2'/%3E%3C/svg%3E")}

/* 1. Orb host. orb.js draws a canvas 1.7x the box, centred, so dots can drift past the edge. */
[data-orb]{position:relative;aspect-ratio:1/1;width:100%;max-width:520px;margin-inline:auto}
.pxorb-canvas{position:absolute;pointer-events:none;display:block}

/* 2. Film grain over most pages. The tile is grey noise at ~30% alpha; at this opacity it reads as paper, not dirt.
   Legal and utility pages stay clean. */
body::after{content:"";position:fixed;inset:0;z-index:2147483000;pointer-events:none;
  background:url(../visuals/rd-grain-bg.webp) 0 0/200px 200px;opacity:.28}
body[data-page="privacy"]::after,body[data-page="terms"]::after,body[data-page="cookies"]::after,
body[data-page="refunds"]::after,body[data-page="audit-report"]::after{content:none}

/* 3. Greek key (meander). A thin band above the footer and under section eyebrows marked with .v4-key. */
.footer{position:relative}
.footer::before{content:"";position:absolute;left:0;right:0;top:0;height:10px;background:var(--v4-key) 0 0/20px 10px repeat-x;opacity:.55}
.v4-key{display:block;height:10px;width:min(240px,60%);margin:.6rem 0 1rem;background:var(--v4-key) 0 0/20px 10px repeat-x;opacity:.7}
.v4-key--c{margin-inline:auto}
.v4-numeral{font-family:Fraunces,Georgia,serif;font-variant-numeric:oldstyle-nums;letter-spacing:.18em;color:#93380B;font-size:.82rem;text-transform:uppercase}

/* 4. Sticky quote button, injected by v4.js. Sits above cookie banners' z-index but below dialogs. */
.v4-quote{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:900;
  display:inline-flex;align-items:center;gap:.5rem;padding:.8rem 1.15rem;border-radius:999px;
  background:#93380B;color:#FFF8EC;font:600 .98rem/1 "Work Sans",system-ui,sans-serif;text-decoration:none;
  box-shadow:0 8px 24px rgba(42,31,10,.28),inset 0 0 0 1px rgba(255,255,255,.12);
  transition:transform .25s ease,opacity .25s ease,background-color .2s ease}
.v4-quote:hover{background:#7a2e08}
.v4-quote:focus-visible{outline:3px solid #F86A1A;outline-offset:3px}
.v4-quote svg{width:18px;height:18px;flex:none}
.v4-quote[data-hide]{opacity:0;transform:translateY(140%);pointer-events:none;visibility:hidden;transition:transform .25s ease,opacity .25s ease,visibility 0s .25s}
@media (max-width:560px){.v4-quote{padding:.75rem 1rem;font-size:.92rem}}
/* Under 860px the cookie banner spans the bottom edge, so the button rides above it (analytics.js sets the variable). */
@media (max-width:860px){.v4-quote{bottom:calc(max(16px,env(safe-area-inset-bottom)) + var(--px-consent-clear,0px))}}
@media print{.v4-quote,body::after{display:none}}

/* 5. Ask-BISMO hero demo (automation.html). */
.v4-ask{position:relative;display:grid;gap:.75rem;align-content:start}
.v4-ask__orb{max-width:380px;width:78%;margin:-1rem auto -2rem}
.v4-ask__panel{position:relative;background:rgba(255,250,240,.86);border:1px solid rgba(42,31,10,.16);border-radius:18px;
  padding:1rem;box-shadow:0 14px 40px rgba(42,31,10,.12);backdrop-filter:blur(6px)}
.v4-ask__head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font:600 .8rem/1.2 "Work Sans",sans-serif;
  letter-spacing:.06em;text-transform:uppercase;color:#93380B;margin-bottom:.6rem}
.v4-ask__head small{font-weight:500;letter-spacing:0;text-transform:none;color:#6b5a3a}
.v4-ask__log{min-height:7.5rem;max-height:15rem;overflow-y:auto;display:grid;gap:.5rem;align-content:end;
  font:400 .97rem/1.45 "Work Sans",sans-serif;color:#2A1F0A;scrollbar-width:thin}
.v4-ask__msg{padding:.55rem .8rem;border-radius:14px;max-width:92%;white-space:pre-line}
.v4-ask__msg--you{justify-self:end;background:#2A1F0A;color:#FFF8EC;border-bottom-right-radius:4px}
.v4-ask__msg--bismo{justify-self:start;background:#F2E9D6;border-bottom-left-radius:4px}
.v4-ask__msg--wait{color:#6b5a3a;font-style:italic}
.v4-ask__chips{display:flex;flex-wrap:wrap;gap:.4rem;margin:.7rem 0 .55rem}
.v4-ask__chip{border:1px solid rgba(147,56,11,.35);background:transparent;color:#93380B;border-radius:999px;padding:.4rem .7rem;
  font:500 .85rem/1.1 "Work Sans",sans-serif;cursor:pointer;min-height:36px}
.v4-ask__chip:hover{background:rgba(147,56,11,.08)}
.v4-ask__form{display:flex;gap:.45rem}
.v4-ask__form input{flex:1;min-width:0;border:1px solid rgba(42,31,10,.25);border-radius:12px;padding:.7rem .8rem;background:#fff;
  font:400 1rem/1.2 "Work Sans",sans-serif;color:#2A1F0A}
.v4-ask__form input:focus{outline:2px solid #F86A1A;outline-offset:1px}
.v4-ask__form button{border:0;border-radius:12px;background:#93380B;color:#FFF8EC;padding:0 1rem;font:600 .95rem "Work Sans",sans-serif;cursor:pointer;min-height:44px}
.v4-ask__form button:disabled{opacity:.55;cursor:default}
.v4-ask__note{margin:.55rem 0 0;font-size:.78rem;line-height:1.4;color:#6b5a3a}
.v2-ag-hero .ag-hero__grid{align-items:start}

/* 6. Receptionist talking orb (ai-receptionist.html #listen). */
.v4-talk{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center;margin-top:2rem}
.v4-talk__orb{max-width:340px}
.v4-talk__btn{display:inline-flex;align-items:center;gap:.55rem;border:0;border-radius:999px;background:#2A1F0A;color:#FFF8EC;
  padding:.85rem 1.3rem;font:600 1rem "Work Sans",sans-serif;cursor:pointer;min-height:48px}
.v4-talk__btn[aria-pressed="true"]{background:#93380B}
.v4-talk__line{min-height:3.2em;margin:1rem 0 0;font:italic 400 1.15rem/1.45 Fraunces,Georgia,serif;color:#2A1F0A}
.v4-talk__links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin:1.4rem 0 0;padding:0;list-style:none}
.v4-talk__links li{border:1px solid rgba(42,31,10,.16);border-radius:14px;padding:.8rem;background:rgba(255,250,240,.7);font-size:.92rem;line-height:1.4}
.v4-talk__links b{display:block;font-family:Fraunces,Georgia,serif;font-size:1.02rem;margin-bottom:.2rem;color:#93380B}
@media (max-width:800px){.v4-talk{grid-template-columns:minmax(0,1fr)}.v4-talk__orb{max-width:240px}.v4-talk__links{grid-template-columns:minmax(0,1fr)}}

/* 7. Capability grid (automation.html, replaces the old start-to-paid trace). */
.v4-can{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin:2rem 0 0;padding:0;list-style:none}
.v4-can li{border:1px solid rgba(42,31,10,.14);border-radius:16px;padding:1rem;background:rgba(255,250,240,.72);transition:transform .2s ease,border-color .2s ease}
.v4-can li:hover{transform:translateY(-2px);border-color:rgba(147,56,11,.45)}
.v4-can b{display:block;font-family:Fraunces,Georgia,serif;font-size:1.08rem;margin-bottom:.25rem;color:#2A1F0A}
.v4-can span{font-size:.92rem;line-height:1.45;color:#4a3b20}
.v4-can i{display:block;font-size:1.4rem;color:#93380B;margin-bottom:.4rem}
.v4-can__foot{margin-top:1.5rem;font:italic 400 1.2rem/1.4 Fraunces,Georgia,serif;color:#2A1F0A}
@media (max-width:980px){.v4-can{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.v4-can{grid-template-columns:minmax(0,1fr)}}

/* 9. Reduced motion: no slide on the sticky button, orb draws still (orb.js handles its own frame cap). */
@media (prefers-reduced-motion:reduce){.v4-quote{transition:none}.v4-can li{transition:none}.v4-can li:hover{transform:none}}

/* Automation #team: the orb on the dark BISMO panel. */
.v4-boss-orb{--pxs-dot:#F2E9D6;--pxs-spark:#F86A1A;--pxs-shade:#000;--pxs-shade-a:.3;width:min(70%,260px);margin:6px auto 4px}

/* Receptionist orb: tappable, and the line under the button never jumps the layout. */
.v4-talk__orb{cursor:pointer}
.v4-talk__btn svg{flex:none}
.v4-talk .v4-key{margin:.4rem 0 1rem}

/* 10. Blog (tools/blog/publish-due.mjs writes site/blog/). Readable measure, tables scroll on phones. */
.blog-hero h1{max-width:22ch}
.blog-meta{margin-top:.8rem;font-size:.92rem;color:#6b5a3a}
.blog-post{max-width:68ch;font-size:1.06rem;line-height:1.7}
.blog-post h2{margin:2.2rem 0 .7rem;font-family:Fraunces,Georgia,serif;font-size:clamp(1.35rem,2.4vw,1.7rem);line-height:1.25}
.blog-post h3{margin:1.6rem 0 .5rem;font-size:1.15rem}
.blog-post p,.blog-post ul,.blog-post ol{margin:0 0 1.05rem}
.blog-post a{color:#93380B;text-decoration:underline;text-underline-offset:2px}
.blog-table{overflow-x:auto;margin:1.2rem 0;border:1px solid rgba(42,31,10,.14);border-radius:12px}
.blog-table table{width:100%;border-collapse:collapse;font-size:.95rem}
.blog-table th,.blog-table td{padding:.6rem .8rem;text-align:left;border-bottom:1px solid rgba(42,31,10,.1);vertical-align:top}
.blog-table th{background:#F2E9D6;font-weight:600}
.blog-next{display:flex;flex-wrap:wrap;gap:.75rem;max-width:68ch;margin-top:2.4rem;padding-top:1.6rem;border-top:1px solid rgba(42,31,10,.14)}
.blog-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:1rem;margin:0;padding:0;list-style:none}
.blog-list a{display:grid;gap:.45rem;height:100%;padding:1.2rem;border:1px solid rgba(42,31,10,.14);border-radius:16px;background:rgba(255,250,240,.72);color:#2A1F0A;text-decoration:none;transition:border-color .2s ease,transform .2s ease}
.blog-list a:hover{border-color:rgba(147,56,11,.45);transform:translateY(-2px)}
.blog-list b{font-family:Fraunces,Georgia,serif;font-size:1.18rem;line-height:1.3}
.blog-list span:last-child{font-size:.94rem;line-height:1.5;color:#4a3b20}
.blog-more{margin-top:2rem}
@media (prefers-reduced-motion:reduce){.blog-list a{transition:none}.blog-list a:hover{transform:none}}
