/* ==========================================================================
   Autellis P2: visual elevation (loaded last, after styles/design-p0/home|pages)
   1. fonts + type   2. tokens: light (default) + dark   3. header + theme toggle
   4. comparison     5. marquee   6. hero pacing   7. section/card polish
   8. subpages (book, thanks, about, legal, 404)   9. theme transition
   ========================================================================== */

/* ---------- 1. Fonts + type: Mona Sans + JetBrains Mono (Round 3 Option 1, approved Nov 19) ----------
   Self-hosted, SIL OFL 1.1, latin subsets exactly as served by Google Fonts (unmodified, original names kept).
   The legacy faces declared in styles.css are no longer referenced, so the browser never downloads them. */
@font-face { font-family: 'Mona Sans'; src: url('/assets/fonts/p2/mona-sans-latin-200-900.woff2') format('woff2');
  font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap;
  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'; src: url('/assets/fonts/p2/jetbrains-mono-latin-100-800.woff2') format('woff2');
  font-weight: 100 800; font-style: normal; font-display: swap;
  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; }
/* Metric-matched fallbacks (measured against Mona Sans wdth 100 / JetBrains Mono 400) keep the swap from shifting layout */
@font-face { font-family: 'Mona Sans Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Helvetica');
  size-adjust: 103.7%; ascent-override: 105.1%; descent-override: 30.9%; line-gap-override: 0%; }
@font-face { font-family: 'JetBrains Mono Fallback'; src: local('Menlo'), local('Consolas'), local('Liberation Mono'), local('Courier New');
  size-adjust: 100%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%; }

:root {
  --sans: 'Mona Sans', 'Mona Sans Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --display: var(--sans);
  --serif: var(--sans);                  /* every old serif slot resolves to Mona Sans */
  /* display (H1, hero, why title) */
  --display-stretch: 110%; --display-w: 440; --display-track: -0.032em;
  /* H2 / section heads / row labels / marquee */
  --h2-stretch: 108%;      --h2-w: 460;      --h2-track: -0.024em;
  --row-w: 480; --marquee-w: 460;
  /* secondary headings (accordion, plan, ledger, form, legal) */
  --head-stretch: 104%;    --head-w: 480;    --head-track: -0.018em;
  /* body / UI: normal width, 400 text / 500 emphasis + buttons */
  --body-stretch: 100%;
  /* mono labels: JetBrains Mono 500, uppercase, +0.08em (existing label rules keep their .08-.14em) */
  --mono-w: 500;
}
body { font-family: var(--sans); font-stretch: var(--body-stretch); }

/* Display type: Mona Sans wide + light, tight, no italics (emphasis = brass colour, same weight) */
.display { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-w); letter-spacing: var(--display-track); line-height: 1.0; }
.display em, .display .w__i.is-em { font-style: normal; }
.h1 { font-size: clamp(2.75rem, 6.2vw, 5.75rem); line-height: .98; letter-spacing: var(--display-track); }
.h2 { font-size: clamp(2.05rem, 3.7vw, 3.45rem); line-height: 1.04; font-stretch: var(--h2-stretch); font-weight: var(--h2-w); letter-spacing: var(--h2-track); }
.demo__title { font-size: clamp(1.6rem, 2.3vw, 2.15rem) !important; line-height: 1.1 !important; font-stretch: var(--h2-stretch); font-weight: var(--h2-w); letter-spacing: var(--h2-track); }
/* Secondary headings (formerly the old display face at 400) */
.book-area__title, .prep h2, .how h3, .prose h2, .menu__link, .kpi__v, .strip__value, .compare tbody th, .demo__tab-name,
.cadence__step.is-final h4, .acc__title, .acc__q, .plan__name, .ledger__title, .calc__figure, .range output, .step__num,
.plans__foot p, .form__title, .legal__body h2, .story__h, .about-tile h3, .page--about .about-card h3 {
  font-stretch: var(--head-stretch); font-weight: var(--head-w); letter-spacing: var(--head-track); }
.about-lead { font-weight: 450; letter-spacing: -0.016em !important; font-size: clamp(1.4rem, 2vw, 1.85rem) !important; }
.step__num { font-stretch: var(--display-stretch); font-weight: var(--display-w); letter-spacing: -0.03em; }
.calc__figure { font-size: clamp(2.2rem, 3vw, 2.8rem); }
/* Numerals: every number that updates or lines up is tabular (Mona Sans tnum; mono is tabular by design) */
.kpi__v, .kpi__jobs b, .strip__value, .calc__figure, .range output, .step__num, .ledger__rows dd, .calc__break dd,
.dash__ac, .ops__time, .bp-art .bp-404 { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* Phone: drop the display width to normal so the hero keeps its 2-line break at 375 */
@media (max-width: 640px) { :root { --display-stretch: 100%; --h2-stretch: 102%; } }

/* ---------- 2. Tokens ---------- */
/* Light is the shipped P1 palette (unchanged). Dark re-points the same tokens, so no component needs a fork. */
html[data-theme="dark"] {
  --paper: #0e0f12;          /* page   (obsidian, from be1ae56 #0b0c0e lifted one step) */
  --bone: #121418;           /* band   */
  --linen: #17181c;          /* deep band / marquee (be1ae56 card top, neutral-warm) */
  --sheet: #1c1e23;          /* raised card */
  --on-light: #f5f4f0;       /* ink  15.9:1 on #121418 */
  --on-light-muted: #b6b0a5; /* 8.4:1 on #121418 */
  --ink-faint: #9e988d;      /* 6.2:1 on #171a20 */
  --brass-deep: #d4b27a;     /* brass on dark: 9.2:1 on #121418 */
  --line-light: rgba(245, 244, 240, 0.10);
  --line-light-strong: rgba(245, 244, 240, 0.22);
  --ink-line: rgba(245, 244, 240, 0.46);   /* control boundary >=3:1 */
  --range-track: rgba(245, 244, 240, 0.44);
  --brass-tint: rgba(212, 178, 122, 0.12);
  --brass-rule: rgba(212, 178, 122, 0.20);
  --bp-ink: rgba(245, 244, 240, 0.52);
  --bp-ink-faint: rgba(245, 244, 240, 0.15);
  --bp-brass: rgba(212, 178, 122, 0.9);
  --bp-line-light: rgba(212, 178, 122, 0.4);
  --grid-ink: rgba(245, 244, 240, 0.035);
  --grid-light: var(--grid-ink);
  --foil-deep: linear-gradient(100deg, #ecd3a2 0%, #d4b27a 50%, #ecd3a2 100%);
  --edge-light: linear-gradient(180deg, rgba(245, 244, 240, 0.14), rgba(245, 244, 240, 0.05));
  --edge-brass-light: linear-gradient(180deg, rgba(236, 211, 162, 0.55), rgba(212, 178, 122, 0.12) 42%, rgba(212, 178, 122, 0.3));
  --shadow-paper: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 48px -28px rgba(0, 0, 0, 0.75);
  --shadow-paper-lg: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 80px 140px -60px rgba(0, 0, 0, 0.6);
  --lift-light: var(--shadow-paper);
  background: #0b0c0e;
}
html[data-theme="dark"] body { background: var(--paper); }
html[data-theme="dark"] .theme-light, html[data-theme="dark"] .theme-paper { --brass-line: rgba(212, 178, 122, 0.32); }
/* ink-UI islands (dash, ledger, custom, calc result, featured plan, about card, marquee): text back to light ink */
html[data-theme="dark"] :is(.home .dash, .home .ledger, .home .custom, .home .calc__result, .home .plan--feature,
  .page--about .expect-band .story__body, .marquee-wrap) {
  --fg: var(--on-light); --on-dark: #f5f4f0; --muted: var(--on-light-muted); }
html[data-theme="dark"] :is(.home .pill, .home .plan--feature, .home .custom, .theme-light .form__preview, .theme-paper .form__preview) { color: var(--on-light); }
/* emphasis words: the light build pins two dark-brass stops; dark gets the bright foil */
html[data-theme="dark"] :is(.theme-light, .theme-paper) :is(.display:not(.is-split) em, .display.is-split .w__i.is-em),
html[data-theme="dark"] :is(.home .process .step__num, .page--about .how--4 .step__num) {
  background: var(--foil-deep); -webkit-background-clip: text; background-clip: text; }
/* primary dark button flips to the bone button in dark */
html[data-theme="dark"] .btn--dark { color: #0b0c0e; background: linear-gradient(180deg, #fbf9f4, #e7e2d6);
  box-shadow: inset 0 1px 0 #fff, 0 1px 1px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(212, 178, 122, .35); }
html[data-theme="dark"] .btn--dark::before { background: linear-gradient(180deg, #f0d9a9, #c4a26c); }
/* hard-coded ink alphas from the light layer */
html[data-theme="dark"] .home .dash__dots i { background: rgba(245, 244, 240, .18); }
html[data-theme="dark"] .home .kpi__bars i { background: rgba(245, 244, 240, .14); }
html[data-theme="dark"] .home .kpi__jobs i { background: rgba(245, 244, 240, .10); }
html[data-theme="dark"] .home .dash__side { background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent); }
html[data-theme="dark"] .home .dash::after { background: linear-gradient(90deg, transparent, rgba(212, 178, 122, .6), transparent); }
html[data-theme="dark"] .home .dash .motion-toggle:hover { background: rgba(245, 244, 240, .06); }
html[data-theme="dark"] .home .ledger__bar i, html[data-theme="dark"] .home .ledger__bar span { --bar-bg: rgba(245, 244, 240, .1); }
html[data-theme="dark"] .home .crm .sec-bg--plate { --grid-dark: rgba(245, 244, 240, .05); }
html[data-theme="dark"] .home .ledger { box-shadow: var(--shadow-paper-lg), 18px -18px 0 -7px #15171c, 18px -18px 0 -6px rgba(245,244,240,.1), 36px -36px 0 -14px #111317, 36px -36px 0 -13px rgba(245,244,240,.07); }
html[data-theme="dark"] .sec-bg--stage::before { background: repeating-radial-gradient(circle at 50% 0, rgba(245, 244, 240, .04) 0 1px, transparent 1px 88px); }
html[data-theme="dark"] .home .demo__shell { box-shadow: 0 0 0 1px rgba(212, 178, 122, .16), 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 120px -50px rgba(212, 178, 122, .22); }
html[data-theme="dark"] .home .spot { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 178, 122, .06), transparent 64%); }
html[data-theme="dark"] .home .process .step::before { background: var(--paper); }
html[data-theme="dark"] .theme-paper.grain::after, html[data-theme="dark"] .theme-light.grain::after { mix-blend-mode: screen; opacity: .025; }
html[data-theme="dark"] .footer { box-shadow: inset 0 1px 0 rgba(212, 178, 122, .18); }
html[data-theme="dark"] .bp-art .bp-north path { fill: var(--on-light) !important; }
html[data-theme="dark"] .theme-light .bp-art .bp-dim *, html[data-theme="dark"] .theme-paper .bp-art .bp-dim * { stroke: rgba(212, 178, 122, .5); }
html[data-theme="dark"] .theme-light .bp-art .bp-hatch, html[data-theme="dark"] .theme-paper .bp-art .bp-hatch { stroke: rgba(212, 178, 122, .22); }
html[data-theme="dark"] .nf--p1 .nf__links a:hover { color: var(--on-light); }
html[data-theme="dark"] .home .dash-marks { --c: rgba(212, 178, 122, .6); }
html[data-theme="dark"] .home .dash-wrap::before { background: radial-gradient(50% 60% at 50% 40%, rgba(212, 178, 122, .14), rgba(212, 178, 122, .03) 60%, transparent); }
html[data-theme="dark"] .home .plan { border-color: rgba(245, 244, 240, .1); }

/* ---------- 3. Header: floating glass capsule + theme toggle ---------- */
.nav--solid .nav__bar, .nav.is-scrolled .nav__bar {
  max-width: 1080px; height: 60px; padding: 0 8px 0 24px;
  background: linear-gradient(180deg, rgba(24, 26, 31, .86), rgba(11, 12, 14, .88));
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border-color: rgba(245, 244, 240, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 2px rgba(11, 12, 14, .2), 0 20px 44px -22px rgba(11, 12, 14, .55);
}
html[data-theme="dark"] .nav--solid .nav__bar, html[data-theme="dark"] .nav.is-scrolled .nav__bar {
  background: linear-gradient(180deg, rgba(34, 37, 44, .72), rgba(20, 22, 27, .78));
  border-color: rgba(212, 178, 122, .28);
  box-shadow: inset 0 1px 0 rgba(236, 211, 162, .10), 0 0 0 1px rgba(0, 0, 0, .4), 0 22px 50px -20px rgba(0, 0, 0, .85);
}
.nav__links { font-size: 14.5px; letter-spacing: -0.005em; color: rgba(241, 238, 231, .76); }
.nav__end { justify-self: end; display: inline-flex; align-items: center; gap: 8px; }
.nav__end .nav__cta { justify-self: auto; }
.theme-toggle {
  position: relative; flex: none; width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid rgba(245, 244, 240, .16); background: rgba(255, 255, 255, .04);
  color: #f1eee7; cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.theme-toggle:hover { background: rgba(255, 255, 255, .09); border-color: rgba(212, 178, 122, .55); color: #ecd3a2; }
.theme-toggle:focus-visible { outline: 2px solid #d4b27a; outline-offset: 2px; }
.theme-toggle svg { grid-area: 1 / 1; width: 19px; height: 19px; transition: opacity .3s var(--ease), transform .45s var(--ease-out); }
.theme-toggle__moon { opacity: 0; transform: rotate(-40deg) scale(.6); }
html[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(60deg) scale(.6); }
html[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: none; color: #ecd3a2; }
@media (max-width: 920px) {
  .nav__bar, .nav--solid .nav__bar { grid-template-columns: 1fr auto auto; gap: 6px; }
  .nav__end .nav__cta { display: none; }
}
@media (max-width: 640px) {
  .nav--solid .nav__bar, .nav.is-scrolled .nav__bar { height: 56px; padding: 0 6px 0 18px; }
}

/* ---------- 4. Comparison: one table, one tbody, one continuous Autellis column ---------- */
.home .why .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 6vw, 96px);
  grid-template-areas: "eye eye" "title body" "cmp cmp"; align-items: end; }
.home .why .eyebrow { grid-area: eye; }
.home .why .why__title { grid-area: title; max-width: 16ch; font-size: clamp(2.3rem, 4.4vw, 4.1rem) !important; line-height: 1.02 !important; letter-spacing: var(--display-track) !important; font-stretch: var(--display-stretch); font-weight: var(--display-w); }
.home .why .why__body { grid-area: body; margin: 0 !important; max-width: 46ch; padding-bottom: .4em; }
.home .why .why__body p + p { margin-top: 1em; }
.home .why .cmp { grid-area: cmp; }
.home .why .head { display: contents; }
.cmp { margin-top: clamp(48px, 5.5vw, 80px); border-radius: 24px; overflow: hidden; background: var(--sheet);
  box-shadow: var(--shadow-paper-lg); border: 1px solid var(--line-light); }
.cmp__table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
.cmp__col-row { width: 24%; } .cmp__col-old { width: 36%; } .cmp__col-new { width: 40%; }
.cmp__h { height: 64px; padding: 0 32px; vertical-align: middle; font-family: var(--mono); font-size: 14px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--on-light-muted); border-bottom: 1px solid var(--line-light); }
.cmp__h--new { color: var(--brass-deep); background: var(--cmp-tint); box-shadow: inset 0 2px 0 var(--brass-deep), inset 1px 0 0 var(--cmp-rule), inset -1px 0 0 var(--cmp-rule);
  border-bottom-color: var(--cmp-rule); }
.cmp__table tbody th, .cmp__table td { padding: 26px 32px; vertical-align: top; border-bottom: 1px solid var(--line-light); }
.cmp__table tbody tr:last-child > * { border-bottom: 0; }
.cmp__table tbody th { font-family: var(--display); font-stretch: var(--h2-stretch); font-weight: var(--row-w); font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.25; letter-spacing: -0.01em; word-spacing: 0.04em; color: var(--on-light); }
.cmp__old { color: var(--on-light-muted); font-size: 16.5px; line-height: 1.5; }
.cmp__new { color: var(--on-light); font-size: 16.5px; line-height: 1.5; font-weight: 500; background: var(--cmp-tint);
  box-shadow: inset 1px 0 0 var(--cmp-rule), inset -1px 0 0 var(--cmp-rule); border-bottom-color: var(--cmp-rule) !important; }
.cmp__table tbody tr:last-child .cmp__new { border-bottom: 0 !important; }
.cmp__txt { display: flex; gap: 14px; align-items: flex-start; }
.cmp__old .cmp__txt::before { content: ""; flex: none; width: 14px; height: 2px; margin-top: .72em; border-radius: 2px; background: currentColor; opacity: .55; }
.cmp__new .cmp__txt::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: .14em; border-radius: 50%;
  background: var(--brass-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14.2 7.4' fill='none' stroke='%23fbfaf6' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
html[data-theme="dark"] .cmp__new .cmp__txt::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14.2 7.4' fill='none' stroke='%230b0c0e' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cmp__tag { display: none; }
:root { --cmp-tint: rgba(125, 95, 48, .075); --cmp-rule: rgba(125, 95, 48, .34); }
html[data-theme="dark"] { --cmp-tint: rgba(212, 178, 122, .08); --cmp-rule: rgba(212, 178, 122, .32); }
@media (max-width: 760px) {
  .home .why .container { grid-template-columns: 1fr; grid-template-areas: "eye" "title" "body" "legend" "cmp"; }
  .home .why .why__body { margin-top: 20px !important; }
  .home .why .why__title { max-width: none; font-size: clamp(2rem, 8.4vw, 2.5rem) !important; }
  .cmp { background: none; box-shadow: none; border: 0; border-radius: 0; overflow: visible; margin-top: 14px; }
  .cmp__table, .cmp__table tbody, .cmp__table tr, .cmp__table tbody th, .cmp__table td { display: block; width: auto; }
  .cmp__table colgroup, .cmp__table thead { display: none; }
  .cmp__table tbody { display: grid; gap: 10px; }
  .cmp__table tbody tr { position: relative; padding: 15px 18px 16px 18px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line-light);
    box-shadow: var(--shadow-paper), inset 3px 0 0 var(--brass-deep); }
  .cmp__table tbody th { padding: 0 0 8px; border: 0; font-size: 1.12rem; line-height: 1.3; }
  .cmp__table td, .cmp__table td.cmp__new { padding: 0; border: 0 !important; background: none; box-shadow: none; font-size: 15px; line-height: 1.45; }
  .cmp__table td.cmp__new { margin-top: 6px; }
  .cmp__old .cmp__txt { gap: 12px; } .cmp__old .cmp__txt::before { width: 12px; margin-top: .7em; margin-inline: 3px; }
  .cmp__new .cmp__txt { gap: 10px; } .cmp__new .cmp__txt::before { width: 18px; height: 18px; background-size: 18px; margin-top: .12em; }
  /* the column names become a one-line legend above the cards; per-card names stay for screen readers */
  .cmp__tag { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.cmp-legend { display: none; }
@media (max-width: 760px) {
  .cmp-legend { grid-area: legend; display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 30px; font-family: var(--mono); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-light-muted); }
  .cmp-legend span { display: inline-flex; align-items: center; gap: 10px; }
  .cmp-legend span:first-child::before { content: ""; width: 12px; height: 2px; border-radius: 2px; background: currentColor; opacity: .55; }
  .cmp-legend span:last-child { color: var(--brass-deep); }
  .cmp-legend span:last-child::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--brass-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14.2 7.4' fill='none' stroke='%23fbfaf6' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
  html[data-theme="dark"] .cmp-legend span:last-child::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14.2 7.4' fill='none' stroke='%230b0c0e' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}

/* ---------- 5. Marquee: sans ticker + its own padded control bay ---------- */
@media (min-width: 641px) { .marquee-wrap { display: flex; } }
.marquee-wrap { align-items: stretch; background: var(--linen); border-top: 1px solid var(--brass-rule); border-bottom: 1px solid var(--brass-rule); }
.home .marquee { flex: 1 1 auto; min-width: 0; border: 0 !important; background: transparent !important; padding-block: 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.home .marquee__track span { font-family: var(--display) !important; font-style: normal !important; font-stretch: var(--h2-stretch); font-weight: var(--marquee-w); font-size: clamp(1.05rem, 1.5vw, 1.35rem) !important;
  letter-spacing: -0.01em; line-height: 1.2; color: var(--on-light) !important; -webkit-text-stroke: 0 !important; -webkit-text-fill-color: currentColor !important; opacity: .82;
  margin-right: clamp(22px, 2.6vw, 36px); }
.home .marquee__track i { width: 7px !important; height: 7px !important; border-radius: 1px !important; transform: rotate(45deg); background: var(--brass-deep) !important;
  margin-right: clamp(22px, 2.6vw, 36px); flex: none; }
.home .marquee__ctl, .marquee__ctl { position: static !important; inset: auto !important; transform: none !important; flex: none; display: flex; align-items: center;
  padding: 0 clamp(14px, 2vw, 28px); background: var(--linen) !important; box-shadow: inset 1px 0 0 var(--brass-rule) !important; border-radius: 0 !important; }

/* ---------- 6. Hero pacing (1440x900: command center header + first rows above the fold) ---------- */
.home .hero { padding-top: clamp(104px, 10vw, 128px) !important; }
.home .hero__title { font-size: clamp(2.8rem, 6.4vw, 5.6rem) !important; margin-top: 20px !important; }
.home .hero .lede { margin-top: 20px !important; max-width: 50ch; }
.home .hero__actions { margin-top: 28px !important; gap: 10px 18px; }
.home .hero__note { margin-top: 12px !important; }
@media (min-width: 641px) { .home .dash-wrap { margin-top: 44px !important; } }
.home .hero .btn--dark { height: 54px; padding: 0 26px 0 28px; font-weight: 500; letter-spacing: 0; }
.home .hero .btn--link { font-weight: 500; }

/* ---------- 7. Sections + cards ---------- */
.home .demo__shell, .home .dash, .home .demo__panel, .home .chat, .home .cadence, .home .coach { transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.home .process .step__num { font-size: clamp(2.4rem, 3.4vw, 3.1rem); }
.home .process .step h3, .home .process .step__title { margin-top: 12px; }
.home .plan, .home .calc__card, .home .custom, .home .ledger { border-radius: 22px; }
.acc__q, .acc__title { font-size: clamp(1.15rem, 1.6vw, 1.4rem) !important; }
.footer__bottom { align-items: center; }

/* ---------- 8. Subpages ---------- */
.page--about .about-hero .page-layout__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 6vw, 96px);
  grid-template-areas: "eye eye" "title lede" "title cta"; align-items: end; max-width: none; }
.page--about .about-hero .eyebrow { grid-area: eye; }
.page--about .about-hero__title { grid-area: title; margin: 0; max-width: 12ch; }
.page--about .about-hero .lede { grid-area: lede; margin: 0; }
.page--about .about-hero__cta { grid-area: cta; margin-top: 28px; }
@media (max-width: 860px) { .page--about .about-hero .page-layout__head { grid-template-columns: 1fr; grid-template-areas: "eye" "title" "lede" "cta"; }
  .page--about .about-hero .lede { margin-top: 22px; } }
.nf--p1 .nf__links a::after { content: ""; width: 14px; height: 10px; background: currentColor; color: var(--brass-deep); opacity: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5h11M8.5 1.5L12 5l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5h11M8.5 1.5L12 5l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.bp-art .bp-404 { font-family: var(--display); font-style: normal; font-stretch: var(--display-stretch); font-weight: 500; letter-spacing: -0.03em; }
html[data-theme="dark"] .nf__plan { background: var(--sheet); }

/* ---------- 9. Theme cross-fade (only while switching; never on load; off under reduced motion) ---------- */
html.theme-switching, html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: background-color .32s ease, color .32s ease, border-color .32s ease, fill .32s ease, stroke .32s ease, box-shadow .32s ease !important; }

/* ---------- 10. Contrast fixes found by the P2 audit ---------- */
html[data-theme="dark"] :is(.theme-light, .theme-paper) .btn--link { color: var(--on-light); text-decoration-color: var(--ink-line); }
.home .dash__agents li.is-active :is(.dash__ini, .dash__ac) { color: #6a5028; }               /* was 4.18 on the doubled tint */
html[data-theme="dark"] .home .dash__agents li.is-active :is(.dash__ini, .dash__ac) { color: var(--brass-deep); }
@media (max-width: 640px) { html[data-theme="dark"] .demo__tab[aria-selected="true"] .demo__tab-num { color: #7d5f30; } }
.thanks__actions .btn svg { transform: none !important; }

/* /thanks: the confirmation reads as one centred sheet instead of a left column beside an empty half */
.thanks .container { display: flex; justify-content: center; }
.thanks__card { width: 100%; max-width: 820px; padding: clamp(24px, 4.4vw, 60px); border-radius: 28px; background: var(--sheet);
  border: 1px solid var(--line-light); box-shadow: var(--shadow-paper-lg); }
@media (max-width: 640px) { .thanks__card { padding: 24px 20px; border-radius: 22px; } }
/* footer: the big wordmark recedes on the short pages so the content leads */
body:not(.home) .footer__mark { opacity: .45; }
.footer__bottom { padding-top: 22px; }
.home .why .why__body { display: block !important; columns: auto !important; grid-template-columns: none !important; }

/* ---------- 11. P2-14 pacing: roster preview, FAQ, closing band (≥641px; phone unchanged). Spacing and layout only, no new copy ---------- */
@media (min-width: 641px) {
  /* Roster preview: the full Sales & growth group (5 agents) shows; Production, Back office and Specialists sit behind the existing
     "See all 12 agents" disclosure (same markup and JS as phone). Without JS every agent stays visible. */
  .js .home #roster-more:not(.is-open) { display: none; }
  .js .home .agents__roster .more-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 28px; }
  .home .agents__roster .custom { margin-top: 40px; }
  .home .agents { padding-bottom: clamp(104px, 11vw, 160px); }
  /* FAQ: less dead air above and below the list */
  .home .faq { padding-top: clamp(104px, 11vw, 160px); padding-bottom: clamp(88px, 9vw, 128px); }
  /* Closing band: type-only, so it needs less height */
  .home .book.expect-band { padding-block: clamp(88px, 9vw, 128px); }
}
@media (min-width: 961px) {
  /* FAQ heading travels with the list instead of leaving an empty left column */
  .home .faq__intro { position: sticky; top: 124px; }
}

/* ---------- 12. Footer contact email (info@autellis.com): 44px target, 15px, inherits the footer link colour ---------- */
.footer__contact { margin-top: 6px; }
.footer__email { display: inline-flex; align-items: center; min-height: var(--tap, 44px); font-size: 15px; color: var(--on-dark);
  text-decoration: underline; text-decoration-color: var(--brass-line, currentColor); text-underline-offset: 3px; overflow-wrap: anywhere; transition: color .2s; }
/* /book contact slot (B&C-approved "Rather email?" line): 44px link target */
.book-contact a { display: inline-flex; align-items: center; min-height: var(--tap, 44px); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- 13. Home hero: Option 1 "Monument" (design/p2/hero-options/src/option-1-monument.html) ----------
   The wordmark is assets/logo/autellis-logo-light.svg, referenced unmodified. Light theme draws it in ink with
   filter: brightness(0); dark theme shows the file as is (brightness(1) is the identity, so the blur keyframe stays valid).
   Motion is CSS only with fill-mode both: no JS class is needed for anything to become visible, and under
   prefers-reduced-motion every hero animation is removed so the final state shows at once. */
:root { --wm-filter: brightness(0); --mon-ease: cubic-bezier(.16, 1, .3, 1); }
html[data-theme="dark"] { --wm-filter: brightness(1); }
.home .hero.hero--mon { padding-top: clamp(104px, 9.2vw, 132px) !important; padding-bottom: 0; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 18%, rgba(196, 162, 108, .12), transparent 70%), var(--paper); }
html[data-theme="dark"] .home .hero.hero--mon { background: radial-gradient(70% 60% at 50% 22%, rgba(212, 178, 122, .12), transparent 70%), var(--paper); }
.mon { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.mon__pill { margin: 0 auto; animation: monFade .8s ease .05s both; }
.mon__mark { position: relative; width: min(1120px, 100%); margin: 34px auto 0; }
.mon__wm { display: block; width: 100%; height: auto; filter: var(--wm-filter); animation: monWipe 1.5s var(--mon-ease) .15s both; }
.mon__scan { position: absolute; top: -14px; bottom: -14px; left: 0; width: 2px; pointer-events: none;
  background: linear-gradient(transparent, var(--brass-deep) 20%, var(--brass-deep) 80%, transparent); opacity: 0; animation: monScan 1.5s var(--mon-ease) .15s both; }
@keyframes monWipe { from { clip-path: inset(0 100% 0 0); filter: var(--wm-filter) blur(6px); } to { clip-path: inset(0 0 0 0); filter: var(--wm-filter) blur(0); } }
@keyframes monScan { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes monGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes monFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes monRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes monUp { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
.mon__rule { display: flex; align-items: center; gap: 22px; width: min(1120px, 100%); margin: 30px auto 0;
  font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-light-muted); }
.mon__rule i { flex: 1; height: 1px; background: var(--brass-rule); transform-origin: center; animation: monGrow 1.2s var(--mon-ease) .9s both; }
.mon__rule span { animation: monFade .8s ease 1.2s both; }
.home .mon__h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: .98; margin: 34px auto 0; animation: monRise .9s var(--mon-ease) 1s both; }
.home .mon__sub { max-width: 640px; margin: 20px auto 0; font-size: 18px; line-height: 1.6; color: var(--on-light-muted); animation: monRise .9s var(--mon-ease) 1.15s both; }
.mon__acts { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; align-items: center; margin-top: 28px; animation: monRise .9s var(--mon-ease) 1.3s both; }
.home .mon__acts .btn--dark { height: 54px; padding: 0 26px 0 28px; font-weight: 500; letter-spacing: 0; }
.home .mon__acts .btn--link { min-height: 44px; font-weight: 500; }
.mon__note { margin: 14px auto 0; font-size: 15px; line-height: 1.5; color: var(--on-light-muted); animation: monFade .8s ease 1.5s both; }
/* Command Center peek (sample data): obsidian in both themes, rises at the fold */
.mon__peek { position: relative; z-index: 2; width: min(1080px, calc(100% - 2 * var(--gutter))); margin: 46px auto 0; padding: 16px 20px 28px; text-align: left;
  border-radius: 20px 20px 0 0; background: linear-gradient(180deg, #17181c, #0f1013); border: 1px solid rgba(241, 238, 231, .12); border-bottom: 0;
  box-shadow: 0 -30px 80px -40px rgba(11, 12, 14, .5); color: #f1eee7; animation: monUp 1.1s var(--mon-ease) 1.55s both; }
.mon__bar { display: flex; align-items: center; gap: 14px; color: #b6b0a5; }
.mon__dots { display: flex; gap: 6px; } .mon__dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3e47; }
.mon__barmark { display: block; height: 12px; width: auto; filter: none; }
.mon__label { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #b6b0a5; }
.mon__tag { min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(241, 238, 231, .2); color: #ecd3a2 !important; background: transparent !important; white-space: nowrap; }
.mon__live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 15px; color: #f1eee7; }
.mon__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8fcfa6; box-shadow: 0 0 0 4px rgba(143, 207, 166, .15); }
.mon__k { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 12px; margin-top: 14px; }
.mon__k > div { border-radius: 14px; background: #1c1e23; border: 1px solid rgba(241, 238, 231, .08); padding: 14px 18px; }
.mon__kv { margin-top: 6px; font-family: var(--display); font-stretch: 110%; font-weight: 440; font-size: 42px; letter-spacing: -.02em; line-height: 1.1; color: #f1eee7; font-variant-numeric: tabular-nums; }
.mon__kv small { margin-left: 6px; font-size: 17px; font-stretch: 100%; font-weight: 400; letter-spacing: 0; color: #b6b0a5; }
.mon__ks { margin-top: 2px; font-size: 15px; color: #b6b0a5; }
.mon__rule, .mon__note, .mon__peek, .mon__peek p { line-height: normal; }   /* the prototype's metrics (body line-height: normal) */
.home .mon__kv { line-height: 1.1; }
.home .hero--mon .mon__sub { max-width: 640px; line-height: 1.6; text-wrap: wrap; }   /* the prototype's measure (beats .lede's 54ch / pretty) */
@media (max-width: 900px) {
  .mon__mark { margin-top: 26px; }
  .mon__rule { gap: 12px; margin-top: 20px; } .mon__rule span { letter-spacing: .04em; }
  .home .mon__h1 { font-size: 40px; margin-top: 24px; }
  .home .mon__sub { font-size: 17px; }
  .mon__acts { flex-direction: column; gap: 10px; } .mon__acts .btn--dark { width: 100%; }
  .mon__k { grid-template-columns: 1fr 1fr; } .mon__k > div:last-child { grid-column: 1 / -1; }
  .mon__barmark, .mon__barname { display: none; }
}
@media (max-width: 480px) {
  .mon__dots { display: none; }   /* decorative window dots: frees room so "10 agents active" is not clipped at 375 */
  .mon__pill { letter-spacing: 0; white-space: nowrap; padding: 6px 12px; }
  .mon__pill .pill__dot { display: none; }
}
@media (max-width: 360px) {
  .mon__bar { flex-wrap: wrap; row-gap: 8px; }   /* 320: let "10 agents active" drop to its own line instead of clipping */
}
/* Reduced motion (and the site's Pause preference): the final state, immediately */
@media (prefers-reduced-motion: reduce) {
  .home .hero--mon *, .home .hero--mon *::before, .home .hero--mon *::after { animation: none !important; }
  .mon__scan { display: none; }
}
html.motion-paused .home .hero--mon *, html.motion-paused .home .hero--mon *::before { animation: none !important; }
html.motion-paused .mon__scan { display: none; }
