/* Atlas Methods — site.css
   Design basis: Cal.com DESIGN.md (VoltAgent/awesome-design-md, MIT).
   White canvas, near-black ink, light-gray cards, one dark footer.
   Ink is Atlas navy instead of pure black. Inter replaces Cal Sans. */

/* Inter, self-hosted (fonts/, SIL Open Font License: fonts/OFL.txt).
   These are the rules and files Google Fonts serves for
   Inter:wght@400;500;600&display=swap, with only the URLs changed. Each file
   is a variable font shared by all three weights; a browser downloads a
   subset only when the page uses a character in its unicode-range. The file
   names carry the font version because /fonts/* is cached as immutable. */
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-v20-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-v20-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-v20-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-v20-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-v20-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-v20-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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-v20-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-v20-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-v20-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-v20-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-v20-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-v20-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-v20-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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-v20-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-v20-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-v20-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-v20-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-v20-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-v20-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-v20-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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-v20-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;
}

:root {
  --ink: #0f1f35;
  --ink-active: #1b3050;
  --body: #374151;
  --muted: #5b6472;
  --hairline: #b8bdc6;
  --hairline-soft: #f1f2f4;
  --card-border: #b8bdc6;
  --canvas: #ffffff;
  --surface-soft: #f8f9fa;
  --surface-card: #f4f5f7;
  --surface-dark: #0b1524;
  --surface-dark-elevated: #15233a;
  --on-dark: #ffffff;
  --on-dark-soft: #a9b1bd;
  --link: #0f1f35;
  --success: #0f8a5f;
  --error: #c81e1e;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;
  --section: 40px;
  --maxw: 1160px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 53, .05);
  --shadow-md: 0 4px 12px rgba(15, 31, 53, .08);
  --shadow-lg: 0 1px 2px rgba(15, 31, 53, .04), 0 12px 32px -12px rgba(15, 31, 53, .18);

  /* Token names read by the chat widget rules */
  --color-bg: var(--canvas);
  --color-bg-subtle: var(--surface-soft);
  --color-bg-muted: var(--surface-card);
  --color-card: var(--canvas);
  --color-text: var(--ink);
  --color-text-tertiary: var(--muted);
  --color-border: var(--hairline);
  --color-border-subtle: var(--hairline-soft);
  --color-accent: var(--ink);
  --color-accent-hover: var(--ink-active);
  --color-accent-subtle: #eef1f5;
  --color-accent-text: #ffffff;
  --color-error: var(--error);
  --font-body: var(--font);
  --font-display: var(--font);
  --font-reader: var(--font);
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --radius-sm: var(--r-sm); --radius-md: var(--r-md); --radius-lg: var(--r-lg); --radius-pill: var(--r-pill);
  --space-2xs: .25rem; --space-xs: .5rem; --space-sm: .75rem; --space-md: 1rem; --space-lg: 1.5rem;
  --text-xs: .8125rem; --text-sm: .875rem; --text-md: 1rem;
  --duration-fast: 150ms; --duration-normal: 250ms; --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--canvas); color: var(--body);
  font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
p, li { text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.container--narrow { max-width: 760px; }
.container--panel { max-width: 880px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-md); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.sr-only, .a11y-live { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--duration-fast); }
.site-header.scrolled { border-bottom-color: var(--hairline); }
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.wordmark { color: var(--ink); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em; text-decoration: none; margin-right: auto; display: inline-flex; white-space: nowrap; align-items: center; gap: 10px; }
.wordmark::before { content: ""; width: 24px; height: 24px; background: url("images/favicon.svg") center/100% no-repeat; }
.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-links a { display: block; padding: 8px 12px; border-radius: var(--r-md); color: var(--muted); font-size: .875rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--ink); background: var(--surface-soft); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.footer-home .home-icon { flex: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--canvas); cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; background: var(--ink); border-radius: 2px; transition: transform var(--duration-fast), top var(--duration-fast), opacity var(--duration-fast); }
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav-actions .nav-cta { display: none; }
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: auto; height: calc(100vh - 64px); height: calc(100dvh - 64px); flex-direction: column; gap: 0; padding: 12px 16px 32px; background: var(--canvas); border-top: 1px solid var(--hairline); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.125rem; padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--hairline-soft); color: var(--ink); }
  .nav-links .nav-links-cta { display: block; margin-top: 20px; }
  .nav-links .nav-links-cta a { border: 0; text-align: center; background: var(--ink); color: #fff; border-radius: var(--r-md); font-size: 1rem; font-weight: 600; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 901px) { .nav-links .nav-links-cta { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--r-md); border: 1px solid transparent; font: 600 .9375rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-active); color: #fff; }
.btn-secondary { background: var(--canvas); color: var(--ink); border-color: var(--hairline); }
.btn-secondary:hover { border-color: #8a929e; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { background: #e9edf2; color: var(--ink); }
.text-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.arrow::after { content: " \2192"; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta-note { font-size: .875rem; color: var(--muted); }
.cta-note a { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 32px 0; }
@media (min-width: 860px) { .section { padding: var(--section) 0; } }
.section--gray { background: var(--canvas); }
.eyebrow { display: inline-block; font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; letter-spacing: .01em; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; }
.h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -.01em; }
.lead { font-size: 1.0625rem; color: var(--body); margin-top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 32px; }
@media (min-width: 960px) { .hero { padding: 72px 0 40px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-grid > *, .split > *, .grid > * { min-width: 0; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.hero h1 span { display: block; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.75rem); line-height: 1.04; letter-spacing: -.045em; }
.hero-sub { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.55; margin: 20px 0 32px; max-width: 560px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: .875rem; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: #e7f5ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230f8a5f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* ---------- Product UI mockups (HTML/CSS, no images) ---------- */
.mock-stack { display: grid; gap: 14px; max-width: 440px; width: 100%; margin: 0 auto; }
@keyframes mock-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.mock-stack > .mock, .mock-stack > .mock-caption { animation: mock-in .6s cubic-bezier(.2,.7,.2,1) both; }
.mock-stack > .mock:nth-child(1) { animation-delay: .15s; }
.mock-stack > .mock:nth-child(2) { animation-delay: .35s; }
.mock-stack > .mock:nth-child(3) { animation-delay: .55s; }
.mock-stack > .mock-caption { animation-delay: .8s; }
.mock { background: var(--canvas); border: 1px solid var(--card-border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 16px 18px; font-size: .875rem; color: var(--ink); }
.mock-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mock-app { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; color: #fff; font-size: .625rem; font-weight: 700; letter-spacing: .02em; }
.mock-app--sms { background: #15803d; }
.mock-app--mail { background: #2563eb; }
.mock-app--chat { background: var(--ink); }
.mock-title { font-weight: 600; }
.mock-time { margin-left: auto; color: var(--muted); font-size: .75rem; }
.mock-body { color: var(--body); line-height: 1.5; }
.mock-body strong { color: var(--ink); font-weight: 600; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hairline-soft); }
.mock-row:first-of-type { border-top: 0; }
.mock-row span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--body); }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 600; white-space: nowrap; background: var(--surface-card); color: var(--ink); }
.tag--green { background: #e7f5ef; color: #0b6b4a; }
.tag--blue { background: #e8f0fd; color: #1d4ed8; }
.tag--amber { background: #fdf3e2; color: #92400e; }
.tag--gray { background: var(--surface-card); color: var(--muted); }
.bubble { max-width: 85%; padding: 8px 12px; border-radius: 14px; margin-top: 8px; line-height: 1.45; }
.bubble--in { background: var(--surface-card); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble--out { background: var(--ink); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.mock-caption { font-size: .75rem; color: var(--muted); text-align: center; margin-top: 2px; }
.mock-foot { margin-top: 10px; font-size: .75rem; color: var(--muted); }
@media (min-width: 960px) { .mock-stack .mock:nth-child(2) { margin-left: 32px; } .mock-stack .mock:nth-child(3) { margin-right: 32px; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) { .grid { gap: 24px; } }
.card { background: var(--surface-card); border-radius: var(--r-lg); padding: 28px; }
.card--white { background: var(--canvas); border: 1px solid var(--card-border); }
.card h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -.01em; }
.card p { margin-top: 8px; }
.card .mock { box-shadow: var(--shadow-sm); border-radius: var(--r-lg); margin-bottom: 24px; }

.offer { display: flex; flex-direction: column; background: var(--canvas); border: 1px solid var(--card-border); border-radius: var(--r-lg); padding: 28px; }
.offer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.offer h3 { font-size: 1.1875rem; letter-spacing: -.015em; }
.offer-for { color: var(--muted); font-size: .9375rem; margin-top: 6px; }
.offer-price { margin-top: 20px; color: var(--ink); font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.offer-price small { font-size: .875rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.offer-from { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; margin-bottom: 2px; }
.checks { list-style: none; margin-top: 20px; display: grid; gap: 10px; font-size: .9375rem; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.8 2.8 6-6.2' fill='none' stroke='%230f1f35' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.offer .offer-cta { margin-top: auto; padding-top: 24px; }
.offer--featured { background: var(--surface-dark); border-color: var(--surface-dark); color: var(--on-dark-soft); }
.offer--featured h3, .offer--featured .offer-price { color: var(--on-dark); }
.offer--featured .offer-for, .offer--featured .offer-price small, .offer--featured .offer-from { color: var(--on-dark-soft); }
.offer--featured .checks li::before { filter: invert(1); }
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 600; background: var(--surface-card); color: var(--ink); white-space: nowrap; }
.offer--featured .badge { background: var(--surface-dark-elevated); color: var(--on-dark); }

/* Audit highlight band */
.audit-band { display: grid; gap: 32px; background: var(--surface-dark); color: var(--on-dark-soft); border-radius: var(--r-xl); padding: 32px 24px; }
@media (min-width: 860px) { .audit-band { grid-template-columns: 1.1fr 1fr; padding: 56px; gap: 56px; align-items: center; } }
.audit-band h2 { color: var(--on-dark); }
.audit-band .lead { color: var(--on-dark-soft); }
.audit-price { color: var(--on-dark); font-size: 2.5rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-top: 24px; }
.audit-price small { font-size: .9375rem; font-weight: 500; color: var(--on-dark-soft); letter-spacing: 0; }
.audit-band .checks li::before { filter: invert(1); }
.audit-band .checks { color: #d9dee6; margin-top: 0; }
.audit-band .cta-row { margin-top: 28px; }
.audit-band .cta-note, .audit-band .cta-note a { color: var(--on-dark-soft); }
.audit-band .cta-note a { color: var(--on-dark); }

/* Steps */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; background: var(--canvas); border: 1px solid var(--card-border); border-radius: var(--r-lg); padding: 24px; }
.step::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .875rem; font-weight: 600; margin-bottom: 16px; }
.step h3 { font-size: 1.0625rem; }
.step p { margin-top: 6px; font-size: .9375rem; }
.step-meta { display: block; margin-top: 12px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.step ul { list-style: none; margin-top: 14px; display: grid; gap: 6px; font-size: .875rem; color: var(--muted); }
.step ul li::before { content: "\2013\00a0"; }

/* Split / trust */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.work-shot { position: relative; padding-bottom: 24px; }
.work-shot .work-desktop { border-radius: var(--r-lg); border: 1px solid var(--hairline); box-shadow: var(--shadow-lg); }
.work-shot .work-phone { position: absolute; right: 12px; bottom: 0; width: 26%; border-radius: 14px; border: 1px solid var(--hairline); box-shadow: var(--shadow-lg); }
.founder { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9375rem; flex: none; }
.founder--card { margin-top: 48px; padding: 24px; border: 1px solid var(--card-border); border-top: 1px solid var(--card-border); border-radius: var(--r-lg); background: var(--canvas); }
@media (min-width: 900px) { .founder--card { margin-top: 64px; padding: 24px 32px; } }
.founder--card { display: grid; gap: 20px; align-items: center; }
.founder-id { display: flex; align-items: center; gap: 16px; }
.founder-quote { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 500; line-height: 1.5; letter-spacing: -.01em; }
.founder--card .badges { margin-left: 0; }
@media (min-width: 900px) { .founder--card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; } .founder-quote { padding: 0 32px; border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline); } }
.founder-name { color: var(--ink); font-weight: 600; line-height: 1.3; }
.founder-role { font-size: .875rem; color: var(--muted); }
.badges { display: flex; gap: 8px; margin-left: auto; }
.badges a { display: block; border-radius: 8px; }
.badges img { width: 48px; height: 48px; }
.promise-list { list-style: none; display: grid; gap: 20px; margin-top: 28px; }
.promise-list h3 { font-size: 1rem; }
.promise-list p { font-size: .9375rem; margin-top: 4px; }

/* Secondary (websites) band */
.aside-band { display: flex; flex-direction: column; gap: 20px; background: var(--canvas); border: 1px solid var(--card-border); border-radius: var(--r-lg); padding: 28px; }
@media (min-width: 860px) { .aside-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; } }
.aside-band h2 { font-size: 1.375rem; letter-spacing: -.02em; }
.aside-band p { margin-top: 6px; }

/* CTA band */
.cta-band { background: var(--surface-card); border-radius: var(--r-xl); padding: 48px 24px; text-align: center; }
@media (min-width: 860px) { .cta-band { padding: 64px 48px; } }
.cta-band .lead { max-width: 520px; margin: 12px auto 28px; }
.cta-band .cta-row { justify-content: center; }

/* Page hero (inner pages) */
.page-hero { padding: 56px 0 8px; }
@media (min-width: 860px) { .page-hero { padding: 80px 0 16px; } }
.page-hero h1, .page-title { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.06; letter-spacing: -.045em; }
.page-hero .lead, .page-intro { font-size: 1.125rem; margin-top: 16px; max-width: 620px; }
.page-hero .cta-row { margin-top: 28px; }

/* Term list (audit terms) */
.terms-list { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.terms-list > div { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 720px) { .terms-list > div { grid-template-columns: 200px 1fr; gap: 24px; } }
.terms-list dt { color: var(--ink); font-weight: 600; }
.terms-list dd { margin: 0; }

/* Note line */
.note { font-size: .875rem; color: var(--muted); margin-top: 24px; }
.center { text-align: center; }

/* ---------- FAQ ---------- */
.faq-accordion { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; color: var(--ink); font-weight: 600; font-size: 1.0625rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 20px; height: 20px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 9px; height: 2px; border-radius: 2px; background: var(--muted); transition: transform var(--duration-fast); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-answer { padding: 0 36px 22px 0; }
.faq-answer p + p { margin-top: 10px; }

/* ---------- Form ---------- */
.intake-form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row--two { grid-template-columns: 1fr 1fr; } }
.form-field { display: grid; gap: 6px; align-content: start; }
.form-field label { color: var(--ink); font-weight: 500; font-size: .9375rem; }
.required-mark { color: var(--error); }
.optional-mark { color: var(--muted); font-weight: 400; font-size: .8125rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #8a929e; border-radius: var(--r-md); background: var(--canvas); color: var(--ink); font: 400 1rem/1.4 var(--font); transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%235b6472' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center/16px no-repeat; }
input::placeholder, textarea::placeholder { color: #6b7280; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 31, 53, .28); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: .8125rem; min-height: 0; }
.field-error:empty { display: none; }
.form-fieldset { border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 20px; margin: 0; background: var(--surface-soft); }
.form-fieldset[hidden] { display: none; }
.form-fieldset legend { padding: 0 6px; color: var(--ink); font-weight: 600; }
.form-helper { font-size: .875rem; color: var(--muted); }
.form-error-region { color: var(--error); font-weight: 500; }
.form-error-region:empty { display: none; }
.form-actions { display: grid; gap: 12px; justify-items: start; }
.form-consent { font-size: .8125rem; color: var(--muted); }
.form-consent a { color: var(--muted); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-spinner { display: none; animation: spin .8s linear infinite; }
.intake-form[data-state="loading"] .btn-spinner { display: inline-block; }
.intake-form[data-state="loading"] .btn-submit { opacity: .8; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.intake-success { background: var(--surface-card); border-radius: var(--r-xl); padding: 40px 28px; text-align: center; }
.intake-success[hidden] { display: none; }
.intake-success h2 { font-size: 1.75rem; letter-spacing: -.03em; }
.intake-success p { margin: 12px auto 24px; max-width: 480px; }
.contact-aside { display: grid; gap: 16px; align-content: start; }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 320px; gap: 56px; } }
.path-card { background: var(--surface-card); border-radius: var(--r-lg); padding: 20px 22px; font-size: .9375rem; }
.path-card h2 { font-size: 1rem; letter-spacing: -.01em; }
.path-card p { margin-top: 6px; }
@media (max-width: 480px) { .cf-turnstile { transform: scale(.86); transform-origin: left top; height: 56px; } }

/* ---------- Legal pages ---------- */
.legal-section { padding-top: 24px; }
.page-panel { max-width: 880px; margin: 0 auto; }
.legal-meta { font-size: .875rem; color: var(--muted); margin-bottom: 24px; }
.legal-toc { background: var(--surface-soft); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 40px; }
.legal-toc h2 { font-size: .9375rem; margin-bottom: 10px; }
.legal-toc ol { padding-left: 20px; display: grid; gap: 4px; font-size: .9375rem; }
@media (min-width: 720px) { .legal-toc ol { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.legal-toc a { color: var(--body); }
.legal-body h2 { font-size: 1.375rem; letter-spacing: -.02em; margin: 40px 0 12px; scroll-margin-top: 88px; }
.legal-body h3 { font-size: 1.0625rem; margin: 24px 0 8px; }
.legal-body p, .legal-body ul, .legal-body ol { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li + li { margin-top: 6px; }
.legal-caps { text-transform: uppercase; font-size: .875rem; }
.legal-table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--hairline); border-radius: var(--r-md); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.legal-table th { color: var(--ink); background: var(--surface-soft); font-weight: 600; }
.legal-table tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-dark); color: var(--on-dark-soft); padding: 64px 0 28px; margin-top: 0; font-size: .9375rem; }
.site-footer .wordmark { color: var(--on-dark); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.footer-copy-email { overflow-wrap: anywhere; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-mission { margin-top: 12px; max-width: 300px; }
.footer-col h3 { color: var(--on-dark); font-size: .875rem; font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--on-dark-soft); text-decoration: none; }
.footer-col a:hover { color: var(--on-dark); }
.footer-col a.footer-home { display: inline-flex; align-items: center; gap: 8px; }
.footer-copy-email { background: none; border: 0; padding: 0; font: inherit; color: var(--on-dark-soft); cursor: pointer; text-align: left; }
.footer-copy-email:hover { color: var(--on-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8125rem; }
.footer-top-link { color: var(--on-dark-soft); text-decoration: none; }
.footer-top-link:hover { color: var(--on-dark); }
#ai-chatbot-root:empty { display: none; }

/* ---------- Scroll reveal (JS adds .js-reveal to <html>) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), translate .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out), --glow .35s ease; }
.js-reveal .reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; } }

.audit-band .eyebrow, .audit-band .offer-from { color: var(--on-dark-soft); }
.work-shot { margin: 0; }
.stack-top { margin-top: 24px; }
.retainer-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .retainer-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; } }
.checks--flush { margin-top: 0; }
.offer p.small { margin-top: 4px; }
.page-hero + .section { padding-top: 40px; }
@media (min-width: 860px) { .page-hero + .section { padding-top: 56px; } }
.mock-stack > * { min-width: 0; }

/* Review fixes */
@media (max-width: 859px) { .footer-grid > .footer-col:last-child { grid-column: 1 / -1; } }
.footer-copy-email { overflow-wrap: normal; white-space: nowrap; }
@media (max-width: 640px) {
  .audit-band .audit-price small { display: block; margin-top: 6px; }
  .mock-stack .mock:nth-child(3) { display: none; }
  body { padding-bottom: 72px; }
  .site-footer { margin-bottom: -72px; padding-bottom: 100px; }
}
.cta-note a, a.text-link { display: inline-block; padding: 10px 0; }
.founder-role a { display: inline-block; padding: 8px 0; }
.am-chat-fab { box-shadow: 0 0 0 2px #fff, 0 6px 20px rgba(15, 31, 53, .25); }

/* Accessibility fixes */
.site-footer :focus-visible, .audit-band :focus-visible, .offer--featured :focus-visible { outline-color: #fff; }
.legal-body .footer-copy-email, .page-panel .footer-copy-email { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.note .text-link { text-decoration: underline; }
@media (max-width: 900px) {
  .footer-col a, .footer-top-link { display: inline-block; padding: 12px 0; }
  .footer-col ul { gap: 0; }
  .footer-copy-email { padding: 12px 0; }
  .btn-sm { min-height: 44px; }
}
main:focus { outline: none; }
/* ---- Chat widget (carried over verbatim from the previous styles.css) ---- */
/* ================================================================
   AtlasChat widget styles
   Extracted from the designed widget (chat-widget.html). Pure CSS -
   every color/space/font value reads from the site's CSS custom
   properties in styles.css, so the widget inherits light/dark/accent
   automatically from [data-theme] / [data-accent] on <html>.
   ================================================================ */

.am-chat-root {
  position: fixed; inset: 0; pointer-events: none; z-index: 2147483000;
  font-family: var(--font-body, 'Lora', Georgia, serif);
}
.am-chat-root * { box-sizing: border-box; }

/* ---- Floating launcher button ---- */
.am-chat-fab {
  position: fixed; right: var(--space-lg, 1.5rem); bottom: var(--space-lg, 1.5rem);
  width: 56px; height: 56px; border-radius: 50%; pointer-events: auto;
  background: var(--color-accent, #0F1F35); color: var(--color-accent-text, #fff);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 12px 32px -10px rgba(30, 64, 96, 0.5), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: background var(--duration-fast, 150ms) var(--ease-out), transform var(--duration-fast, 150ms) var(--ease-out);
}
.am-chat-fab:hover { background: var(--color-accent-hover, #1E3A5C); transform: translateY(-2px); }
.am-chat-fab:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--color-accent-subtle, #E2EAF2), 0 12px 32px -10px rgba(30, 64, 96, 0.5); }
.am-chat-fab svg { width: 24px; height: 24px; }
.am-chat-fab .am-chat-fab-close { display: none; }
.am-chat-root[data-open="true"] .am-chat-fab .am-chat-fab-open { display: none; }
.am-chat-root[data-open="true"] .am-chat-fab .am-chat-fab-close { display: block; }
.am-chat-fab.am-chat-pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 var(--color-accent, #0F1F35);
  animation: am-chat-pulse 2.4s var(--ease-out) 3;
}
@keyframes am-chat-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent, #0F1F35) 55%, transparent); }
  70% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--color-accent, #0F1F35) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent, #0F1F35) 0%, transparent); }
}

/* ---- Panel ---- */
.am-chat-panel {
  position: fixed; right: var(--space-lg, 1.5rem); bottom: calc(var(--space-lg, 1.5rem) + 56px + var(--space-sm, 0.75rem));
  width: 380px; height: 520px; max-height: calc(100vh - 2 * var(--space-lg, 1.5rem) - 56px);
  pointer-events: auto; display: flex; flex-direction: column;
  background: var(--color-card, #fff); border: 1px solid var(--color-border, #D5CCB9);
  border-radius: var(--radius-lg, 12px); overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(15, 31, 53, 0.32), 0 2px 8px -4px rgba(15, 31, 53, 0.18);
  opacity: 0; transform: translateY(16px) scale(0.98); transform-origin: bottom right;
  transition: opacity var(--duration-normal, 250ms) var(--ease-out), transform var(--duration-normal, 250ms) var(--ease-out);
  visibility: hidden;
}
.am-chat-root[data-open="true"] .am-chat-panel { opacity: 1; transform: translateY(0) scale(1); visibility: visible; }

/* ---- Header ---- */
.am-chat-header {
  display: flex; align-items: flex-start; gap: var(--space-sm, 0.75rem);
  padding: var(--space-md, 1rem) var(--space-md, 1rem) var(--space-sm, 0.75rem);
  background: var(--color-accent, #0F1F35); color: var(--color-accent-text, #fff);
  border-bottom: 1px solid transparent;
}
.am-chat-root[data-theme="dark"] .am-chat-header {
  background: var(--color-bg-subtle, #1F1D18); color: var(--color-text, #EDE7DA);
  border-bottom: 1px solid var(--color-border, #3A352C);
}
.am-chat-htext { flex: 1 1 auto; min-width: 0; }
.am-chat-wordmark { font-family: var(--font-display); font-size: var(--text-md, 1.25rem); line-height: 1.1; }
.am-chat-tagline { font-family: var(--font-reader, 'Lora', serif); font-size: var(--text-sm, 0.875rem); line-height: 1.35; opacity: 0.85; margin-top: 2px; }
.am-chat-close {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: var(--radius-sm, 4px);
  display: grid; place-items: center; color: inherit; opacity: 0.85; cursor: pointer;
  transition: background var(--duration-fast, 150ms), opacity var(--duration-fast, 150ms); margin-top: -2px;
}
.am-chat-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.am-chat-root[data-theme="dark"] .am-chat-close:hover { background: var(--color-bg-muted, #2A2722); }
.am-chat-close:focus-visible { outline: none; box-shadow: 0 0 0 2px currentColor; }
.am-chat-close svg { width: 18px; height: 18px; }

/* ---- Messages ---- */
.am-chat-log {
  flex: 1 1 auto; overflow-y: auto; padding: var(--space-md, 1rem);
  display: flex; flex-direction: column; gap: var(--space-md, 1rem);
  background: var(--color-bg, #F9F6F1); scroll-behavior: smooth;
}
.am-chat-log::-webkit-scrollbar { width: 8px; }
.am-chat-log::-webkit-scrollbar-thumb { background: var(--color-border, #D5CCB9); border-radius: var(--radius-pill, 999px); border: 2px solid var(--color-bg, #F9F6F1); }

.am-chat-msg { display: flex; gap: var(--space-xs, 0.5rem); max-width: 88%; }
.am-chat-msg.am-chat-bot { align-self: flex-start; }
.am-chat-msg.am-chat-user { align-self: flex-end; flex-direction: row-reverse; }
.am-chat-avatar {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono, monospace);
  font-size: var(--text-xs, 0.75rem); font-weight: 500; letter-spacing: 0.02em;
  background: var(--color-accent-subtle, #E2EAF2); color: var(--color-accent, #0F1F35);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent, #0F1F35) 28%, transparent);
  margin-top: 2px;
}
.am-chat-bubblewrap { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.am-chat-bubble {
  padding: var(--space-sm, 0.75rem) var(--space-md, 1rem); border-radius: var(--radius-lg, 12px);
  font-size: var(--text-sm, 0.875rem); line-height: 1.5; color: var(--color-text, #1A1814);
  white-space: pre-wrap; word-wrap: break-word;
}
.am-chat-bot .am-chat-bubble { background: var(--color-bg-subtle, #F2EEEA); border-bottom-left-radius: var(--radius-sm, 4px); }
.am-chat-user .am-chat-bubble { background: var(--color-accent-subtle, #E2EAF2); border-bottom-right-radius: var(--radius-sm, 4px); }
.am-chat-bubble a.am-chat-link { color: var(--color-accent, #0F1F35); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.am-chat-bubble a.am-chat-link:hover { color: var(--color-accent-hover, #1E3A5C); }
.am-chat-time { font-size: var(--text-xs, 0.75rem); color: var(--color-text-tertiary, #8A847A); font-family: var(--font-reader, 'Lora', serif); padding: 0 var(--space-2xs, 0.25rem); }
.am-chat-user .am-chat-time { text-align: right; }

/* ---- Typing indicator ---- */
.am-chat-typing .am-chat-bubble { display: flex; gap: 5px; align-items: center; padding: 0.9rem 1rem; }
.am-chat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-tertiary, #8A847A); opacity: 0.5; animation: am-chat-bounce 1.3s var(--ease-out) infinite; }
.am-chat-dot:nth-child(2) { animation-delay: 0.18s; }
.am-chat-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes am-chat-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 0.9; } }

/* ---- Handoff prompt ---- */
.am-chat-handoff {
  align-self: stretch; background: var(--color-accent-subtle, #E2EAF2);
  border-radius: var(--radius-md, 8px); padding: var(--space-md, 1rem);
  display: flex; flex-direction: column; gap: var(--space-sm, 0.75rem);
}
.am-chat-handoff p { font-size: var(--text-sm, 0.875rem); color: var(--color-text, #1A1814); line-height: 1.45; }
.am-chat-handoff p strong { color: var(--color-accent, #0F1F35); font-weight: 600; }
.am-chat-handoff-btn {
  align-self: flex-start; background: var(--color-accent, #0F1F35); color: var(--color-accent-text, #fff);
  font-family: var(--font-reader, 'Lora', serif); font-size: var(--text-sm, 0.875rem); font-weight: 600;
  padding: 0.55rem 1rem; border-radius: var(--radius-md, 8px); text-decoration: none;
  transition: background var(--duration-fast, 150ms); display: inline-flex; align-items: center; gap: 6px;
}
.am-chat-handoff-btn:hover { background: var(--color-accent-hover, #1E3A5C); }
.am-chat-handoff-btn svg { width: 15px; height: 15px; }

/* ---- Maintenance notice (shown on open while js/chat-widget.js MAINTENANCE is true) ---- */
.am-chat-notice {
  display: none; flex-direction: column; gap: var(--space-sm, 0.75rem);
  margin: var(--space-md, 1rem) var(--space-md, 1rem) 0; padding: var(--space-md, 1rem);
  background: var(--color-accent-subtle, #E2EAF2); border-radius: var(--radius-md, 8px);
}
.am-chat-notice[data-show="true"] { display: flex; }
.am-chat-notice p { margin: 0; font-size: var(--text-sm, 0.875rem); color: var(--color-text, #1A1814); line-height: 1.45; }
.am-chat-notice .am-chat-notice-title { color: var(--color-accent, #0F1F35); font-weight: 600; }
.am-chat-field:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- Error banner ---- */
.am-chat-error {
  display: none; align-items: center; gap: var(--space-xs, 0.5rem);
  margin: 0 var(--space-md, 1rem); padding: var(--space-xs, 0.5rem) var(--space-sm, 0.75rem);
  background: color-mix(in srgb, var(--color-error, #A23D2C) 12%, var(--color-card, #fff));
  border: 1px solid color-mix(in srgb, var(--color-error, #A23D2C) 40%, transparent);
  border-radius: var(--radius-md, 8px); color: var(--color-error, #A23D2C);
  font-size: var(--text-sm, 0.875rem);
}
.am-chat-error[data-show="true"] { display: flex; }
.am-chat-error svg { width: 16px; height: 16px; flex: 0 0 auto; }
.am-chat-retry { margin-left: auto; font-family: var(--font-mono, monospace); font-size: var(--text-xs, 0.75rem);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-error, #A23D2C);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* ---- Input ---- */
.am-chat-inputbar {
  flex: 0 0 auto; display: flex; align-items: flex-end; gap: var(--space-xs, 0.5rem);
  padding: var(--space-sm, 0.75rem) var(--space-md, 1rem); background: var(--color-card, #fff);
  border-top: 1px solid var(--color-border-subtle, #E6DFCE);
}
.am-chat-field {
  flex: 1 1 auto; resize: none; max-height: 108px; min-height: 40px;
  padding: 0.6rem 0.85rem; font-family: var(--font-reader, 'Lora', serif); font-size: var(--text-sm, 0.875rem);
  line-height: 1.4; color: var(--color-text, #1A1814);
  background: var(--color-bg, #F9F6F1); border: 1px solid var(--color-border, #D5CCB9);
  border-radius: var(--radius-md, 8px); transition: border-color var(--duration-fast, 150ms), box-shadow var(--duration-fast, 150ms);
}
.am-chat-field::placeholder { color: var(--color-text-tertiary, #8A847A); }
.am-chat-field:focus { outline: none; border-color: var(--color-accent, #0F1F35); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent, #0F1F35) 35%, transparent); }
.am-chat-send {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--radius-md, 8px);
  background: var(--color-accent, #0F1F35); color: var(--color-accent-text, #fff);
  display: grid; place-items: center; cursor: pointer;
  transition: background var(--duration-fast, 150ms), opacity var(--duration-fast, 150ms);
}
.am-chat-send:hover:not(:disabled) { background: var(--color-accent-hover, #1E3A5C); }
.am-chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
.am-chat-send:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--color-accent-subtle, #E2EAF2); }
.am-chat-send svg { width: 18px; height: 18px; }

/* ---- Mobile: full-screen sheet ---- */
@media (max-width: 480px) {
  .am-chat-panel {
    right: 0; left: 0; bottom: 0; top: 0; width: 100%; height: 100%;
    max-height: none; border: none; border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%); transform-origin: bottom center;
  }
  .am-chat-root[data-open="true"] .am-chat-panel { transform: translateY(0); }
  .am-chat-grip { display: flex; }
  .am-chat-header { padding-top: var(--space-sm, 0.75rem); }
  .am-chat-fab { right: var(--space-md, 1rem); bottom: var(--space-md, 1rem); }
  /* Hide FAB when chat is open on mobile - header X button handles close */
  .am-chat-root[data-open="true"] .am-chat-fab { display: none !important; }
  /* touch targets: close measured 30px, send 40px */
  .am-chat-close, .am-chat-send { min-width: 44px; min-height: 44px; }
}
.am-chat-grip { display: none; justify-content: center; padding: var(--space-xs, 0.5rem) 0 0; background: var(--color-accent, #0F1F35); }
.am-chat-root[data-theme="dark"] .am-chat-grip { background: var(--color-bg-subtle, #1F1D18); }
.am-chat-grip span { width: 36px; height: 4px; border-radius: var(--radius-pill, 999px); background: currentColor; opacity: 0.4; }
.am-chat-header, .am-chat-grip { color: var(--color-accent-text, #fff); }
.am-chat-root[data-theme="dark"] .am-chat-header, .am-chat-root[data-theme="dark"] .am-chat-grip { color: var(--color-text, #EDE7DA); }

.am-chat-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .am-chat-panel, .am-chat-fab, .am-chat-dot { transition: none !important; animation: none !important; }
  .am-chat-fab.am-chat-pulse::after { animation: none !important; }
}


/* Chat FAB hidden on mobile when panel is open (header has close btn) */
@media (max-width: 480px) {
  .am-chat-root[data-open="true"] .am-chat-fab {
    display: none;
  }
}

/* Overrides that must come after the chat widget rules */
.am-chat-fab:focus-visible, .am-chat-send:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; box-shadow: 0 0 0 2px #fff; }

/* ---------- Motion & micro-interactions (local addition; hover/entrance motion is gated by prefers-reduced-motion) ---------- */
@property --glow { syntax: "<number>"; inherits: false; initial-value: 0; }
::selection { background: #cfd8e6; color: var(--ink); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
@keyframes fx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fx-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes fx-slide { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes fx-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes fx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes fx-ping { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes fx-live { 0% { box-shadow: 0 0 0 0 rgba(15,138,95,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(15,138,95,0); } }
@keyframes fx-bubble { from { opacity: 0; transform: scale(.85) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fx-dots { 0%, 100% { background-position: 0 0, 0 0, 0 0; } 20% { background-position: 0 -3px, 0 0, 0 0; } 40% { background-position: 0 0, 0 -3px, 0 0; } 60% { background-position: 0 0, 0 0, 0 -3px; } }
@keyframes fx-uncover { to { opacity: 0; } }
@keyframes fx-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* Entrance: hero + inner page heroes */
.hero .eyebrow, .hero h1 span, .hero-sub, .hero .cta-row, .hero-points { animation: fx-rise .7s var(--ease-out) both; }
.hero h1 span:nth-child(1) { animation-delay: .08s; }
.hero h1 span:nth-child(2) { animation-delay: .2s; }
.hero-sub { animation-delay: .34s; }
.hero .cta-row { animation-delay: .44s; }
.hero-points { animation-delay: .54s; }
.hero-points li::before { animation: fx-pop .45s cubic-bezier(.3,1.6,.5,1) both; }
.hero-points li:nth-child(1)::before { animation-delay: .8s; }
.hero-points li:nth-child(2)::before { animation-delay: .95s; }
.hero-points li:nth-child(3)::before { animation-delay: 1.1s; }
.hero .eyebrow::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: 1px; border-radius: 50%; background: var(--success); animation: fx-live 2.4s ease-out 1s 5; }
.page-hero .container > :not(.reveal) { animation: fx-rise .7s var(--ease-out) both; }
.page-hero .container > :not(.reveal):nth-child(2) { animation-delay: .08s; }
.page-hero .container > :not(.reveal):nth-child(3) { animation-delay: .16s; }
.page-hero .container > :not(.reveal):nth-child(4) { animation-delay: .24s; }
.page-hero .container > :not(.reveal):nth-child(n+5) { animation-delay: .32s; }

/* Hero mock cards: idle float, hover lift, chat typing, SMS ping, tag pops */
.mock-stack > .mock { animation: mock-in .6s cubic-bezier(.2,.7,.2,1) both, fx-float 7s ease-in-out infinite; transition: translate .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.mock-stack > .mock:nth-child(1) { animation-delay: .15s, 1s; }
.mock-stack > .mock:nth-child(2) { animation-delay: .35s, 2.6s; }
.mock-stack > .mock:nth-child(3) { animation-delay: .55s, 4.2s; }
.mock-stack > .mock:hover { translate: 0 -4px; animation-play-state: running, paused; box-shadow: 0 2px 4px rgba(15,31,53,.05), 0 20px 40px -14px rgba(15,31,53,.26); }
.mock-app { position: relative; }
.mock-app--sms::after { content: ""; position: absolute; inset: 0; border-radius: 8px; border: 2px solid #15803d; opacity: 0; animation: fx-ping 2.8s ease-out 1.4s 3; }
.bubble--out { animation: fx-bubble .45s var(--ease-out) .9s both; transform-origin: right bottom; }
.bubble--in { position: relative; animation: fx-bubble .45s var(--ease-out) 1.6s both; transform-origin: left bottom; }
.bubble--in::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle 3px at 18px 50%, #8a929e 96%, transparent) no-repeat, radial-gradient(circle 3px at 31px 50%, #8a929e 96%, transparent) no-repeat, radial-gradient(circle 3px at 44px 50%, #8a929e 96%, transparent) no-repeat, var(--surface-card); animation: fx-dots .9s ease-in-out 1.6s infinite, fx-uncover .3s ease 3s forwards; pointer-events: none; }
.mock-row { animation: fx-slide .5s var(--ease-out) both; }
.mock-row:nth-child(2) { animation-delay: 1s; }
.mock-row:nth-child(3) { animation-delay: 1.2s; }
.mock-row:nth-child(4) { animation-delay: 1.4s; }
.mock-row .tag { animation: fx-pop .4s cubic-bezier(.3,1.6,.5,1) both; }
.mock-row:nth-child(2) .tag { animation-delay: 1.25s; }
.mock-row:nth-child(3) .tag { animation-delay: 1.45s; }
.mock-row:nth-child(4) .tag { animation-delay: 1.65s; }

/* Scroll reveal stagger */
.js-reveal .grid > .reveal:nth-child(2), .js-reveal .steps > .reveal:nth-child(2) { transition-delay: .1s,.1s,0s,0s,0s,0s; }
.js-reveal .grid > .reveal:nth-child(3), .js-reveal .steps > .reveal:nth-child(3) { transition-delay: .2s,.2s,0s,0s,0s,0s; }
.js-reveal .grid > .reveal:nth-child(4), .js-reveal .steps > .reveal:nth-child(4) { transition-delay: .3s,.3s,0s,0s,0s,0s; }

/* Header */
.wordmark::before { transition: rotate .45s cubic-bezier(.3,1.6,.5,1), scale .45s cubic-bezier(.3,1.6,.5,1); }
a.wordmark:hover::before { rotate: -14deg; scale: 1.12; }
@media (min-width: 901px) {
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
}
@media (max-width: 900px) {
.nav-links.open li { animation: fx-rise .4s var(--ease-out) both; }
.nav-links.open li:nth-child(2) { animation-delay: .04s; }
.nav-links.open li:nth-child(3) { animation-delay: .08s; }
.nav-links.open li:nth-child(4) { animation-delay: .12s; }
.nav-links.open li:nth-child(5) { animation-delay: .16s; }
.nav-links.open li:nth-child(6) { animation-delay: .2s; }
}

/* Buttons + arrow links */
.btn { position: relative; overflow: hidden; transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast), translate .2s var(--ease-out), scale .15s var(--ease-out), box-shadow .2s var(--ease-out); }
.btn:hover { translate: 0 -2px; }
.btn:active { translate: 0 0; scale: .98; }
.btn-primary:hover { box-shadow: 0 10px 20px -10px rgba(15,31,53,.6); }
.btn-on-dark:hover { box-shadow: 0 10px 20px -10px rgba(255,255,255,.4); }
.btn-secondary:hover { box-shadow: var(--shadow-md); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.2) 50%, transparent 65%); translate: -110% 0; transition: translate .6s var(--ease-out); pointer-events: none; }
.btn-primary:hover::after { translate: 110% 0; }
.arrow::after { content: "\2192"; display: inline-block; margin-left: .3em; transition: translate .2s var(--ease-out); }
.arrow:hover::after { translate: 4px 0; }

/* Cards: hover lift + cursor spotlight (--mx/--my set by app.js) */
.offer, .card, .step, .path-card, .founder--card, .aside-band, .cta-band { background-image: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(15,31,53,calc(var(--glow) * .06)), transparent 70%); transition: translate .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out), --glow .35s ease; }
.audit-band, .offer--featured { background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,calc(var(--glow) * .09)), transparent 70%); transition: --glow .35s ease; }
.offer:hover, .card:hover, .step:hover, .path-card:hover, .founder--card:hover, .aside-band:hover, .cta-band:hover, .audit-band:hover { --glow: 1; }
.offer:hover, .card:hover { translate: 0 -3px; box-shadow: var(--shadow-lg); }
.offer:hover, .step:hover, .founder--card:hover, .aside-band:hover, .card--white:hover { border-color: #8a929e; }
.offer--featured:hover { border-color: var(--surface-dark); }
.promise-list li { transition: translate .2s var(--ease-out); }
.promise-list li:hover { translate: 4px 0; }
.badges a { transition: translate .2s var(--ease-out), rotate .2s var(--ease-out); }
.badges a:hover { translate: 0 -3px; rotate: -4deg; }
.step:hover::before { rotate: -10deg; }

/* Scroll-triggered (html.fx and .fx-in are set by app.js) */
.checks li { --d: 0s; }
.checks li:nth-child(2) { --d: .08s; } .checks li:nth-child(3) { --d: .16s; } .checks li:nth-child(4) { --d: .24s; } .checks li:nth-child(5) { --d: .32s; } .checks li:nth-child(6) { --d: .4s; }
.fx .checks li { opacity: 0; translate: -8px 0; transition: opacity .4s var(--ease-out) var(--d), translate .4s var(--ease-out) var(--d); }
.fx .checks li::before { scale: 0; transition: scale .45s cubic-bezier(.3,1.6,.5,1) calc(var(--d) + .12s); }
.fx .checks.fx-in li { opacity: 1; translate: 0 0; }
.fx .checks.fx-in li::before { scale: 1; }
.step:nth-child(1) { --d: .15s; } .step:nth-child(2) { --d: .3s; } .step:nth-child(3) { --d: .45s; } .step:nth-child(4) { --d: .6s; }
.fx .step::before { scale: 0; transition: scale .5s cubic-bezier(.3,1.6,.5,1) var(--d), rotate .3s var(--ease-out); }
.fx .steps.fx-in .step::before { scale: 1; }
.work-shot img { transition: translate .5s var(--ease-out), scale .5s var(--ease-out); }
.work-shot:hover .work-desktop { scale: 1.015; }
.work-shot:hover .work-phone { translate: 0 -10px; }
.fx .work-shot .work-phone { translate: 0 28px; opacity: 0; transition: translate .7s var(--ease-out) .35s, opacity .7s ease .35s, scale .5s var(--ease-out); }
.fx .work-shot.fx-in .work-phone { translate: 0 0; opacity: 1; }
.fx .work-shot.fx-in:hover .work-phone { translate: 0 -10px; transition-delay: 0s; }

/* FAQ */
.faq-icon { transition: rotate .3s var(--ease-out); }
.faq-item[open] .faq-icon { rotate: 180deg; }
.faq-item summary:hover .faq-icon::before, .faq-item summary:hover .faq-icon::after { background: var(--ink); }
.faq-item[open] .faq-answer { animation: fx-drop .35s var(--ease-out); }

/* Form */
.form-field label { transition: translate .2s var(--ease-out); }
.form-field:focus-within label { translate: 2px 0; }
.has-error input, .has-error select, .has-error textarea { animation: fx-shake .4s; }
.field-error { animation: fx-drop .25s var(--ease-out); }
.form-fieldset:not([hidden]) { animation: fx-drop .35s var(--ease-out); }
.intake-success:not([hidden]) { animation: fx-rise .5s var(--ease-out) both; }
.intake-success::before { content: ""; display: block; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: #e7f5ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230f8a5f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/55% no-repeat; animation: fx-pop .5s cubic-bezier(.3,1.6,.5,1) .2s both; }

/* Footer */
.footer-col a { display: inline-block; transition: color .15s, translate .2s var(--ease-out); }
.footer-top-link { display: inline-block; transition: color .15s, translate .2s var(--ease-out); }
.footer-top-link:hover { translate: 0 -3px; }
.footer-col a:hover { translate: 3px 0; }
.footer-copy-email.copied { color: #5fd3a5; animation: fx-pop .3s var(--ease-out); }
}
