/*
  site.css: the one stylesheet for the Refocus website (all pages).
  ------------------------------------------------------------------------------
  Direction : "White paper opening onto sky" (vibe pass 2026-11-12). Robin's
              anchors (rEFocus wordmark, near-black label bars and buttons,
              their original Cabin + Lato, stone as a warm accent) blended with the airy
              Refero "Letters" style: powder-blue sky only in each page's
              opening and one rounded closing island, everything else on
              white/near-white, big soft radii, pill buttons, cool blue-gray
              shadows. Goal: asking for help should feel almost weightless.
              Components pass (2026-11-12, later the same day): Nunito
              headings/UI + Lora reading text (CJ's choice, replaces Cabin +
              Lato); home hero is two columns with an illustration on a paler
              sky; FAQ is a two-column accordion (native <details>); process
              steps use one "How it works" card style; the wordmark draws in
              once per browser session. Ideas from 21st.dev "FAQ Two Column"
              and "How It Works", rebuilt here as plain CSS.
              Steps pass (2026-11-12): the same step component now also on the
              coaching page, the service pages' closing islands and the
              thank-you states (modifiers --on-sky, --titles, .step--done).
              Snapshots: ../../../_snapshots/site_2026-11-12_pre-vibe/,
              site_2026-11-12_pre-components/ and site_2026-11-12_pre-steps/.
              See ../../../_build-notes.md.
  Inputs    : the HTML pages; self-hosted fonts in /assets/fonts/ (SIL OFL 1.1);
              html.wm-intro set by /assets/js/js-flag.js (wordmark intro).
  Re-skin   : every colour, font, radius, space and measure is a custom property
              on :root (section 1). Change those first; the rest reads from them.
  Rules     : mobile first; no inline styles anywhere (the CSP forbids them);
              motion only as short transitions, the hero illustration's
              entrance + slow float, and the one-time wordmark intro (never
              text blocks or forms), all removed under prefers-reduced-motion.
              Nothing here hides text aimed at machines.
  Sections  : 1 tokens · 2 fonts · 3 base · 4 layout · 5 header/nav · 6 buttons
              and links · 7 home sections · 8 inner pages · 9 forms · 10 footer
              · 11 ready-to-add partials (pricing, testimonials) · 12 motion/print
*/

/* 1. Tokens ------------------------------------------------------------------ */
:root {
  /* Colour. Vibe pass 2026-11-12: "white paper opening onto sky" (reference:
     Refero style "Letters", blended with Robin's own black, stone and label
     bars). Contrast ratios are recorded in _build-notes.md (WCAG 2.2 AA) and
     checked by _eval-profile.json "color_pairs". Token NAMES are kept from the
     first build where they still mean the same job, because the eval profile
     reads them by name. */

  /* Canvas family: most content sits on white or near-white, never on colour. */
  --color-paper: #FFFFFF;        /* page canvas (was warm #FAF8F4) */
  --color-porcelain: #FAFAFA;    /* footer and the quietest surfaces */
  --color-panel: #F5F5F5;        /* rounded content islands (About in brief, "Where do I begin?") */
  --color-edge: #EDEDF0;         /* faint card edges: separation without a hard line */
  --color-rule: #E4E4E8;         /* hairlines between chapters (decorative only) */
  --color-path: #B9C3D0;         /* dashed path joining step numbers (decorative, like the hero art's dotted paths) */

  /* Robin's stone, retired as a section colour (it read beige next to the sky)
     and kept as a small warm accent: the footer name chip. Same hex as her
     old site so the brand thread is unbroken. */
  --color-stone: #E6E3DD;

  /* Sky: only in the page opening (hero / page intro) and the closing island.
     NOTE: stop at 58% is Letters' measured middle stop. */
  --color-sky-top: #779BC1;
  --color-sky-mid: #9ABFDA;
  --color-sky-bottom: #CBDFEC;
  --sky: linear-gradient(180deg, var(--color-sky-top) 0%, var(--color-sky-mid) 58%, var(--color-sky-bottom) 100%);
  /* WHY dark text on sky: white text on #779BC1 is only 2.9:1. Ink stays legible
     at the darkest stop (ink 5.9:1, on-sky-body 5.0:1 on #779BC1). */
  --color-on-sky: #1B1B1B;
  --color-on-sky-body: #232A35;
  /* Home hero only (components pass): a much paler sky so the illustration,
     whose own background is #E1EAF5 to #F7FAFD with a peach desk, melts into
     it instead of sitting on it as a card. Bottom stop leans warm to meet the
     desk. Ink 13.8:1 on the darkest stop. */
  --color-hero-top: #DCE7F3;
  --color-hero-mid: #EBF2F9;
  --color-hero-bottom: #F8F4F1;
  --sky-hero: linear-gradient(180deg, var(--color-hero-top) 0%, var(--color-hero-mid) 55%, var(--color-hero-bottom) 100%);

  /* Soft washes taken from the hero illustration (sage, lavender, peach).
     Decorative only: behind the step icons, never behind text. */
  --color-wash-sage: #E7EFE3;
  --color-wash-lavender: #EEEAF6;
  --color-wash-peach: #FBEBE1;
  /* Steps pass (2026-11-12): "done" state for a finished step (thank-you
     screens). Deep sage disc with a white tick (white on it 6.0:1); a paler
     sage card tint so body text stays 9.5:1 and the sage icon tile still shows. */
  --color-done: #4D6B45;
  --color-done-wash: #F2F7EF;
  --color-done-edge: #CFDDC8;    /* card edge in the done state (decorative) */

  --color-ink: #1B1B1B;          /* Robin's near-black: headings, label bars, primary buttons */
  --color-body: #3F404A;         /* cool gray reading text: 10.3:1 on white, 9.4:1 on panel.
                                    Darker than Letters' #60606C on purpose: tired eyes, long paragraphs */
  --color-muted: #5E5F6B;        /* secondary text: 6.3:1 on white, 5.8:1 on panel */
  --color-accent: #2597D0;       /* clear blue, SPARINGLY: list dots, the one tick in the hero art,
                                    field focus ring. 3.3:1 on white = OK for graphics, never body text */
  --color-accent-wash: #EEF6FB;  /* chosen radio pill, success message */
  --color-field-border: #8A8C97; /* form control borders: 3.3:1 on white, 3.1:1 on panel (non-text 3:1) */
  --color-field-bg: #FFFFFF;
  --color-error: #9E2A1E;        /* error text and borders: 7.5:1 on white, 6.9:1 on error wash */
  --color-error-wash: #FCF3F1;   /* soft blush behind error boxes: calm, not alarming */
  --color-on-ink: #FFFFFF;       /* text on near-black buttons and label bars */
  --color-on-ink-muted: #B9B3A8; /* the quieter letters of the wordmark: 8.3:1 on ink */
  --color-button-hover: #3A3A40;
  --color-focus: #1B1B1B;

  /* Depth. Cool blue-gray haze (rgb 16,55,132 = Letters' shadow tint) instead
     of gray drop shadows, so white objects look lit by the sky. */
  --shadow-action: 0 1px 2px rgba(36, 36, 40, 0.10), 0 3px 3px rgba(36, 36, 40, 0.09), 0 6px 4px rgba(36, 36, 40, 0.05);
  --shadow-card: 0 2px 4px rgba(16, 55, 132, 0.04), 0 12px 28px rgba(16, 55, 132, 0.07);
  --shadow-float: 0 17px 37px rgba(16, 55, 132, 0.05), 0 67px 67px rgba(16, 55, 132, 0.04);

  /* Type (components pass 2026-11-12, CJ's choice): Nunito, a rounded sans,
     for headings, buttons, nav, labels and small UI text (friendly, soft
     corners match the pill shapes); Lora, a calm serif, for reading text.
     Fallbacks are chosen for similar width so the swap does not jump much. */
  --font-display: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --text-small: 1rem;                                   /* 16px: footer, captions */
  --text-body: 1.125rem;                                /* 18px reading size (brief: >= 17px) */
  --text-lede: clamp(1.1875rem, 1.1rem + 0.4vw, 1.3125rem);
  --text-h3: clamp(1.3125rem, 1.2rem + 0.5vw, 1.5rem);
  --text-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --text-h1: clamp(2rem, 1.35rem + 2.9vw, 3.5rem);     /* max 56px, under the 6rem cap */
  --text-hero: clamp(2rem, 1.3rem + 2.4vw, 3rem);      /* home h1 shares a row with the art: max 48px */
  --text-question: clamp(1.375rem, 1.1rem + 1.3vw, 2.125rem);  /* the three still questions */
  --text-begin: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);         /* "Where do I begin?" */
  /* NOTE: Lora has a smaller x-height and more contrast than Lato, so it gets
     more line spacing (1.7) to stay easy on tired eyes. */
  --leading-body: 1.7;
  --leading-tight: 1.12;
  /* WHY negative tracking: Nunito's rounded terminals look loose at display
     sizes; a hair of tightening keeps headings compact. Labels stay wide. */
  --tracking-display: -0.02em;
  --tracking-label: 0.14em;   /* Robin's wide-letter-spaced label bars */
  --weight-display: 700;      /* Nunito 700 reads like Cabin 600 did: firm, not heavy */
  --weight-ui: 650;           /* buttons, nav current, labels (variable font: any weight 200-1000) */

  /* Space and measure */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-pad: clamp(3.5rem, 2.25rem + 5vw, 7rem);
  --stage-pad: clamp(3rem, 1.5rem + 6vw, 7.5rem);  /* top padding inside sky stages (Letters: 120px) */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);   /* 16px side gutter at phone width */
  --frame: 12px;             /* NOTE: Letters' thin white perimeter around sky stages and islands */
  --wrap: 76rem;
  --measure: 38rem;          /* ~64 characters of 18px Lora */

  /* Shape. Big soft silhouettes are the character of this direction. */
  --radius-panel: clamp(28px, 1rem + 2.5vw, 48px); /* islands and sky stages: 28px on phones, 48px desktop */
  --radius-card: 24px;       /* white cards, success/error boxes */
  --radius-field: 14px;      /* inputs, selects, textareas */
  --radius-label: 8px;       /* Robin's black label bars: softened, still read as bars */
  --radius-pill: 100px;      /* buttons and radio pills (Letters "lozenges") */
  --border-field: 1.5px;
  --print-frame: 10px;       /* white frame around the headshot */
  --target-min: 2.75rem;     /* 44px touch targets */
  --button-h: 3rem;          /* 48px pill height (Letters) */
}

/* 2. Fonts (self-hosted, SIL Open Font License 1.1; sources in _build-notes.md)
   Nunito: @fontsource-variable/nunito 5.3.0, latin, one variable file.
   Lora:   @fontsource/lora 5.3.0, latin, static 400 and 600 only.
   NOTE: no italic is loaded because no page uses italic text. If <em> is
   ever added, ship lora-latin-400-italic.woff2 too, or the browser will fake
   a slanted roman. Bold in reading text is mapped to 600 (see `strong`). */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;     /* variable weight axis */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 3. Base ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-kerning: normal;
}
h1, h2, h3, legend {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  color: var(--color-ink);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); margin: 0 0 var(--space-5); }
h2 { font-size: var(--text-h2); margin: 0 0 var(--space-5); }
h3 { font-size: var(--text-h3); letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 var(--space-3); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--color-ink); } /* 600: the heaviest Lora we ship */
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--space-4); padding: 0; }

a { color: var(--color-ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

/* Focus: always visible, never removed. 3px ink ring with an offset so it does
   not merge with black buttons. (No dark bands remain, so no light variant.) */
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
main:focus { outline: none; } /* main gets focus only from the skip link */

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -10rem;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-ink);
  color: var(--color-on-ink);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-pill);
}
.skip-link:focus { top: var(--space-4); }

/* Text for screen readers only (steps pass: the "(done)" marker on a finished
   step). Standard clip pattern; NOT used to hide anything aimed at search or
   AI crawlers. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 4. Layout -------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.band { padding-block: var(--section-pad); }

/* Islands: rounded blocks inset from the page edge by the white --frame, so
   colour reads as a calm object on white paper rather than a full-bleed slab.
   NOTE: max-width = wrap + 2 x 32px so the island's edge sits just outside the
   text column on wide screens. */
.band--panel, .band--sky {
  width: calc(100% - 2 * var(--frame));
  max-width: calc(var(--wrap) + 4rem);
  margin-inline: auto;
  border-radius: var(--radius-panel);
}
/* NOTE: the vertical margin keeps a strip of white paper between two islands
   (e.g. the home hero and "Where do I begin?"), so they never touch. */
.band--panel { background: var(--color-panel); margin-block: var(--space-5); }

/* Sky island (closing call on most pages): the one other place the sky
   appears after the opening. Two soft CSS clouds sit low at the sides, away
   from the centred text, so they never sit behind words. */
.band--sky {
  position: relative;
  overflow: hidden;
  background: var(--sky);
  color: var(--color-on-sky-body);
  margin-block: var(--space-7) var(--frame);
  isolation: isolate;
}
.band--sky::before, .band--sky::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -30%;
  width: 46%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.band--sky::before { left: -14%; }
.band--sky::after { right: -16%; bottom: -36%; width: 52%; }
.band--sky h2 { color: var(--color-on-sky); }
.band--sky a:not(.btn) { color: var(--color-on-sky); }

/* A "chapter": heading in a left rail, reading text on the right (desktop),
   separated by a faint hairline. One idea per chapter. */
.chapter { padding-block: var(--section-pad); }
.chapter + .chapter { border-top: 1px solid var(--color-rule); }
.chapter-body { max-width: var(--measure); }
.chapter-close { margin-top: var(--space-5); font-family: var(--font-display); font-weight: 600; font-size: var(--text-h3); color: var(--color-ink); line-height: 1.3; }
.text-link { margin-top: var(--space-5); font-family: var(--font-display); font-weight: 600; }

@media (min-width: 60rem) {
  .chapter-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: var(--space-8);
    align-items: start;
  }
  .chapter-grid > h2 { margin-bottom: 0; }
}

/* Lists with a small round clear-blue dot: one of the few places the accent
   appears. (Was a black square; the dot is softer next to the sky.) */
.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 1.5em; margin-bottom: var(--space-3); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.6em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--color-accent);
}
@media (min-width: 40rem) {
  .ticks--columns { columns: 2; column-gap: var(--space-6); }
  .ticks--columns li { break-inside: avoid; }
}

/* 5. Header and navigation -------------------------------------------------------- */
/* White and borderless: the page opening (sky stage) starts right under it. */
.site-header { background: var(--color-paper); }
.header-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 4.5rem;
  padding-block: var(--space-3);
  flex-wrap: wrap;       /* at very narrow widths (<360px) the button drops to row 2 */
}

/* Wordmark: "rEFocus" as on Robin's letterhead, set in one of her black label
   bars (identity anchor: kept black). Accessible name "Refocus" comes from
   aria-label on the link. */
.wordmark {
  position: relative;    /* anchors the intro's ::before bar (below) */
  isolation: isolate;    /* keeps that bar's z-index:-1 inside the link */
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  padding: 0.3rem 0.75rem 0.4rem;
  background: var(--color-ink);
  color: var(--color-on-ink-muted);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-label);
  min-height: var(--target-min);
}
.wordmark-r, .wordmark-ef { display: inline-block; } /* so the intro can move them (transform needs a box) */
.wordmark-ef { color: var(--color-on-ink); font-weight: 800; }
.wordmark:hover { background: var(--color-button-hover); }

/* Wordmark intro: once per browser session (js-flag.js adds html.wm-intro
   only when sessionStorage has no flag). Sequence, 1.0s in all:
   the black bar wipes in from the left (0-450ms), "EF" settles (300-700ms),
   then "r" and "ocus" ease in from either side (550-1000ms).
   WHY a ::before bar and scaleX instead of clip-path on the link: clip-path
   would also clip the click area; with this, the whole link stays clickable
   for the entire intro, and nothing changes size (no layout shift).
   With no JS, on later pages, or under reduced motion: static wordmark. */
@media (prefers-reduced-motion: no-preference) {
  .wm-intro .wordmark { background: transparent; }
  .wm-intro .wordmark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--color-ink);
    transform-origin: left center;
    animation: wm-bar 450ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .wm-intro .wordmark:hover::before { background: var(--color-button-hover); }
  .wm-intro .wordmark-ef { animation: wm-ef 400ms cubic-bezier(0.22, 1, 0.36, 1) 300ms both; }
  .wm-intro .wordmark-r:first-child { animation: wm-in-left 450ms ease-out 550ms both; }
  .wm-intro .wordmark-r:last-child { animation: wm-in-right 450ms ease-out 550ms both; }
}
@keyframes wm-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wm-ef { from { opacity: 0; transform: translateY(0.25em) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes wm-in-left { from { opacity: 0; transform: translateX(-0.3em); } to { opacity: 1; transform: none; } }
@keyframes wm-in-right { from { opacity: 0; transform: translateX(0.3em); } to { opacity: 1; transform: none; } }

.btn.btn--header { font-size: 1rem; padding-inline: var(--space-5); } /* .btn.x beats the later .btn rule */

/* Menu toggle: only exists with JS (html.js) and below the desktop breakpoint.
   Without JS the nav simply shows as a wrapped row, so nothing is unreachable. */
.menu-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  min-width: var(--target-min);
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-ink);
  font: 600 1rem/1 var(--font-display);
  cursor: pointer;
}
.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.menu-toggle-icon { position: relative; }
.menu-toggle-icon::before,
.menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle-icon::before { top: -6px; }
.menu-toggle-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { top: 0; transform: rotate(-45deg); }

.site-nav { padding-bottom: var(--space-2); }
.site-nav-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-5);
}
.site-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  color: var(--color-body);
}
.site-nav-list a:hover { color: var(--color-ink); text-decoration: underline; }
.site-nav-list a[aria-current="page"] {
  color: var(--color-ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

@media (max-width: 68.74rem) {
  /* Small screens with JS: collapse the nav behind the toggle. */
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav-list { display: block; padding-block: var(--space-2) var(--space-4); }
  .js .site-nav-list li + li { border-top: 1px solid var(--color-rule); }
  .js .site-nav-list a { display: flex; min-height: 3rem; font-size: var(--text-body); }
}
@media (max-width: 26rem) {
  /* Phone: tighter header so wordmark, button and toggle share one row
     (measured: fits down to ~360px wide; below that the row wraps). */
  .header-bar { gap: var(--space-2); }
  .wordmark { font-size: 1.0625rem; padding-inline: 0.45rem; letter-spacing: 0.03em; }
  .btn.btn--header { padding-inline: 0.75rem; font-size: 0.875rem; }
  .menu-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle { padding: 0; justify-content: center; }
}
@media (min-width: 68.75rem) {
  .site-nav-list { column-gap: var(--space-6); }
}

/* 6. Buttons and links ------------------------------------------------------------ */
/* Letters' "polished lozenge": 48px near-black pill with a soft grounded shadow.
   Primary stays Robin's black (never blue) so it is the one dominant action. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-h);
  padding: var(--space-2) var(--space-5);
  background: var(--color-ink);
  color: var(--color-on-ink);
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-action);
  font-family: var(--font-display);
  font-weight: var(--weight-ui);
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--color-button-hover); }
.btn--large { min-height: 3.25rem; padding-inline: var(--space-6); font-size: 1.125rem; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
/* White secondary pill, for a quieter second action on a panel or the sky.
   NOTE: not used on any page yet; ready for the components pass. */
.btn--secondary { background: var(--color-paper); color: var(--color-ink); }
.btn--secondary:hover { background: var(--color-porcelain); }
/* Header button on /contact/: a pale sky ring says "you are here". */
.btn[aria-current="page"] { box-shadow: var(--shadow-action), 0 0 0 3px var(--color-sky-bottom); }

/* 7. Home sections ---------------------------------------------------------------- */
/* Sky stage: the page opening on every page (home .hero and inner .page-intro).
   Inset by the white --frame with smaller top corners (Letters: 28/28/48/48),
   so it reads as white paper opening onto sky. Text is ink (see --color-on-sky). */
.hero, .page-intro {
  width: calc(100% - 2 * var(--frame));
  max-width: calc(90rem - 2 * var(--frame)); /* NOTE: 90rem = Letters' 1440px stage */
  margin-inline: auto;
  background: var(--sky);
  color: var(--color-on-sky-body);
  border-radius: calc(var(--radius-panel) * 0.6) calc(var(--radius-panel) * 0.6) var(--radius-panel) var(--radius-panel);
}
.hero h1, .page-intro h1 { color: var(--color-on-sky); }
.hero .lede, .page-intro .lede { color: var(--color-on-sky-body); }
.page-intro a:not(.btn) { color: var(--color-on-sky); }

/* Home hero (components pass): two columns on desktop, promise and action on
   the left (left-aligned), the illustration on the right at ~45% width. On a
   paler sky (--sky-hero) so the art's own pale-blue ground melts into it.
   Below 60rem the art stacks under the action, centred.
   NOTE: the illustration is AI-generated stock-style art (source in
   ../../../_source-art/); the alt text does not claim the woman is Robin. */
.hero {
  overflow: hidden;      /* the float never pokes past the rounded stage */
  background: var(--sky-hero);
  padding-block: var(--stage-pad) clamp(2rem, 1rem + 4vw, 5rem);
}
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.hero h1 { font-size: var(--text-hero); max-width: 22ch; }
.lede { font-size: var(--text-lede); line-height: 1.65; color: var(--color-body); }
.hero .lede { max-width: 36rem; }
.hero-action { margin-top: var(--space-5); }
.hero-action p { margin-bottom: var(--space-3); }
.promise { color: var(--color-muted); font-size: var(--text-body); }
.hero .promise { color: var(--color-on-sky-body); font-family: var(--font-display); font-weight: 600; }

.hero-figure { margin: 0 auto; width: 100%; max-width: 40rem; }
/* The image is never cropped: width-driven with height:auto and the file's
   own aspect ratio (width/height attributes reserve the space, so no CLS).
   object-fit: contain is a belt-and-braces guard if a height is ever set.
   The edges dissolve into the sky through two intersecting linear masks
   (sides 7%, top 8%, bottom 12%), which only touch plants, books and sky,
   never the two people (they sit between ~12% and ~62% across).
   NOTE: no shadow, border or radius on purpose: it must not read as a card. */
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 39.99rem) {
  /* Phones: let the art run into the side gutters so the people are not tiny;
     the stage's overflow:hidden and the edge mask keep it inside the sky. */
  .hero-figure { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)); }
}
@media (min-width: 40rem) and (max-width: 59.99rem) {
  .hero-figure { max-width: 34rem; } /* tablet portrait: comfortably sized, not edge to edge */
}
@media (min-width: 60rem) {
  /* NOTE: 21fr/19fr = 52/48: the text column keeps the long h1 at 4 lines
     at 48px. The figure then bleeds into the right gutter (negative margin
     = --gutter) so the people read at a generous size without squeezing the
     text; the stage's overflow:hidden and the soft mask keep that edge clean. */
  .hero-grid { grid-template-columns: minmax(0, 21fr) minmax(0, 19fr); column-gap: var(--space-6); }
  .hero-figure { max-width: none; width: calc(100% + var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
}

/* Motion (illustration only, never the hero text): an entrance of fade plus
   a 15px rise over 900ms, then a slow 7px float every 7s, alternating.
   Entrance on the wrapper and float on the image, because two animations
   on the same element's transform would override each other.
   Both are switched off by the prefers-reduced-motion rule in section 12. */
.hero-figure { animation: rf-hero-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-img { animation: rf-hero-float 7s ease-in-out 900ms infinite alternate; }
@keyframes rf-hero-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@keyframes rf-hero-float { from { transform: translateY(0); } to { transform: translateY(-7px); } }

/* "Where do I begin?": the three questions as loose white notes on a pale
   panel, each tilted a hair (static; copy deck: no motion), echoing the white
   boxes of Robin's old hero. Was a black band; a large black slab fought the
   weightless feel, so black now lives only in buttons, labels and wordmark. */
.begin-grid { display: grid; gap: var(--space-5); }
.begin h2 { font-size: var(--text-begin); margin: 0; }
.begin-questions { list-style: none; margin: var(--space-2) 0; display: grid; gap: var(--space-3); justify-items: start; }
.begin-questions li {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-question);
  line-height: 1.15;
  padding: 0.4em 0.75em 0.45em;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}
.begin-questions li:nth-child(1) { transform: rotate(-1deg); }
.begin-questions li:nth-child(2) { transform: rotate(0.8deg); }
.begin-questions li:nth-child(3) { transform: rotate(-0.4deg); }
.begin-answer { max-width: var(--measure); color: var(--color-body); font-size: var(--text-lede); }
@media (min-width: 48rem) {
  .begin-questions li:nth-child(2) { margin-left: 1.5em; }
  .begin-questions li:nth-child(3) { margin-left: 3em; }
}
@media (min-width: 60rem) {
  .begin-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--space-8); align-items: end; }
  .begin h2, .begin-questions { grid-column: 1; }
  .begin-answer { grid-column: 2; grid-row: 2; }
}

/* Services as a ruled index: one row per service, never three icon cards. */
.service-list { list-style: none; margin: var(--space-6) 0 0; border-bottom: 1px solid var(--color-rule); }
.service { padding-block: var(--space-6); border-top: 1px solid var(--color-rule); }
.service p { max-width: var(--measure); }
.service-link { font-family: var(--font-display); font-weight: 600; }
@media (min-width: 60rem) {
  .service { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); column-gap: var(--space-6); align-items: baseline; }
  .service h3 { margin: 0; }
  .service p { margin: 0; }
  .service-link { justify-self: end; text-align: right; }
}

/* About in brief, and the About page intro: the headshot is a white-framed
   print floating on its surface (soft card shadow, rounded like the cards).
   Never wider than 240px (source file is 512px). */
.about-grid, .about-intro-grid { display: grid; gap: var(--space-6); align-items: start; }
.about-photo { max-width: calc(240px + 2 * var(--print-frame)); }
.headshot {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border: var(--print-frame) solid var(--color-paper);
  background: var(--color-paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.about-text { max-width: var(--measure); }
@media (min-width: 48rem) {
  .about-grid, .about-intro-grid { grid-template-columns: calc(240px + 2 * var(--print-frame)) minmax(0, 1fr); column-gap: var(--space-8); }
}

/* "How it works" steps (components pass). Idea and layout from 21st.dev
   "How It Works" (@ravikatiyar162, React + Tailwind + lucide icons), rebuilt
   as plain CSS: a numbered disc per step joined by a dashed path (an echo of
   the dotted paths in the hero illustration), and a white card holding a
   small line icon on a soft wash plus the step's existing words.
   Used by: home "How it works", /contact/ "What happens next" (beside the
   form, not inside it), /refer/ "How referrals work"; steps pass (same day):
   "What happens in coaching" on /executive-function-coaching/, "What happens
   next" in the closing island of the three service pages (.steps--on-sky),
   and the thank-you states (/contact/ success message, /thanks/) with step 1
   marked done (.step--done). One style everywhere; modifiers only.
   Layout: vertical (disc on the left, path running down) on phones and in
   the narrow .steps--compact columns; on wide screens the full strip puts
   the discs in a row above one equal column per step (3 on home and two
   service pages, 2 on /whats-next-consultation/).
   The order is real, so numbers are allowed. Icons are inline SVG, aria-hidden. */
.steps {
  --step-disc: 2.25rem;          /* number disc diameter */
  --step-icon: 3rem;             /* icon tile */
  --step-pad: var(--space-5);    /* card padding */
  --step-gap: var(--space-5);    /* space between cards */
  /* NOTE: centres the disc on the icon tile: card padding + half the size difference. */
  --step-disc-top: calc(var(--step-pad) + (var(--step-icon) - var(--step-disc)) / 2);
  /* WHY these two are variables: the ring must match the surface the strip
     sits on (white page, success box wash, sky) and the dashed path needs more
     contrast on sky. Defaults reproduce the components-pass look exactly. */
  --step-ring: var(--color-paper);
  --step-path: var(--color-path);
  list-style: none;
  counter-reset: step;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--step-gap);
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: calc(var(--step-disc) + var(--space-4));
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  z-index: 1;
  left: 0;
  top: var(--step-disc-top);
  width: var(--step-disc);
  height: var(--step-disc);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-on-ink);
  box-shadow: 0 0 0 4px var(--step-ring);  /* ring in the surface colour: the path stops short of the disc */
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1;
}
/* The path between discs: runs from just under this disc to just above the next. */
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--step-disc) / 2 - 1px);
  top: calc(var(--step-disc-top) + var(--step-disc) + 8px);
  bottom: calc(8px - var(--step-gap) - var(--step-disc-top));
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--step-path) 0 6px, transparent 6px 12px);
}
.step-card {
  height: 100%;
  padding: var(--step-pad);
  background: var(--color-paper);
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  color: var(--color-body);
}
.step-icon {
  display: grid;
  place-items: center;
  width: var(--step-icon);
  height: var(--step-icon);
  margin-bottom: var(--space-4);
  border-radius: 14px;
  background: var(--color-wash-sage);
  color: var(--color-ink);
}
.step-icon svg { width: 1.5rem; height: 1.5rem; }
.step-card p { text-wrap: wrap; } /* NOTE: Safari's "pretty" wrapping left short ragged lines in these narrow cards */
.steps > li:nth-child(2) .step-icon { background: var(--color-wash-lavender); }
.steps > li:nth-child(3) .step-icon { background: var(--color-wash-peach); }
.steps strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--text-h3); letter-spacing: -0.01em; line-height: 1.25; margin-bottom: var(--space-2); }

/* Compact: one-sentence steps in a narrow column. Icon sits beside the text. */
.steps--compact { --step-icon: 2.5rem; --step-pad: var(--space-4); --step-gap: var(--space-3); margin-block: var(--space-2) var(--space-5); }
.steps--compact .step-card { display: flex; align-items: flex-start; gap: var(--space-4); line-height: 1.55; }
.steps--compact .step-icon { flex: none; margin: 0; border-radius: 12px; }
.steps--compact .step-icon svg { width: 1.25rem; height: 1.25rem; }
.steps--compact .step-text { padding-top: 0.3rem; } /* NOTE: optical: first line sits level with the icon's middle */
/* A compact step that carries a title (thank-you states reuse the home step
   titles + descriptions): a smaller title so it fits the narrow column. */
.steps--compact strong { font-size: 1.1875rem; margin-bottom: var(--space-1); }
/* A list inside a step card ("Coaching often includes:"). */
.step-text .ticks { margin: var(--space-3) 0 0; }
.step-text .ticks li:last-child { margin-bottom: 0; }

/* On sky (closing island, /thanks/ intro): the white ring would show as a
   halo on the gradient, so it goes; the pale path is near-invisible on sky
   (1.1:1), so it turns to a translucent ink (decorative only). */
.steps--on-sky { --step-ring: transparent; --step-path: rgba(27, 27, 27, 0.32); }
/* Closing island: the strip is wider than the centred 40rem text column so
   three cards fit side by side; card text stays left-aligned like home, and
   at body size (the island's lede size is for its own paragraphs). */
.closing-inner > .steps { max-width: 60rem; margin-block: var(--space-6); text-align: left; }
.closing .step-card p { font-size: var(--text-body); }
/* Title-only cards (the service pages' one-sentence steps): no gap under the title. */
.steps--titles strong { margin-bottom: 0; }

/* Done state for a finished step (thank-you screens: "Send me a short
   inquiry" is already done). The number disc becomes a deep sage disc with a
   white tick and the card takes a pale sage tint. The tick is a data: SVG
   (CSP img-src allows data:) so no extra markup sits in the reading order;
   the word "(done)" is in the markup as .visually-hidden text instead, so
   screen readers get it without relying on the picture.
   NOTE: the tick colour (#FFFFFF) is hard-coded inside the data URI; keep it
   in step with --color-done if that changes. No animation (none needed). */
.steps > li.step--done::before {
  content: "";
  background: var(--color-done) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 58% no-repeat;
}
.step--done .step-card { background: var(--color-done-wash); border-color: var(--color-done-edge); }
/* WHY white: the sage icon tile almost vanished on the sage card tint. */
.steps > li.step--done .step-icon { background: var(--color-paper); }

/* Steps inside the success message: the box sets Nunito 600 at h3 size for
   its own sentence; the strip goes back to normal reading text. The ring
   matches the box's wash. */
.form-success .steps {
  --step-ring: var(--color-accent-wash);
  margin: var(--space-5) 0 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

@media (min-width: 60rem) {
  /* Wide: discs in a row above equal cards, joined left to right.
     WHY auto columns (was repeat(3)): the "What's Next" strip has only two
     steps (its source has two sentences); one column per item, no empty slot. */
  .steps:not(.steps--compact) { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); --step-gap: var(--space-6); }
  .steps:not(.steps--compact) > li { padding-left: 0; padding-top: calc(var(--step-disc) + var(--space-5)); }
  .steps:not(.steps--compact) > li::before { top: 0; left: 50%; transform: translateX(-50%); }
  .steps:not(.steps--compact) > li:not(:last-child)::after {
    top: calc(var(--step-disc) / 2 - 1px);
    bottom: auto;
    left: calc(50% + var(--step-disc) / 2 + 10px);
    width: calc(100% + var(--step-gap) - var(--step-disc) - 20px);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--step-path) 0 6px, transparent 6px 12px);
  }
}

/* Closing call: centred on the sky island (Letters' conversion island), with
   generous vertical air. */
.closing { padding-block: var(--stage-pad); text-align: center; }
.closing-inner > * { max-width: 40rem; margin-inline: auto; }
.closing h2 { margin-bottom: var(--space-4); }
.closing p { font-size: var(--text-lede); }
.closing .btn { margin-top: var(--space-3); }
.closing-aside { margin-top: var(--space-5); font-size: var(--text-body) !important; }

/* 8. Inner pages ------------------------------------------------------------------- */
/* Shorter sky band (no sculpture), left-aligned so long titles stay easy to read.
   One soft cloud drifts in from the right edge, kept clear of the text column. */
.page-intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: var(--stage-pad) clamp(3rem, 2rem + 3vw, 5rem);
}
.page-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -12%;
  bottom: -40%;
  width: 50%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.page-intro h1 { max-width: 24ch; }
.intro-body { max-width: var(--measure); }
.intro-action { margin-top: var(--space-5); }
.page-intro--short { margin-bottom: var(--section-pad); }
.page-intro--about .about-intro-text h1 { max-width: 18ch; }
/* Keeps the hyphenated surname on one line (no break after "Grais-"). */
.nowrap { white-space: nowrap; }

/* Credentials and career: a ruled record, oldest-first order kept from the deck. */
.record { list-style: none; border-top: 1px solid var(--color-rule); }
.record li { padding-block: var(--space-4); border-bottom: 1px solid var(--color-rule); }

/* FAQ (components pass): two-column accordion. Idea and layout from 21st.dev
   "FAQ Two Column" (@mohammadshehadeh, React + Radix accordion), rebuilt with
   native <details>/<summary>: works with no JS, keyboard and screen readers
   get the browser's own disclosure behaviour, and find-in-page can still
   reach the answers. The shared name="faq" makes it single-open in browsers
   that support it (Safari 17.2+, Chrome 120+); older ones simply allow
   several open at once. Left column: a black label bar (the word "FAQ",
   already on the page in the nav). The component's headline and intro
   slots are left empty on purpose: no new wording without Robin's say.
   Stacks on phones, with a divider between the two parts. */
.faq { padding-block: var(--space-6) var(--section-pad); }
.faq-panel {
  display: grid;
  background: var(--color-paper);
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}
.faq-intro { padding: var(--space-6) var(--space-5) var(--space-4); border-bottom: 1px solid var(--color-edge); }
.faq-list { padding: var(--space-2) var(--space-5) var(--space-4); }
.faq-item { border-top: 1px solid var(--color-rule); }
.faq-item:first-child { border-top: 0; }
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--target-min);
  padding-block: var(--space-5);
  list-style: none;          /* hides the default triangle (Firefox/Chrome) */
  cursor: pointer;
  border-radius: 12px;
}
.faq-item > summary::-webkit-details-marker { display: none; } /* WARNING: Safari still needs this prefixed rule */
.faq-item > summary:focus-visible { outline-offset: 2px; }
.faq-item h2 { font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem); letter-spacing: -0.01em; line-height: 1.3; margin: 0; }
.faq-item > summary:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.faq-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-panel);
  color: var(--color-ink);
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.faq-icon svg { width: 0.875rem; height: 0.875rem; }
.faq-item[open] .faq-icon { transform: rotate(180deg); background: var(--color-accent-wash); }
.faq-answer { padding: 0 0 var(--space-5); max-width: var(--measure); }
.faq-answer p { margin-bottom: var(--space-3); }
.faq-action { margin-top: var(--space-4); }
@media (min-width: 60rem) {
  .faq-panel { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); }
  .faq-intro { padding: var(--space-7) var(--space-6); border-bottom: 0; border-right: 1px solid var(--color-edge); }
  .faq-intro > .label-bar { position: sticky; top: var(--space-6); }
  .faq-list { padding: var(--space-4) var(--space-7); }
}

/* Robin's black label bar as a stand-alone eyebrow (same look as form legends). */
.label-bar {
  display: inline-block;
  margin: 0;
  padding: 0.4rem 0.8rem 0.45rem;
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-radius: var(--radius-label);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: 1.35;
}

.link-list { list-style: none; margin-top: var(--space-5); }
.link-list li { margin-bottom: var(--space-2); }
.link-list a { display: inline-flex; align-items: center; min-height: var(--target-min); font-family: var(--font-display); font-weight: 600; }

/* 9. Forms -------------------------------------------------------------------------- */
/* Calm and roomy: rounded white fields with a clearly visible (3:1) border,
   radio answers as soft pills, errors in a blush box rather than a red frame.
   Native controls only; field names/ids/values are untouched (see
   ../../../_design-session-guardrails.md). */
.form-layout { padding-block: var(--section-pad); display: grid; gap: var(--space-7); }
@media (min-width: 60rem) {
  .form-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--space-8); align-items: start; }
  .form-aside { position: sticky; top: var(--space-5); }
}
/* After a successful send, forms.js un-hides .form-success, which carries its own
   "what happens next" steps (step 1 ticked). Hide the side panel's steps then, so
   the visitor sees one set of steps, not two worded slightly differently, and let
   the success box take the full row. Pure CSS reacting to the [hidden] attribute,
   so forms.js stays untouched. NOTE: relies on :has() (Safari 15.4+, Chrome 105+,
   Firefox 121+); older browsers just keep both panels, which is still correct. */
.form-layout:has(.form-success:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
.form-layout:has(.form-success:not([hidden])) .form-aside { display: none; }
.form-layout:has(.form-success:not([hidden])) .form-main { margin-inline: auto; }
.form-main { max-width: var(--measure); }
.form-main > h2 { margin-bottom: var(--space-4); }
.form-intro { color: var(--color-muted); margin-bottom: var(--space-6); }
.chapter--form .form-main { max-width: var(--measure); }
.form-after { margin-top: var(--space-6); }

/* A group is announced by its legend, set as Robin's black label bar
   (identity anchor: kept black, uppercase and tracked; corners softened). */
.group { border: 0; margin: 0 0 var(--space-7); padding: 0; min-width: 0; }
.group-legend {
  display: inline-block;
  margin-bottom: var(--space-5);
  padding: 0.4rem 0.8rem 0.45rem;
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-radius: var(--radius-label);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: 1.35;
  white-space: normal;
  max-width: 100%;
}
.group-fields { display: grid; gap: var(--space-5); }

.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--color-ink);
}
.req, .opt { font-family: var(--font-display); font-weight: 500; color: var(--color-muted); font-size: 1rem; }
/* Hints and errors are short UI text, so Nunito (Lora is for reading). */
.hint { margin: calc(-1 * var(--space-1)) 0 var(--space-2); color: var(--color-muted); font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.45; }
.field-error { margin: 0 0 var(--space-2); color: var(--color-error); font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.4; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  border: var(--border-field) solid var(--color-field-border);
  border-radius: var(--radius-field);
  background: var(--color-field-bg);
  color: var(--color-ink);
  font: inherit;
  font-family: var(--font-display);  /* what people type reads as UI text, not a page of prose */
  font-size: 1.125rem;   /* >= 16px so iOS does not zoom on focus */
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type="text"]:hover, input[type="email"]:hover, input[type="tel"]:hover, input[type="number"]:hover, select:hover, textarea:hover { border-color: var(--color-muted); }
input[type="number"] { max-width: 8rem; }
textarea { min-height: 8rem; resize: vertical; }
select {
  appearance: none;
  padding-right: 2.75rem;
  /* Chevron as an inline SVG data URI (allowed by img-src data:). */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231B1B1B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  cursor: pointer;
}
/* Field focus: ink border plus a clear-blue ring (3.3:1 on white, meets the 3:1
   focus-indicator rule) with a soft sky halo, so focus feels calm but is obvious. */
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-ink);
  box-shadow: 0 0 0 6px var(--color-accent-wash);
}
[aria-invalid="true"] { border-color: var(--color-error) !important; border-width: 2px !important; }

/* Radio answers as soft pills. The real <input type="radio"> stays visible
   inside each pill (not replaced). The label fills the pill so the whole
   pill is clickable. :has() highlights the chosen pill; browsers without it
   still show the native checked dot, so nothing is lost. */
.choices { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.choice { display: flex; align-items: center; gap: var(--space-3); min-height: var(--target-min); }
.field--choices .choice {
  padding-left: var(--space-4);
  border: var(--border-field) solid var(--color-field-border);
  border-radius: var(--radius-pill);
  background: var(--color-field-bg);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.field--choices .choice:hover { border-color: var(--color-muted); }
.field--choices .choice:has(input:checked) { background: var(--color-accent-wash); border-color: var(--color-ink); }
.field--choices .choice label { padding-right: var(--space-5); }
.choice input { width: 1.375rem; height: 1.375rem; margin: 0; flex: none; accent-color: var(--color-ink); cursor: pointer; }
.choice label { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-body); color: var(--color-body); cursor: pointer; padding-block: var(--space-2); }
.field--choices[data-invalid="true"] .choice { border-color: var(--color-error); }
.field--choices[data-invalid="true"] .choices { outline: 2px solid var(--color-error); outline-offset: 6px; border-radius: var(--radius-field); }
/* The referral consent tick sits on a pale rounded card so it reads as one
   deliberate statement, not small print. */
.choice--check {
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  background: var(--color-panel);
  border-radius: var(--radius-field);
}
.choice--check input { margin-top: 0.55rem; }
.choice--check label { font-family: var(--font-body); } /* the consent statement is a sentence to read: Lora */

.privacy-note { color: var(--color-muted); margin-top: var(--space-6); }
.form-submit { margin-top: var(--space-5); }

/* Honeypot (spam trap). Moved off-screen for sighted users; its label says
   "Leave this field empty" for anyone who meets it. Not text for machines.
   WARNING: must stay hidden (guardrails); people who fill it are dropped. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.error-summary {
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  border: 2px solid var(--color-error);
  border-radius: var(--radius-card);
  background: var(--color-error-wash);
}
.error-summary-title { font-size: var(--text-h3); color: var(--color-error); margin-bottom: var(--space-3); }
.error-summary-list { list-style: none; margin: 0; }
.error-summary-list li { margin-bottom: var(--space-2); }
.error-summary-list a { color: var(--color-error); font-weight: 700; }
.error-summary:focus-visible, .form-fail:focus-visible { outline-color: var(--color-error); }

.form-fail {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--color-error);
  border-radius: var(--radius-card);
  background: var(--color-error-wash);
  color: var(--color-ink);
}
.form-success {
  padding: var(--space-6);
  background: var(--color-accent-wash);
  border: 1px solid var(--color-sky-bottom);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  line-height: 1.4;
}
.form-success:focus { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* 10. Footer ------------------------------------------------------------------------- */
/* Spacious near-white footer (Letters: never a dark closing band). Robin's
   stone survives here as the warm name chip. */
.site-footer {
  background: var(--color-porcelain);
  border-top: 1px solid var(--color-edge);
  color: var(--color-muted);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--text-small);
}
.site-footer a { color: var(--color-ink); }
.footer-grid { display: grid; gap: var(--space-6); }
.footer-id { max-width: 34rem; }
.footer-name {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--color-stone);
  color: var(--color-ink);
  border-radius: var(--radius-label);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
}
.footer-person { color: var(--color-ink); font-weight: 600; }
.footer-nav ul { list-style: none; margin: 0; display: grid; gap: 0 var(--space-5); }
.footer-nav a { display: inline-flex; align-items: center; min-height: var(--target-min); font-family: var(--font-display); font-weight: 600; }
.footer-legal { margin: 0; padding-top: var(--space-5); border-top: 1px solid var(--color-rule); font-family: var(--font-display); font-size: 0.9375rem; }
@media (min-width: 40rem) { .footer-nav ul { grid-template-columns: repeat(2, minmax(0, max-content)); } }
@media (min-width: 60rem) {
  .footer-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--space-8); }
  .footer-legal { grid-column: 1 / -1; }
}

/* 11. Ready-to-add partials -------------------------------------------------------------
   NOTE: used only by ../../../_partials/pricing-section.html and
   testimonials-section.html, which are NOT on any page yet. Kept here so adding
   them later is paste-only. Safe to leave in; unused selectors cost nothing. */
.price-list { list-style: none; margin: var(--space-6) 0 0; border-top: 1px solid var(--color-rule); }
.price-row { padding-block: var(--space-5); border-bottom: 1px solid var(--color-rule); }
.price-row h3 { margin-bottom: var(--space-2); }
.price-amount { font-family: var(--font-display); font-weight: 600; font-size: var(--text-h3); color: var(--color-ink); margin-bottom: var(--space-2); }
.price-note { color: var(--color-muted); }
@media (min-width: 60rem) {
  .price-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 4fr); column-gap: var(--space-6); align-items: baseline; }
  .price-row > * { margin: 0; }
}
.quotes { list-style: none; margin: var(--space-6) 0 0; display: grid; gap: var(--space-6); }
@media (min-width: 60rem) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); } }
.quote { margin: 0; padding-top: var(--space-5); border-top: 2px solid var(--color-ink); }
.quote blockquote { margin: 0 0 var(--space-4); font-family: var(--font-display); font-size: var(--text-lede); line-height: 1.45; color: var(--color-ink); }
.quote figcaption { color: var(--color-muted); }
/* Visible flag so sample content can never be mistaken for real content. */
.sample-flag { display: inline-block; margin-bottom: var(--space-4); padding: 0.2rem 0.5rem; background: var(--color-error); color: #FFFFFF; font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; font-size: 0.875rem; }

/* 12. Motion and print -------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-nav, .menu-toggle, .skip-link, .site-footer .footer-nav { display: none; }
  /* Save ink: drop the sky and panel fills, keep the text. */
  .hero, .page-intro, .band--sky, .band--panel { background: none; }
  .hero-figure { display: none; }
  /* NOTE: closed FAQ answers (<details>) do not print; CSS alone cannot open
     them. Accepted for this page. */
}
