/* ==========================================================================
   qais-crm.css — shared design system for the qais.app public site
   2026-10-30 redesign ("Command City", prototype G): dark by default with a
   light mode, glass panels, a centered pill nav, amber accents.

   Theme:   <html data-theme="dark|light">, set before paint by the inline
            snippet in each page head (key: localStorage "qais-theme"),
            toggled by the nav button qais-crm.js adds.
   Type:    Archivo (display + body, variable width) · JetBrains Mono (data)
   Legacy:  the 2026-08 token names (--ink, --paper, --gold, --slate…) are
            kept as aliases so page-level styles follow the new theme.
   ========================================================================== */
/* Fonts are served from qais.app itself (no Google Fonts request, so no visitor IP
   goes to a third party; GDPR). Latin + Latin Extended subsets. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter Tight carries only the ampersand */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-amp.woff2) format('woff2');
  unicode-range: U+26;
}

:root {
  --bg: #0A0B0D;
  --bg-2: #0E1013;
  --bg-3: #13161A;
  --ov: 255, 255, 255;
  --panel: rgba(var(--ov), .022);
  --panel-2: rgba(var(--ov), .04);
  --line: rgba(var(--ov), .085);
  --line-2: rgba(var(--ov), .15);
  --fg: #ECEDEF;
  --fg-2: #A6AAB1;
  --fg-3: #858A92;
  --amber: #FFB224;
  --amber-text: #FFB224;
  --amber-soft: rgba(255, 178, 36, .13);
  --amber-line: rgba(255, 178, 36, .45);
  --live: #3FBF7F;
  --danger: #E5675B;
  --card-a: #0E1013;
  --card-b: #0A0B0D;
  --nav-bg: rgba(10, 11, 13, .72);
  --sheet-bg: rgba(14, 16, 19, .97);
  --field-bg: rgba(0, 0, 0, .35);
  --radius-xl: 28px;
  --radius-l: 20px;
  --radius-m: 14px;
  --wrap: 1560px;
  --pad: clamp(16px, 3.2vw, 40px);
  --sans: "Inter Tight", "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;

  /* 2026-08 names, now aliases */
  --ink: var(--fg);
  --ink-2: var(--bg-2);
  --ink-3: var(--bg-3);
  --paper: var(--bg);
  --card: var(--bg-2);
  --gold: var(--amber);
  --gold-deep: var(--amber-text);
  --gold-ink: var(--amber-text);
  --gold-soft: var(--amber-soft);
  --slate: var(--fg-2);
  --muted: var(--fg-3);
  --line-ink: var(--line);
  --font-sans: var(--sans);
  --font-mono: var(--mono);
  --r-sm: 8px;
  --r-md: var(--radius-m);
  --r-lg: var(--radius-l);
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 64px rgba(0, 0, 0, .45);
}
[data-theme="light"] {
  --bg: #F3F2EE; --bg-2: #EAE9E4; --bg-3: #E2E1DB;
  --ov: 12, 14, 18;
  --panel: rgba(12, 14, 18, .025); --panel-2: rgba(12, 14, 18, .045);
  --line: rgba(12, 14, 18, .10); --line-2: rgba(12, 14, 18, .18);
  --fg: #101113; --fg-2: #4B4F56; --fg-3: #5A5E66;
  --amber-text: #835000; --amber-soft: rgba(255, 178, 36, .18);
  --live: #17633D; --danger: #B23A2E;
  --card-a: #FBFAF7; --card-b: #F3F2EE;
  --nav-bg: rgba(243, 242, 238, .8); --sheet-bg: rgba(251, 250, 247, .97); --field-bg: #FFFFFF;
  --shadow-1: 0 1px 2px rgba(12, 14, 18, .06), 0 8px 24px rgba(12, 14, 18, .07);
  --shadow-2: 0 2px 6px rgba(12, 14, 18, .08), 0 24px 64px rgba(12, 14, 18, .16);
  color-scheme: light;
}
/* dark islands: live scenes, product frames, ink bands keep the night palette in light mode */
.dark-island, .band-ink, .hero-panel, .frame {
  --bg: #0A0B0D; --bg-2: #0E1013; --bg-3: #13161A; --ov: 255, 255, 255;
  --panel: rgba(255, 255, 255, .022); --panel-2: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .085); --line-2: rgba(255, 255, 255, .15);
  --fg: #ECEDEF; --fg-2: #A6AAB1; --fg-3: #858A92;
  --amber-text: #FFB224; --amber-soft: rgba(255, 178, 36, .13); --field-bg: rgba(0, 0, 0, .35);
  --card-a: #0E1013; --card-b: #0A0B0D; --live: #3FBF7F;
  color: var(--fg);
      border-bottom: 1px solid var(--bg-3);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* film grain over everything, very quiet */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="light"] body::after { opacity: .035; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 450; margin: 0; letter-spacing: -.025em; line-height: 1.04; font-stretch: 116%; }
h1 { font-size: clamp(40px, 4.9vw, 72px); letter-spacing: -.035em; font-stretch: 118%; line-height: 1; }
h2 { font-size: clamp(32px, 4.2vw, 60px); letter-spacing: -.035em; }
h3 { font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -.02em; line-height: 1.1; }
h4 { font-size: 17px; letter-spacing: -.01em; line-height: 1.25; font-stretch: 105%; }
p { margin: 0; }
button { font: inherit; }
::selection { background: var(--amber); color: #111; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* accessibility: skip link (qais-crm.js adds it when a page has none) */
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 200; transform: translateY(-160%);
  padding: 10px 16px; border-radius: 999px; background: var(--amber); color: #16110A;
  font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .15s;
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--fg-2); border-radius: 1px; }
.eyebrow.is-hot::before { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.micro { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.lede { color: var(--fg-2); font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.6; max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-gold, .btn-hot { background: var(--amber); color: #16110A; }
.btn-gold:hover, .btn-hot:hover { background: #FFC255; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: rgba(var(--ov), .02); }
.btn-ghost:hover { border-color: rgba(var(--ov), .35); background: rgba(var(--ov), .05); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn .arr { font-family: var(--mono); font-weight: 400; transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.text-link {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg);
  text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .2s;
}
.text-link:hover { border-color: var(--fg); }

/* glass + cursor light (qais-crm.js tracks --mx/--my on .glow) */
.glass { background: linear-gradient(180deg, rgba(var(--ov), .035), rgba(var(--ov), .012)); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--ov), .07), transparent 60%);
}
.glow:hover::before, .glow.is-lit::before { opacity: 1; }

/* ---------- nav: brand left, links centered in a pill, actions right ---------- */
.nav { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.is-scrolled, .nav.menu-open { background: var(--nav-bg); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); height: 72px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; font-stretch: 110%; justify-self: start; }
.brand img { width: 26px; height: 28px; }
.brand .tld { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--fg-3); letter-spacing: 0; font-stretch: 100%; }
.nav-links { display: flex; gap: 2px; padding: 5px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(var(--ov), .03); }
.nav-links a { font-size: 14.5px; color: var(--fg-2); text-decoration: none; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--fg); background: rgba(var(--ov), .05); }
.nav-links a[aria-current="page"] { color: var(--fg); background: rgba(var(--ov), .08); }
.nav-links .nav-links-signin { display: none; }
.nav-spacer { display: none; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav-signin { font-size: 14.5px; color: var(--fg-2); text-decoration: none; }
.nav-signin:hover { color: var(--fg); }
.theme-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg);
  display: inline-grid; place-items: center; cursor: pointer; transition: background .2s; padding: 0;
}
.theme-btn:hover { background: rgba(var(--ov), .06); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
[data-theme="light"] .theme-btn .sun { display: block; }
[data-theme="light"] .theme-btn .moon { display: none; }
.nav-burger {
  display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--fg);
  cursor: pointer; align-items: center; justify-content: center; font-size: 18px; padding: 0;
}
/* three-line icon (pages that still carry the "☰" character render that instead) */
.nav-burger span { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor; transition: transform .25s; }
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }
.nav-burger[aria-expanded="true"] span { background: transparent; }
.nav-burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }
/* a slim nav (brand and Sign in only, e.g. signup) keeps Sign in on the right at every width */
.nav-inner:not(:has(.nav-links)) { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 1120px) {
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-links { display: none; }
  .nav-signin { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-actions { gap: 12px; }
  .nav-inner:not(:has(.nav-links)) .nav-signin { display: inline; }
  .nav.menu-open .nav-links {
    display: grid; position: absolute; left: 12px; right: 12px; top: 72px; gap: 2px; padding: 10px;
    border-radius: 20px; background: var(--sheet-bg); border: 1px solid var(--line-2);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .nav.menu-open .nav-links a { padding: 14px; font-size: 16px; border-radius: 12px; color: var(--fg); }
  .nav.menu-open .nav-links .nav-links-signin { display: block; }
}
@media (max-width: 700px) { .nav .brand .tld { display: none; } }
@media (max-width: 420px) { .nav .btn-sm { display: none; } }

/* ---------- hero (inner pages) ---------- */
.hero { padding: clamp(48px, 6vw, 96px) 0 clamp(28px, 3vw, 48px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 .accent { color: var(--fg-3); }
.hero-sub { font-size: clamp(16px, 1.25vw, 18.5px); color: var(--fg-2); max-width: 56ch; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-derisk { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }

/* workspace slug picker */
.ws-picker {
  margin-top: 28px; display: flex; align-items: center; height: 56px; max-width: 460px;
  border-radius: 16px; border: 1px solid var(--line-2); background: var(--field-bg); padding: 0 6px 0 18px;
  transition: border-color .2s, box-shadow .2s;
}
.ws-picker:focus-within { border-color: var(--amber-line); box-shadow: 0 0 0 4px rgba(255, 178, 36, .08); }
.ws-picker input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--fg); font-family: var(--mono); font-size: 15px; padding: 0; }
.ws-picker input::placeholder { color: var(--fg-3); }
.ws-picker .suffix { font-family: var(--mono); font-size: 15px; color: var(--fg-3); padding-right: 12px; }
.ws-picker button {
  height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(var(--ov), .06);
  color: var(--fg); font-family: var(--sans); font-weight: 600; font-size: 14px; cursor: pointer;
}
.ws-picker button:hover { background: rgba(var(--ov), .12); }
.ws-picker-label { margin-top: 10px; font-size: 13.5px; color: var(--fg-3); }
.ws-picker-label a { color: var(--fg-2); }

/* ---------- framed screenshot ---------- */
.shot-frame { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-2); overflow: hidden; }
.shot-frame .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.shot-frame .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.shot-frame .url { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); background: var(--bg); border-radius: 6px; padding: 3px 12px; }
.shot-frame img { width: 100%; height: auto; }
.shot-frame .shot-fallback { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; background: var(--bg-3); color: var(--fg-3); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }

/* agent execution receipt */
.hero-visual { position: relative; }
.receipt { position: absolute; left: -26px; bottom: 28px; width: min(320px, 82%); background: #0E1013; color: #ECEDEF; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-m); box-shadow: var(--shadow-2); padding: 14px 16px; }
.receipt-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.receipt-head img { width: 20px; height: auto; }
.receipt-head .status { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: #7BD9A4; }
.receipt-line { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.tool-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tool-chips--inset { padding-left: 6px; }
.tool-chip { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 6px; background: rgba(var(--ov), .06); border: 1px solid var(--line); color: var(--amber-text); }
.receipt-audit { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .12); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: rgba(255, 255, 255, .5); }

/* ---------- bands ---------- */
.band-ink { background: linear-gradient(180deg, var(--card-a), var(--card-b)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ink .eyebrow { color: var(--fg-2); }
.stats { padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.stats-grid > * { padding: 26px 28px; border-right: 1px solid var(--line); display: grid; gap: 8px; text-align: left; }
.stats-grid > *:last-child { border-right: 0; }
.stat-num { font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.03em; font-stretch: 112%; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.stat-num--word { font-size: clamp(24px, 2.3vw, 34px); white-space: nowrap; }
.stat-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 5vw, 88px) 0; }
.section--tight { padding-top: 0; }
/* pages put .section/.page-hero and .wrap on one element; keep the wrap's side gutter */
.section.wrap, .page-hero.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(28px, 3vw, 48px); }
.section-head.split { max-width: none; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head .lede { color: var(--fg-2); }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* ---------- tabs ---------- */
.tabs-nav { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--field-bg); margin-bottom: 28px; }
.tab-btn {
  appearance: none; border: 0; background: transparent; color: var(--fg-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: background .2s, color .2s;
}
.tab-btn .n { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.tab-btn:hover { color: var(--fg); }
.tab-btn[aria-selected="true"] { color: var(--fg); background: rgba(var(--ov), .09); }
.tab-btn[aria-selected="true"] .n { color: var(--amber-text); }
.tab-panel { display: none; }
.tab-panel.is-active { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-panel h3 { margin-bottom: 12px; }
.tab-panel .blurb { color: var(--fg-2); margin-bottom: 20px; }
.feat-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.feat-list li { position: relative; padding-left: 18px; font-size: 15.5px; color: var(--fg-2); } /* block, so "<b>Label</b>: text" reads as one line */
.feat-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 1px; background: var(--amber); }
.feat-list b { font-weight: 600; color: var(--fg); }

/* ---------- agents ---------- */
.agent-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.agent-chat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; display: grid; gap: 14px; box-shadow: var(--shadow-2); }
.msg { max-width: 92%; }
.msg .who { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.msg .who img { width: 15px; height: auto; }
.msg .bubble { border-radius: 12px; padding: 11px 14px; font-size: 14.5px; line-height: 1.5; }
.msg-user { justify-self: end; text-align: right; }
.msg-user .who { justify-content: flex-end; }
.msg-user .bubble { background: var(--bg-3); color: var(--fg); }
.msg-qais .bubble { background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--fg); }
.agent-cards { display: grid; gap: 16px; }
.agent-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 20px; background: var(--panel); }
.agent-card h4 { margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.agent-card p { font-size: 14.5px; color: var(--fg-2); }
.agent-card .tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--amber-text); border: 1px solid var(--amber-line); padding: 2px 8px; border-radius: 999px; }

/* ---------- breadth areas ---------- */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.area { padding: 24px 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; display: grid; gap: 8px; align-content: start; transition: background .25s; }
.area:nth-child(4n) { border-right: 0; }
.area:nth-last-child(-n+4) { border-bottom: 0; }
.area:hover { background: rgba(var(--ov), .025); }
.area .count { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.area h4 { font-size: 18px; }
.area p { font-size: 14px; color: var(--fg-2); line-height: 1.5; }

/* ---------- industry packs (switchboard; generated markup) ---------- */
.packs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.packs .tabs-nav.packs-nav {
  display: grid; gap: 0; padding: 0; margin: 0; border-radius: var(--radius-l); background: transparent; border: 1px solid var(--line);
  overflow: hidden; position: sticky; top: 96px;
}
.packs .tab-btn {
  width: 100%; justify-content: space-between; text-align: left; border-radius: 0; padding: 12px 18px;
  border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 400;
}
.packs .tab-btn:last-child { border-bottom: 0; }
.packs .tab-btn:hover { background: rgba(var(--ov), .025); }
.packs .tab-btn[aria-selected="true"] { background: rgba(var(--ov), .06); }
.packs .tab-btn:focus-visible { outline-offset: -2px; }
.packs .tab-panel.packs-panel.is-active { display: block; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--bg-2); padding: clamp(22px, 3vw, 36px); min-height: 420px; }
.packs-lede { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.packs-lede p { color: var(--fg-2); flex-basis: 100%; max-width: 64ch; }
.packs-more { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.packs-more:hover, .packs-more:focus-visible { border-color: var(--fg); }
.packs-more::after { content: ' \2192'; }
.pack-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pack { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--panel); }
.pack-id { font-family: var(--mono); font-size: 10.5px; color: var(--fg-3); letter-spacing: .04em; }
.pack h4 { font-size: 16.5px; }
.pack p { font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.pack-state { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); display: inline-flex; align-items: center; gap: 7px; }
.pack-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--fg-3); }
.pack-state--on { color: var(--live); }
.pack-state--on::before { background: var(--live); border-color: var(--live); }

/* ---------- mobile app ---------- */
.mobile-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.mobile-grid .lede { margin-top: 14px; }
.mobile-grid .hero-ctas { margin-top: 24px; }
.store-badge { display: inline-flex; border-radius: 9px; }
.store-badge img { display: block; height: 48px; width: auto; }
.store-badge:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.phone-shot { width: min(300px, 70%); height: auto; margin: 0 auto; border-radius: 30px; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }

/* ---------- video ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 760px; margin: 0 auto; }
.video-card { margin: 0; }
.video-card video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border-radius: 22px; border: 1px solid var(--line); }
.video-card figcaption { margin-top: 12px; text-align: center; font-size: 14.5px; color: var(--fg-3); }
.video-card figcaption b { display: block; color: var(--fg); font-size: 16px; font-weight: 500; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); position: relative; }
.plan.is-featured { border-color: var(--amber-line); background: linear-gradient(180deg, rgba(255, 178, 36, .05), var(--bg-2) 45%); }
.plan .flag { position: absolute; top: -11px; left: 22px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--amber); color: #16110A; white-space: nowrap; }
.plan .name { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; }
.plan .price { font-size: clamp(34px, 3vw, 46px); font-weight: 500; letter-spacing: -.04em; font-stretch: 112%; line-height: 1.05; }
.plan .per { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--fg-3); }
.plan .blurb { color: var(--fg-2); font-size: 14.5px; margin: 6px 0 12px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--fg-2); }
.plan ul li { display: flex; gap: 10px; align-items: baseline; }
.plan ul li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 1px; background: var(--amber); transform: translateY(-2px); }
.plan .btn { margin-top: auto; }

/* ---------- trust row ---------- */
.trust-row { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust-items { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; align-items: center; }
.trust-items .micro, .trust-items span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.trust-note { text-align: center; margin-top: 12px; font-size: 14px; color: var(--fg-3); }
.plans + .trust-note { margin-top: 22px; }
.trust-note a { color: var(--fg-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; letter-spacing: -.01em; font-stretch: 104%;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; transition: transform .3s;
  background: linear-gradient(var(--fg-2), var(--fg-2)) center/12px 1.5px no-repeat, linear-gradient(var(--fg-2), var(--fg-2)) center/1.5px 12px no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { color: var(--fg-2); padding: 0 0 24px; max-width: 64ch; }

/* ---------- final CTA ---------- */
.final-cta { text-align: center; padding: clamp(64px, 8vw, 120px) 0; background: radial-gradient(700px 360px at 50% 110%, rgba(255, 178, 36, .10), transparent 70%), var(--card-a); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.final-cta h2 { font-size: clamp(34px, 5vw, 72px); }
.final-cta .lede { margin: 16px auto 30px; max-width: 40em; }
.final-cta .ws-picker { margin: 0 auto; }
.final-cta .ws-picker button { background: var(--amber); color: #16110A; border-color: transparent; }
.final-cta .ws-picker button:hover { background: #FFC255; }

/* ---------- footer ---------- */
.footer { padding: 72px 0 40px; border-top: 1px solid var(--line); color: var(--fg-2); }
.footer a { color: var(--fg-2); text-decoration: none; font-size: 14.5px; }
.footer a:hover { color: var(--fg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { color: var(--fg); }
.footer-brand p { color: var(--fg-3); font-size: 14px; margin-top: 16px; max-width: 36ch; }
.footer h5, .footer .footer-h { margin: 0 0 14px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-legal, .footer .legal {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--fg-3);
}
.footer-legal a, .footer .legal a { color: var(--fg-3); font-size: 11px; }
.footer-legal a:hover, .footer .legal a:hover { color: var(--fg-2); }
.footer button.link, .footer [data-consent-open] { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.footer button.link:hover, .footer [data-consent-open]:hover { color: var(--fg-2); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in, .reveal.in { opacity: 1; transform: none; }
.reveal-d1, .d1 { transition-delay: .08s; }
.reveal-d2, .d2 { transition-delay: .16s; }
.reveal-d3, .d3 { transition-delay: .24s; }

/* ---------- motion system (2026-10-30) ----------
   qais-crm.js tags content below the fold with .reveal.m-auto (so nothing that is already on
   screen ever blinks out), staggers each batch that enters together, and drops the classes
   once the element has settled so the card's own hover transitions take over again.
   Everything here moves transform/opacity only; prefers-reduced-motion shows the end state. */
.reveal.m-auto { transition-duration: .9s; }
/* product frames ease up out of a slight tilt, then a highlight sweeps across them once */
.reveal.m-tilt { transform: perspective(1400px) rotateX(9deg) translateY(34px) scale(.97); transform-origin: 50% 100%; }
.reveal.m-tilt.is-in { transform: none; }
.m-frame { position: relative; transition: box-shadow 1.4s ease; }
.m-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .13) 50%, transparent 62%);
  transform: translateX(-110%); opacity: 0;
}
.m-frame.m-lit::after { animation: m-sweep 1.5s cubic-bezier(.4, 0, .2, 1) .35s 1 both; }
.m-frame.m-lit { box-shadow: var(--shadow-2), 0 40px 120px -48px rgba(255, 178, 36, .32); }
@keyframes m-sweep { 0% { transform: translateX(-110%); opacity: 1; } 100% { transform: translateX(110%); opacity: 1; } }

/* cards: a cursor-following amber light on the border; free-standing cards also lift */
.spot { position: relative; transition: translate .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, background .25s; }
.spot::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 178, 36, .75), rgba(255, 178, 36, .12) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .3s ease;
}
.spot:hover::after { opacity: 1; }
[data-theme="light"] .spot::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(217, 138, 0, .85), rgba(217, 138, 0, .15) 45%, transparent 70%); }
/* a card that is also revealing keeps both sets of transitions */
.spot.reveal { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), translate .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, background .25s; }

/* [data-stagger]: the children of a revealing block arrive one after another */
[data-stagger].reveal > * { opacity: 0; transform: translateY(12px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--k, 0) * 60ms + .15s); }
[data-stagger].reveal.is-in > * { opacity: 1; transform: none; }
.spot.lift:hover { translate: 0 -3px; box-shadow: var(--shadow-1); }

/* eyebrows: the hero's dot breathes amber; a section's dot pings once as it arrives */
.page-hero .eyebrow::before, .m-hero .eyebrow::before { background: var(--amber); animation: m-breathe 2.8s ease-in-out infinite; }
.m-ping .eyebrow::before, .eyebrow.m-ping::before { animation: m-ping 1.4s ease-out .25s 1 both; }
@keyframes m-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 178, 36, .55); } 60% { box-shadow: 0 0 0 7px rgba(255, 178, 36, 0); } }
@keyframes m-ping { 0% { background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 178, 36, .6); } 70% { box-shadow: 0 0 0 9px rgba(255, 178, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 178, 36, 0); } }

/* key words in a page title: an amber underline draws in under them */
.kw { background: linear-gradient(90deg, var(--amber), rgba(255, 178, 36, .25)) no-repeat 0 100% / 0 .07em; animation: m-underline 1.1s cubic-bezier(.6, 0, .2, 1) .55s 1 forwards; }
@keyframes m-underline { to { background-size: 100% .07em; } }

/* hairlines draw across instead of appearing */
.m-line { position: relative; border-top-color: transparent; }
.m-line::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s cubic-bezier(.6, 0, .2, 1); }
.m-line.m-drawn::before { transform: none; }
/* a timeline's spine (the page draws it as ::before) grows down as the entries arrive */
.m-spine::before { transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.8s cubic-bezier(.6, 0, .2, 1); }
.m-spine.m-drawn::before { transform: none; }

/* page heroes: the dot field (qais-field.js) sits behind the title */
.m-hero { position: relative; isolation: isolate; }
.m-field { position: absolute; inset: -72px 0 -24px; width: 100%; height: calc(100% + 96px); z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.m-field.is-on { opacity: 1; }
.page-hero > :not(.m-field), .m-hero > :not(.m-field) { position: relative; }
.page-hero .lede, .page-hero .hero-derisk, .page-hero .hero-ctas, .page-hero .hero-actions, .page-hero .toc { animation: m-rise .9s cubic-bezier(.2, .7, .2, 1) both; } /* the title itself stays put: it is the page's largest paint */
.page-hero .lede { animation-delay: .16s; }
.page-hero .hero-ctas, .page-hero .hero-actions, .page-hero .toc { animation-delay: .26s; }
.page-hero .hero-derisk { animation-delay: .34s; }
@keyframes m-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media print {
  .reveal, .reveal.m-tilt, [data-stagger].reveal > * { opacity: 1; transform: none; transition: none; }
  .m-field { display: none; }
  .m-line::before, .m-spine::before { transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.m-tilt, [data-stagger].reveal > * { opacity: 1; transform: none; transition: none; }
  .tab-panel.is-active { animation: none; }
  .btn, .btn .arr, .area, .skip-link, .spot, .spot::after, .m-frame { transition: none; }
  .spot.lift:hover { translate: none; }
  .m-frame::after, .page-hero .eyebrow::before, .m-hero .eyebrow::before, .m-ping .eyebrow::before, .eyebrow.m-ping::before { animation: none; }
  .kw { animation: none; background-size: 100% .07em; }
  .m-line::before { transition: none; transform: none; }
  .page-hero .lede, .page-hero .hero-derisk, .page-hero .hero-ctas, .page-hero .hero-actions, .page-hero .toc { animation: none; }
  .m-field { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .agent-grid, .mobile-grid { grid-template-columns: 1fr; gap: 40px; }
  .tab-panel.is-active { grid-template-columns: 1fr; gap: 28px; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .area:nth-child(4n) { border-right: 1px solid var(--line); }
  .area:nth-child(2n) { border-right: 0; }
  .area:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .area:nth-last-child(-n+2) { border-bottom: 0; }
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > *:nth-child(2) { border-right: 0; }
  .stats-grid > *:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .packs { grid-template-columns: 1fr; gap: 16px; }
  .packs .tabs-nav.packs-nav { position: static; grid-template-columns: 1fr 1fr; }
  .packs .tab-btn { border-right: 1px solid var(--line); font-size: 13.5px; padding: 11px 14px; }
  .packs .tab-btn:nth-child(2n) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .receipt { position: static; width: auto; margin-top: 14px; }
}
@media (max-width: 700px) {
  .plans, .areas { grid-template-columns: 1fr; }
  .areas .area { border-right: 0; }
  .tabs-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 16px; }
  .tabs-nav::-webkit-scrollbar { display: none; }
  .tab-btn { flex: none; }
}
