/* ==========================================================================
   Vantage Acquisitions — shared page stylesheet
   --------------------------------------------------------------------------
   ONE design system for every page that is not compiled by Tailwind.
   Linked by: book, thank-you, privacy, terms, proposal.

   The :root block below is copied VERBATIM from build/input.css so these
   pages and the Tailwind pages (index, websites) cannot drift. Do not edit a
   token here without editing it there. check-design.py asserts they match.

   Written 2026-08-31 to retire the July 31 Fraunces/Inter system, which had
   its own tokens, its own type, and the retired checkmark logo, and which
   made five pages of this site look like a different company.
   Full rules: DESIGN.md at the site root.
   ========================================================================== */

:root {
  --radius: 0.625rem;
  --background: oklch(0.977 0.008 80);
  --foreground: oklch(0.24 0.014 60);
  --card: oklch(0.995 0.004 85);
  --card-foreground: oklch(0.24 0.014 60);
  --primary: oklch(0.585 0.163 42);
  --primary-foreground: oklch(0.99 0.005 80);
  --secondary: oklch(0.94 0.013 80);
  --secondary-foreground: oklch(0.24 0.014 60);
  --muted: oklch(0.94 0.013 80);
  --muted-foreground: oklch(0.5 0.014 65);
  --accent: oklch(0.92 0.02 70);
  --accent-foreground: oklch(0.24 0.014 60);
  --ink: oklch(0.22 0.012 55);
  --ink-foreground: oklch(0.96 0.008 80);
  --sand: oklch(0.93 0.018 78);
  --hairline: oklch(0.88 0.016 78);
  --border: oklch(0.885 0.016 78);
  --input: oklch(0.885 0.016 78);
  --ring: oklch(0.585 0.163 42);
}

:root {
  --font-display: "Archivo", system-ui, -apple-system, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;

  /* Shadows are colour-derived, not generic black smears. A terracotta
     button casts a terracotta shadow, which is what a real one does. */
  --shadow-cta: 0 1px 2px oklch(0.22 0.012 55 / .28),
                0 8px 20px -8px oklch(0.585 0.163 42 / .55);
  --shadow-card: 0 1px 2px oklch(0.22 0.012 55 / .04),
                 0 14px 32px -18px oklch(0.22 0.012 55 / .28);

  --wrap: 80rem;      /* matches Tailwind max-w-7xl on index and websites */
  --measure: 68ch;    /* reading measure for long-form documents */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 180ms;
}

/* --------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-weight: 900; line-height: 1.03; }
h2 { font-weight: 800; line-height: 1.1; }
h3 { font-weight: 700; line-height: 1.25; }
p, ul, ol { margin: 0; }
a { color: var(--primary); }
strong { font-weight: 600; }

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 64rem) { .wrap { padding-inline: 2.5rem; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--primary); color: var(--primary-foreground);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
  font-family: var(--font-display); font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------- type scale */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.h-xl  { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4.5rem); }
.h-lg  { font-size: clamp(1.875rem, 1.35rem + 2.1vw, 3rem); }
.h-md  { font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem); }
.lede  { font-size: 1.125rem; line-height: 1.6; color: var(--muted-foreground); }
.hero .lede { color: color-mix(in oklab, var(--ink-foreground) 75%, transparent); }
.measure { max-width: var(--measure); }

/* ------------------------------------------------------------- header */

.site-header { background: var(--ink); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .75rem;
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.brand span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.125rem;
  letter-spacing: -0.025em; color: var(--ink-foreground);
}
.nav-link {
  font-family: var(--font-display); font-weight: 600; font-size: .875rem;
  color: var(--ink-foreground); text-decoration: none;
  border: 1px solid color-mix(in oklab, var(--ink-foreground) 30%, transparent);
  border-radius: 999px; padding: .625rem 1.25rem;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-link:hover { background: var(--ink-foreground); color: var(--ink); }
@media (max-width: 30rem) { .nav-link { display: none; } }

/* --------------------------------------------------------------- hero */

/* The hero is a <section>, not a second <header> landmark (2026-09-05).
   padding-block: 0 and the :where() child rule cancel the generic section
   rhythm from the blocks section below, so the hero keeps its own spacing.
   :where() holds the child rule at class-class specificity, so .hero .lede
   below still wins its 1.75rem. */
.hero { background: var(--ink); color: var(--ink-foreground); padding-block: 0; }
.hero .wrap { padding-block: 3.5rem 4.5rem; }
.hero .wrap > :where(* + *) { margin-top: 0; }
.hero h1 { max-width: 20ch; color: var(--ink-foreground); }
.hero .lede { margin-top: 1.75rem; max-width: 46ch; }

/* Document pages: a quieter head band, same ink header above it. */
.doc-head { background: var(--sand); border-bottom: 1px solid var(--hairline); }
.doc-head .wrap { padding-block: 3.5rem; }
.doc-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.doc-head .eff {
  margin-top: 1rem; font-size: .9375rem; color: var(--muted-foreground);
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: -0.02em; text-decoration: none;
  padding: 1rem 2rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: var(--shadow-cta);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-note { margin-top: 1rem; font-size: .875rem; color: var(--muted-foreground); }
.hero .btn-note { color: color-mix(in oklab, var(--ink-foreground) 70%, transparent); }

/* -------------------------------------------------------------- blocks */

section { padding-block: 4rem; }
@media (min-width: 64rem) { section { padding-block: 5.5rem; } }

/* Section headings carry the same weight as the homepage's, and vertical
   rhythm lives here rather than in per-element inline styles, so a page
   assembled from extracted markup spaces itself correctly. */
section .wrap > h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem); }
section .wrap > * + *        { margin-top: 1.25rem; }
section .wrap > * + .grid,
section .wrap > * + .steps,
section .wrap > * + .callout,
section .wrap > * + ul,
section .wrap > * + ol,
section .wrap > * + .booking-card { margin-top: 2.5rem; }
section .wrap > ul, section .wrap > ol {
  list-style: none; padding: 0; display: grid; gap: 1rem; max-width: var(--measure);
}
section .wrap > ul > li { display: flex; gap: .75rem; color: var(--muted-foreground); }
section .wrap > ul > li::before {
  content: ""; flex: none; margin-top: .625rem;
  width: .375rem; height: .375rem; border-radius: 999px; background: var(--primary);
}
section .wrap > ul > li b { color: var(--foreground); font-weight: 600; }
.section-sand { background: var(--sand); border-block: 1px solid var(--hairline); }
.section-ink  { background: var(--ink); color: var(--ink-foreground); }
.section-ink h2 { color: var(--ink-foreground); }
.section-ink p  { color: color-mix(in oklab, var(--ink-foreground) 75%, transparent); }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 48rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 1.5rem;
  padding: 2rem;
}
.section-sand .card { background: var(--background); }
.card h3 { font-size: 1.25rem; margin-bottom: .625rem; }
.card p  { color: var(--muted-foreground); }

.panel {
  background: var(--sand);
  border: 1px solid var(--hairline);
  border-radius: 1.5rem;
  padding: 2rem;
}
.panel h3 { font-size: 1.125rem; margin-bottom: .75rem; }
.panel p  { color: var(--muted-foreground); }

/* Numbered steps, same treatment as the homepage how-it-works cards. */
.steps { counter-reset: step; }
.step { position: relative; }
.step .num {
  display: block;
  font-family: var(--font-display); font-weight: 900; font-size: 3rem;
  letter-spacing: -0.03em; line-height: 1;
  color: color-mix(in oklab, var(--primary) 25%, transparent);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: .625rem; }
.step p  { color: var(--muted-foreground); }

.bullets { list-style: none; padding: 0; display: grid; gap: 1rem; }
.bullets li { display: flex; gap: .75rem; color: var(--muted-foreground); }
.bullets li::before {
  content: ""; flex: none; margin-top: .625rem;
  width: .375rem; height: .375rem; border-radius: 999px; background: var(--primary);
}

/* ------------------------------------------------- long-form documents */

/* Long-form pages narrow the CONTAINER, they do not float a thin column in a
   wide one. The August 16 rebuild died on exactly that: "a 40rem text column
   inside a 70rem container left half a desktop screen empty". */
.doc-head .wrap, .doc .wrap { max-width: 46rem; }
.doc { padding-block: 3.5rem 4.5rem; }
.doc .measure { max-width: none; }
.doc .measure > * + * { margin-top: 1.25rem; }
.doc h2 {
  font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
}
.doc h2:first-of-type { margin-top: 2.5rem; }
.doc ul, .doc ol { padding-left: 1.25rem; display: grid; gap: .625rem; }
.doc li::marker { color: var(--primary); }
.doc a { text-underline-offset: 4px; }
.callout {
  background: var(--sand);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: 0 1rem 1rem 0;
  padding: 1.5rem 1.75rem;
}
.callout > * + * { margin-top: .875rem; }

/* ------------------------------------------------------ booking widget */

.booking-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.booking-card iframe {
  display: block; width: 100%; min-height: 44rem; border: 0; background: #fff;
}
.fallback { margin-top: 1rem; font-size: .875rem; color: var(--muted-foreground); }

/* ---------------------------------------------------------- video slot */

/* 16:9 frame on /thank-you that a real embed replaces later. Until then it
   carries a plain label, not a fake player. To go live, swap the <p> for the
   <iframe> and nothing else changes. */
.video-block { max-width: 56rem; margin-inline: auto; }
.video-block > * + * { margin-top: 1.5rem; }
.video-slot {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--hairline);
  border-radius: 1.5rem;
  color: var(--muted-foreground);
  text-align: center;
}
.video-slot > p { padding: 1.5rem; max-width: 34ch; }
.video-slot > p strong {
  display: block; margin-bottom: .375rem;
  font-family: var(--font-display); font-weight: 700; color: var(--foreground);
}
.video-slot > iframe, .video-slot > video { display: block; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------- exit dialog */

/* Exit prompt on /book. The inline script there opens it on desktop only,
   once per visitor, and sets the iframe src at that moment, so the calendar
   is not loaded twice on every visit. A closed dialog renders nothing. */
.exit-dialog {
  width: min(48rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 1.5rem;
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-card);
  overflow: auto;
}
.exit-dialog::backdrop { background: oklch(0.22 0.012 55 / .6); }
.exit-inner { padding: 2rem; }
.exit-inner > * + * { margin-top: 1.25rem; }
.exit-inner > .eyebrow { margin-top: 0; }
.exit-inner h2 { padding-right: 5rem; }
.exit-inner .lede { max-width: 46ch; }
.exit-dialog .booking-card iframe { min-height: 0; height: min(40rem, 65vh); }
.exit-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .875rem;
  padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hairline); background: var(--background); color: var(--foreground);
  transition: background-color var(--dur) var(--ease);
}
.exit-close:hover { background: var(--sand); }
.exit-dialog[open] { animation: exit-in var(--dur) var(--ease); }
@keyframes exit-in {
  from { opacity: 0; transform: translateY(.5rem); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ corridor */

/* The five client onboarding pages, start.html to start-5.html (2026-09-05).
   One narrow column, the way .doc narrows the container: the hero band and
   main both carry .corridor. The progress bar sits in the hero. The copy
   field, the checklist and the numbered list are new; the video slot, the
   callout, the cards and the button are the shared ones above. */
.corridor .wrap { max-width: 46rem; }
.corridor .wrap > h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.corridor .wrap > * + h2 { margin-top: 2.5rem; }
.corridor .wrap > h2 + * { margin-top: 1.25rem; }
.corridor .wrap > * + .copy-field,
.corridor .wrap > * + .checklist,
.corridor .wrap > * + .form-embed { margin-top: 2rem; }
.corridor .wrap > * + .next { margin-top: 2.5rem; }
.corridor .wrap > * + .support { margin-top: 3rem; }
.corridor .wrap > ul > li { color: var(--foreground); }
.section-sand .callout { background: var(--background); }

/* Step N of 5, then five bars. The label carries the meaning, the bars are
   hidden from assistive tech. */
.progress { margin-bottom: 2rem; }
.progress p {
  font-family: var(--font-display); font-weight: 700; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--muted-foreground); margin-bottom: .75rem;
}
.progress ol { display: flex; gap: .5rem; list-style: none; padding: 0; }
.progress li { height: .375rem; flex: 1; border-radius: 999px; background: var(--hairline); }
.progress li.done { background: var(--primary); }
.hero .progress p { color: color-mix(in oklab, var(--ink-foreground) 60%, transparent); }
.hero .progress li { background: color-mix(in oklab, var(--ink-foreground) 25%, transparent); }
.hero .progress li.done { background: var(--primary); }

/* The business portfolio ID on step 2: a read-only field and a Copy button. */
.copy-field > * + * { margin-top: .625rem; }
.copy-field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: .875rem; }
.copy-field p { font-size: .9375rem; color: var(--muted-foreground); }
.copy-block { display: flex; gap: .75rem; align-items: stretch; }
.copy-block input {
  flex: 1; min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.125rem; letter-spacing: .06em;
  color: var(--foreground); background: var(--sand);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: .75rem 1rem;
}
.copy-block input:focus-visible, .checklist input:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
.copy-btn {
  font-family: var(--font-display); font-weight: 600; font-size: .875rem;
  color: var(--foreground); background: var(--card);
  border: 1px solid var(--hairline); border-radius: 999px; padding: .625rem 1.25rem;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.copy-btn:hover { background: var(--ink); color: var(--ink-foreground); border-color: var(--ink); }

/* Local tick boxes. Nothing is submitted. */
.checklist { display: grid; gap: .75rem; }
.checklist label {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: 1rem 1.25rem; border: 1px solid var(--hairline); border-radius: 1rem;
  background: var(--card); cursor: pointer;
}
.checklist input { flex: none; width: 1.25rem; height: 1.25rem; margin: .125rem 0 0; accent-color: var(--primary); }

/* Numbered list with a round badge per item. */
.numbered {
  list-style: none; padding: 0;
  display: grid; gap: 1rem; max-width: var(--measure);
  counter-reset: item;
}
.numbered li { display: flex; gap: .875rem; align-items: flex-start; counter-increment: item; }
.numbered li::before {
  content: counter(item); flex: none;
  width: 1.5rem; height: 1.5rem; margin-top: .1875rem;
  display: grid; place-items: center;
  border-radius: 999px; background: var(--sand); border: 1px solid var(--hairline);
  font-family: var(--font-display); font-weight: 700; font-size: .75rem; line-height: 1;
  color: var(--foreground);
}
.section-sand .numbered li::before { background: var(--background); }

/* Step 4 intake form. The script on the page swaps the card for the iframe
   once data-form-src holds the embed URL. */
.form-embed iframe {
  display: block; width: 100%; min-height: 1400px;
  border: 1px solid var(--hairline); border-radius: 1.5rem; background: #fff;
}

.support { font-size: .9375rem; color: var(--muted-foreground); }

/* --------------------------------------------------------- breadcrumbs */

/* Visible trail that matches the BreadcrumbList JSON-LD on the same page.
   Schema without a visible trail is a mismatch Google can ignore, so the two
   ship together or not at all. */
.crumbs { margin-bottom: 1.25rem; font-family: var(--font-display); font-size: .8125rem; font-weight: 600; }
.crumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  color: var(--muted-foreground);
}
.crumbs li { display: flex; align-items: center; gap: .5rem; }
.crumbs li + li::before { content: "/"; opacity: .45; }
.crumbs a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--foreground); }
.hero .crumbs ol { color: color-mix(in oklab, var(--ink-foreground) 60%, transparent); }
.hero .crumbs [aria-current="page"] { color: var(--ink-foreground); }

/* ------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--hairline); background: var(--background); }
.site-footer .wrap { padding-block: 3.5rem; }
.foot-top { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 48rem) {
  .foot-top { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.foot-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.foot-brand img { width: 36px; height: 36px; }
.foot-brand span {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  letter-spacing: -0.025em; color: var(--foreground);
}

.foot-nav h2 {
  font-family: var(--font-display); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--foreground); margin-bottom: 1rem;
}
.foot-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .625rem; }
.foot-nav a {
  color: var(--muted-foreground); text-decoration: none;
  font-size: .875rem; text-underline-offset: 4px;
}
.foot-nav a:hover { color: var(--primary); text-decoration: underline; }

.site-footer address {
  font-style: normal; font-size: .875rem; line-height: 1.7;
  color: var(--muted-foreground);
}
.site-footer address a { color: var(--muted-foreground); text-underline-offset: 4px; }
.site-footer address a:hover { color: var(--primary); }
.consent {
  margin-top: 2.5rem; max-width: 60rem;
  font-size: .875rem; line-height: 1.7; color: var(--muted-foreground);
}
.legal {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  font-size: .875rem; color: var(--muted-foreground);
}
.legal a { color: var(--muted-foreground); text-underline-offset: 4px; }
.legal a:hover { color: var(--primary); }

/* ------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
  .exit-dialog[open] { animation: none; }
}
