/* ==========================================================================
   Autellis P0 — new components for /book, /book/thanks, /about, /privacy,
   /terms, 404 and the motion control. Reads only existing tokens from
   source/site/css/styles.css (+ size tokens in p0-fixes.css).
   ========================================================================== */

:root {
  --page-top: 132px;            /* clearance under the fixed nav on sub-pages (desktop) */
  --cal-min-h: 680px;           /* Cal.com inline embed area, desktop */
  --cal-min-h-sm: 560px;        /* Cal.com inline embed area, phone */
  --measure: 68ch;              /* legal reading measure */
}
@media (max-width: 640px) { :root { --page-top: 104px; } }

/* ---------- Multi-page footer additions ---------- */
.footer__cols { display: flex; flex-wrap: wrap; gap: 8px 56px; }
.footer__col h2 { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--on-dark-faint); font-weight: 400; margin-bottom: 6px; }
.footer__col nav { display: flex; flex-direction: column; font-size: 15px; color: var(--muted); }
.footer__col a { display: inline-flex; align-items: center; min-height: var(--tap); }
.footer__col a:hover { color: var(--on-dark); }

/* ---------- Placeholder marker (copy still owed by Alex / Brand & Content) ---------- */
.ph { font-family: var(--mono); font-size: max(14px, 0.86em); background: var(--brass-soft); border: 1px dashed var(--brass-line); border-radius: 4px; padding: 1px 6px; color: inherit; }
.theme-light .ph, .theme-paper .ph { border-color: rgba(125, 95, 48, 0.45); }

/* ---------- Page hero (sub-pages) ---------- */
.page-layout { padding-top: var(--page-top); }
.page__head { max-width: 760px; }
.page__head .h2 { margin-top: 22px; }
.page__head .lede { margin-top: 22px; }

/* Home closing band; the form now lives on /book. */
.expect-band { position: relative; overflow: hidden; }
.book__band { position: relative; text-align: center; }
.book__band .book__title { max-width: 18ch; margin: 22px auto 0; }
.book__band .lede { max-width: 62ch; margin: 24px auto 32px; }
.book__helper { font-size: var(--fs-meta); color: var(--muted); margin-top: 14px; }
.expect--row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; max-width: 1040px; margin: 48px auto 0; text-align: left; border-top: 1px solid var(--line); }
.expect--row li { border-bottom: 0; }
.plan { display: flex; flex-direction: column; }
.plan__cta { margin-top: auto; }
.plan__list { margin-bottom: 24px; }
@media (max-width: 760px) { .expect--row { grid-template-columns: 1fr; } .expect--row li { border-bottom: 1px solid var(--line); } .expect-band { text-align: left; } .expect-band .btn { width: 100%; } }

/* ========================== /book ========================== */
.bookp { padding-bottom: clamp(72px, 9vw, 128px); }
.bookp__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.bookp__aside { position: sticky; top: 124px; }
.bookp__title { margin-top: 22px; font-size: clamp(2.5rem, 4.6vw, 4.4rem); }
.bookp__aside .lede { margin-top: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-meta); color: var(--muted); }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.host { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 32px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.02); }
.host__photo { width: 64px; height: 64px; border-radius: 50%; border: 1px dashed var(--brass-line); background: var(--brass-soft); display: grid; place-items: center; font-family: var(--mono); font-size: var(--fs-label); color: var(--brass); text-align: center; line-height: 1.1; }
.host__name { font-size: 16px; color: var(--fg); }
.host__role { font-size: var(--fs-meta); color: var(--muted); }
.picks { margin-top: 28px; }
.picks__label { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--on-dark-faint); }
.picks__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.picks__list li { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--brass-soft); border: 1px solid var(--brass-line); color: var(--brass-hi); font-size: var(--fs-meta); }
.picks__edit { display: inline-flex; align-items: center; min-height: var(--tap); margin-top: 4px; font-size: var(--fs-meta); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.alt-contact { margin-top: 28px; font-size: var(--fs-meta); color: var(--muted); }

/* The booking area: ONE box. Cal.com inline embed when CAL_LINK is set; fallback form until then. */
.book-area { position: relative; border-radius: var(--radius-lg); padding: 1px; background: var(--edge); box-shadow: 0 60px 110px -55px rgba(0,0,0,0.95), 0 30px 70px -45px rgba(196,162,108,0.14); }
.book-area__inner { border-radius: calc(var(--radius-lg) - 1px); background: var(--card-dark); padding: clamp(20px, 3vw, 36px); }
.book-area__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.book-area__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.1rem); line-height: 1.1; }
.book-area__sub { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 52ch; }
.cal-slot { margin-top: 24px; min-height: var(--cal-min-h); width: 100%; border-radius: var(--radius); overflow: hidden; }
@media (max-width: 640px) { .cal-slot { min-height: var(--cal-min-h-sm); } }

/* Wireframe skeleton of the Cal.com month view (shown while the embed loads) */
.cal-skel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; height: var(--cal-min-h); border: 1px solid var(--line-dark-strong); border-radius: var(--radius); }
.cal-skel__cal { padding: 24px; border-right: 1px solid var(--line-dark); }
.cal-skel__times { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.cal-skel__month { display: flex; justify-content: space-between; align-items: center; height: 44px; color: var(--on-dark); font-size: 16px; }
.cal-skel__grid { margin-top: 16px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-skel__grid span { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-size: var(--fs-label); color: var(--on-dark-faint); }
.cal-skel__grid span.d { color: var(--on-dark-muted); background: rgba(255,255,255,0.04); }
.cal-skel__grid span.on { color: var(--ink); background: var(--brass); }
.cal-skel__grid span.h { font-size: var(--fs-label); color: var(--on-dark-faint); aspect-ratio: auto; height: 28px; background: none; }
.cal-skel__slot { height: 48px; border: 1px solid var(--line-dark-strong); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: var(--fs-label); color: var(--on-dark-muted); }
.cal-skel__slot.on { border-color: var(--brass); color: var(--brass-hi); }
.cal-skel__day { font-size: 15px; color: var(--on-dark); margin-bottom: 4px; }
@media (max-width: 640px) {
  .cal-skel { grid-template-columns: 1fr; height: auto; min-height: var(--cal-min-h-sm); }
  .cal-skel__cal { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 16px; }
  .cal-skel__times { padding: 16px; }
}

/* Fallback form (≤ 4 fields) inside the same booking area */
.qform__grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.qform .field input { min-height: 54px; }
.qform .field label { font-size: var(--fs-meta); }
.field__hint { font-size: var(--fs-meta); color: var(--on-dark-faint); }
.field__error { align-items: center; gap: 6px; }
.field.is-invalid .field__error { display: flex; }
.field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(235,163,146,0.12); }
.qform__consent { margin-top: 18px; font-size: var(--fs-meta); color: var(--on-dark-faint); line-height: 1.55; }
.qform__consent a { color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 3px; }
.qform__summary { margin-top: 20px; padding: 14px 16px; border: 1px solid rgba(235,163,146,0.5); border-radius: 10px; color: var(--on-dark); font-size: 15px; }
.qform__summary strong { color: var(--danger); font-weight: 500; }
.qform__summary ul { margin-top: 6px; list-style: disc; padding-left: 1.2em; color: var(--on-dark-muted); font-size: var(--fs-meta); }
.qform__summary a { text-decoration: underline; text-underline-offset: 3px; }
.qform .form__submit { margin-top: 22px; }
.qform__respond { margin-top: 12px; text-align: center; font-size: var(--fs-meta); color: var(--muted); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(11,12,14,0.25); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .bookp__grid { grid-template-columns: 1fr; }
  .bookp__aside { position: static; }
  .qform__grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 960px) and (min-width: 641px) { .bookp__grid { grid-template-columns: 1fr; } .bookp__aside { position: static; } }

/* /book order: desktop = intro + details left, booking area right; phone = intro, booking area, details */
.bookp__grid { grid-template-areas: "intro area" "more area"; grid-template-rows: auto 1fr; row-gap: 0; }
.bookp__intro { grid-area: intro; } .bookp__more { grid-area: more; } .bookp__area { grid-area: area; position: sticky; top: 112px; }
@media (max-width: 960px) {
  .bookp__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "area" "more"; row-gap: 32px; }
  .bookp__area { position: static; }
  .bookp__more .expect { margin-top: 8px; }
}

.bookp__intro .lede { margin-top: 22px; }

/* placeholder slot labels */
.slot-opt { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--on-dark-faint); }
.btn--link { height: var(--tap); padding: 0 8px; color: var(--on-dark); border: 0; background: none; text-decoration: underline; text-decoration-color: var(--field-line); text-underline-offset: 6px; }
.btn--link:hover { text-decoration-color: var(--brass); }

/* Shared small headings / lists used on /book, /book/thanks, /about, 404 */
.mini-h { display: block; margin: 36px 0 4px; font-family: var(--mono); font-size: var(--fs-label); font-weight: 400; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--accent); }
.bookp__more .mini-h:first-child { margin-top: 28px; }
.after-list { margin-top: 18px; font-size: 15px; color: var(--muted); max-width: 60ch; }
.after-list b { color: var(--fg); font-weight: 500; }
.ready { margin-top: 10px; }
.ready li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.ready li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 1px; background: var(--accent); }
.picks-line { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--brass-line); border-radius: 10px; background: var(--brass-soft); font-size: var(--fs-meta); color: var(--on-dark-muted); }
.picks-line b { color: var(--brass-hi); font-weight: 500; }
.picks-line a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: var(--tap); margin: -14px 0; padding-left: 4px; }
/* /book now keeps intro + details in the left column */
.bookp__more .expect { margin-top: 8px; }

/* Booking additions (design-p0 step 1) */
.bookp { position: relative; overflow: hidden; padding-top: var(--page-top); }
.field__icon { flex: none; width: 18px; height: 18px; color: var(--danger); }
.field__error { font-size: var(--fs-meta); }
.spinner { display: none; }
.form__submit[aria-busy="true"] .spinner { display: inline-block; }
.form__submit[aria-busy="true"] svg { display: none; }
.qform.is-busy input { opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.qform__summary-title { color: var(--danger); font-weight: 500; }
.qform__summary a { display: inline-flex; align-items: center; min-height: var(--tap); }
.qform__summary ul { margin-top: 0; }
.qform__consent a, .book-area .qform__consent a { display: inline-block; padding-block: 13px; margin-block: -13px; }
.cal-status { margin-top: 16px; font-size: var(--fs-meta); color: var(--on-dark-muted); }
.cal-status--error { margin-bottom: 8px; padding: 12px 14px; border: 1px solid rgba(235,163,146,0.5); border-radius: 10px; color: var(--on-dark); }
.qform .field input { border-radius: 12px; border: 1px solid var(--field-line); background-color: rgba(255,255,255,0.035); font-size: 16px; }
/* Chrome's default placeholder is #757575, about 3.8:1 on the field fill. Firefox fades the inherited color. Muted text clears 4.5:1 on the same fill. */
.qform .field input::placeholder { color: var(--on-dark-muted); opacity: 1; }
/* Skip-link target. The native outline on #main is clipped (the page is exactly
   the viewport wide and the body hides overflow), so the ring is a fixed frame.
   Brass reads on the dark glow; the ink halo reads on bone. One ring crosses both. */
#main:focus { outline: none; }
#main:focus-visible { outline: none; }
#main:focus-visible::before {
  content: "";
  position: fixed;
  z-index: 80;
  pointer-events: none;
  inset: 6px;
  border: 2px solid var(--brass);
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--ink);
}
.qform .field input:hover { border-color: rgba(241,238,231,0.55); }
.qform .field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(235,163,146,0.12); }
.qform .form__submit { width: 100%; min-height: 54px; justify-content: center; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== P1 #8 Hero (M1): text-link secondary and .hero__note (copy-review §7 item 10) ===== */
.hero__actions .btn--link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; font-size: 15px; }
.hero__note { margin-top: 20px; font-family: var(--sans); font-size: var(--fs-meta); line-height: 1.5; color: var(--on-dark-muted); max-width: 60ch; margin-inline: auto; text-align: center; text-wrap: balance; }
@media (max-width: 640px) {
  .hero__note { margin-top: 14px; font-size: 15px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .hero__actions .btn--link { align-self: center; flex: none; }
}

/* ===== P1 #6 Phone length (MOBILE.md): real disclosures, no DOM patch ===== */
.more-btn, .plans__dots { display: none; }
/* Keep no-JS content accessible: all details show without JS. */
@media (max-width: 640px) {
  :root { --section: 56px; }
  .hero { padding-bottom: 48px; }
  .ops__feed { height: 260px; }
  .dash__rail, .strip, .marquee-wrap { display: none; } /* #18: decorative marquee stays off at phone widths */
  .why__body p + p { display: none; }
  .js .disclose__more:not(.is-open) { display: none; }
  .js .more-btn { display: inline-flex; width: 100%; margin-top: 20px; min-height: 48px; justify-content: center; }
  .demo .head .lede, .ticks { display: none; }
  .demo__panel { gap: 16px; }
  .chat__thread { max-height: 300px; overflow: hidden; }
  .agents .lede, .agents__intro .btn { display: none; }
  .custom { padding: 24px; }
  .crm .features, .custom__text { display: none; }
  .ledger__rows div:nth-child(n+4), .ledger__sub, .ledger__note { display: none; }
  .calc .head .lede, .process .head .lede, .packages .head .lede { display: none; }
  .step__title { margin-top: 8px; }
  .step + .step, .step:nth-child(n + 3) { margin-top: 20px; padding-top: 16px; }
  .plans { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
  .plans > * { scroll-snap-align: start; margin: 0; }
  .plans__dots { display: flex; justify-content: center; gap: 4px; }
  .plans__dots button { display: grid; place-items: center; width: var(--tap); height: var(--tap); border: none; background: transparent; color: var(--accent); cursor: pointer; }
  .plans__dots button span { width: 7px; height: 7px; border-radius: 50%; background: transparent; border: 1px solid var(--accent); }
  .plans__dots button[aria-current="true"] span { background: var(--accent); }
  .book .lede, .book .expect { display: none; }
  .book .book__band { text-align: left; }
  .book__band .book__title { margin-top: 16px; }
  .book__band > .btn { margin-top: 24px; }
  .expect li { padding: 12px 0; }
  .footer__mark { margin: 32px 0 24px; }
  .demo__text, .acc__desc { display: none; }
  .agents__roster .acc { position: relative; }
  .agents__roster .acc__head { padding: 16px 104px 16px 0; min-height: 76px; }
  .acc__add { position: absolute; top: 16px; right: 0; margin: 0; }
  .step__num { font-size: 1.6rem; display: inline-block; margin-right: 10px; }
  .step__title { display: inline; }
  .step__text { margin-top: 6px; }
  .plan__glyph { display: none; }
  .faq .acc__head { padding: 16px 0; }
  /* Result first on phone; controls retain their DOM fields behind a button. */
  .calc__card { grid-template-areas: "result" "toggle" "controls"; }
  .calc__result { grid-area: result; }
  .calc__more { grid-area: toggle; width: auto !important; margin: 16px 20px !important; }
  .calc__controls { grid-area: controls; }
}

/* ===== P1 #7/#9 Type floor and 44px targets at every width (TYPE-AND-TAPS.md) ===== */
.nav__links a { min-width: var(--tap); min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; }
.footer__nav a, .footer__legal a, .nf__links a, .toc a { min-width: var(--tap); min-height: var(--tap); display: inline-flex; align-items: center; }
.motion-toggle { height: var(--tap); min-height: var(--tap); min-width: var(--tap); flex: none; }
.dash__bar { height: 60px; }
@media (max-width: 640px) { .dash__bar { height: 60px; justify-content: space-between; } }
/* The hero dash is tilted in 3D until it scrolls in (y-scale ≈ .90 at the top);
   50px keeps the rendered toggle ≥44px at any tilt. */
.dash__bar .motion-toggle { height: 50px; min-height: 50px; }

/* ===== P1 #10 Demo tabs: one scrolling row of 44px pills on phone (audit M3) ===== */
@media (max-width: 640px) {
  .demo__tabs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .demo__tab, .demo__tab + .demo__tab { flex: none; scroll-snap-align: start; flex-direction: row; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; }
  .demo__tab::after { display: none; }
  .demo__tab[aria-selected="true"] { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
  .demo__tab[aria-selected="true"] .demo__tab-num { color: var(--brass-deep); }
  .demo__tab-name { font-family: var(--sans); font-size: var(--fs-ui); font-weight: 500; letter-spacing: 0; white-space: nowrap; }
}

/* UX condition (f): the call steps sit beside the card on desktop and ABOVE it on phone. */
.bookp__grid { grid-template-areas: "intro area" "steps area" "more area"; grid-template-rows: auto auto 1fr; }
.bookp__steps { grid-area: steps; }
.bookp__steps .mini-h { margin-top: 28px; }
@media (max-width: 960px) {
  .bookp__grid { grid-template-areas: "intro" "steps" "area" "more"; grid-template-rows: none; }
  .bookp__steps .mini-h { margin-top: 0; }
}

/* UX: phone Home ≤12 screens with no content cut; take it from the closing band's bottom padding only. */
@media (max-width: 640px) { .book.expect-band { padding-bottom: 28px; } }

/* ===== §3 New pages: /book/thanks, 404, /about, /privacy, /terms (SPEC §1.6, §4–§6) ===== */
/* ========================== /book/thanks ========================== */
.thanks { min-height: 100vh; display: flex; align-items: center; padding-block: var(--page-top) 96px; }
.thanks__card { max-width: 760px; }
.thanks__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--brass); background: var(--brass-soft); border: 1px solid var(--brass-line); }
.thanks__mark svg { width: 26px; height: 26px; }
.thanks__title { margin-top: 28px; font-size: clamp(2.6rem, 5vw, 4.6rem); }
.thanks .lede { margin-top: 20px; }
.prep { margin-top: 40px; }
.prep h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.prep ol { margin-top: 16px; border-top: 1px solid var(--line); }
.prep li { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.prep li span { font-family: var(--mono); font-size: var(--fs-label); color: var(--brass); padding-top: 2px; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 640px) { .thanks__actions .btn { flex: 1 1 100%; } }

/* ========================== 404 ========================== */
.nf { min-height: 100vh; display: flex; align-items: center; padding-block: var(--page-top) 80px; overflow: hidden; }
.nf__code { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--brass); }
.nf__title { margin-top: 22px; font-size: clamp(3rem, 8vw, 7.4rem); }
.nf .lede { margin-top: 22px; }
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.nf__links { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 0 28px; border-top: 1px solid var(--line); padding-top: 12px; max-width: 640px; }
.nf__links a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--muted); font-size: 15px; }
.nf__links a:hover { color: var(--fg); }
.nf__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.nf__bg::before { content: ""; position: absolute; width: 1000px; height: 1000px; right: -320px; top: -380px; background: radial-gradient(closest-side, rgba(196,162,108,0.16), rgba(196,162,108,0.04) 55%, transparent); }
@media (max-width: 640px) { .nf__actions .btn { flex: 1 1 100%; } }

/* ========================== /about ========================== */
.about-hero { padding-block: var(--page-top) clamp(64px, 8vw, 112px); }
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 6vw, 96px); }
.story__body { max-width: 62ch; }
.story__body p { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.7; color: var(--fg); }
.story__body p + p { margin-top: 18px; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.how li { padding: 28px 28px 0 0; }
.how li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.how__num { font-family: var(--mono); font-size: var(--fs-label); color: var(--accent); letter-spacing: var(--ls-label); }
.how h3 { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.1; }
.how p { margin-top: 10px; color: var(--muted); }
.data-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 40px; }
.data-strip li { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.data-strip strong { display: block; font-weight: 500; color: var(--fg); }
.data-strip span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.cta-band { text-align: center; }
.cta-band .h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lede { margin: 20px auto 0; }
.cta-band .btn { margin-top: 32px; }
@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
  .how, .data-strip { grid-template-columns: 1fr; }
  .how li, .how li + li { padding: 24px 0 0; border-left: 0; }
  .how li + li { margin-top: 24px; border-top: 1px solid var(--line); }
}
/* ========================== Legal (/privacy, /terms) ========================== */
.legal-hero { padding-block: var(--page-top) clamp(40px, 5vw, 64px); }
.legal-hero .h2 { margin-top: 20px; font-size: clamp(2.4rem, 4.4vw, 4rem); }
.legal-hero .lede { margin-top: 18px; }
.legal-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-meta); color: var(--muted); }
.legal-meta b { font-family: var(--mono); font-weight: 400; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--on-light-muted); margin-right: 8px; }
.legal-wrap { padding-block: clamp(40px, 5vw, 72px) clamp(72px, 9vw, 128px); }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, var(--measure)); gap: clamp(32px, 6vw, 96px); justify-content: start; }
.toc { position: sticky; top: 112px; align-self: start; }
.toc__label { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--accent); }
.toc ol { margin-top: 12px; border-left: 1px solid var(--line); }
.toc a { display: flex; align-items: center; min-height: var(--tap); padding: 4px 0 4px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 15px; color: var(--muted); line-height: 1.3; }
.toc a:hover { color: var(--fg); }
.toc a[aria-current="true"] { color: var(--fg); border-left-color: var(--accent); }
.toc-m { display: none; }
.prose { font-size: 17px; line-height: 1.7; color: var(--fg); }
.prose > :first-child { margin-top: 0; }
.prose h2 { scroll-margin-top: 104px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 2.4vw, 2.2rem); line-height: 1.15; letter-spacing: -0.012em; margin: 56px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 28px 0 8px; }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 12px 0; }
.prose ol { list-style: decimal; padding-left: 1.3em; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--accent); }
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { font-weight: 600; }
.prose .callout { margin: 20px 0; padding: 18px 22px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bone); }
.prose .callout p { font-weight: 500; }
.prose .legal-meta { display: none; }
.backtop { display: inline-flex; align-items: center; min-height: var(--tap); margin-top: 40px; font-size: var(--fs-meta); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-m { display: block; margin-bottom: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
  .toc-m summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; cursor: pointer; list-style: none; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--accent); }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m summary::after { content: "+"; font-size: 20px; }
  .toc-m[open] summary::after { content: "–"; }
  .toc-m ol { padding: 0 18px 10px; }
  .toc-m a { display: flex; align-items: center; min-height: var(--tap); font-size: 15px; color: var(--fg); border-top: 1px solid var(--line); }
  .prose { font-size: 16.5px; }
}
.story__h { margin-top: 22px; font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
.story__body .mini-h { margin-top: 28px; }
.story__body .picks__edit { margin-top: 12px; }
.how--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .how--4 { grid-template-columns: 1fr 1fr; } .how--4 li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 760px) { .how--4 { grid-template-columns: 1fr; } }
.toc { max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; }
/* Legal: DRAFT banner pinned to the bottom edge so it never collides with the fixed nav */
.draft-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px var(--gutter); text-align: center; background: rgba(18,19,22,0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--brass-line); color: var(--on-dark); font-size: var(--fs-meta); line-height: 1.45; }
.draft-banner strong { display: block; font-family: var(--mono); font-weight: 400; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--brass-hi); }
.draft-banner span { display: block; color: var(--on-dark-muted); }
.legal-page { padding-bottom: 96px; }
body:has(.draft-banner) .footer { padding-bottom: 110px; }
/* Placeholders in legal copy: dashed brass-deep box, mono, never mistaken for final text */
.prose .ph, .legal-hero .ph { font-size: max(14px, 0.86em); background: rgba(196,162,108,0.16); border: 1px dashed var(--brass-deep); color: var(--on-light); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.toc .ph { font-size: 14px; }
/* §3 additions */
.thanks, .nf, .about-hero, .cta-band { position: relative; overflow: hidden; }
/* .legal-page must not clip: overflow would break the sticky contents list. */
.thanks .thanks__eyebrow { margin-top: 28px; }
.thanks .thanks__title { margin-top: 18px; }
.thanks .picks-line { margin-top: 16px; }
.nf__links-h { width: 100%; margin: 0 0 4px; }
.about-hero__title { margin-top: 22px; font-size: clamp(3rem, 7vw, 6.4rem); }
.about-hero .lede { margin-top: 22px; max-width: 62ch; }
.about-hero__cta { margin-top: 32px; }
.about__h { margin-top: 22px; max-width: 18ch; }
.how + .after-list { margin-top: 28px; }
.about__cta { margin-top: 32px; }
.text-link { display: inline-flex; align-items: center; min-height: var(--tap); margin-top: 12px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.page-layout__head { max-width: 900px; }
/* Legal: draft banner pinned to the bottom (overrides the P0 top banner) */
.draft-banner { top: auto; }
.legal-hero .eyebrow { font-weight: 400; }
/* Legal inline links: vertical padding grows each link's hit area to 44px without moving text (line boxes ignore inline padding). */
.prose a { padding-block: 11px; }
.prose .ph { font-size: max(14px, 0.86em); }
/* Light legal pages: the nav sits in its solid "scrolled" capsule from the top so the logo and links stay legible (SPEC §6 render). */
.page--legal .nav .nav__bar {
  max-width: 1040px; padding: 0 10px 0 22px;
  background: rgba(15, 16, 19, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(241, 238, 231, 0.13);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
/* Headings that receive programmatic focus (thanks, 404) are not controls: no ring. */
h1[tabindex="-1"]:focus { outline: none; }
@media (max-width: 640px) { .page--legal .nav .nav__bar { padding: 0 6px 0 18px; } }
/* html already has scroll-padding-top: var(--nav-offset); the design's 104px margin would stack to ~200px. */
.prose h2 { scroll-margin-top: 8px; }
/* "Good to have ready" has no number column: the .prep li grid would squeeze the text into 32px (also in the design render). */
.prep .ready li { display: block; padding: 14px 0 14px 22px; }
.prep .ready li::before { top: calc(14px + 0.8em); }

/* ===== Audit P2 #17: clearance under the phone sticky CTA or the team dock ===== */
body.has-floater { padding-bottom: 88px; }

/* ===== Home: quiet, expensive. One head pattern. Phone height is unchanged. ===== */

/* Desktop only: more air, a looser headline, one measure for the lede. */
@media (min-width: 641px) {
  .home { --section: clamp(120px, 14vw, 208px); }
  .home .h1 { line-height: 0.96; letter-spacing: -0.032em; }
  .home .h2 { line-height: 1.08; letter-spacing: -0.026em; }
  .home .lede, .home .hero__lede { line-height: 1.7; }
  .home .head { align-items: end; gap: clamp(40px, 6vw, 104px); }
  .home .head .eyebrow { margin-bottom: 28px; }
  .home .head .lede { max-width: 36ch; }
  .home .why__body { margin-top: clamp(64px, 7vw, 104px); }
  .home .demo__shell,
  .home .compare,
  .home .calc__card,
  .home .steps,
  .home .plans { margin-top: clamp(72px, 8vw, 120px); }
  .home .footer { padding-top: clamp(88px, 9vw, 128px); }
  .home .footer__mark { margin-top: clamp(72px, 8vw, 128px); }
}

/* One focal point: pull the brass glows and the heavy card shadows back. */
.home .hero__bg::before {
  background-image:
    linear-gradient(to right, rgba(241, 238, 231, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(241, 238, 231, 0.03) 1px, transparent 1px);
}
.home .hero__bg::after {
  background: radial-gradient(closest-side, rgba(196, 162, 108, 0.14), rgba(196, 162, 108, 0.035) 52%, transparent 100%);
  animation-duration: 28s;
}
@keyframes breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
.home .dash-wrap::before {
  filter: none;
  background: radial-gradient(50% 55% at 50% 42%, rgba(196, 162, 108, 0.12), transparent 72%);
}
.home .dash {
  box-shadow: 0 28px 56px -36px rgba(0, 0, 0, 0.62);
}
.home .dash::after { opacity: 0.45; }
.home .demo::before { opacity: 0.4; }
.home .demo__shell { box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.5); }
.home .chat,
.home .cadence,
.home .coach { box-shadow: 0 16px 32px -22px rgba(0, 0, 0, 0.5); }
.home .custom { box-shadow: 0 18px 36px -28px rgba(11, 12, 14, 0.45); }
.home .custom::before { opacity: 0.45; }
.home .crm::before { opacity: 0.55; }
.home .ledger { box-shadow: 0 22px 44px -30px rgba(0, 0, 0, 0.55); }
.home .calc__card { box-shadow: 0 18px 40px -32px rgba(11, 12, 14, 0.28); }
.home .plan { box-shadow: none; }
.home .plan:hover { box-shadow: 0 14px 28px -22px rgba(11, 12, 14, 0.28); }
.home .plan--feature { box-shadow: 0 18px 36px -26px rgba(11, 12, 14, 0.4); }
.home .plan--feature:hover { box-shadow: 0 22px 40px -26px rgba(11, 12, 14, 0.48); }
.home .plan__glyph { display: none; }
.home .plan__label { margin-top: 0; }
.home .book__bg::before {
  background: radial-gradient(closest-side, rgba(196, 162, 108, 0.09), transparent 68%);
}
.home .spot {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(236, 211, 162, 0.05), transparent 64%);
}
.home .ops__dot { animation-duration: 4.8s; }

/* Smaller, slower entrances. Reduced motion still wins in styles.css. */
.js .home [data-reveal] { transform: translateY(8px); transition-duration: 1.15s; }
.js .home [data-reveal].is-in { transform: none; }
.js .home .is-split .w__i { transform: translateY(64%); transition-duration: 1.45s; }
.js .home .is-split.is-in .w__i { transform: none; }
/* The hero is the largest paint. It is still on the first frame, so LCP does not wait on the rise. */
.js .home .hero__copy [data-reveal],
.js .home .hero__copy .is-split .w__i { transform: none; transition: none; }
.home .marquee__track { animation-duration: 130s; }
.home .demo__panel { animation-duration: 0.95s; }
.home .msg.is-in,
.home .coach__scene.is-in { animation-duration: 0.85s; }
.home .dash { transition-duration: 0.8s; }
.home .btn,
.nav .btn { transition-duration: 0.5s; }
.home .btn:hover svg,
.nav .btn:hover svg,
.footer .btn:hover svg { transform: translateX(2px); }

/* Shared nav: a short hairline, not a full underline. The capsule shadow stays soft. */
.nav__links a { transition-duration: 0.4s; }
.nav__links a::after { left: 0; right: auto; width: 18px; transition-duration: 0.55s; }
.nav.is-scrolled .nav__bar {
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav__bar { transition-duration: 0.7s; }

/* Shared footer: quieter links, the same hairline. Phone spacing is untouched. */
.footer { border-top-color: rgba(241, 238, 231, 0.08); }
.footer__tag { line-height: 1.65; }
.footer__nav a,
.footer__legal a { transition: color 0.4s var(--ease); }
.footer__mark { opacity: 0.85; }

/* Phone: fewer outlines, same height. */
@media (max-width: 640px) {
  .home .demo__tab { background: transparent; border-color: rgba(241, 238, 231, 0.16); }
  .home .demo__tab[aria-selected="true"] { background: var(--on-dark); border-color: var(--on-dark); }
  .home .custom { box-shadow: none; }
  .home .calc__card { box-shadow: none; }
}

/* ==========================================================================
   P1 LIGHT (design/p1/SPEC.md revision 2, Nov 19, 2026): a mostly light paper site. Dark stays only for
   the nav capsule, the Home demo panel, the /book form card and the footer. No new hue.
   Home has NO illustration (Alex: no house/crane sketches; UX override): the hero is type plus the printed
   command center. Figure/drawing labels pending sign-off live in content/pending-labels.json.
   ========================================================================== */
/* L-0 surfaces: a third paper step for rhythm */
.surf-linen { --bg: var(--linen); background-color: var(--linen); }
/* L-0 brass on paper: every brass text/hairline/fill inside a light surface resolves to --brass-deep
   (brass #c4a26c is 2.2:1 on paper). Dark islands restore the original brass values. */
.theme-light, .theme-paper {
  --accent: var(--brass-deep);
  --brass: var(--brass-deep); --brass-hi: var(--brass-deep); --brass-soft: var(--brass-tint); --brass-line: rgba(125, 95, 48, 0.3);
}
.theme-dark { --brass: #c4a26c; --brass-hi: #ecd3a2; --brass-soft: rgba(196, 162, 108, 0.13); --brass-line: rgba(196, 162, 108, 0.28); }
.theme-light .form__preview, .theme-paper .form__preview { color: var(--ink); border-color: var(--line-strong); }

/* L-0 the "ink UI" remap: product UI and cards that were dark now read as printed sheets.
   They used --on-dark* tokens directly, so the tokens are remapped locally (no markup change). */
.home .dash, .home .ledger, .home .custom, .home .calc__result, .home .plan--feature,
.page--about .expect-band .story__body, .marquee-wrap {
  --bg: var(--sheet); --fg: var(--ink); --muted: var(--on-light-muted); --accent: var(--brass-deep);
  --line: var(--line-light); --line-strong: var(--line-light-strong);
  --on-dark: var(--ink); --on-dark-muted: var(--on-light-muted); --on-dark-faint: var(--ink-faint);
  --line-dark: var(--line-light); --line-dark-strong: var(--line-light-strong);
  --brass: var(--brass-deep); --brass-hi: var(--brass-deep); --brass-soft: var(--brass-tint); --brass-line: rgba(125, 95, 48, 0.3);
  --field-line: var(--ink-line); --foil: var(--foil-deep);
  --card-dark: linear-gradient(180deg, var(--sheet), var(--paper)); --card-inset: linear-gradient(180deg, var(--paper), var(--bone));
  --edge: var(--edge-light);
}

/* L-2 emphasis words: brass foil, printed (dark stops only, large display text) */
.theme-light .display:not(.is-split) em, .theme-paper .display:not(.is-split) em,
.theme-light .display.is-split .w__i.is-em, .theme-paper .display.is-split .w__i.is-em {
  background: var(--foil-deep); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.theme-light .display:not(.is-split) em, .theme-paper .display:not(.is-split) em { padding: 0 .1em .08em .02em; margin: 0 -.1em 0 -.02em; }

/* L-2 paper grain: the same noise, much quieter */
.theme-paper.grain::after, .theme-light.grain::after { opacity: .035; mix-blend-mode: multiply; }

/* Light pages start with the floating dark capsule already on (the bar is transparent over dark heroes only). */
.nav--solid .nav__bar { max-width: 1040px; padding: 0 10px 0 22px; background: rgba(15, 16, 19, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(241, 238, 231, 0.13); box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
@media (max-width: 640px) { .nav--solid .nav__bar { padding: 0 6px 0 18px; } }
.nav--solid .nav__bar { box-shadow: 0 18px 40px -22px rgba(11, 12, 14, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07); }

/* ---------- L-4 Home hero (UX override, Nov 19): type, whitespace and the printed command center. No illustration. ----------
   Swap point if UX adds something later: it goes in .hero__copy or just before .dash-wrap in index.html; there is no art layer. */

.dash-marks span + span { left: auto; right: 0; }

.home .ops__item.is-new { background: linear-gradient(90deg, rgba(196,162,108,.07), transparent 60%); }

/* ---------- L-4 Home hero: paper, ink, a printed command center ---------- */

.home .ops__item.is-new { background: linear-gradient(90deg, rgba(125, 95, 48, 0.06), transparent 60%); }

/* L-2 buttons and links on paper */
/* Text-link buttons on paper (hero "See them work") */
.theme-light .btn--link, .theme-paper .btn--link { color: var(--ink); text-decoration-color: var(--ink-line); }

/* Ink buttons keep light text even inside remapped "ink UI" cards (where --on-dark now means ink) */
.btn--dark { color: #f1eee7; }

/* ---------- P1-3 Section system: numbered index, one heading rhythm, distinct surfaces ---------- */

/* light sections: a faint drafting grid fading out from the top edge */
.home .section.theme-light::before, .home .section.theme-paper::before,
.page .section.theme-light::before, .page .section.theme-paper::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; z-index: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--grid-light) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-light) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.home .section > .container, .page .section > .container { position: relative; z-index: 1; }

/* ---------- L-5 Section rhythm on paper ---------- */

.home .section.surf-linen::before, .page .section.surf-linen::before { --grid-light: rgba(11, 12, 14, 0.06); }

/* Sections lost .grain (which isolated them); keep negative-z art inside each section */
.home main > .section, .home .hero, .page--about main > section, .nf--p1, .thanks { isolation: isolate; }

/* ---------- P1-4 Why: editorial statement ---------- */

/* ---------- P1-5 Demo: a lit stage, a segmented control, a quieter frame ---------- */

/* ---------- L-6 Demo: the one dark island on Home, sat on paper ---------- */

/* ---------- P1-6 Cards: one dark card, one light card, one featured card ---------- */

.home .plan__glyph i { border-radius: 3px; background: linear-gradient(180deg, var(--brass), var(--brass-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.home .plan--feature .plan__glyph i { background: linear-gradient(180deg, var(--brass-hi), var(--brass)); }

/* ---------- L-7 Cards on paper: printed sheets with soft layered shadows ---------- */

.home .plan--feature .plan__glyph i { background: linear-gradient(180deg, var(--brass), var(--brass-deep)); }

/* ---------- P1-7 Process: a dark timeline band (breaks the 4-light run) ---------- */

/* ---------- L-8 Process: an ink timeline on paper ---------- */

/* ---------- L-9 Closing band: linen + the drafting floor ---------- */

.home .book .book__bg::before { background: radial-gradient(closest-side, rgba(196, 162, 108, 0.16), transparent 68%); }
.expect-band.theme-light .expect--row li { border-color: var(--line); }

/* ---------- Footer stays dark: the page ends on ink, the brass hairline marks the edge ---------- */
.footer { box-shadow: inset 0 1px 0 rgba(196, 162, 108, 0.35); }

/* ---------- Phone stickies on paper ---------- */

/* UX Nov 19: the closing band is type only (no floor, no crane) */

/* ==================================== /book (P1-9) ==================================== */
.bookp.theme-paper { background: var(--paper); }
.bookp.theme-paper .book__bg { display: none; }
.bookp.theme-paper::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 560px; pointer-events: none;
  background-image: linear-gradient(to right, var(--grid-light) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-light) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.bookp.theme-paper .bookp__grid { position: relative; }
.bookp.theme-paper .bookp__title { letter-spacing: -0.03em; }
.bookp.theme-paper .expect { position: relative; border-top: 0; }
.bookp.theme-paper .expect li { display: block; position: relative; padding: 14px 0 14px 44px; border-bottom: 0; color: var(--fg); }
.bookp.theme-paper .expect li span { position: absolute; left: 0; top: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--bp-line-light); font-family: var(--mono); font-size: 14px; color: var(--brass-deep); }
.bookp.theme-paper .expect::before { content: ""; position: absolute; left: 14px; top: 26px; bottom: 26px; width: 1px; background: var(--bp-line-light); }
.bookp.theme-paper .ready li { border-color: var(--line); }
.bookp .book-area.theme-dark { background: var(--edge-brass); box-shadow: 0 0 0 1px rgba(11,12,14,.08), 0 70px 120px -60px rgba(11,12,14,.55), 0 30px 60px -30px rgba(125,95,48,.25); }
.bookp .book-area.theme-dark::before { content: ""; position: absolute; left: 14%; right: 14%; top: 0; height: 1px; z-index: 2; background: linear-gradient(90deg, transparent, rgba(236,211,162,.95), transparent); }
.bookp .book-area__title { letter-spacing: -0.02em; }
.bookp__seal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-meta); color: var(--muted); }
.bookp__seal span { display: inline-flex; align-items: center; gap: 8px; }
.bookp__seal span::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--brass-deep); }
/* /book phone: the card comes right after the intro (it was after the 4 steps) */
@media (max-width: 960px) {
  .bookp__grid { grid-template-areas: "intro" "area" "steps" "more"; }
  .bookp__steps .mini-h { margin-top: 8px; }
}
.bookp.theme-paper .bookp__steps .expect { margin-top: 18px; }
/* /book phone: the first field lands inside the first 375x812 screen (placeholders kept, spacing tightened) */
@media (max-width: 640px) {
  .bookp.page-layout { padding-top: 84px; }
  .bookp .bookp__title, .bookp .bookp__intro .lede { margin-top: 16px; }
  .bookp .alt-contact { margin-top: 16px; line-height: 1.5; }
  .bookp .book-area__inner { padding-top: 18px; }
  .bookp .bookp__grid { row-gap: 24px; }
  .bookp .book-area__sub { line-height: 1.5; }
  .bookp .picks-line { margin-top: 14px; padding: 10px 14px; }
  .bookp .qform__grid { margin-top: 16px; }
}
/* /book: the form card is now in the first screen, so hold the picks line's space until main.js fills it
   (it always shows with JS; the markup carries the default "none" state only to size the box). No-JS: stays hidden. */
.js .picks-line[data-book-picks][hidden] { display: block !important; visibility: hidden; }
/* ==================================== /book (L-10) ==================================== */
.bookp.theme-paper::before { background-image: linear-gradient(to right, var(--grid-ink) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-ink) 1px, transparent 1px); }
.bookp.theme-paper .expect li span { background: var(--sheet); border-color: rgba(125, 95, 48, 0.45); }
.bookp.theme-paper .expect::before { background: rgba(125, 95, 48, 0.4); }
.bookp .book-area.theme-dark { box-shadow: 0 0 0 1px rgba(11,12,14,.12), 0 2px 4px rgba(11,12,14,.06), 0 40px 80px -40px rgba(11,12,14,.45), 0 100px 160px -80px rgba(11,12,14,.5); }

/* ==================================== /thanks ==================================== */
.thanks.theme-paper { background: var(--paper); }
.thanks.theme-paper .nf__bg::before { background: radial-gradient(closest-side, rgba(196,162,108,.14), transparent); }
.thanks.theme-paper .thanks__mark { color: var(--brass-deep); background: var(--brass-tint); border-color: rgba(125,95,48,.3); }
.thanks.theme-paper .nf__links a { color: var(--on-light-muted); }

/* ==================================== /about (P1-10) ==================================== */

.page--about .cta-band.theme-light .btn--dark { margin-top: 32px; }

/* ==================================== /about (L-11) ==================================== */

/* UX Nov 19: no drawing on /about either; type and whitespace, the job tiles carry "What we do" */

/* Hero + closing band emphasis word: only the two darkest --foil-deep stops, so it clears 4.5:1 even as large text
   (#7d5f30: 5.66 on paper, 4.80 on linen; #6a5028: 7.20 / 6.10). No token change. */
.home .hero .display:not(.is-split) em, .home .hero .display.is-split .w__i.is-em,
.home .book .display:not(.is-split) em, .home .book .display.is-split .w__i.is-em {
  background: linear-gradient(100deg, #6a5028 0%, #7d5f30 50%, #6a5028 100%); -webkit-background-clip: text; background-clip: text; }

/* ---------- P1-2 Blueprint line art (hero, 404, about, closing band) ---------- */

.bp-art .bp-f, .bp-art .bp-f * { stroke: var(--bp-faint); stroke-width: 1; vector-effect: non-scaling-stroke; }

@keyframes bpWipeX { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bpWipeY { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bpFade { to { opacity: 1; } }

/* ==================================== 404 (P1-11) ==================================== */

.nf--p1 .nf__links a:hover { color: var(--on-dark); }
.nf--p1 .nf__links a:hover::after { transform: translateX(3px); }

/* ==================================== 404 (L-12) ==================================== */

.nf--p1 .nf__links a:hover { color: var(--ink); }

/* SPEC L-4/L-9 (Nov 19): emphasis words. The spec uses the two darkest --foil-deep stops on the Home hero and closing band;
   applied to every light-theme display emphasis and the step numbers here, so every text pair clears 4.5:1 (lowest 4.80 on linen). Token unchanged. */
.theme-light .display:not(.is-split) em, .theme-paper .display:not(.is-split) em,
.theme-light .display.is-split .w__i.is-em, .theme-paper .display.is-split .w__i.is-em,
.home .process .step__num, .page--about .how--4 .step__num {
  background: linear-gradient(100deg, #6a5028 0%, #7d5f30 50%, #6a5028 100%); -webkit-background-clip: text; background-clip: text; }

/* ==================================== Legal ==================================== */
.legal-page.theme-paper { background: var(--paper); }
/* Legal meta labels keep the c0d7834 fix (--on-light-muted, 6.59:1 on paper); the light layer's --ink-faint (5.39) is not applied. */

/* ---------- Motion (P1 light) ----------
   No new loops: the crane sway left with the drawings. P1 adds only finite motion (404 plan draw-in, timeline rule,
   card hover), all off under reduced motion. Pause also holds the slow hero glow, so it stops every loop on Home. */
html.motion-paused .hero__bg::after { animation-play-state: paused; }

/* launch-v1: booking is Cal.com only. With CAL_LINK empty the booking card is hidden and /book is one column. */
.bookp__grid:has(> .bookp__area[hidden]) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "steps" "more"; grid-template-rows: none; max-width: 760px; }
.cal-status--error a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: var(--tap); }
