/* ==========================================================================
   Page base (shared page shell)
   Shared by every page template: motion curves, A/B style tokens, the .page page base,
   section scaffolding (.section / .kicker / .eyebrow / .section-head*), the header zone
   rules and the style switch. Rules were moved verbatim from overview.css.
   Load order: chat.css -> page-base.css -> cta-banner.css -> <page>.css
   ========================================================================== */

/* ---------- Tokens ---------- */
/* Motion curves (shared by the whole page): use --ease-out for movement, entrances and expand (fast start, soft stop); use --ease for hover, color and fade in/out */
:root{--ease-out:cubic-bezier(.2,.7,.2,1);--ease:ease}

/* Font weight rules (three weights per style): body 400; all headings H1–H3 = --h-weight (600 in both A and B); small labels, emphasis and item names = --label-weight 600. Big numbers are fixed at 500 (a heavier weight at a large size looks too heavy) */
/* Text and accent colors shared by A and B: always point at Figma Semantic tokens, never write a copy per style.
   --band-* are the background / text / link / divider colors of a "color band" section (dark in A, light in B); names follow the role, not light or dark. Each style points at a token here once, and components only use --band-*. */
html:is([data-style],:root){--text:var(--foreground); --page-accent:var(--link); --brand:var(--color-primary-500)}
html[data-style="a"]{
  --bg:var(--color-base-white); --bg-alt:var(--background); --surface:var(--background); --surface-alt:var(--color-base-white);
  --line:var(--color-neutral-200);
  --tint:linear-gradient(160deg,var(--accent),var(--accent-hover)); --logo-opacity:.6;
  --h-weight:600; --h1-weight:600; --label-weight:600; --h2-size:round(clamp(var(--font-size-32),2.8vw,var(--font-size-40)),1px); --h1-size:round(clamp(var(--font-size-40),4.2vw,var(--font-size-60)),1px); --h3-l:round(clamp(var(--font-size-24),2vw,var(--font-size-28)),1px); --h3-m:var(--font-size-24); --h3-s:var(--font-size-18);
  --band:var(--dark); --band-text:var(--dark-foreground); --band-muted:var(--dark-muted-foreground); --band-link:var(--dark-accent); --band-line:var(--color-alpha-white-20);
}
html:not([data-style="a"]){
  --bg:var(--background); --bg-alt:var(--secondary); --surface:var(--color-base-white); --surface-alt:var(--color-base-white);
  --line:var(--border);
  --tint:linear-gradient(160deg,var(--tertiary),var(--color-neutral-300)); --logo-opacity:.45;
  --h-weight:600; --h1-weight:600; --label-weight:600; --h2-size:round(clamp(var(--font-size-32),2.8vw,var(--font-size-40)),1px); --h1-size:round(clamp(var(--font-size-40),4.2vw,var(--font-size-60)),1px); --h3-l:round(clamp(var(--font-size-24),2vw,var(--font-size-28)),1px); --h3-m:var(--font-size-24); --h3-s:var(--font-size-18);
  --band:var(--tertiary); --band-text:var(--foreground); --band-muted:var(--body); --band-link:var(--link); --band-line:var(--border-strong);
}
html:is([data-style],:root){--card-gap:var(--spacing-6);--header-h:76px}
html:is([data-style],:root) body{background:var(--bg);color:var(--text)}

/* ---------- Shared base ---------- */
.page{font-family:var(--font-stack);color:var(--text);overflow-x:clip}
.page *{box-sizing:border-box}
.page img{display:block;max-width:100%}
.page :is(h1,h2,h3,p):not(:where([data-slot])){margin:0}
.page h3:has(>button){font-size:inherit} /* The h3 only wraps a button (flow tabs, accordion trigger); the button sets the real size, so the h3 should not add the browser default 18.72px */ /* Same weights as before; for React components (with data-slot) the component sets its own margin */
.page .container{box-sizing:border-box;width:min(100%,var(--container-width));margin:0 auto;padding-inline:var(--container-padding)}
/* Section vertical spacing: --sec-y. A alternates background colors, so it keeps 112px; B uses one background for the whole page, so adjacent sections would add up to double, hence 96px (192px between sections); inside color bands (customer cases, CTA) the padding is also 96px */
.page{--sec-y:var(--spacing-28);--band-y:var(--spacing-28)}
html:not([data-style="a"]) .page{--sec-y:var(--spacing-24);--band-y:var(--spacing-24)}
.page .section{padding:var(--sec-y) 0;background:var(--bg)}
.page .section--alt{background:var(--bg-alt)}
.page .kicker{color:var(--page-accent);font-size:var(--font-size-14);font-weight:var(--font-weight-semibold);line-height:1.5}
.page .eyebrow{color:var(--page-accent);font-size:var(--font-size-14);font-weight:var(--font-weight-semibold);letter-spacing:.04em}
.page .section-head{margin-bottom:var(--spacing-14)}
.page .section-head h2{font-size:var(--h2-size);font-weight:var(--h-weight);line-height:1.25;letter-spacing:-.02em}
.page .section-head p{margin-top:var(--spacing-4);color:var(--body);font-size:var(--font-size-16);line-height:1.7}
.page .section-head--center{text-align:center}
.page .section-head--split{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--spacing-10)}
.page .section-head--split p{max-width:440px;margin:0;text-align:right}

/* Style switch (for the proposal) */
.style-switch{position:fixed;top:var(--spacing-24);right:var(--spacing-4);z-index:60;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--radius-md);background:var(--color-base-black)}
.style-switch a{display:grid;place-items:center;width:var(--spacing-9);height:var(--spacing-9);color:var(--dark-foreground);font-size:var(--font-size-14);font-weight:var(--font-weight-bold);text-decoration:none}
.style-switch a[aria-current="page"]{color:var(--color-primary-500)}

/* Header: transparent with white text at the top of A's dark hero; returns to a white background after scrolling or when a menu is open */
#header-zone .site-header{transition:background-color .3s var(--ease),border-color .3s var(--ease)}
/* B uses only two backgrounds: the light --bg (including header and footer) plus the dark showcase --stage; cards are always white. The header shares the page background with a thin bottom line, and becomes translucent with blur when scrolling */
html:is([data-style],:root) #header-zone .site-header{background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom-color:var(--line)}
/* When the mega menu / mobile menu is open, the header turns white together with the panel so they read as one panel */
html:is([data-style],:root):has(#mega-panel:not([hidden])) #header-zone .site-header,html:is([data-style],:root) body.mobile-menu-open #header-zone .site-header{background:var(--color-base-white);-webkit-backdrop-filter:none;backdrop-filter:none}
/* The mega menu shadow spreads downward only: the part above the panel's top edge is clipped so the shadow does not fall on the header and tint its white background blue */
#mega-panel{clip-path:inset(0 -100vw -200px -100vw)}

@media (width < 48rem){
  /* Mobile type scale: H1 / H2 / H3 sizes are fluid clamp() tokens (their minimums are the mobile values 40 / 32 / 24), so only the secondary H3 steps are overridden here: 20 / 18 */
  html:is([data-style],:root){--card-gap:var(--spacing-4);--h3-m:var(--font-size-20);--h3-s:var(--font-size-18)}
  html:is([data-style],:root) .page{--sec-y:var(--spacing-18);--band-y:var(--spacing-18)}
  .page .section-head{margin-bottom:var(--spacing-9)}
  .page .section-head--split{display:block}
  .page .section-head--split p,.page .section-head--split [data-variant=link]{display:block;margin-top:var(--spacing-3-5);text-align:left}
   /* No more divider lines; use larger spacing instead */
  .style-switch{top:auto;bottom:96px}
}
@media(prefers-reduced-motion:reduce){
  #header-zone .site-header{transition:none}
}

/* Optional mobile flow content is enabled by its page layout. */
.flow__mobile-content{display:none}

/* Consecutive sections on one backdrop share 80px desktop / 56px mobile. */
.page>section.section-shared-before{padding-top:40px!important}
.page>section.section-shared-after{padding-bottom:40px!important}
@media(max-width:700px){.page>section.section-shared-before{padding-top:28px!important}.page>section.section-shared-after{padding-bottom:28px!important}}
