/* Design tokens: PLAN/modules/35-design-system-and-ux.md §4.2-4.5.
   Semantic tier only; components read these, never raw hex. */

:root {
  /* Light (default) */
  --canvas: #f5f6f8;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: #eceef2;
  --surface-selected: #e8eefd;
  --text: #151a22;
  --text-muted: #4b5567;
  --text-faint: #626b7c;
  --border: #d3d8e0;
  --border-strong: #7d8799;
  --action: #1d4ed8;
  --on-action: #ffffff;
  --action-hover: #1a41b5;
  --link: #1d4ed8;
  --focus: #1d4ed8;
  --ok: #17733a;
  --ok-bg: #e5f3ea;
  --warn: #8a5300;
  --warn-bg: #fff3d1;
  --warn-solid: #f2a900;
  --danger: #b91c1c;
  --danger-bg: #fdebeb;
  --danger-solid: #c62828;
  --info: #0b6a86;
  --info-bg: #e2f3f8;
  --brain: #6236c9;
  --brain-bg: #f0eafd;

  /* Category series for report types (never red, blue or violet: those mean danger, action, AI) */
  /* Brand artwork (logo only) */
  --brand-a: #1a9bff;
  --brand-b: #1d5bea;
  --brand-c: #1d3fcf;
  --brand-ink: #0b1220;

  --cat-nearmiss: #d9480f;
  --cat-condition: #b7791f;
  --cat-act: #be185d;
  --cat-idea: #52606d;

  /* Chart series (35 §4.6 chart frame, P1-29): assigned by order, never by tenant; never red, blue, green, amber or
     violet, which mean danger, action, done, waiting and Athena. Validated for colour vision and 3:1 on the surface. */
  --chart-1: #00897b;
  --chart-2: #d45d00;
  --chart-3: #b8338a;
  --chart-4: #7d7a00;

  /* Elevation (D1, 12 Nov 2026): a hairline ring under every soft shadow, so a white card on the canvas has a crisp edge
     and never looks smudged. Card at rest, raised (hover, the sign-in card), menu and dialog. */
  --shadow-card: 0 0 0 1px rgba(21, 26, 34, 0.06), 0 1px 2px rgba(21, 26, 34, 0.05), 0 2px 8px -2px rgba(21, 26, 34, 0.05);
  --shadow-raised: 0 0 0 1px rgba(21, 26, 34, 0.07), 0 2px 4px rgba(21, 26, 34, 0.04), 0 12px 32px -8px rgba(21, 26, 34, 0.12);
  --shadow-menu: 0 0 0 1px rgba(21, 26, 34, 0.07), 0 8px 24px rgba(21, 26, 34, 0.12), 0 2px 6px rgba(21, 26, 34, 0.06);
  --shadow-dialog: 0 0 0 1px rgba(21, 26, 34, 0.06), 0 24px 48px rgba(21, 26, 34, 0.18), 0 4px 12px rgba(21, 26, 34, 0.08);

  /* Type (§4.3) */
  --font: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --type-caption: 500 0.75rem/1rem var(--font);
  --type-small: 400 0.875rem/1.25rem var(--font);
  --type-body: 400 1rem/1.5rem var(--font);
  --type-label: 600 0.875rem/1.25rem var(--font);
  --type-title-s: 600 1.125rem/1.625rem var(--font);
  --type-title-m: 650 1.375rem/1.75rem var(--font);
  --type-title-l: 700 1.75rem/2.125rem var(--font);
  --type-number-l: 650 2.25rem/2.5rem var(--font);
  /* The public pages' headings (DESIGN-PASS, 6 Nov 2026): one size, weight and line height each, fluid from a 360 px
     phone to a desktop. Card and list headings use --type-title-s; small capitals over a group use --type-overline. */
  --type-display: 750 clamp(1.875rem, 1.25rem + 2.6vw, 3rem)/1.1 var(--font);
  --type-h1: 700 clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem)/1.15 var(--font);
  --type-h2: 700 clamp(1.5rem, 1.3rem + 0.85vw, 2rem)/1.2 var(--font);
  --type-lead: 400 clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem)/1.55 var(--font);
  --type-overline: 650 0.75rem/1rem var(--font);
  /* One button system (DESIGN-PASS): every text button is the standard height, or compact where space demands (a header,
     a row); the same words size, weight, corner and padding everywhere. Icon buttons are a 44 px target; chips one height. */
  --type-button: 600 1rem/1.25rem var(--font);
  --btn-h: 48px;
  --btn-h-compact: 40px;
  --btn-pad: 20px;
  --btn-pad-compact: 14px;
  --btn-radius: 10px;
  --icon-btn: 44px;
  --chip-h: 40px;
  /* One control system (D1, 12 Nov 2026): every box a person types in or picks from is the button's height and corner,
     so an input, a select and a button in one row line up exactly. Cards are one corner and one padding everywhere. */
  --control-h: var(--btn-h);
  --control-radius: var(--btn-radius);
  --card-radius: var(--radius-xl);
  --page-w: 720px;
  /* Athena's signature: her violet running into the action blue. Built from the theme's own tones, so it follows Light,
     Dark and Outdoor without a second value. Used on her mark, her box when it is listening, and anything she proposed. */
  --brain-grad: linear-gradient(135deg, var(--brain) 0%, color-mix(in srgb, var(--brain) 50%, var(--action)) 55%, var(--action) 100%);
  --brain-ring: color-mix(in srgb, var(--brain) 28%, transparent);
  --brain-wash: color-mix(in srgb, var(--brain-bg) 70%, var(--surface));
  /* Section rhythm on the public pages: the same space above and below every section, and between a heading and what
     it introduces. */
  --section-y: clamp(48px, 40px + 2.2vw, 64px);
  --section-gap: clamp(24px, 20px + 1.1vw, 32px);
  --card-pad: clamp(20px, 18px + 0.6vw, 24px);

  /* Space (§4.4) */
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 20px;
  --space-7: 24px;
  --space-8: 32px;
  --space-9: 40px;
  --space-10: 48px;

  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  --target-touch: 44px;
  --target-primary-phone: 56px;
  /* Gloves mode (35 §4.4, §4.12; P1): every control 56 px, the primary 64 px, 12 px between targets, rows 64 px. Read by
     the kit under :root[data-gloves='on'] (base.css), so nothing changes until the switch is on. */
  --target-gloves: 56px;
  --target-gloves-primary: 64px;
  --gap-gloves: 12px;
  --row-gloves: 64px;

  /* Lines and the focus ring: 1 px and 2 px, 2 px and 3 px in Outdoor (35 §4.4). */
  --line: 1px;
  --focus-width: 2px;

  /* Motion (§4.5) */
  --motion-fast: 100ms;
  --motion-base: 160ms;
  --motion-slow: 240ms;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);

  /* Z-index scale (§4.4) */
  --z-sticky: 100;
  --z-rail: 200;
  --z-topbar: 300;
  --z-popover: 400;
  --z-sheet: 500;
  --z-dialog: 600;
  --z-toast: 700;
  --z-band: 800;

  color-scheme: light;
}

/* Dark is a screen theme: paper always prints in Light (35 §4.17). */
@media screen {
  :root[data-theme='dark'] {
    --canvas: #0d1117;
    --surface: #151a22;
    --surface-raised: #1c222c;
    --surface-sunken: #090c10;
    --surface-selected: #1b2847;
    --text: #e7ebf1;
    --text-muted: #a6b0bf;
    --text-faint: #8c96a6;
    --border: #2a313c;
    --border-strong: #677285;
    --action: #4d7fff;
    --on-action: #06122e;
    --action-hover: #6b95ff;
    --link: #8eb0ff;
    --focus: #8eb0ff;
    --ok: #4cc27a;
    --ok-bg: #0f2a1a;
    --warn: #f4b63f;
    --warn-bg: #2e2208;
    --warn-solid: #f4b63f;
    --danger: #ff7070;
    --danger-bg: #331414;
    --danger-solid: #c53030;
    --info: #4fc3dc;
    --info-bg: #0b2a32;
    --brain: #b39bff;
    --brain-bg: #221a3d;

    --brand-a: #2ea8ff;
    --brand-b: #6b95ff;
    --brand-c: #4d7fff;
    --brand-ink: #ffffff;

    --cat-nearmiss: #ff8a4c;
    --cat-condition: #e5b657;
    --cat-act: #f472b6;
    --cat-idea: #a3aebd;

    --chart-1: #2aa79b;
    --chart-2: #e0702a;
    --chart-3: #cf5aa6;
    --chart-4: #9d9a1f;

    /* Dark uses lighter surfaces and a border instead of shadows (§4.4) */
    --shadow-card: 0 0 0 1px var(--border), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-raised: 0 0 0 1px var(--border), 0 12px 32px -8px rgba(0, 0, 0, 0.55);
    --shadow-menu: 0 0 0 1px var(--border), 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-dialog: 0 0 0 1px var(--border), 0 24px 48px rgba(0, 0, 0, 0.6);

    color-scheme: dark;
  }
}

/* Outdoor (35 §4.2 Outdoor column, P1): sunlight, glare and poor screens. Pure white and black, every text tone at least
   7:1, no light greys, 2 px lines, weights 500 and up, a wider focus ring, no shadows (borders only). A screen theme
   like Dark: paper always prints in Light. The values in the plan's table are used as given; brand, category and chart
   tones are the Light ones darkened until they hold 4.5:1 on white (computed in test/tokens.test.ts). */
@media screen {
  :root[data-theme='outdoor'] {
    --canvas: #ffffff;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-sunken: #f2f2f2;
    --surface-selected: #d6e0ff;
    --text: #000000;
    --text-muted: #2b3038;
    --text-faint: #2b3038;
    --border: #3a3f47;
    --border-strong: #000000;
    --action: #0033a0;
    --on-action: #ffffff;
    --action-hover: #002680;
    --link: #0033a0;
    --focus: #0033a0;
    --ok: #0b5a26;
    --ok-bg: #ffffff;
    --warn: #5a3700;
    --warn-bg: #ffffff;
    --warn-solid: #ffc72c;
    --danger: #9e0000;
    --danger-bg: #ffffff;
    --danger-solid: #9e0000;
    --info: #004e63;
    --info-bg: #ffffff;
    --brain: #4a1fa8;
    --brain-bg: #ffffff;

    --brand-a: #0067c2;
    --brand-b: #1d4ed8;
    --brand-c: #0033a0;
    --brand-ink: #000000;

    --cat-nearmiss: #a33500;
    --cat-condition: #6e4800;
    --cat-act: #8f1249;
    --cat-idea: #2b3038;

    --chart-1: #005e55;
    --chart-2: #9a4000;
    --chart-3: #8a1f64;
    --chart-4: #545200;

    /* Borders only: a 2 px ring in place of every shadow. */
    --shadow-card: 0 0 0 2px var(--border);
    --shadow-raised: 0 0 0 2px var(--border);
    --shadow-menu: 0 0 0 2px var(--border-strong);
    --shadow-dialog: 0 0 0 2px var(--border-strong);

    /* No weight under 500 (35 §4.3). */
    --type-small: 500 0.875rem/1.25rem var(--font);
    --type-body: 500 1rem/1.5rem var(--font);

    --line: 2px;
    --focus-width: 3px;

    color-scheme: light;
  }
}

/* One height inside the app (the owner, 17 Nov 2026: "every control is 48 px high"): on a page drawn in the app's frame
   or the phone's frame, the compact button, the link button, the icon button, the chip and the touch target are all the
   standard button's height, so no page can draw a 40 or 44 px control through the kit. The public website keeps its
   compact header buttons (it has neither frame). Gloves mode's bigger targets still win below. */
:root:has(.frame, .phone-frame) {
  --btn-h-compact: var(--btn-h);
  --icon-btn: var(--btn-h);
  --chip-h: var(--btn-h);
  --target-touch: var(--btn-h);
}

/* Gloves mode (35 §4.12): bigger targets and type 125 %. The switch is per device (apps/web/src/shell/theme.ts). */
:root[data-gloves='on'] {
  --target-touch: var(--target-gloves);
  --target-primary-phone: var(--target-gloves-primary);
  font-size: 125%;
}

@media (max-width: 599px) {
  :root {
    --type-body: 400 1.0625rem/1.625rem var(--font);
  }
  :root[data-theme='outdoor'] {
    --type-body: 500 1.0625rem/1.625rem var(--font);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms;
    --motion-base: 0ms;
    --motion-slow: 0ms;
  }
}

/* The base classes every screen is built from (moved here from apps/web/src/styles/app.css by P0-20, verbatim): the
   reset, status families (fam-*), buttons, chips, counts. Tokens only (35 §4). apps/web imports this at the top of app.css
   through @pm/ui/base.css, so the cascade is exactly what it was. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font: var(--type-body);
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  text-rendering: optimizeLegibility;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
/* The hidden attribute always wins over a component's display (P0-43: the website's code form showed before the code
   was sent, because .ws-form set display: flex). */
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: var(--focus-width) solid var(--focus);
  outline-offset: var(--focus-width);
}
/* The ring follows the thing's own corner (a rounded button keeps its corners when focused); only a thing with square
   corners, such as a plain text link, gets a small rounding so the ring never looks clipped. */
a:focus-visible {
  border-radius: var(--radius-s);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.tabular,
.tile-value,
.week-num,
.site-card-value {
  font-variant-numeric: tabular-nums slashed-zero;
}
.mono {
  font-variant-numeric: tabular-nums slashed-zero;
  letter-spacing: 0.01em;
}

/* ---------- Status families ---------- */
.fam-neutral {
  --tone: var(--text-faint);
  --tone-bg: var(--surface-sunken);
}
.fam-info {
  --tone: var(--info);
  --tone-bg: var(--info-bg);
}
.fam-action {
  --tone: var(--action);
  --tone-bg: var(--surface-selected);
}
/* Dark: the action blue on its selected tint is under 4.5:1; the chip's words take the link tone (P0-43 axe gate). */
:root[data-theme='dark'] .fam-action {
  --tone: var(--link);
}
.fam-warn {
  --tone: var(--warn);
  --tone-bg: var(--warn-bg);
}
.fam-ok {
  --tone: var(--ok);
  --tone-bg: var(--ok-bg);
}
.fam-danger {
  --tone: var(--danger);
  --tone-bg: var(--danger-bg);
}
.fam-muted {
  --tone: var(--text-faint);
  --tone-bg: var(--surface-sunken);
}
.tone-ok {
  color: var(--ok);
}
.tone-warn {
  color: var(--warn);
}
.tone-danger {
  color: var(--danger);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: var(--type-caption);
  font-weight: 600;
  padding: 3px 9px 3px 7px;
  border-radius: var(--radius-full);
  color: var(--tone);
  background: var(--tone-bg);
  white-space: nowrap;
}
.chip-quiet {
  background: transparent;
  padding-inline: 0;
  /* A quiet chip is a line of words: it wraps rather than pushing the page sideways (P0-43). */
  white-space: normal;
  max-width: 100%;
}
.tag {
  font: var(--type-caption);
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 1px 8px;
}

.brain-mark {
  color: var(--brain);
  flex: none;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: hsl(var(--hue) 55% 28%);
  background: hsl(var(--hue) 70% 90%);
}
:root[data-theme='dark'] .avatar {
  color: hsl(var(--hue) 80% 85%);
  background: hsl(var(--hue) 35% 24%);
}

/* ---------- The logo: the mark and the two-tone name (apps/web Logo.tsx and the website's header draw the same) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo-mark {
  flex: none;
  display: block;
}
.logo-word {
  font: 800 1.0625rem/1.25rem var(--font);
  letter-spacing: -0.03em;
}
.logo-word-a {
  color: var(--brand-ink);
}
.logo-word-b {
  color: var(--brand-b);
}

/* ---------- Buttons ----------
   One button system (DESIGN-PASS, 6 Nov 2026): primary, secondary (plain), ghost and link, in two sizes only. Standard
   is 48 px high; compact (.btn-s) is 40 px, only where space demands (a header, a row of actions). Every text button has
   the same words size, weight, corner and padding. .btn-l and .btn-xl are the standard size (kept as names so nothing
   breaks); the design gate fails any other height (apps/web/e2e/design-system.spec.ts). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 var(--btn-pad);
  border-radius: var(--btn-radius);
  font: var(--type-button);
  white-space: nowrap;
  transition:
    background var(--motion-fast),
    border-color var(--motion-fast),
    transform var(--motion-fast);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-l {
  min-height: var(--btn-h);
}
.btn-s {
  min-height: var(--btn-h-compact);
  padding: 0 var(--btn-pad-compact);
}
.btn-xl {
  min-height: var(--btn-h);
  flex: 1 1 100%;
}
.btn-primary {
  background: var(--action);
  color: var(--on-action);
}
.btn-primary:hover:not(:disabled) {
  background: var(--action-hover);
}
.btn-danger {
  background: var(--danger-solid);
  color: #fff;
}
.btn-brain {
  background: var(--brain);
  color: #fff;
}
.btn-brain .brain-mark {
  color: #fff;
}
.btn-brain:hover {
  filter: brightness(1.08);
}
:root[data-theme='dark'] .btn-brain {
  color: #120b2b;
}
:root[data-theme='dark'] .btn-brain .brain-mark {
  color: #120b2b;
}
.btn-plain {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn-plain:hover {
  background: var(--surface-sunken);
}
.btn-ghost {
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: var(--surface-sunken);
  color: var(--text);
}
/* The link button is the compact height: it reads as a link and is still a whole target. */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--btn-h-compact);
  color: var(--link);
  font: var(--type-button);
  padding: 0 2px;
}
.link-btn:hover {
  text-decoration: underline;
}
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--icon-btn);
  height: var(--icon-btn);
  border-radius: var(--btn-radius);
  color: var(--text-muted);
}
.icon-btn:hover {
  background: var(--surface-sunken);
  color: var(--text);
}
.count {
  position: absolute;
  top: 2px;
  inset-inline-end: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--danger-solid);
  color: #fff;
  font: 700 0.6875rem/17px var(--font);
  text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.count-brain {
  background: var(--brain);
}

/* Reduced motion (35 §4.5, QA item 27): when the person asks for less motion nothing animates, whatever a page's own
   stylesheet says; the motion tokens are already 0 ms (tokens.css), this also stops keyframes and smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print (35 §4.17, QA item 36): the page itself on white paper, in Light (the Dark tokens are screen-only), without the
   frame around it: no rail, top bar, phone tabs, Athena's bar, bands, toasts or sheets. */
@media print {
  .rail,
  .topbar,
  .phone-top,
  .tabs,
  .athena-box,
  .band,
  .toasts,
  .update-toast,
  .scrim {
    display: none !important;
  }
  body {
    background: var(--surface);
  }
  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 0.85em;
  }
}

/* ---------- Outdoor (35 §4.2, §4.4): 2 px lines on controls, the outline drawn by the border, not a soft shadow ---------- */
:root[data-theme='outdoor'] .btn-plain {
  box-shadow: inset 0 0 0 var(--line) var(--border-strong);
}
:root[data-theme='outdoor'] .tag,
:root[data-theme='outdoor'] .mr-input,
:root[data-theme='outdoor'] .mr-select,
:root[data-theme='outdoor'] input,
:root[data-theme='outdoor'] select,
:root[data-theme='outdoor'] textarea {
  border-width: var(--line);
}
:root[data-theme='outdoor'] .btn:disabled {
  /* Half-faded words vanish in sunlight: disabled keeps full ink and says so with a dashed line. */
  opacity: 1;
  box-shadow: inset 0 0 0 var(--line) var(--border);
  border-style: dashed;
}

/* ---------- Gloves mode (35 §4.4, §4.12, §4.13; P1): every control 56 px, the primary 64 px, 12 px apart ---------- */
:root[data-gloves='on'] .btn,
:root[data-gloves='on'] .link-btn,
:root[data-gloves='on'] .kt-tab,
:root[data-gloves='on'] .kt-athena-btn,
:root[data-gloves='on'] .kt-fold-head,
:root[data-gloves='on'] .mr-input,
:root[data-gloves='on'] .mr-select,
:root[data-gloves='on'] .mr-yesno-btn,
:root[data-gloves='on'] .mr-check,
:root[data-gloves='on'] .mr-search,
:root[data-gloves='on'] .mr-sort,
:root[data-gloves='on'] .mr-jump a,
:root[data-gloves='on'] .pm-read-aloud {
  min-height: var(--target-gloves);
  min-width: var(--target-gloves);
}
:root[data-gloves='on'] .btn-primary,
:root[data-gloves='on'] .btn-xl,
:root[data-gloves='on'] .btn-danger {
  min-height: var(--target-gloves-primary);
}
:root[data-gloves='on'] .kt-row {
  min-height: var(--row-gloves);
}
:root[data-gloves='on'] .mr-num {
  /* Steppers and number boxes, never fine sliders. */
  min-height: var(--target-gloves);
  font-size: 1.25rem;
}
/* 12 px between neighbouring targets wherever controls sit side by side. */
:root[data-gloves='on'] .kt-head-actions,
:root[data-gloves='on'] .kt-sheet-actions,
:root[data-gloves='on'] .kt-tabs,
:root[data-gloves='on'] .mr-actions,
:root[data-gloves='on'] .mr-yesno,
:root[data-gloves='on'] .mr-station-confirm {
  gap: var(--gap-gloves);
}

/* The public website (module 34). Tokens only; every class starts with ws-. */

/* A heading with no class of its own still takes a size from the scale (DESIGN-PASS): never the browser's 2em or 1.17em.
   Placed first, so every component's own heading rule below wins. */
.ws h1 {
  font: var(--type-h1);
}
.ws h2 {
  font: var(--type-h2);
}
.ws h3,
.ws h4 {
  font: var(--type-title-s);
}

.ws {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
}
.ws-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.ws-top {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
  padding: 0 24px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.ws-logo {
  display: flex;
  flex: none;
  align-items: center;
  min-height: var(--icon-btn);
}
.ws-logo svg {
  flex: none;
}
/* The header's buttons are the compact size: space demands it. */
.ws-top-right .btn {
  min-height: var(--btn-h-compact);
  padding: 0 var(--btn-pad-compact);
}
.ws-nav {
  display: flex;
  gap: 24px;
}
.ws-nav a {
  font: var(--type-label);
  color: var(--text-muted);
  text-decoration: none;
}
.ws-nav a:hover,
.ws-nav a.ws-here {
  color: var(--text);
}
.ws-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ws-menu-btn {
  display: none;
}
.ws-menu {
  position: sticky;
  top: 64px;
  z-index: var(--z-topbar);
  display: flex;
  flex-direction: column;
  padding: 8px 16px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.ws-main {
  flex: 1;
}

.ws-hero {
  padding: var(--section-y) 0;
  background: linear-gradient(180deg, var(--surface-selected), var(--surface));
}
.ws-hero-s {
  padding-bottom: calc(var(--section-y) * 0.6);
}
.ws-hero h1 {
  font: var(--type-display);
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}
.ws-hero-s h1 {
  font: var(--type-h1);
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.ws-eyebrow {
  font: var(--type-label);
  color: var(--action);
  margin-bottom: 12px;
}
.ws-lead {
  margin-top: 16px;
  max-width: 62ch;
  font: var(--type-lead);
  color: var(--text-muted);
}
/* The line under the lead: smaller, quieter, and kept apart from it. */
.ws-hero-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  max-width: 62ch;
  font: var(--type-small);
  color: var(--text-muted);
}
.ws-hero-note svg {
  flex: none;
  margin-top: 3px;
  color: var(--brain);
}
.ws-free-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  font: var(--type-small);
  color: var(--text-muted);
}
.ws-free-line svg {
  flex: none;
  margin-top: 3px;
  color: var(--ok);
}

.ws-build {
  margin-top: 32px;
  max-width: 760px;
}
.ws-build-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 2px var(--action),
    var(--shadow-menu);
}
.ws-build-box.ws-listening {
  box-shadow:
    inset 0 0 0 2px var(--danger),
    var(--shadow-menu);
}
.ws-build-box input {
  flex: 1;
  min-width: 0;
  min-height: var(--btn-h);
  border: 0;
  background: transparent;
  color: var(--text);
  font: var(--type-body);
}
.ws-build-box .mic-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--icon-btn);
  height: var(--icon-btn);
  border-radius: 50%;
  color: var(--text-muted);
}
.ws-build-box .mic-btn:hover {
  background: var(--surface-sunken);
  color: var(--text);
}
.ws-build-box .mic-btn.on {
  background: var(--danger-solid);
  color: #fff;
}
.ws-build > .ws-note {
  margin-top: 12px;
}
.ws-build-box input:focus-visible {
  outline: none;
}
/* Chips: one height everywhere (--chip-h). */
.ws-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ws-chips button {
  display: inline-flex;
  align-items: center;
  min-height: var(--chip-h);
  padding: 0 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  font: var(--type-small);
  font-weight: 500;
  color: var(--text-muted);
}
.ws-chips button:hover {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.ws-building {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--brain);
  font: var(--type-label);
}

.ws-sketch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-dialog);
  animation: rise var(--motion-slow) var(--ease-out);
}
.ws-sketch-head {
  display: flex;
  gap: 12px;
}
.ws-sketch-head p {
  margin-top: 2px;
  font: var(--type-small);
  color: var(--text-muted);
}
.ws-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brain-bg);
  color: var(--brain);
}
.ws-sketch-line {
  display: flex;
  flex-wrap: wrap;
  font: var(--type-label);
}
.ws-sketch-line span + span::before {
  content: '·';
  margin: 0 10px;
  color: var(--text-faint);
}
.ws-sketch-grid {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.ws-sketch h3 {
  font: var(--type-overline);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.ws-sketch ul,
.ws-sketch ol {
  margin: 0;
  padding-left: 18px;
  font: var(--type-small);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ws-sketch-first {
  align-self: stretch;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: var(--brain-bg);
}

.ws-section {
  padding: var(--section-y) 0;
}
.ws-quiet {
  background: var(--canvas);
}
.ws-dark {
  background: var(--brand-ink);
  color: #fff;
}
.ws-section h2 {
  font: var(--type-h2);
  letter-spacing: -0.01em;
  max-width: 28ch;
  text-wrap: balance;
}
.ws-section-sub {
  margin-top: 12px;
  max-width: 64ch;
  font: var(--type-body);
  color: var(--text-muted);
}
.ws-section h2 + *,
.ws-section-sub + * {
  margin-top: var(--section-gap);
}
.ws-section h2 + .ws-section-sub {
  margin-top: 12px;
}

.ws-cards {
  display: grid;
  gap: 16px;
}
.ws-cards-3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.ws-cards-4 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.ws-cards-5 {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
/* One card: the same corner, padding and edge for every card, tile and box on the public pages. */
.ws-card {
  padding: var(--card-pad);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.ws-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font: var(--type-title-s);
  margin-bottom: 8px;
}
.ws-card p,
.ws-card ul {
  font: var(--type-body);
  color: var(--text-muted);
}
.ws-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ws-card-human {
  background: var(--ok-bg);
  box-shadow: none;
}
.ws-card-human p {
  color: var(--text);
}
.ws-card-human h3 {
  color: var(--ok);
}

.ws-day {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.ws-day li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 3px solid var(--brain);
  font: var(--type-body);
}
.ws-day-time {
  font: var(--type-title-s);
  color: var(--brain);
}

.ws-sectors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.ws-sector {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--card-pad);
  text-align: left;
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.ws-sector:hover {
  box-shadow: inset 0 0 0 2px var(--action);
}
.ws-sector strong {
  font: var(--type-title-s);
}
.ws-sector span {
  font: var(--type-body);
  color: var(--text-muted);
}

.ws-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.ws-plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--card-pad);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.ws-plan-main {
  box-shadow: inset 0 0 0 2px var(--action);
}
.ws-plan h3 {
  font: var(--type-title-s);
}
.ws-plan-price {
  font: var(--type-body);
  color: var(--text-muted);
}
.ws-plan-price strong {
  font: var(--type-title-m);
  color: var(--text);
}
.ws-plan-who {
  font: var(--type-body);
  color: var(--text-muted);
}
.ws-plan ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: var(--type-body);
  flex: 1;
}
.ws-plan li {
  display: flex;
  gap: 8px;
}
.ws-plan li svg {
  flex: none;
  margin-top: 5px;
  color: var(--ok);
}
.ws-plan-btn {
  margin-top: 8px;
}
.ws-more {
  margin-top: var(--section-gap);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* A link that stands alone under a section is a link button: the compact height, the button words. */
a.ws-more {
  min-height: var(--btn-h-compact);
  color: var(--link);
  font: var(--type-button);
  text-decoration: underline;
  text-underline-offset: 3px;
}
p > a.ws-more {
  margin-top: 0;
}

.ws-toggle {
  display: inline-flex;
  margin-top: 20px;
  padding: 4px;
  border-radius: var(--radius-full);
  background: var(--surface-sunken);
}
.ws-toggle button {
  min-height: var(--btn-h-compact);
  padding: 0 var(--btn-pad-compact);
  border-radius: var(--radius-full);
  font: var(--type-label);
  color: var(--text-muted);
}
.ws-toggle .ws-tog-on {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.ws-calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding: var(--card-pad);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.ws-calc-in {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ws-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: var(--type-label);
}
.ws-stepper > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ws-stepper button {
  width: var(--icon-btn);
  height: var(--icon-btn);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--border-strong);
  font: var(--type-title-s);
}
.ws-stepper span.tabular {
  min-width: 2ch;
  text-align: center;
  font: var(--type-title-s);
}
.ws-calc-check {
  display: flex;
  gap: 10px;
  font: var(--type-small);
}
.ws-calc-out {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border-radius: var(--radius-l);
  background: var(--surface-selected);
}
.ws-calc-plan {
  font: var(--type-label);
  color: var(--action);
}
.ws-calc-out strong {
  font: var(--type-number-l);
}
.ws-calc-out p {
  margin-top: 8px;
  font: var(--type-small);
}
.ws-note {
  font: var(--type-small);
  color: var(--text-muted);
}

.ws-two {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px 32px;
}
.ws-two h3 {
  font: var(--type-title-s);
  margin-bottom: 6px;
}
.ws-two p {
  color: var(--text-muted);
  line-height: 1.55;
}

.ws-pills,
.ws-never,
.ws-terms,
.ws-trust {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ws-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ws-pills li {
  display: inline-flex;
  align-items: center;
  min-height: var(--chip-h);
  padding: 0 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  font: var(--type-label);
}
.ws-never {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.ws-never li,
.ws-terms li,
.ws-trust li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.ws-never svg,
.ws-terms svg {
  flex: none;
  margin-top: 3px;
  color: var(--ok);
}
.ws-never + .ws-note {
  margin-top: 16px;
}
.ws-terms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px 24px;
}
.ws-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  font: var(--type-label);
  color: var(--text-muted);
}
.ws-trust svg {
  flex: none;
  margin-top: 2px;
  color: var(--action);
}

.ws-table {
  width: 100%;
  border-collapse: collapse;
  font: var(--type-small);
}
.ws-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.ws-table td + td {
  text-align: right;
  color: var(--text-muted);
}
.ws-packs {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.ws-packs li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.ws-faq {
  display: flex;
  flex-direction: column;
  max-width: 760px;
}
.ws-faq-item {
  border-bottom: 1px solid var(--border);
}
.ws-faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 0;
  text-align: left;
  font: var(--type-title-s);
}
.ws-faq-item .ws-up {
  transform: rotate(180deg);
}
.ws-faq-item p {
  padding-bottom: 16px;
  color: var(--text-muted);
}

.ws-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.ws-steps li {
  display: flex;
  gap: 14px;
}
.ws-step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--action);
  color: var(--on-action);
  font: var(--type-title-s);
}
.ws-steps h3 {
  font: var(--type-title-s);
  margin-bottom: 4px;
}
.ws-steps p {
  color: var(--text-muted);
  font: var(--type-body);
}

.ws-example {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
  padding: var(--card-pad);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.ws-example h3 {
  font: var(--type-title-s);
}
.ws-example strong {
  font: var(--type-title-m);
}
.ws-example span {
  font: var(--type-small);
  color: var(--text-muted);
}

.ws-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}
.ws-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: var(--type-label);
}
.ws-form input,
.ws-form textarea {
  min-height: var(--btn-h);
  padding: 10px 12px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: var(--type-body);
}
.ws-form button {
  align-self: flex-start;
}
.ws-sent {
  display: flex;
  align-items: center;
  gap: 8px;
  font: var(--type-title-s);
  color: var(--ok);
}

.ws-closing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.ws-section .ws-closing h2 + * {
  margin-top: 0;
}
.ws-closing p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 60ch;
}
.ws-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.ws-on-dark {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  background: transparent;
}

.ws-foot {
  padding: 48px 0 24px;
  background: var(--canvas);
  border-top: 1px solid var(--border);
}
.ws-foot-grid {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: 24px;
}
.ws-foot-grid h3 {
  font: var(--type-overline);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.ws-foot-grid a {
  display: flex;
  align-items: center;
  min-height: 32px;
  font: var(--type-small);
  color: var(--text-muted);
  text-decoration: none;
}
.ws-foot-grid a:hover {
  color: var(--text);
}
.ws-foot-line {
  margin-top: 10px;
  font: var(--type-small);
  color: var(--text-muted);
  max-width: 32ch;
}
.ws-copy {
  margin-top: 32px;
  font: var(--type-caption);
  color: var(--text-faint);
}

@media (max-width: 1040px) {
  .ws-nav,
  .ws-signin {
    display: none;
  }
  .ws-menu-btn {
    display: grid;
  }
}
@media (max-width: 860px) {
  .ws-calc {
    grid-template-columns: 1fr;
  }
  .ws-foot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ws-foot-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 599px) {
  .ws-top {
    padding: 0 12px;
    gap: 12px;
  }
  .ws-wrap {
    padding: 0 16px;
  }
  .ws-build-box {
    flex-wrap: wrap;
    padding: 8px;
  }
  .ws-build-box input {
    flex: 1 1 0;
    padding-left: 8px;
  }
  .ws-build-box .btn-primary {
    flex: 1 1 100%;
  }
  /* Phone: the examples are one tidy column of equal rows, not ragged pills. */
  .ws-chips {
    flex-direction: column;
    align-items: stretch;
  }
  .ws-chips button {
    justify-content: flex-start;
    border-radius: var(--btn-radius);
    text-align: left;
  }
  .ws-terms {
    grid-template-columns: 1fr;
  }
  .ws-foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- frame additions: resources menu, phone menu, footer room for the Concierge ---------- */

.ws-nav {
  align-items: center;
}
.ws-drop {
  position: relative;
}
.ws-drop > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  font: var(--type-label);
  color: var(--text-muted);
}
.ws-drop > button:hover,
.ws-drop > button.ws-here {
  color: var(--text);
}
.ws-drop .ws-up {
  transform: rotate(180deg);
}
.ws-drop-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: -12px;
  z-index: var(--z-popover);
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 6px;
  border-radius: var(--radius-l);
  background: var(--surface-raised);
  box-shadow: var(--shadow-menu);
}
.ws-nav .ws-drop-menu a {
  padding: 10px 12px;
  border-radius: var(--radius-m);
  color: var(--text);
}
.ws-nav .ws-drop-menu a:hover {
  background: var(--surface-selected);
}

.ws-menu {
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  gap: 4px;
}
.ws-menu-group {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.ws-menu-group h2 {
  font: var(--type-overline);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ws-menu a {
  display: flex;
  align-items: center;
  min-height: var(--btn-h);
  font: var(--type-title-s);
  color: var(--text);
  text-decoration: none;
}
.ws-menu a.ws-here {
  color: var(--action);
}

/* Room under the footer for the phone's bottom bar (site-more.css .ws-dock), so it never covers the last line. */
.ws-foot {
  padding-bottom: calc(var(--btn-h) + 48px + env(safe-area-inset-bottom));
}

/* ---------- shared page pieces ---------- */

.ws-hero-actions {
  margin-top: 32px;
}
.ws-meta {
  margin-top: 14px;
  font: var(--type-small);
  color: var(--text-muted);
}
.ws-gap {
  margin-top: 16px;
}
.ws-plain {
  max-width: 68ch;
  color: var(--text-muted);
  line-height: 1.6;
}
.ws-plain a,
.ws-note a,
.ws-two p a {
  color: var(--link);
  /* A link inside a sentence is underlined, not told apart by colour alone (WCAG 1.4.1, P0-43 axe gate). */
  text-decoration: underline;
}
.ws-subhead {
  margin: 28px 0 12px;
  font: var(--type-title-s);
}
.ws-eg {
  display: block;
  margin-top: 6px;
  font: var(--type-small);
  color: var(--text-faint);
}
.ws-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--surface-selected);
  color: var(--action);
  font: var(--type-caption);
  font-weight: 650;
}
/* Dark: the action blue on the selected surface is under 4.5:1 for words this small (SALES-PAGE, axe dark). */
:root[data-theme='dark'] .ws-tag,
:root[data-theme='dark'] .ws-calc-plan {
  color: var(--link);
}

.ws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}
.ws-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}
.ws-linkcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--card-pad);
  text-align: left;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.ws-linkcard:hover {
  box-shadow: inset 0 0 0 2px var(--action);
}
.ws-linkcard strong {
  font: var(--type-title-s);
}
.ws-linkcard > span:not(.ws-tag) {
  font: var(--type-body);
  color: var(--text-muted);
}

.ws-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 10px 24px;
}
.ws-checks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.ws-checks svg {
  flex: none;
  margin-top: 3px;
  color: var(--ok);
}

.ws-card .ws-mark {
  margin-bottom: 10px;
}
.ws-card .ws-card-strong {
  font: var(--type-body);
  color: var(--text);
}
.ws-two h3 svg {
  vertical-align: -3px;
  margin-right: 4px;
  color: var(--action);
}

.ws-numbered {
  margin: 0;
  padding-left: 22px;
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.55;
}
.ws-numbered li::marker {
  font-weight: 700;
  color: var(--action);
}

.ws-box {
  padding: var(--card-pad);
  border-radius: var(--radius-l);
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--border);
  max-width: 68ch;
}
.ws-box h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font: var(--type-title-s);
  margin-bottom: 12px;
}
.ws-box .ws-checks {
  grid-template-columns: 1fr;
}
.ws-box-brain {
  background: var(--brain-bg);
  box-shadow: none;
}
.ws-box-brain h2 {
  color: var(--brain);
}

/* ---------- Athena ---------- */

.ws-levels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 20px;
}
.ws-levels li {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ws-levels h3 {
  font: var(--type-title-s);
  margin-bottom: 4px;
}
.ws-levels p {
  font: var(--type-body);
  color: var(--text-muted);
}
.ws-reason {
  max-width: 720px;
  padding: var(--card-pad);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.ws-reason-head {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.ws-reason-head p {
  margin-top: 2px;
  font: var(--type-small);
  color: var(--text-muted);
}
.ws-reason dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 10px 16px;
  font: var(--type-small);
  line-height: 1.5;
}
.ws-reason dt {
  font-weight: 650;
  color: var(--text-muted);
}
.ws-reason dd {
  margin: 0;
}

.ws-card ul.ws-int {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  gap: 8px;
}
.ws-int strong {
  display: block;
  color: var(--text);
}

/* ---------- changelog ---------- */

.ws-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 820px;
}
.ws-log > li {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
}
.ws-log-date {
  font: var(--type-label);
  color: var(--text-muted);
  padding-top: 4px;
}
.ws-log h2 {
  font: var(--type-title-m);
  margin-bottom: 8px;
}
.ws-log p {
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.ws-log .ws-checks {
  grid-template-columns: 1fr;
  font: var(--type-small);
}

/* ---------- guides ---------- */

.ws-article {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.ws-toc {
  position: sticky;
  top: 88px;
}
.ws-toc h2 {
  font: var(--type-overline);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.ws-section .ws-toc h2 + * {
  margin-top: 0;
}
.ws-toc ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: var(--type-small);
}
.ws-toc a {
  color: var(--text-muted);
  text-decoration: none;
}
.ws-toc a:hover {
  color: var(--text);
}
.ws-prose {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 68ch;
}
.ws-prose section {
  scroll-margin-top: 84px;
}
.ws-prose h2 {
  font: var(--type-title-m);
  margin-bottom: 10px;
}
.ws-section .ws-prose h2 + *,
.ws-section .ws-box h2 + *,
.ws-section .ws-legal-list h2 + *,
.ws-section .ws-log h2 + * {
  margin-top: 0;
}
.ws-prose p {
  line-height: 1.65;
}
.ws-prose p + p,
.ws-prose ul + p {
  margin-top: 12px;
}
.ws-prose ul {
  margin: 10px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.55;
}
.ws-prose ul.ws-checks {
  padding-left: 0;
  margin: 0;
}

/* ---------- templates ---------- */

.ws-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ws-filter button {
  min-height: var(--chip-h);
  padding: 0 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  font: var(--type-label);
  color: var(--text-muted);
}
.ws-filter button.ws-filter-on {
  background: var(--action);
  color: var(--on-action);
  box-shadow: none;
}
.ws-filter + .ws-note + .ws-grid {
  margin-top: 16px;
}
.ws-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-dialog);
  display: grid;
  place-items: center;
  padding: 16px;
  background: color-mix(in srgb, var(--brand-ink) 55%, transparent);
}
.ws-modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: var(--card-pad);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-dialog);
}
.ws-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.ws-modal-head .ws-eyebrow {
  margin-bottom: 4px;
}
.ws-modal-head h2 {
  font: var(--type-title-l);
}
.ws-modal-sub {
  color: var(--text-muted);
}
.ws-tpl th {
  padding: 8px 0;
  text-align: left;
  font: var(--type-overline);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-strong);
}
.ws-tpl th + th,
.ws-tpl td + td {
  text-align: left;
  padding-left: 16px;
  width: 38%;
}
.ws-tpl td {
  overflow-wrap: anywhere;
}

/* ---------- glossary and help search ---------- */

.ws-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--text-muted);
}
.ws-search:focus-within {
  box-shadow: inset 0 0 0 2px var(--action);
}
.ws-search input {
  flex: 1;
  min-width: 0;
  min-height: var(--btn-h);
  border: 0;
  background: transparent;
  color: var(--text);
  font: var(--type-body);
}
.ws-search input:focus-visible {
  outline: none;
}
.ws-gloss {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 0 40px;
}
.ws-gloss > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.ws-gloss dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font: var(--type-title-s);
  margin-bottom: 4px;
}
.ws-gloss dd {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- legal ---------- */

.ws-draft {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  min-height: var(--chip-h);
  padding: 0 16px;
  border-radius: var(--radius-full);
  background: var(--warn-bg);
  color: var(--warn);
  font: var(--type-label);
}
.ws-legal {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 72ch;
}
.ws-legal-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ws-legal-list li::marker {
  font-weight: 700;
}
.ws-legal-list h2 {
  font: var(--type-title-s);
  margin-bottom: 4px;
}
.ws-legal-list p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- the Concierge ---------- */

/* Questions? on a wide screen: a quiet secondary pill in the corner (never a second blue button). On a phone it lives in
   the bottom bar instead (site-more.css .ws-dock). */
.ws-cg-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: var(--z-popover);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 var(--btn-pad);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text);
  font: var(--type-button);
  box-shadow:
    inset 0 0 0 1px var(--border-strong),
    var(--shadow-menu);
}
.ws-cg-btn:hover {
  background: var(--surface-sunken);
}
.ws-cg {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: var(--z-popover);
  display: flex;
  flex-direction: column;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: min(560px, calc(100vh - 32px));
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-dialog);
  overflow: hidden;
}
.ws-cg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 18px;
  border-bottom: 1px solid var(--border);
  font: var(--type-title-s);
}
.ws-cg-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
.ws-cg-hello {
  font: var(--type-small);
  color: var(--text-muted);
  line-height: 1.5;
}
.ws-cg-hello svg {
  vertical-align: -2px;
  margin-right: 4px;
  color: var(--brain);
}
.ws-cg-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: var(--radius-l);
  font: var(--type-small);
  line-height: 1.5;
}
.ws-cg-you {
  align-self: flex-end;
  background: var(--action);
  color: var(--on-action);
}
.ws-cg-us {
  align-self: flex-start;
  background: var(--canvas);
}
.ws-cg-us .link-btn {
  margin-top: 6px;
}
.ws-cg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
}
.ws-cg-chips button {
  display: inline-flex;
  align-items: center;
  min-height: var(--chip-h);
  padding: 0 16px;
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px var(--border);
  font: var(--type-small);
  color: var(--text-muted);
  text-align: left;
}
.ws-cg-chips button:hover {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.ws-cg-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 12px;
  padding: 4px 4px 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.ws-cg-form:focus-within {
  box-shadow: inset 0 0 0 2px var(--action);
}
.ws-cg-form input {
  flex: 1;
  min-width: 0;
  min-height: var(--icon-btn);
  border: 0;
  background: transparent;
  color: var(--text);
  font: var(--type-body);
}
.ws-cg-form input:focus-visible {
  outline: none;
}
.ws-cg-talk {
  margin: 10px 12px 12px;
}

@media (max-width: 860px) {
  .ws-article {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ws-toc {
    position: static;
  }
}
@media (max-width: 599px) {
  .ws-log > li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .ws-reason dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .ws-reason dd {
    margin-bottom: 10px;
  }
  .ws-modal {
    padding: 18px 16px;
  }
  .ws-cg {
    inset: 0;
    width: auto;
    max-width: none;
    height: auto;
    border-radius: 0;
  }
}

.ws-stepper-hint {
  display: block;
  font: var(--type-caption);
  color: var(--text-muted);
}
.ws-calc-go {
  align-self: flex-start;
  margin-top: 14px;
}

/* 360 to 380 px (most Android phones): the full logo, Start free and the menu fit at the normal edge without the page
   moving sideways (it was 1 px too wide at 360). */
@media (min-width: 360px) and (max-width: 380px) {
  .ws-top {
    gap: 8px;
  }
  .ws-top-right {
    gap: 4px;
  }
  .ws-top-right .btn {
    padding-inline: 12px;
  }
}

/* 320 px (WCAG 1.4.10 reflow, P0-43): the header's logo, Start free and the menu fit without pushing the page sideways. */
@media (max-width: 359px) {
  .ws-top {
    gap: 8px;
    padding: 0 8px;
  }
  .ws-top-right {
    gap: 4px;
    min-width: 0;
  }
  .ws-top-right .btn {
    padding-inline: 12px;
  }
  /* Under 360 px the mark alone is the logo: the name would push the menu off the edge. */
  .ws-logo .logo-word {
    display: none;
  }
}

/* ---------- DESIGN-PASS (6 Nov 2026): rhythm inside the hero, and tags that never break ---------- */
.ws-hero .ws-wrap > .ws-note,
.ws-hero .ws-actions + .ws-note {
  margin-top: 12px;
}
.ws-tag {
  flex: none;
  white-space: nowrap;
}
.ws-card h3 {
  flex-wrap: wrap;
  row-gap: 6px;
}

/* The website pages added on 24 Oct 2026 (module 34). Tokens only; every class starts with ws-. */

.ws-self-start {
  align-self: flex-start;
}
.ws-problem {
  color: var(--danger);
  font: var(--type-small);
}
.ws-warn-line {
  padding: 10px 14px;
  border-radius: var(--radius-m);
  background: var(--warn-bg);
  font: var(--type-small);
}

/* Sign up */
.ws-start .ws-wrap {
  max-width: 600px;
}
.ws-start h1 {
  font: var(--type-title-l);
  margin-bottom: 8px;
}
.ws-inapp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.ws-code {
  font: var(--type-number-l);
  letter-spacing: 0.3em;
  text-align: center;
  max-width: 260px;
}
.ws-form select {
  min-height: var(--btn-h);
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--text);
  font: var(--type-body);
}
.ws-helped {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Tables with a heading column */
.ws-scroll-x {
  overflow-x: auto;
}
.ws-table-left th,
.ws-table-left td {
  padding: 10px 12px 10px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.ws-table-left td + td {
  text-align: left;
}
.ws-table-left th {
  font-weight: 600;
  color: var(--text);
}
.ws-table-left thead th {
  font: var(--type-caption);
  color: var(--text-muted);
}

/* Status and documents */
.ws-status {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 560px;
}
.ws-status li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ws-status-word {
  color: var(--text-muted);
  font: var(--type-small);
}
.ws-docs {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}
.ws-docs li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ws-docs li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ws-docs li span {
  color: var(--text-muted);
  font: var(--type-small);
}
@media (max-width: 599px) {
  .ws-docs li {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .ws-docs li > :last-child {
    grid-column: 2;
    justify-self: start;
  }
}

/* Build mine extras and booking */
.ws-demo-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ws-demo-more label {
  cursor: pointer;
}
.ws-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ws-days button {
  min-height: var(--btn-h-compact);
  padding: 0 var(--btn-pad-compact);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  font: var(--type-label);
  color: var(--text-muted);
}
.ws-days .ws-tog-on {
  box-shadow: inset 0 0 0 2px var(--action);
  color: var(--text);
}
.ws-chips button.ws-chip-on {
  box-shadow: inset 0 0 0 2px var(--action);
  color: var(--text);
}

/* Roadmap */
.ws-road {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ws-road h2 {
  font: var(--type-title-s);
  margin-bottom: 10px;
}
.ws-road ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ws-road li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ws-road li span {
  color: var(--text-muted);
  font: var(--type-small);
}
.ws-road li .link-btn {
  align-self: flex-start;
}
@media (max-width: 860px) {
  .ws-road {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ws-pack {
  max-width: 68ch;
  padding: 16px;
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  font: var(--type-small);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Partner portal and growth console: a plain frame, no marketing header */
.ws-portal {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--text);
}
.ws-portal-top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font: var(--type-label);
}
.ws-portal-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 16px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.ws-portal-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ws-portal-nav button {
  min-height: 40px;
  padding: 8px 12px;
  text-align: left;
  border-radius: var(--radius-m);
  font: var(--type-label);
  color: var(--text-muted);
}
.ws-portal-nav button:hover {
  background: var(--surface-sunken);
}
.ws-portal-nav button.ws-here {
  background: var(--surface-selected);
  color: var(--action);
}
/* Dark: the action blue on the selected tint is under 4.5:1 (P0-43 axe gate). */
:root[data-theme='dark'] .ws-portal-nav button.ws-here {
  color: var(--link);
}
.ws-portal-h1 {
  font: var(--type-title-l);
}
@media (max-width: 760px) {
  .ws-portal-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .ws-portal-nav {
    flex-direction: row;
    overflow-x: auto;
  }
  .ws-portal-nav button {
    white-space: nowrap;
  }
}

/* The phone's one bottom bar (DESIGN-PASS): Questions? and the page's one blue button side by side, never on top of each
   other or of the page. It shows only once the page's own call to action ([data-cta]) has scrolled away, so a phone never
   shows two of the same button at once (./dock.ts). The footer keeps room for it (site.css .ws-foot). Wide screens keep
   the Questions pill in the corner and no bar. */
.ws-dock {
  display: none;
}
@media (max-width: 599px) {
  .ws-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-sticky);
    display: flex;
    gap: 12px;
    padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(21, 26, 34, 0.06);
    transform: translateY(0);
    transition:
      transform var(--motion-base) var(--ease-out),
      visibility var(--motion-base);
  }
  .ws-dock[data-shown='false'] {
    transform: translateY(110%);
    visibility: hidden;
  }
  .ws-dock .btn-primary {
    flex: 1;
  }
  /* On a phone Questions? is in the bar; the corner bubble is not drawn. */
  .ws-cg-btn,
  .pm-concierge-open {
    display: none !important;
  }
}

/* Printable tick-lists on template pages */
.ws-ticklist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}
.ws-ticklist li {
  border-bottom: 1px solid var(--border);
}
.ws-ticklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 12px 0;
  line-height: 1.45;
}
.ws-ticklist input {
  width: 22px;
  height: 22px;
  flex: none;
}
.ws-ticklist small {
  display: block;
  color: var(--text-muted);
  font: var(--type-small);
}

/* The website's own few additions to the demo's ws- design (apps/web/src/site/site.css): the details-based questions,
   the Concierge bubble, the compare tables and the honeypot. Tokens only. */
.sr-only:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ws-faq-item summary {
  display: flex;
  align-items: center;
  min-height: 56px;
  cursor: pointer;
  padding: 12px 0;
  font: var(--type-title-s);
}
.ws-faq-item p {
  margin: 0 0 14px;
  color: var(--text-muted);
}
/* Help: an answer of one sentence has nothing to open, so it is drawn as its heading alone; the index's cards say how
   many answers a section holds; a section page links back, on and to the index. */
.ws-faq-one p {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin: 0;
  padding: 12px 0;
  font: var(--type-title-s);
  color: var(--text);
}
/* An answer that opens says so: a plus at the end of its heading, a minus once it is open. */
.ws-help-answers summary {
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
.ws-help-answers summary::after {
  content: '+';
  flex: none;
  color: var(--text-muted);
}
.ws-help-answers details[open] > summary::after {
  content: '−';
}
.ws-linkcard > .ws-help-count {
  margin-top: auto;
  padding-top: 8px;
  font: var(--type-label);
}
.ws-help-back {
  margin-top: 16px;
}
.ws-help-more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.ws-help-more a,
.ws-help-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--action);
  font: var(--type-label);
}
.ws-compare table {
  margin-bottom: 24px;
}
.ws-compare caption {
  text-align: left;
  font: var(--type-label);
  padding: 8px 0;
}
.ws-film {
  width: 100%;
  height: auto;
  border-radius: var(--radius-l, 12px);
}
.pm-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
}
/* P1-25: the in-app browser warning, and "We're a sole trader" beside the organisation. */
.ws-inapp {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.ws-check {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pm-concierge {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: var(--z-topbar, 50);
}
.pm-concierge-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 96px));
  overflow: auto;
  padding: 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.18);
}
.pm-concierge-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pm-concierge-panel h2 {
  font: var(--type-label);
  margin: 0;
}
.pm-concierge-log {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 8px;
}
.pm-concierge-log .pm-visitor {
  justify-self: end;
  background: var(--accent-bg, var(--surface-2));
  padding: 8px 12px;
  border-radius: 12px;
}
.pm-concierge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.pm-concierge-chips button {
  font: var(--type-small);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}
.pm-concierge-ask {
  display: flex;
  gap: 8px;
}
.pm-concierge-ask input {
  flex: 1;
  min-width: 0;
}
@media (max-width: 600px) {
  .pm-concierge-panel {
    position: fixed;
    inset: 0;
    width: auto;
    max-height: none;
    border-radius: 0;
  }
}
/* S-11: the price in one line at the top of the safety pages and /pricing; other systems' claims with their source;
   the demo walk-through; the draft band on held-back pages. */
.ws-price-line {
  font: var(--type-body);
  margin: 24px 0 0;
  max-width: 760px;
  padding: 12px 16px;
  border-left: 4px solid var(--action);
  background: var(--surface-sunken);
  border-radius: 8px;
}
.ws-claim .ws-source {
  color: var(--text-muted);
  font: var(--type-small);
}
.ws-beside {
  margin: 8px 0 0;
  font: var(--type-small);
  color: var(--text-muted);
}
.ws-walk {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 32px;
}
.ws-walk h3 {
  margin: 0 0 8px;
}
.ws-links a {
  color: inherit;
}
.ws-sources {
  padding-left: 20px;
  overflow-wrap: anywhere;
}
.ws-draft-band {
  margin: 0;
  padding: 8px 16px;
  text-align: center;
  font: var(--type-label);
  background: var(--warn-bg);
  color: var(--text);
}
.ws-table td,
.ws-table th {
  overflow-wrap: anywhere;
}
.ws-price-line + .ws-note {
  margin-top: 12px;
}
.ws-price-line + .ws-actions {
  margin-top: 24px;
}
/* E24 W-13: the partner forms' groups of ticks, and the printable guide checklists (34 §3.9). */
.ws-form fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: grid;
  gap: 8px;
}
.ws-form legend {
  font: var(--type-label);
  padding: 0 4px;
}
.ws-tickbox {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border: 1.5px solid var(--text);
  border-radius: 3px;
  vertical-align: -2px;
}
@media print {
  .ws-top,
  .ws-foot,
  .pm-concierge,
  .ws-noprint,
  .ws-closing,
  .ws-toc {
    display: none !important;
  }
  .ws-section {
    padding: 0;
  }
}
/* DESIGN-PASS (6 Nov 2026): the phone menu (a details element, so it works without the script), and the Questions?
   pill on wide screens drawn like the app's (site.css .ws-cg-btn): a quiet secondary, never a second blue button. On a
   phone it is in the bottom bar (site-more.css .ws-dock). */
.ws-phone-menu {
  display: none;
}
.ws-phone-menu > summary {
  list-style: none;
  cursor: pointer;
}
.ws-phone-menu > summary::-webkit-details-marker {
  display: none;
}
.ws-phone-menu > .ws-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  box-shadow: var(--shadow-menu);
}
@media (max-width: 1040px) {
  .ws-phone-menu {
    display: block;
  }
}
.pm-concierge-open {
  border-radius: var(--radius-full);
  box-shadow:
    inset 0 0 0 1px var(--border-strong),
    var(--shadow-menu);
}
.pm-concierge {
  right: 24px;
  bottom: 24px;
}
.pm-concierge-chips button {
  display: inline-flex;
  align-items: center;
  min-height: var(--chip-h);
  padding: 0 16px;
}
.ws-currency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}
.ws-currency select {
  min-height: var(--btn-h-compact);
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--text);
  font: var(--type-small);
}
.ws-hero .ws-actions + .ws-note {
  margin-top: 16px;
}

/* The front page Athena presents (SALES-PAGE, 7 Nov 2026; pages/home.ts). Tokens and the type scale only; every class
   starts with at-. The Monday feed is drawn finished; the script adds data-play when it comes into view and the CSS
   plays it once. With reduced motion, or without the script, the finished feed is all there is. */

/* ---------- Athena's presence: her mark in a ring, her name, what she is doing ---------- */
.at-presence {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}
.at-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(140deg, var(--brain), var(--brand-b));
  color: var(--surface);
}
/* A slow ring: she is on. Still under reduced motion. */
.at-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--brain);
  opacity: 0.35;
  animation: at-ring 2.8s var(--ease-out) infinite;
}
.at-avatar-s {
  width: 32px;
  height: 32px;
}
.at-avatar-s::after {
  display: none;
}
.at-presence-words {
  display: flex;
  flex-direction: column;
}
.at-presence-words strong {
  font: var(--type-title-s);
}
.at-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: var(--type-small);
  color: var(--text-muted);
}
.at-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-bg);
}

/* ---------- the first view: Meet Athena (H1, 12 Nov 2026) ----------
   The owner: "a little bit of writing and then a button in the middle the user clicks that button and Athena speaks to
   them". Centred and calm: her mark large in three soft rings, the greeting, one sentence, one button. The section fills
   the screen under the header, so nothing else is in the first view. The script (browser/site.ts) sets data-state on
   the section: ready, loading, speaking, paused, done. Loading turns the inner ring into a slow arc within the press;
   speaking makes the rings breathe and a small wave move under the button; with reduced motion all of it is still and
   the words still come. The words she says take the short sentence's place (the same type and room: three lines on a
   phone, two from a tablet up), so nothing moves. Start free and See how I work keep their room from the start and are
   shown when she finishes. Without the script the button is a link to How I work and her words are printed below it. */
.at-meet {
  --meet-w: min(100%, 336px);
  display: grid;
  align-items: center;
  min-height: calc(100svh - 64px);
  padding: 48px 0 40px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 46% at 50% 30%, color-mix(in srgb, var(--brain) 13%, transparent), transparent 72%),
    linear-gradient(180deg, var(--surface-selected), var(--surface));
}
.at-meet-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Her mark, large, in three rings. */
.at-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 28px 0 44px;
}
.at-orb-face {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(140deg, var(--brain), var(--brand-b));
  color: var(--surface);
  box-shadow:
    0 18px 48px color-mix(in srgb, var(--brain) 34%, transparent),
    inset 0 1px 0 rgb(255 255 255 / 0.22);
}
.at-orb-ring {
  --s: 1.24;
  --o: 0.3;
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--brain);
  opacity: var(--o);
  transform: scale(var(--s));
}
.at-orb-ring:nth-child(2) {
  --s: 1.52;
  --o: 0.16;
}
.at-orb-ring:nth-child(3) {
  --s: 1.82;
  --o: 0.07;
}
.at-meet[data-state='loading'] .at-orb-ring:first-child {
  border-color: transparent;
  border-top-color: var(--brain);
  opacity: 0.85;
  animation: at-spin 0.9s linear infinite;
}
.at-meet[data-state='speaking'] .at-orb-ring {
  animation: at-breathe 2.4s ease-in-out infinite;
}
.at-meet[data-state='speaking'] .at-orb-ring:nth-child(2) {
  animation-delay: 0.3s;
}
.at-meet[data-state='speaking'] .at-orb-ring:nth-child(3) {
  animation-delay: 0.6s;
}
.at-meet[data-state='speaking'] .at-orb-face {
  animation: at-swell 2.4s ease-in-out infinite;
}
@keyframes at-spin {
  to {
    transform: scale(var(--s)) rotate(1turn);
  }
}
@keyframes at-breathe {
  50% {
    transform: scale(calc(var(--s) + 0.1));
    opacity: calc(var(--o) * 2);
  }
}
@keyframes at-swell {
  50% {
    transform: scale(1.035);
  }
}

/* The greeting: "Hi, I'm Athena," small above the tagline, one sentence, the page's title. */
.at-meet h1 {
  max-width: 22ch;
}
.at-nowrap {
  white-space: nowrap;
}
.at-hi {
  display: block;
  margin-bottom: 8px;
  font: var(--type-title-m);
  letter-spacing: 0;
  color: var(--brain);
}
.at-tagline {
  display: block;
}

/* One sentence, and in its place her words as she says them. */
.at-say {
  display: grid;
  width: min(100%, 36rem);
  margin-top: 16px;
}
.at-say > p {
  grid-area: 1 / 1;
  min-height: 3lh;
  font: var(--type-lead);
  text-wrap: balance;
}
@media (min-width: 600px) {
  .at-say > p {
    min-height: 2lh;
  }
}
.at-say-intro {
  color: var(--text-muted);
}
.at-caption {
  color: var(--text);
}
.at-meet:not([data-state='ready']) .at-say-intro {
  visibility: hidden;
}
.at-caption > span {
  display: inline-block;
  animation: at-caption-in var(--motion-slow) var(--ease-out);
}
@keyframes at-caption-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* The button: the one thing to press, the width of the column it leads. */
.at-meet-go {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--meet-w);
  margin-top: 20px;
}
.at-meet-btn {
  width: 100%;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brain) 30%, transparent);
}
.at-meet-btn.btn-plain {
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.at-meet-icon {
  display: none;
}
.at-meet-icon svg {
  display: block;
}
.at-meet[data-state='ready'] .at-meet-play,
.at-meet[data-state='paused'] .at-meet-play,
.at-meet[data-state='speaking'] .at-meet-pause,
.at-meet[data-state='done'] .at-meet-again,
.at-meet[data-state='loading'] .at-meet-wait {
  display: inline-flex;
}
.at-meet-wait {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: at-spin-plain 0.8s linear infinite;
}
@keyframes at-spin-plain {
  to {
    transform: rotate(1turn);
  }
}
.at-meet-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font: var(--type-small);
  color: var(--text-muted);
}
.at-meet-hint-icon {
  display: inline-flex;
}
.at-wave {
  display: none;
  align-items: center;
  gap: 3px;
  height: 16px;
}
.at-wave span {
  width: 3px;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--brain);
  transform: scaleY(0.35);
  animation: at-wave 1s ease-in-out infinite;
}
.at-wave span:nth-child(2) {
  animation-delay: 0.15s;
}
.at-wave span:nth-child(3) {
  animation-delay: 0.3s;
}
.at-wave span:nth-child(4) {
  animation-delay: 0.45s;
}
.at-wave span:nth-child(5) {
  animation-delay: 0.6s;
}
.at-meet[data-state='speaking'] .at-wave {
  display: inline-flex;
}
/* The hint is its words alone (as the owner approved the first view, 12 Nov 2026); while she speaks, the wave leads it.
   At the end it stays, so Start free, See how I work and her box below it do not move. */
.at-meet-hint-icon {
  display: none;
}
@keyframes at-wave {
  50% {
    transform: scaleY(1);
  }
}

/* Start free and See how I work: two buttons, one size, the width of the column. Their room is kept from the start; they
   show from the press on (H2: Start free throughout the conversation), so nothing moves when they come in. */
.at-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: var(--meet-w);
  margin-top: 20px;
  visibility: hidden;
}
.at-after .btn {
  padding: 0 12px;
}
.at-meet:not([data-state='ready']) .at-after {
  visibility: visible;
  animation: at-caption-in var(--motion-slow) var(--ease-out);
}

/* Without the script: the button goes to How I work, and her words are here to read. */
.at-script {
  display: none;
}
@media (scripting: none) {
  .at-script {
    display: grid;
    gap: 8px;
    max-width: 36rem;
    margin-top: 28px;
    font: var(--type-body);
    color: var(--text-muted);
  }
  .at-after {
    display: none;
  }
}

/* ---------- Her words in a box, then a conversation (H2, 12 Nov 2026) ----------
   The owner: "a scrolling text box of what she's saying" and "they can just communicate, speak back and forth ... Or
   type them in". The box comes in under the button when Meet Athena is pressed (browser/site.ts brings it from its
   template) and only grows downwards, so nothing above it moves. One card, the column's reading width: her name and
   what she is doing on top, her words as she says them (each turn of hers with her mark, the visitor's in a soft
   bubble on the right), and when she has finished, three questions to start from and the text box with the microphone
   and Send inside it. The log keeps the newest line in view and scrolls by itself; a keyboard can scroll it too. */
.at-talk {
  --talk-w: min(100%, 36rem);
  width: var(--talk-w);
  margin-top: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--border),
    0 18px 48px -24px color-mix(in srgb, var(--brain) 40%, transparent);
  text-align: start;
  animation: at-caption-in var(--motion-slow) var(--ease-out);
}
.at-talk-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 10px 16px;
  border-bottom: 1px solid var(--border);
}
.at-talk-who {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.at-talk-who strong {
  font: var(--type-label);
}
.at-talk-doing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: var(--type-caption);
  color: var(--text-muted);
}
.at-talk-doing .at-dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 2px var(--ok-bg);
}
.at-talk[data-talk-state='speaking'] .at-talk-doing .at-dot,
.at-talk[data-talk-state='thinking'] .at-talk-doing .at-dot,
.at-talk[data-talk-state='hearing'] .at-talk-doing .at-dot {
  background: var(--brain);
  box-shadow: 0 0 0 2px var(--brain-bg);
  animation: at-dot 1.2s ease-in-out infinite;
}
.at-talk[data-talk-state='listening'] .at-talk-doing .at-dot {
  background: var(--danger-solid);
  box-shadow: 0 0 0 2px var(--danger-bg);
}
.at-talk-mute .at-talk-off,
.at-talk-mute[aria-pressed='true'] .at-talk-on {
  display: none;
}
.at-talk-mute[aria-pressed='true'] .at-talk-off {
  display: inline-flex;
}
.at-talk-mute svg {
  display: block;
}

/* The log: her turns and the visitor's, newest at the bottom. */
.at-talk-log {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: min(18rem, 46svh);
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scroll-padding-bottom: 16px;
}
.at-talk-log:empty {
  display: none;
}
.at-talk-log:focus-visible {
  outline: var(--focus-width) solid var(--focus);
  outline-offset: -2px;
  border-radius: var(--radius-l);
}
.at-turn {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.at-turn-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: var(--radius-full);
  background: linear-gradient(140deg, var(--brain), var(--brand-b));
  color: var(--surface);
}
.at-turn-mark svg {
  width: 14px;
  height: 14px;
}
.at-turn-body {
  display: grid;
  gap: 6px;
  min-width: 0;
  font: var(--type-body);
  color: var(--text);
}
.at-turn-body p {
  margin: 0;
  overflow-wrap: anywhere;
  animation: at-caption-in var(--motion-slow) var(--ease-out);
}
/* The sentence she is saying now is full strength; what she has said settles back a little. */
.at-talk[data-talk-state='speaking'] .at-turn-athena:last-child .at-turn-body p:not(:last-child) {
  color: var(--text-muted);
}
.at-turn-you {
  justify-content: flex-end;
}
.at-turn-you .at-turn-body {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-l) var(--radius-l) var(--radius-s) var(--radius-l);
  background: var(--surface-selected);
}
.at-turn-wait .at-turn-body {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 26px;
}
.at-turn-slow:not([data-slow]) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.at-turn-slow {
  font: var(--type-small);
  color: var(--text-muted);
}

/* The question: three to start from, then the box with the microphone and Send inside it. */
.at-talk-ask {
  display: grid;
  gap: 12px;
  padding: 12px 12px 14px;
  border-top: 1px solid var(--border);
  animation: at-caption-in var(--motion-slow) var(--ease-out);
}
.at-talk-log:empty + .at-talk-ask {
  border-top: 0;
}
.at-talk-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* On a phone the three sit in one row that scrolls sideways, so the text box stays near her words. */
@media (max-width: 599px) {
  .at-talk-starters {
    flex-wrap: nowrap;
    margin: 0 -12px;
    padding: 0 12px 2px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-padding-inline: 12px;
  }
  .at-talk-starters::-webkit-scrollbar {
    display: none;
  }
  .at-talk-starters .btn {
    flex: none;
  }
}
.at-talk-starters .btn {
  font: var(--type-small);
  font-weight: 600;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: var(--radius-full);
}
.at-talk-starters .btn:hover {
  box-shadow: inset 0 0 0 1px var(--brain);
  background: var(--brain-wash);
}
.at-talk-box {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 5px 5px 5px 16px;
  border-radius: 28px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: box-shadow var(--motion-fast);
}
.at-talk-box:focus-within {
  box-shadow:
    inset 0 0 0 1px var(--brain),
    0 0 0 3px var(--brain-ring);
}
.at-talk-box textarea {
  flex: 1;
  min-width: 0;
  min-height: var(--icon-btn);
  max-height: 132px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: var(--type-body);
  resize: none;
  outline: none;
}
.at-talk-box textarea::placeholder {
  color: var(--text-faint);
}
.at-talk-box .icon-btn {
  flex: none;
  border-radius: var(--radius-full);
}
.at-talk-mic {
  color: var(--text-muted);
}
.at-talk-mic:hover {
  background: var(--surface);
  color: var(--text);
}
/* Listening: the microphone goes red and a ring swells with the visitor's voice. */
.at-talk-level {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.at-talk-mic[aria-pressed='true'] {
  background: var(--danger-solid);
  color: #fff;
}
.at-talk-mic[aria-pressed='true'] .at-talk-level {
  box-shadow: 0 0 0 calc(2px + var(--level, 0) * 8px) color-mix(in srgb, var(--danger-solid) 28%, transparent);
  transition: box-shadow var(--motion-fast);
}
.at-talk-send {
  background: var(--brain);
  color: #fff;
}
.at-talk-send:hover {
  background: var(--brain);
  filter: brightness(1.1);
}
:root[data-theme='dark'] .at-talk-send,
:root[data-theme='dark'] .at-talk-mic[aria-pressed='true'] {
  color: #120b2b;
}
.at-talk[data-talk-state='thinking'] .at-talk-send,
.at-talk[data-talk-state='hearing'] .at-talk-send {
  opacity: 0.5;
}
.at-talk-note {
  font: var(--type-small);
  color: var(--text-muted);
}
.at-talk-note:empty {
  display: none;
}
.at-talk-human {
  justify-self: start;
}

@media (prefers-reduced-motion: reduce) {
  .at-talk,
  .at-talk-ask,
  .at-turn-body p,
  .at-talk-doing .at-dot,
  .at-meet .at-orb-ring,
  .at-meet .at-orb-face,
  .at-meet .at-wave span,
  .at-meet .at-caption > span,
  .at-meet .at-after,
  .at-meet-wait {
    animation: none !important;
  }
  .at-meet[data-state='loading'] .at-orb-ring:first-child {
    border-color: var(--brain);
    opacity: 0.6;
  }
}

@media (max-width: 599px) {
  .at-meet {
    padding: 28px 0 24px;
  }
  .at-orb {
    width: 92px;
    height: 92px;
    margin: 22px 0 36px;
  }
  .at-orb-face svg {
    width: 46px;
    height: 46px;
  }
  .at-hi {
    margin-bottom: 4px;
  }
}

/* ---------- How I work: what she does and the price, beside a Monday (the old first view's words) ---------- */
/* See how I work lands here: clear of the sticky header. */
.at-how {
  scroll-margin-top: 64px;
}
.at-how-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
.at-how-copy h2 {
  max-width: 20ch;
}
.at-how .ws-lead {
  margin-top: 12px;
  max-width: 56ch;
}
/* What people still do. */
.at-people {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  max-width: 56ch;
  font: var(--type-small);
  color: var(--text);
}
.at-people svg {
  flex: none;
  color: var(--ok);
}
.at-how .ws-price-line {
  margin-top: 20px;
  max-width: 56ch;
}
.at-how .ws-actions {
  margin-top: 24px;
}
@media (min-width: 960px) {
  .at-how-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
  }
  .at-feed {
    margin-top: 8px;
  }
}

/* ---------- the Monday feed ---------- */
.at-feed {
  padding: var(--card-pad);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-menu);
}
.at-feed-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.ws .at-feed-head h2 {
  font: var(--type-title-s);
}
.at-feed-head p {
  font: var(--type-small);
  color: var(--text-muted);
}
.at-feed-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.at-example {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--warn-bg);
  color: var(--warn);
  font: var(--type-overline);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.at-feed-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.at-line {
  display: grid;
  grid-template-columns: 44px 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px;
  border-radius: var(--radius-l);
}
.at-line-time {
  font: var(--type-caption);
  color: var(--text-faint);
  padding-top: 2px;
}
.at-line-who {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--brain);
}
@media (max-width: 599px) {
  .at-line {
    grid-template-columns: 38px 16px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 6px;
  }
}
.at-person .at-line-who {
  color: var(--ok);
}
.at-person {
  background: var(--ok-bg);
}
.at-line-body p {
  font: var(--type-small);
  color: var(--text);
}
.at-tag {
  display: inline-block;
  margin-left: 2px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  background: var(--brain-bg);
  color: var(--brain);
  font: var(--type-caption);
}
/* A person's tap, drawn (not a control): the words of the button they pressed, and a tick once pressed. */
.at-tap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: var(--btn-radius);
  background: var(--action);
  color: var(--on-action);
  font: var(--type-label);
}
.at-tap-done {
  display: inline-grid;
}
.at-working {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-left: 8px;
  font: var(--type-small);
  color: var(--text-muted);
}
.at-dots {
  display: inline-flex;
  gap: 3px;
}
.at-dots span {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--brain);
  animation: at-dot 1.2s ease-in-out infinite;
}
.at-dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.at-dots span:nth-child(3) {
  animation-delay: 0.3s;
}
.at-replay {
  margin-top: 8px;
}

/* Where each line sits in the feed (no inline styles: the website's CSP allows none). The feed holds 7 lines. */
.at-line:nth-child(1) {
  --i: 0;
}
.at-line:nth-child(2) {
  --i: 1;
}
.at-line:nth-child(3) {
  --i: 2;
}
.at-line:nth-child(4) {
  --i: 3;
}
.at-line:nth-child(5) {
  --i: 4;
}
.at-line:nth-child(6) {
  --i: 5;
}
.at-line:nth-child(7) {
  --i: 6;
}
.at-line:nth-child(8) {
  --i: 7;
}
.at-line:nth-child(9) {
  --i: 8;
}
.at-line:nth-child(10) {
  --i: 9;
}

/* Playing: each line arrives in turn (1.6 s apart), a person's tap is pressed, then the tick shows. Lines that have not
   arrived keep their space (visibility), so nothing below the feed moves while it plays. */
[data-feed][data-play] .at-line {
  visibility: hidden;
  animation: at-in 480ms var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 1.6s + 0.4s);
}
[data-feed][data-play] .at-me {
  animation-name: at-in-me;
}
[data-feed][data-play] .at-tap {
  animation: at-press 520ms ease-in-out forwards;
  animation-delay: calc(var(--i) * 1.6s + 1.1s);
}
[data-feed][data-play] .at-tap-done {
  visibility: hidden;
  animation: at-show 1ms forwards;
  animation-delay: calc(var(--i) * 1.6s + 1.45s);
}
[data-feed][data-play] .at-working {
  display: flex;
}
[data-feed][data-done] .at-working {
  display: none;
}
@keyframes at-in {
  from {
    visibility: visible;
    transform: translateY(10px);
  }
  to {
    visibility: visible;
    transform: none;
  }
}
@keyframes at-in-me {
  from {
    visibility: visible;
    transform: translateY(10px);
    background-color: var(--brain-bg);
  }
  60% {
    background-color: var(--brain-bg);
  }
  to {
    visibility: visible;
    transform: none;
    background-color: transparent;
  }
}
@keyframes at-press {
  0%,
  100% {
    transform: none;
  }
  45% {
    transform: scale(0.93);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--action) 25%, transparent);
  }
}
@keyframes at-show {
  to {
    visibility: visible;
  }
}
@keyframes at-dot {
  0%,
  80%,
  100% {
    transform: none;
    opacity: 0.4;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
@keyframes at-ring {
  0% {
    transform: scale(0.92);
    opacity: 0.45;
  }
  70%,
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .at-avatar::after,
  .at-dots span,
  [data-feed][data-play] .at-line,
  [data-feed][data-play] .at-tap,
  [data-feed][data-play] .at-tap-done {
    animation: none;
    visibility: visible;
  }
  [data-feed][data-play] .at-working {
    display: none;
  }
}

/* ---------- the night: a dark band in both themes ---------- */
.at-night {
  --night-bg: var(--brand-ink);
  --night-text: var(--surface);
  --night-muted: color-mix(in srgb, var(--surface) 74%, var(--brand-ink));
  --night-line: color-mix(in srgb, var(--surface) 16%, var(--brand-ink));
  --night-accent: color-mix(in srgb, var(--brand-a) 70%, var(--surface));
  background: var(--night-bg);
  color: var(--night-text);
}
:root[data-theme='dark'] .at-night {
  --night-bg: var(--surface-sunken);
  --night-text: var(--text);
  --night-muted: var(--text-muted);
  --night-line: var(--border);
  --night-accent: var(--link);
}
.at-night .ws-section-sub,
.at-night .at-status {
  color: var(--night-muted);
}
.at-night .at-dot {
  background: var(--night-accent);
  box-shadow: 0 0 0 3px var(--night-line);
}
.at-night-grid {
  display: grid;
  gap: var(--section-gap);
}
.at-night-intro h2 {
  max-width: 16ch;
}
.at-night-rule {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-l);
  font: var(--type-body);
}
.at-night-rule svg {
  flex: none;
  color: var(--night-accent);
}
@media (min-width: 960px) {
  .at-night-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
  }
  .at-night-intro {
    position: sticky;
    top: 96px;
  }
}

/* ---------- a diary: time, then what she did ---------- */
.at-diary {
  list-style: none;
  padding: 0;
}
.ws-section h2 + .ws-section-sub + .at-diary {
  margin-top: var(--section-gap);
}
.at-entry {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.at-entry:last-child {
  border-bottom: 1px solid var(--border);
}
.at-entry-time {
  font: var(--type-label);
  color: var(--brain);
  padding-top: 1px;
}
.at-entry p {
  font: var(--type-body);
  max-width: 62ch;
}
.at-diary-night .at-entry {
  border-color: var(--night-line);
}
.at-diary-night .at-entry-time {
  color: var(--night-accent);
}
.at-diary-night .at-entry-notlive p {
  color: var(--night-muted);
}
.at-notlive {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed currentColor;
  border-radius: var(--radius-full);
  font: var(--type-caption);
}
.at-entry-notlive {
  grid-template-columns: 1fr;
  gap: 8px;
}

/* ---------- the usual way against hers ---------- */
.at-compare-head {
  display: none;
}
.at-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.at-row {
  display: grid;
  gap: 12px;
  padding: var(--card-pad);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.at-cell-k {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font: var(--type-overline);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.at-cell p {
  font: var(--type-body);
}
.at-cell-old p {
  color: var(--text-muted);
}
.at-cell-me {
  padding: 12px 14px;
  border-radius: var(--radius-l);
  background: var(--brain-bg);
}
.at-cell-me .at-cell-k {
  color: var(--brain);
}
.at-cell-you p {
  font: var(--type-body);
  font-weight: 600;
}
@media (min-width: 900px) {
  .at-compare-head,
  .at-row {
    grid-template-columns: 180px repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .at-compare-head {
    display: grid;
    padding: 0 16px 12px;
    font: var(--type-overline);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-faint);
  }
  .at-compare-me {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brain);
  }
  .at-rows {
    gap: 0;
    border-top: 1px solid var(--border);
  }
  .at-row {
    align-items: start;
    padding: 20px 16px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: none;
  }
  /* The column heads say it once; the cell labels stay for screen readers. */
  .at-cell-k {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .at-cell-me {
    margin: -12px 0;
  }
}

/* ---------- what she will never do ---------- */
.at-never {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}
.at-never li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: var(--card-pad);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.at-never-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--ok-bg);
  color: var(--ok);
}
.at-never h3 {
  font: var(--type-title-s);
}
.at-never p {
  margin-top: 4px;
  font: var(--type-body);
  color: var(--text-muted);
}
.at-never-foot {
  margin-top: var(--section-gap);
  max-width: 70ch;
  font: var(--type-body);
  color: var(--text-muted);
}

/* ---------- her question: Build mine ---------- */
.at-ask-grid {
  display: grid;
  gap: var(--section-gap);
}
.at-ask-card {
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
.at-ask-card form {
  margin-top: 0;
}
@media (min-width: 960px) {
  .at-ask-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
  }
}

/* UNIFORM-PASS (11 Nov 2026): boxes the same size. The owner on the front page: "multiple things that are not
   uniformed. I love everything uniformed, boxes the same size." Loaded last, so it is the one place that says how a
   group of boxes is laid out on the website. Tokens only.

   The rule (held by the design gate, apps/web/e2e/design-system.ts `uniformFindings`):
   1. every box in a group is the same width and the same height, across all rows (grid-auto-rows: 1fr);
   2. a group never ends with a hole: the number of columns comes from the number of boxes. A count that divides by
      three sits three across on a wide screen, an even count two across from a tablet up, four plans four across, and
      any other count is one column of full-width rows. Never auto-fill, which leaves whatever the width leaves;
   3. one card: the same padding, corner, edge and gap for every kind of box. */

.ws-grid,
.ws-grid-2,
.ws-cards,
.ws-cards-3,
.ws-cards-4,
.ws-cards-5,
.ws-plans,
.ws-levels,
.at-never,
.at-rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 640px) {
  :is(.ws-grid, .ws-cards, .ws-plans, .ws-levels, .at-never):has(> :last-child:nth-child(2n)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  :is(.ws-grid, .ws-cards, .ws-plans, .ws-levels, .at-never):has(> :last-child:nth-child(3n)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1040px) {
  .ws-plans:has(> :last-child:nth-child(4)),
  .ws-cards-4:has(> :last-child:nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Five steps fill one row on a wide screen; below that they are a numbered column, the number beside the words. */
@media (min-width: 1040px) {
  .ws-levels:has(> :last-child:nth-child(5)) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1039px) {
  .ws-levels li {
    flex-direction: row;
    gap: 16px;
  }
  .ws-levels .ws-step-n {
    flex: none;
  }
}
/* A group of one is a card at a reading width, not a band across the page. */
:is(.ws-grid, .ws-cards) > :only-child {
  max-width: 560px;
}

/* One card. */
.ws-card,
.ws-linkcard,
.ws-example,
.ws-plan,
.at-never li,
.at-row {
  max-width: none;
  padding: var(--card-pad);
  border: 0;
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.ws-plan-main {
  box-shadow: inset 0 0 0 2px var(--action);
}
.ws-linkcard:hover {
  box-shadow: inset 0 0 0 2px var(--action);
}
.ws-card-human {
  background: var(--ok-bg);
  box-shadow: none;
}
.ws-card h3,
.ws-linkcard strong,
.ws-example h3,
.ws-plan h3,
.at-never h3 {
  font: var(--type-title-s);
}
.ws-card p,
.ws-linkcard > span:not(.ws-tag),
.ws-example p,
.at-never p {
  font: var(--type-body);
  color: var(--text-muted);
}
/* The price in an example sits on the card's floor, so the prices line up along a row of cards. */
.ws-example > strong {
  margin-top: auto;
}
/* The figure and its words are one size (the small-print rule for a card's spans is not for the price), and the note
   under it keeps two lines, so the prices line up along a row whatever the note says. */
.ws-example > strong span {
  font: inherit;
  color: inherit;
}
.ws-example > strong + span {
  min-height: 2lh;
}
.ws-example > .ws-tag,
.ws-linkcard > .ws-tag {
  align-self: flex-start;
}

/* A group that is one column on a wide screen (a count that fills no row): each box is a row, its title on the left
   and its words beside it, so thirteen examples read as a list and not as thirteen stretched cards. */
@media (min-width: 900px) {
  .ws-grid:not(:has(> :last-child:nth-child(2n), > :last-child:nth-child(3n), > :only-child)) > .ws-example {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 32px;
    row-gap: 4px;
    align-items: start;
  }
  .ws-grid:not(:has(> :last-child:nth-child(2n), > :last-child:nth-child(3n), > :only-child)) > .ws-example > :is(.ws-tag, h3, p) {
    grid-column: 1;
    justify-self: start;
  }
  .ws-grid:not(:has(> :last-child:nth-child(2n), > :last-child:nth-child(3n), > :only-child)) > .ws-example > strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
    align-self: end;
  }
  .ws-grid:not(:has(> :last-child:nth-child(2n), > :last-child:nth-child(3n), > :only-child)) > .ws-example > strong ~ span {
    grid-column: 2;
    grid-row: 3;
  }
  :is(.ws-grid, .ws-cards):not(:has(> :last-child:nth-child(2n), > :last-child:nth-child(3n), > :only-child)) > .ws-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 32px;
    align-items: start;
  }
  :is(.ws-grid, .ws-cards):not(:has(> :last-child:nth-child(2n), > :last-child:nth-child(3n), > :only-child)) > .ws-card > h3 {
    margin-bottom: 0;
  }
  :is(.ws-grid, .ws-cards):not(:has(> :last-child:nth-child(2n), > :last-child:nth-child(3n), > :only-child)) > .ws-card > :not(h3) {
    grid-column: 2;
  }
}

/* The usual way against hers: on a wide screen every row of the table is the same height and her cell fills its row,
   so the tinted cells are one size down the column. */
@media (min-width: 900px) {
  .at-rows {
    gap: 0;
  }
  .at-row {
    align-items: stretch;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .at-row > h3,
  .at-cell {
    align-self: center;
  }
  .at-cell-me {
    align-self: stretch;
    display: flex;
    align-items: center;
    margin: -8px 0;
  }
}

/* Lists of short things (what comes loaded, what you never pay for, what is true today, the countries): one list, the
   tick list, in equal columns. Never pills of whatever width the words are. */
.ws-checks {
  display: block;
  columns: 1;
  column-gap: 32px;
}
.ws-checks li {
  break-inside: avoid;
  padding-bottom: 12px;
}
@media (min-width: 640px) {
  .ws-checks {
    columns: 2;
  }
}
/* Three columns only for a count that fills them; otherwise two, which differ by one line at most. */
@media (min-width: 900px) {
  .ws-checks:has(> :last-child:nth-child(3n)) {
    columns: 3;
  }
}

/* What follows a group (the link to the rest, a closing line) keeps one distance from it. */
.ws-section :is(.ws-grid, .ws-cards, .ws-plans, .at-never) + p {
  margin-top: 24px;
}
.ws-section .ws-checks + p {
  margin-top: 12px;
}
.ws-section :is(.ws-grid, .ws-cards, .ws-plans, .at-never, .ws-checks) + p > a.ws-more {
  margin-top: 0;
}
.ws-checks a {
  color: var(--link);
  text-decoration: underline;
}
/* The tick, drawn (the website's lists carry no icon of their own). The line is one block of words beside it, so a
   bold opening and the rest of the sentence run on together. */
.ws-checks li:not(:has(svg)) {
  display: block;
  position: relative;
  padding-left: 26px;
}
.ws-checks li:not(:has(svg))::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0.3em;
  width: 6px;
  height: 11px;
  border: solid var(--ok);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* A plan's line and its "Coming in" tag: the tag sits under the words, never beside them squeezing them to a word a line. */
.ws-plan li {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
/* What stands beside an example (other systems' published prices): under the cards, each under its example's name. */
.ws-besides {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  max-width: 76ch;
}
.ws-besides h3 {
  font: var(--type-title-s);
}
.ws-besides .ws-beside {
  margin-top: 4px;
}

/* ---------- one rhythm for what is not a box ---------- */
/* Two things side by side (a pair of explanations, the terms): equal columns from the count, like the cards. */
.ws-two,
.ws-terms {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 32px;
}
@media (min-width: 640px) {
  .ws-two:has(> :last-child:nth-child(2n)),
  .ws-terms:has(> :last-child:nth-child(2n)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .ws-two:has(> :last-child:nth-child(3n)),
  .ws-terms:has(> :last-child:nth-child(3n)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* Plain paragraphs in a section: a reading width, one gap between them, and one gap after whatever stands above. */
.ws-section .ws-wrap > p {
  max-width: 76ch;
}
.ws-section .ws-wrap > :is(.ws-two, .ws-terms, .ws-calc, .ws-table, .ws-compare, .ws-besides, table) + p {
  margin-top: 24px;
}
/* The calculator's number boxes: the website's input, one width. */
.ws-stepper input {
  flex: none;
  width: 104px;
  min-height: var(--btn-h-compact);
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--text);
  font: var(--type-body);
}

/* Tables that stand one under another (the plans compared, group by group): the same columns in every one. */
.ws-compare table,
.ws-table-left {
  table-layout: fixed;
}
.ws-compare :is(th, td):first-child,
.ws-table-left :is(th, td):first-child {
  width: 46%;
}
@media (max-width: 599px) {
  .ws-compare :is(th, td):first-child,
  .ws-table-left :is(th, td):first-child {
    width: 34%;
  }
}
/* A small heading that follows a table or a list in a section keeps the section's inner gap. */
.ws-section .ws-wrap > :is(table, ul, ol, .ws-grid, .ws-cards, .ws-two, .ws-checks) + h3 {
  margin-top: 24px;
}

/* A tick list inside a narrow thing (a box, an article, one of a pair, a card) is one column. */
:is(.ws-box, .ws-prose, .ws-two, .ws-card, .ws-log) .ws-checks.ws-checks.ws-checks {
  columns: 1;
}
/* A list right under the sentence that introduces it. */
.ws-section .ws-wrap > p + :is(ul, ol) {
  margin-top: 12px;
}

/* One distance between the parts of a section's body (a paragraph, a list, a table, a pair), whatever they are; a small
   heading opens a new part. The heading and its sub-line keep their own (site.css). Not for a section laid out as a
   grid (the hero, her question, the night): its parts sit side by side. */
.ws-section > .ws-wrap:where(:not([class*='-grid'])) > :where(:not(h2, .ws-section-sub)) + :where(:not(.ws-section-sub)) {
  margin-top: 16px;
}
.ws-section > .ws-wrap:where(:not([class*='-grid'])) > :where(:not(h2, .ws-section-sub)) + h3 {
  margin-top: 24px;
}
.ws-section > .ws-wrap > h3 + :where(*) {
  margin-top: 8px;
}
.ws-table caption {
  text-align: left;
  font: var(--type-label);
  padding: 8px 0;
}

/* Whatever opens a section's body sits one distance under the heading or its sub-line, even a list or a grid that
   resets its own margins. */
.ws-section > .ws-wrap > .ws-section-sub + *,
.ws-section > .ws-wrap > h2 + :not(.ws-section-sub) {
  margin-top: var(--section-gap);
}

/* Chips in a group (the example sentences under her question): one size, on an even grid, two across where the box
   has room and one where it has not. Never whatever width the words are. */
.ws-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(280px, calc(50% - 4px))), 1fr));
  grid-auto-rows: var(--chip-h);
  gap: 8px;
}
.ws-chips button {
  justify-content: flex-start;
  width: 100%;
  height: var(--chip-h);
  text-align: left;
  line-height: 1.15;
}
.ws-chips button {
  border-radius: var(--btn-radius);
}

/* The top of every page: the buttons one distance under what is above them, the small print one distance under the
   buttons, on every page the same. */
.ws-hero .ws-wrap > .ws-actions {
  margin-top: 24px;
}
.ws-hero .ws-wrap > .ws-actions ~ .ws-note {
  margin-top: 16px;
}
.ws-hero .ws-wrap > .ws-note + .ws-note {
  margin-top: 8px;
}
/* The first thing in a section starts at the section's own edge; the last table of a set adds nothing under itself. */
.ws-section > .ws-wrap > :first-child,
.ws-section > .ws-wrap > :first-child > :first-child {
  margin-top: 0;
}
.ws-compare table:last-child {
  margin-bottom: 0;
}
.ws-section > .ws-wrap > .ws-form:not(h2 ~ *, .ws-section-sub ~ *) {
  margin-top: 0;
}

/* A tick and its words sit on one line, the box first, in every form (the partner forms had each box above its words,
   centred). */
.ws-form fieldset label,
.ws-form label.ws-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font: var(--type-body);
}
.ws-form input[type='checkbox'],
.ws-form input[type='radio'] {
  flex: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
}

/* Prose written flat (headings and paragraphs side by side, not in sections of their own): a heading sits close to
   what it heads and apart from what came before, as it does in the guides. */
.ws-prose:has(> h2) {
  display: block;
}
.ws-prose > h2 {
  margin: 28px 0 10px;
}
.ws-prose > h2:first-child {
  margin-top: 0;
}
