/* 2 Visions free tools: the shared stylesheet, "A1, paper and blobs" (Yates's pick, 2026-12-03).
   Contract and class catalogue: free-tools/BUILD-NOTES.md ("A1 restyle 2026-12-03").
   Palette: context/brand/styleguide.md only. Founders Grotesk at heading sizes only (29px and up); National 2 for
   everything else; Epicene Display italic for one or two emphasis words in an h1 (<em>). Tool builders never edit
   this file: tool-specific rules go in assets/<slug>.css. No card or quote carries a coloured stripe down its left
   edge. Rounded surfaces keep at least 16px from the viewport edge at every width. Primary Green #00B98B is never a
   button fill and never text on a light ground. The site header and footer are styled by chrome.css (.tvc-*). */

/* ---------- Fonts (licensed Klim faces served by 2visions.com; font-src allows that origin) ---------- */
@font-face { font-family: 'National 2'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/tools/assets/fonts/national-2-regular.woff2') format('woff2'); }
@font-face { font-family: 'National 2'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/tools/assets/fonts/national-2-regular-italic.woff2') format('woff2'); }
@font-face { font-family: 'National 2'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/tools/assets/fonts/national-2-medium.woff2') format('woff2'); }
@font-face { font-family: 'National 2'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/tools/assets/fonts/national-2-bold.woff2') format('woff2'); }
@font-face { font-family: 'Founders Grotesk'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/tools/assets/fonts/founders-grotesk-medium.woff2') format('woff2'); }
@font-face { font-family: 'Founders Grotesk'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/tools/assets/fonts/founders-grotesk-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Epicene Display'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/tools/assets/fonts/epicene-display-regular-italic.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --primary-green: #00B98B;   /* charts, dot grids, glows only: never a button fill, never text on a light ground */
  --button-green: #008363;    /* the site's button fill; white label 4.7:1 */
  --deep-teal: #007167;
  --soft-mint: #C7EBE1;
  --ocean-blue: #005C82;
  --deep-plum: #38314A;
  --cool-gray: #6B6B7B;
  --lavender-gray: #BCB6CE;
  --forest-dark: #14382E;
  --sky-blue: #80D9FF;
  --amber: #EFAB00;
  --paper: #F8F8F5;
  --white: #FFFFFF;
  --black: #000000;

  --font-display: 'Founders Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'National 2', 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Epicene Display', Georgia, serif;

  --radius: 24px;          /* cards */
  --radius-tile: 16px;     /* mint tiles and small surfaces inside a card */
  --radius-small: 14px;    /* fields, alerts */
  --radius-large: 32px;    /* the closing invitation */
  --gutter: 32px;
  --card-pad: 40px;
  --card-gap: 24px;
  --content: 920px;
  --shadow: 0 18px 48px rgba(56, 49, 74, 0.12);
  --shadow-small: 0 6px 20px rgba(56, 49, 74, 0.08);
  --ease: 160ms ease;
  /* Focus: a 2px Deep Teal ring, 3:1 or better on paper, white and mint. */
  --focus-ring: 2px solid #007167;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url('/tools/assets/img/grain-paper-512.png');
  background-repeat: repeat;
  background-size: 256px 256px;
  color: var(--deep-plum);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 400;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--deep-teal); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--forest-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }

h1, h2 { font-family: var(--font-display); color: var(--deep-plum); margin: 0 0 0.4em; text-wrap: balance; }
h1 { font-weight: 600; font-size: clamp(2.75rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.01em; }
h1 em, h2 em { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: 0; }
h2 { font-weight: 500; font-size: clamp(1.8125rem, 1.45rem + 1.1vw, 2.25rem); line-height: 1.1; letter-spacing: -0.005em; }
h3, h4, h5, h6 { font-family: var(--font-text); font-weight: 500; color: var(--deep-plum); margin: 0 0 0.5em; line-height: 1.3; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: 0.35em; }

.visually-hidden, .chart-table {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.print-only { display: none; }
/* A hyphenated word never splits at its hyphen (shell.js keepCompounds wraps each one, 2026-12-04). */
.nobr { white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 300;
  background: var(--white); color: var(--deep-teal); font-weight: 500;
  padding: 10px 16px; border-radius: var(--radius-small); box-shadow: var(--shadow-small);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(1224px + 2 * var(--gutter)); }
.wrap--narrow { max-width: calc(720px + 2 * var(--gutter)); }
/* main holds the blobs; clip keeps them from widening the page without making main a scroll container. */
main { display: block; position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding-bottom: 80px; }
.section { padding-block: 56px; }
.section--tight { padding-block: 32px; }
.section--mint { background: var(--soft-mint); }
.stack > * + * { margin-top: var(--card-gap); }
.muted { color: var(--cool-gray); }
.small { font-size: 0.9375rem; }

/* ---------- Soft blobs on the paper (decoration; aria-hidden; never in print) ----------
   Markup, first child of <main>:
   <div class="page-blobs" aria-hidden="true"><span class="blob blob--1"></span> ... <span class="blob blob--6"></span></div>
   Left and right edges alternate down the page, drifting green, blue, warm, green, about 600px apart. The six spans
   sit at fixed offsets (40 to 2840px); a short page clips the ones below its end. Past 3400px, .page-blobs::after
   repeats the same six (same colours, sizes and sides) every 3600px, so a long form or a long results page keeps
   its blobs all the way down instead of leaving a blank stretch. */
.page-blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.page-blobs::after {
  content: ""; position: absolute; left: 0; right: 0; top: 3400px; bottom: 0;
  /* Each layer is one blob: a circle centred 120px in from its edge, fading out by its radius (the span blobs'
     70% stop plus their blur, flattened). Order inside a 3600px tile: left green, right blue, left warm, right
     green, left blue, right warm. */
  background-image:
    radial-gradient(circle 300px at 120px 280px, rgba(0, 185, 139, 0.30), rgba(0, 185, 139, 0)),
    radial-gradient(circle 320px at calc(100% - 120px) 880px, rgba(128, 217, 255, 0.38), rgba(128, 217, 255, 0)),
    radial-gradient(circle 300px at 120px 1480px, rgba(239, 171, 0, 0.22), rgba(239, 171, 0, 0)),
    radial-gradient(circle 300px at calc(100% - 120px) 2080px, rgba(0, 185, 139, 0.28), rgba(0, 185, 139, 0)),
    radial-gradient(circle 320px at 120px 2680px, rgba(128, 217, 255, 0.38), rgba(128, 217, 255, 0)),
    radial-gradient(circle 300px at calc(100% - 120px) 3280px, rgba(239, 171, 0, 0.22), rgba(239, 171, 0, 0));
  background-size: 100% 3600px;
  background-repeat: repeat-y;
}
.blob {
  position: absolute; display: block; width: 560px; height: 560px; border-radius: 50%;
  filter: blur(60px); pointer-events: none;
}
.blob--1 { left: -160px; top: 40px; background: radial-gradient(circle, rgba(0, 185, 139, 0.34) 0%, rgba(0, 185, 139, 0) 70%); }
.blob--2 { right: -180px; top: 420px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(128, 217, 255, 0.42) 0%, rgba(128, 217, 255, 0) 70%); }
.blob--3 { left: -200px; top: 1120px; background: radial-gradient(circle, rgba(239, 171, 0, 0.24) 0%, rgba(239, 171, 0, 0) 70%); }
.blob--4 { right: -160px; top: 1640px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(0, 185, 139, 0.30) 0%, rgba(0, 185, 139, 0) 70%); }
.blob--5 { left: -180px; top: 2240px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(128, 217, 255, 0.42) 0%, rgba(128, 217, 255, 0) 70%); }
.blob--6 { right: -200px; top: 2840px; background: radial-gradient(circle, rgba(239, 171, 0, 0.24) 0%, rgba(239, 171, 0, 0) 70%); }

/* ---------- Page hero: centred on the paper. The fixed header's height is reserved by .tvc-header-space. ---------- */
.page-hero { padding-block: 40px 56px; text-align: center; }
.page-hero > .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.page-hero > .wrap > * { margin: 0; }
.page-hero h1 { max-width: 860px; }
.page-hero--wide h1 { max-width: 960px; }
.promise { font-size: 1.25rem; line-height: 1.45; max-width: 640px; margin: 0 0 14px; }
.page-hero .promise { margin: 0; }
/* The time line sits on the paper where a blob can tint it (Cool Gray falls to about 4:1 there), so it takes Deep
   Plum. Cool Gray stays for notes inside white cards, where it reads 5.2:1. */
.time-note { color: var(--deep-plum); font-size: 0.9375rem; margin: 0; }

/* Eyebrow: sentence case, a 3x3 Primary Green dot grid to the left of the words (site standard 2026-10-07). */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-text); font-weight: 500; font-size: 0.9375rem; line-height: 1.3; letter-spacing: 0.01em;
  color: var(--deep-plum); text-transform: none;
}
.eyebrow::before {
  content: ""; flex: none; width: 14px; height: 14px;
  background-image: radial-gradient(circle, var(--primary-green) 1.6px, transparent 1.9px);
  background-size: 5px 5px; background-position: -0.5px -0.5px;
}
.section--dark .eyebrow { color: var(--white); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--card-pad);
  min-width: 0;
}
.card--mint { background: var(--soft-mint); box-shadow: none; border-radius: var(--radius-tile); }
.card--flat { box-shadow: none; }
.card > :last-child { margin-bottom: 0; }
.card + .card { margin-top: var(--card-gap); }
/* Card heading: Founders Grotesk 500 at 36px, with an optional 56px blob-tile icon to its left. */
.card-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8125rem, 1.45rem + 1.1vw, 2.25rem); line-height: 1.1; margin: 0 0 12px; }
.card-head { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; min-width: 0; }
.card-head > .card-title, .card-head > h2 { margin: 0; }
.card-head__icon { flex: none; width: 56px; height: 56px; }
/* Small card titles inside results (under 29px) are National 2, whichever class a tool gave them. A title inside
   .card-head keeps the large Founders size (the A1 card heading pattern). */
@media screen {
  .results .card > h3, .results .card > .card-title {
    font-family: var(--font-text); font-weight: 500; font-size: 1.25rem; line-height: 1.3; letter-spacing: 0;
  }
}
/* Soft Mint tiles inside a card. */
.tile { background: var(--soft-mint); border-radius: var(--radius-tile); padding: 20px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tile__title { display: block; font-weight: 500; font-size: 1.25rem; line-height: 1.25; }
.tile p { font-size: 1rem; margin: 0; }
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tile-grid > li + li { margin-top: 0; }
/* An odd last tile spans the row, so no tile sits alone beside an empty cell. */
.tile-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Cool Gray drops below 4.5:1 on mint: notes inside mint surfaces use Deep Plum. */
.tile .muted, .tile .field-help, .card--mint .muted, .invite .muted { color: var(--deep-plum); }

/* ---------- Form ---------- */
.inputs-card { scroll-margin-top: 140px; }
.inputs-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.inputs-card__head .card-title, .inputs-card__head .card-head { margin: 0; }
.form-section + .form-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(188, 182, 206, 0.6); }
.form-section__title { font-weight: 500; font-size: 1.125rem; margin: 0 0 16px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid__head { font-weight: 700; font-size: 0.9375rem; color: var(--cool-gray); margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label, .field > label, fieldset.field > legend { font-weight: 500; font-size: 0.9375rem; color: var(--deep-plum); line-height: 1.35; }
.field-help { font-size: 0.875rem; line-height: 1.45; color: var(--cool-gray); margin: 0; }
.field-optional { font-weight: 400; color: var(--cool-gray); font-size: 0.875rem; }
.field-derived { font-size: 0.875rem; color: var(--cool-gray); margin: 0; font-variant-numeric: tabular-nums; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 6px; }

.input, input[type="text"], input[type="email"], input[type="number"], input[type="month"], input[type="date"], select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--deep-plum);
  background: var(--white);
  border: 1px solid var(--lavender-gray);
  border-radius: var(--radius-small);
  font-variant-numeric: tabular-nums;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
textarea { min-height: 110px; resize: vertical; }
select {
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--deep-plum) 50%), linear-gradient(135deg, var(--deep-plum) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.input:hover, input:hover, select:hover, textarea:hover { border-color: var(--cool-gray); }
.input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--deep-teal); box-shadow: 0 0 0 1px var(--deep-teal); }
.input:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
::placeholder { color: #8E8E9C; opacity: 1; }

.choice-group { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 10px 20px; border: 1px solid var(--lavender-gray); border-radius: 100px;
  font-size: 1rem; cursor: pointer; background: var(--white);
  transition: border-color var(--ease), background-color var(--ease);
}
.choice span:hover { border-color: var(--cool-gray); }
.choice span::before {
  content: ""; width: 14px; height: 14px; margin-right: 10px; flex: none;
  border: 1.5px solid var(--cool-gray); border-radius: 50%; background: var(--white);
}
.choice input[type="checkbox"] + span::before { border-radius: 4px; }
.choice input:checked + span { border-color: var(--deep-teal); background: var(--soft-mint); }
.choice input:checked + span::before { border-color: var(--deep-teal); background: var(--deep-teal); box-shadow: inset 0 0 0 2.5px var(--white); }
.choice input:focus-visible + span { outline: var(--focus-ring); outline-offset: 2px; }
.choice-list { display: grid; gap: 10px; }
.choice-list .choice span { border-radius: var(--radius-small); width: 100%; }

.has-error .input, .has-error input, .has-error select, .has-error textarea { border-color: var(--amber); border-width: 2px; }
.has-error .choice span { border-color: var(--amber); }
.field-error {
  display: flex; gap: 8px; align-items: baseline;
  margin: 2px 0 0; font-size: 0.875rem; font-weight: 500; color: var(--deep-plum);
}
.field-error::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); transform: translateY(-1px); }

/* "Add more detail": the collapsed group of optional fields */
details.more-detail { margin-top: 28px; border-top: 1px solid rgba(188, 182, 206, 0.6); padding-top: 20px; }
details.more-detail > summary { font-weight: 500; font-size: 1rem; color: var(--deep-teal); }
details.more-detail[open] > summary { margin-bottom: 20px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.form-alert {
  flex-basis: 100%; margin: 0; padding: 12px 16px; border-radius: var(--radius-small);
  border: 2px solid var(--amber); background: var(--white); font-weight: 500;
}

/* ---------- Buttons: the site's pill. Hover and focus "hollow out" over 160ms. ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; min-height: 56px; padding: 16px 24px;
  font-family: var(--font-text); font-weight: 500; font-size: 1rem; line-height: 1.5; white-space: nowrap;
  color: var(--white); background: var(--button-green);
  border: 0; border-radius: 100px; box-shadow: inset 0 0 0 1.5px var(--button-green);
  cursor: pointer; text-align: center; text-decoration: none;
  transition: background-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--white); color: var(--deep-teal); box-shadow: inset 0 0 0 1.5px var(--deep-teal); }
.btn:focus-visible { outline: var(--focus-ring); outline-offset: 3px; border-radius: 100px; }
.btn--small { height: 48px; min-height: 48px; padding: 12px 22px; }
/* On dark grounds: white pill, Forest Dark label; hover hollows to a white label and edge. */
.btn--on-dark { background: var(--white); color: var(--forest-dark); box-shadow: inset 0 0 0 1.5px var(--white); }
.btn--on-dark:hover, .btn--on-dark:focus-visible { background: rgba(255, 255, 255, 0); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.btn--on-dark:focus-visible { outline-color: var(--white); }
/* Secondary actions are plain Deep Teal text links, never a second pill. */
.btn--secondary, .link-action {
  display: inline-flex; align-items: center; gap: 6px;
  height: auto; min-height: 44px; padding: 6px 0;
  font: inherit; font-family: var(--font-text); font-weight: 500; font-size: 1rem; line-height: 1.4; white-space: nowrap;
  color: var(--deep-teal); background: none; border: 0; box-shadow: none; border-radius: 0;
  cursor: pointer; text-align: left; text-decoration: none;
  transition: color var(--ease);
}
.btn--secondary:hover, .btn--secondary:focus-visible, .link-action:hover { background: none; box-shadow: none; color: var(--forest-dark); }
.btn--secondary:focus-visible, .link-action:focus-visible { outline: var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
.handoff .link-action, .link-action.arrow { white-space: normal; }
.arrow::after { content: "\2192"; display: inline-block; margin-left: 6px; transition: transform var(--ease); }
a:hover .arrow::after, .arrow:hover::after { transform: translateX(3px); }
/* A text link with an arrow that wraps keeps the arrow beside its last word (a flex row parked it at the far right,
   2026-12-04): the link flows as text and the arrow is joined to the last word by a no-break space. */
.link-action.arrow { display: inline-block; }
.link-action.arrow::after { display: inline; content: "\00a0\2192"; margin-left: 0; position: relative; left: 0; transition: left var(--ease); }
.link-action.arrow:hover::after { transform: none; left: 3px; }

/* ---------- Results ---------- */
.results { scroll-margin-top: 140px; padding-top: 48px; }
.results:focus { outline: none; }
.results__heading { margin-bottom: 24px; }
.results__heading:focus { outline: none; }
.results[data-stale] .results-body { opacity: 0.45; }
.stale-note {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px; padding: 10px 18px; border-radius: 100px;
  border: 2px solid var(--amber); background: var(--white); font-weight: 500; font-size: 1rem;
}
.stale-note::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex: none; }
.results-body > * + * { margin-top: var(--card-gap); }
.result-block > h3 { margin-bottom: 14px; }

/* The verdict: a white card with a small Deep Teal label and a large Founders headline. */
.verdict {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--card-pad);
}
.verdict--caution { box-shadow: var(--shadow), inset 0 0 0 2px var(--amber); }
.verdict--neutral { background: var(--white); }
.verdict__label { font-size: 0.9375rem; font-weight: 700; color: var(--deep-teal); margin: 0 0 12px; }
.verdict--caution .verdict__label { display: inline-flex; align-items: center; gap: 8px; }
.verdict--caution .verdict__label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex: none; }
.verdict__headline {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8125rem, 1.2rem + 1.9vw, 2.875rem);
  line-height: 1.08; letter-spacing: -0.005em; text-wrap: balance; margin: 0 0 16px; color: var(--deep-plum);
}
.verdict__sub { font-size: 1.125rem; margin: 0; }
.verdict__sub + .verdict__sub { margin-top: 8px; }

.key-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.key-numbers li + li { margin-top: 0; }
.stat { background: var(--white); border-radius: var(--radius-tile); box-shadow: var(--shadow-small); padding: 20px 22px; min-width: 0; }
.card .stat { background: var(--soft-mint); box-shadow: none; }
.stat__value { display: block; white-space: nowrap; overflow-wrap: normal; font-weight: 700; font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.625rem); line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--deep-plum); }
.stat__value--up { color: var(--deep-teal); }
.stat__value--down { color: var(--deep-plum); }
.stat__label { display: block; margin-top: 6px; font-size: 0.9375rem; color: var(--cool-gray); line-height: 1.4; }
.card .stat__label { color: var(--deep-plum); }

.flags { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
/* A flags list right under the verdict (or any block) keeps the normal results gap (it sat flush, 2026-12-04). */
@media screen { .results-body > * + .flags { margin-top: var(--card-gap); } }
.flags li + li { margin-top: 0; }
.flag { padding: 18px 20px; border-radius: var(--radius-tile); background: var(--white); box-shadow: var(--shadow-small); }
.card .flag { background: var(--soft-mint); box-shadow: none; }
.flag--warn, .card .flag--warn { background: var(--white); box-shadow: inset 0 0 0 2px var(--amber); }
.flag__title { display: block; font-weight: 500; margin-bottom: 4px; }

.next-steps > * + * { margin-top: 16px; }
.next-step { padding: 24px 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.card .next-step { background: var(--soft-mint); box-shadow: none; border-radius: var(--radius-tile); padding: 20px; }
.next-step h4 { font-size: 1.25rem; line-height: 1.25; }
.next-step ol, .next-step ul { margin-bottom: 0.5em; }
.handoff { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.card .handoff:not(:empty) { margin-top: 20px; }
/* ---------- Tables ---------- */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.data-table caption { text-align: left; font-weight: 500; padding-bottom: 10px; caption-side: top; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(188, 182, 206, 0.6); }
/* Head cells in Deep Plum: Cool Gray falls to about 4:1 on tinted grounds behind a card. */
.data-table thead th { font-weight: 500; color: var(--deep-plum); font-size: 0.875rem; border-bottom-color: var(--lavender-gray); white-space: nowrap; }
.data-table tbody th { font-weight: 500; }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table tfoot td, .data-table tfoot th, .data-table .total-row > * { font-weight: 700; border-top: 2px solid var(--lavender-gray); }
.data-table th:first-child, .data-table td:first-child { padding-left: 0; }
.data-table th:last-child, .data-table td:last-child { padding-right: 0; }

/* ---------- Charts (inline SVG from shell.js; colours by class). Negative Amber, positive Primary Green,
   totals Ocean Blue, axis and labels Deep Plum, figures tabular. ---------- */
.chart { margin: 0; min-width: 0; }
.chart-title { font-weight: 500; font-size: 1.25rem; line-height: 1.3; margin-bottom: 16px; }
.chart-canvas { width: 100%; min-width: 0; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-text); font-variant-numeric: tabular-nums; }
.bar-up { fill: var(--primary-green); }
.bar-down { fill: var(--amber); }
.bar-total, .bar-neutral { fill: var(--ocean-blue); }
.bar-highlight { fill: var(--sky-blue); }
.chart-row-label { font-size: 14px; font-weight: 500; fill: var(--deep-plum); }
.chart-value { font-size: 14px; font-weight: 700; fill: var(--deep-plum); font-variant-numeric: tabular-nums; }
.chart-tick { font-size: 12px; fill: var(--deep-plum); font-variant-numeric: tabular-nums; }
.chart-col-label { font-size: 12px; font-weight: 500; fill: var(--deep-plum); }
.chart-grid { stroke: var(--lavender-gray); stroke-width: 1; opacity: 0.6; }
.chart-zero { stroke: var(--deep-plum); stroke-width: 2; }
.chart-connector { stroke: var(--lavender-gray); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-marker { stroke: var(--deep-plum); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart-marker-label { font-size: 12px; font-weight: 500; fill: var(--deep-plum); }
/* A white halo keeps labels readable where a gridline or goal line crosses them. */
.chart-row-label, .chart-value, .chart-marker-label { paint-order: stroke; stroke: var(--white); stroke-width: 3px; stroke-linejoin: round; }.heat-cell { stroke: none; }
.heat-0 { fill: #F3F1F7; }
.heat-1 { fill: var(--soft-mint); }
.heat-2 { fill: var(--primary-green); }
.heat-3 { fill: var(--deep-teal); }
.heat-4 { fill: var(--forest-dark); }
.heat-empty { fill: var(--white); stroke: var(--lavender-gray); stroke-dasharray: 3 3; }
.heat-text { font-size: 12px; font-weight: 500; fill: var(--deep-plum); font-variant-numeric: tabular-nums; }
.heat-text-3, .heat-text-4 { fill: var(--white); }
.chart-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.875rem; color: var(--deep-plum); }
.chart-legend li + li { margin-top: 0; }
.chart-legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.swatch.bar-up { background: var(--primary-green); }
.swatch.bar-down { background: var(--amber); }
.swatch.bar-total, .swatch.bar-neutral { background: var(--ocean-blue); }
.swatch.bar-highlight { background: var(--sky-blue); }
.swatch.heat-0 { background: #F3F1F7; }
.swatch.heat-1 { background: var(--soft-mint); }
.swatch.heat-2 { background: var(--primary-green); }
.swatch.heat-3 { background: var(--deep-teal); }
.swatch.heat-4 { background: var(--forest-dark); }

/* ---------- Collapsed sections ("How this works", "Add more detail") ---------- */
details.disclosure { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 var(--card-pad); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details.disclosure > summary, details.more-detail > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px;
}
details.disclosure > summary { padding-block: 28px; color: var(--deep-plum); }
details.disclosure > summary h2 { margin: 0; }
details.disclosure > summary::after, details.more-detail > summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--deep-teal); border-bottom: 2px solid var(--deep-teal);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s ease;
}
details[open].disclosure > summary::after, details[open].more-detail > summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.disclosure__body { padding-bottom: var(--card-pad); max-width: 48rem; }
.disclosure__body h3 { margin-top: 24px; }
.formula { font-variant-numeric: tabular-nums; background: var(--soft-mint); border-radius: var(--radius-tile); padding: 14px 18px; overflow-x: auto; }
.rule-of-thumb { font-weight: 500; }

/* ---------- Limits ---------- */
.limits > * { max-width: 48rem; }
.limits p { color: var(--deep-plum); }

/* ---------- Share, print and start-over: a row of Deep Teal text links ---------- */
.share-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  padding: 28px var(--card-pad); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow);
}
.share-bar__actions { display: flex; flex-wrap: wrap; gap: 4px 28px; }
/* Any button a tool put in this row reads as a text link, whatever its classes. */
.share-bar__actions .btn, .share-bar__actions .link-action {
  height: auto; min-height: 44px; padding: 6px 0;
  background: none; box-shadow: none; border-radius: 0; color: var(--deep-teal); font-size: 1rem; font-weight: 500;
}
.share-bar__actions .btn:hover, .share-bar__actions .btn:focus-visible { background: none; box-shadow: none; color: var(--forest-dark); }
.share-bar__actions .btn:focus-visible { outline-offset: 2px; border-radius: 6px; }
.share-note { flex-basis: 100%; margin: 0; font-size: 0.9375rem; color: var(--cool-gray); }
.share-status { flex-basis: 100%; margin: 0; font-weight: 500; min-height: 1.5em; }
.share-status:empty { display: none; }
.hash-error { margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius-small); border: 2px solid var(--amber); background: var(--white); font-weight: 500; }

/* ---------- Closing invitation ----------
   A Soft Mint card with a teal and green glow, the faded grid at the bottom and a light grain, so it reads as part
   of the tool's results and not as a second dark band on top of the footer's own "Let's talk" band.
   Markup: <div class="invite"><div class="invite__body"><p class="eyebrow">...</p><h2>...</h2><p>...</p></div>
   <a class="btn" href="https://2visions.com/contact/">...</a></div> */
.invite {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: var(--soft-mint);
  color: var(--deep-plum);
  border-radius: var(--radius-large);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
  box-shadow: var(--shadow);
}
/* Glow (teal top right, green lower right), then the grid, then the grain: all behind the copy. */
.invite::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 92% 0%, rgba(0, 113, 103, 0.20) 0%, rgba(0, 113, 103, 0) 42%),
    radial-gradient(circle at 70% 115%, rgba(0, 185, 139, 0.32) 0%, rgba(0, 185, 139, 0) 45%),
    radial-gradient(circle at 0% 100%, rgba(128, 217, 255, 0.45) 0%, rgba(128, 217, 255, 0) 40%);
}
.invite::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url('/tools/assets/img/grain-brand-70.png'), url('/tools/assets/img/grid-fade-overlay-2x.webp');
  background-repeat: repeat, no-repeat;
  background-size: 256px 256px, cover;
  background-position: 0 0, bottom center;
  opacity: 0.16;
}
.invite__body { min-width: 0; }
.invite .eyebrow { margin-bottom: 14px; }
.invite h2 { color: var(--deep-plum); margin-bottom: 14px; font-weight: 600; font-size: clamp(1.8125rem, 1.3rem + 1.5vw, 2.75rem); line-height: 1.08; }
.invite p { color: var(--deep-plum); font-size: 1.125rem; max-width: 36rem; }
.invite a:not(.btn) { color: var(--deep-teal); }
/* Older markup used .btn--on-dark here; on mint it takes the primary pill. */
.invite .btn--on-dark { background: var(--button-green); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--button-green); }
.invite .btn--on-dark:hover, .invite .btn--on-dark:focus-visible { background: var(--white); color: var(--deep-teal); box-shadow: inset 0 0 0 1.5px var(--deep-teal); }
.invite .btn--on-dark:focus-visible { outline-color: var(--deep-teal); }

/* ---------- Related reading ---------- */
.related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-list li + li { margin-top: 0; }
.related-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px; height: 100%;
  padding: 24px; border-radius: var(--radius-tile); background: var(--white); color: var(--deep-plum);
}
.related-card:hover { color: var(--deep-plum); }
.related-card:focus-visible { border-radius: var(--radius-tile); }
.related-card__title { font-weight: 500; font-size: 1.125rem; line-height: 1.35; }
.related-card__go { color: var(--deep-teal); font-weight: 500; font-size: 1rem; }

/* ---------- Tools directory (/tools/): the mosaic (Yates, 2026-12-04: layout B, grouped by stage, invitation) ----------
   Markup: .wrap.wrap--tools.tool-directory > section.tool-group (h2.tool-group__title + ul.tool-mosaic) ... then .invite.
   Each li.tool-mosaic__item--{lead|side|span-5|span-6|span-7|wide|feature} holds article.tool-card: icon, .tool-card__body
   (h3 title, line), a .tool-sample (sample result or illustration) on the lead and the three feature tiles, then .tool-card__foot (time,
   a.tool-card__action). Since 2026-12-04 (sample panels) groups 2 to 4 each lead with a feature tile (12 wide, text left,
   sample right; stacked below 1000px) and the group's other tile that sat beside it is a wide tile. The action link stretches over the
   whole card (its ::after), so the card is one big target; each link has its own name (aria-label, or the lead's
   visually hidden tool name). Tile widths: one column on phones (lead first), two at tablet (lead and wide span both),
   twelve from 1000px: lead 6 wide and two rows tall beside two "side" tiles of 6; pairs run 7 + 5, 5 + 7 or 6 + 6; a
   wide tile spans 12. Every row fills exactly. A long title ("Leadership Alignment Survey", "Growth Team Coverage Map")
   needs a 6-wide tile to stay on one line at 1440 (2026-12-04). */
.wrap--tools { max-width: calc(1104px + 2 * var(--gutter)); }
.tool-directory { display: flex; flex-direction: column; gap: 64px; }
.tool-group__title { margin: 0 0 24px; }
.tool-mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--card-gap); }
.tool-mosaic > li + li { margin-top: 0; }
.tool-mosaic__item { display: flex; min-width: 0; }
.tool-card {
  position: relative; flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 16px;
  padding: var(--card-pad); border-radius: var(--radius); background: var(--white); color: var(--deep-plum);
}
.tool-card:has(.tool-card__action:focus-visible) { outline: var(--focus-ring); outline-offset: 3px; }
.tool-card .tool-card__action:focus-visible { outline: none; }
.tool-card__action::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tool-card__icon { flex: none; width: 72px; height: 72px; }
.tool-card__eyebrow { margin: 0; }
.tool-card__body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tool-card__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8125rem, 1.5rem + 0.6vw, 2.125rem); line-height: 1.1; margin: 0; letter-spacing: -0.005em; text-wrap: balance; }
.tool-card__line { margin: 0; }
.tool-card__foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.tool-card__time { margin: 0; color: var(--cool-gray); font-size: 0.9375rem; }
.tool-card__action--arrow { display: inline-flex; flex: none; border-radius: 50%; }
.tool-card__arrow { display: block; width: 40px; height: 40px; }
/* The lead tile: larger icon and title, a sample result, the pill. */
.tool-card--lead { gap: 20px; }
.tool-card--lead .tool-card__icon { width: 88px; height: 88px; }
.tool-card--lead .tool-card__title { font-size: clamp(2.25rem, 1.6rem + 1.4vw, 2.875rem); line-height: 1.04; }
.tool-card--lead .tool-card__line { font-size: 1.1875rem; line-height: 1.45; }
/* Sample panels (Yates, 2026-12-04: "more significant sample visuals" on a few cards). Four Soft Mint panels, one per
   group. Two hold a sample result: the lead's (Growth Stall Breakdown) and the Growth Plan Tracker's. The Market
   Saturation Test and Growth Team Coverage Map panels hold an illustration instead (.tool-sample--art, below; Yates,
   later the same day). Each sample result opens with the same "Sample result" tag and a one-sentence caption, then a fixed picture of that tool's real
   "Use example numbers" result (figures and labels from the tool; BUILD-NOTES "Directory sample panels 2026-12-04").
   Every bar, zone and cell carries a text label or value; a tint that would vanish on mint gets a faint outline. */
.tool-sample { background: var(--soft-mint); border-radius: var(--radius-tile); padding: 24px; display: flex; flex-direction: column; gap: 14px; font-variant-numeric: tabular-nums; }
.tool-sample__tag { margin: 0; align-self: flex-start; padding: 2px 12px; border-radius: 999px; background: var(--white); color: var(--deep-teal); font-size: 0.8125rem; font-weight: 700; line-height: 1.6; }
.tool-sample__cap { margin: 0; font-weight: 500; font-size: 1.0625rem; line-height: 1.4; text-wrap: pretty; }
.tool-sample__sub { margin: 6px 0 -2px; font-size: 0.875rem; font-weight: 500; line-height: 1.3; }
.tool-sample__track { position: relative; height: 20px; }
.tool-sample__bar { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.tool-sample__bar--up { background: var(--primary-green); }
.tool-sample__bar--down { background: var(--amber); }
.tool-sample__val { text-align: right; white-space: nowrap; font-weight: 500; font-size: 0.9375rem; }

/* Growth Stall Breakdown: five signed bars on one scale. Zero sits at 72.9% of the track, which is $2,396,068
   (traffic, the largest fall); the scale runs to +$891,942 (conversion) at 100%. */
.tool-sample__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tool-sample__rows > li { margin: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr) 96px; align-items: center; gap: 12px; font-size: 0.9375rem; }
.tool-sample--stall .tool-sample__track::before { content: ""; position: absolute; left: 72.9%; top: -5px; bottom: -5px; width: 1.5px; background: var(--deep-plum); opacity: 0.55; }
.tool-sample__bar--traffic { left: 0; width: 72.9%; }
.tool-sample__bar--conversion { left: 72.9%; width: 27.1%; }
.tool-sample__bar--order { left: 43.46%; width: 29.44%; }
.tool-sample__bar--first { left: 46.5%; width: 26.4%; }
.tool-sample__bar--returning { left: 24.12%; width: 48.78%; }

/* Growth Plan Tracker: progress toward each target, with the steady-pace tick at 33.3% of the time used. */
.tool-sample__bets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tool-sample__bets > li { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; gap: 6px 14px; }
.tool-sample__bet { font-weight: 500; font-size: 0.9375rem; line-height: 1.3; }
.tool-sample__status { justify-self: end; white-space: nowrap; padding: 1px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--lavender-gray); font-size: 0.8125rem; font-weight: 500; line-height: 1.5; }
.tool-sample__status--behind, .tool-sample__status--off { border: 2px solid var(--amber); padding: 0 9px; }
.tool-sample__bets .tool-sample__track { background: var(--white); border-radius: 4px; }
.tool-sample__bets .tool-sample__bar { border-radius: 4px; }
.tool-sample__bar--repeat { left: 0; width: 33.3%; }
.tool-sample__bar--social { left: 0; width: 16.7%; }
.tool-sample__tick { position: absolute; left: 33.3%; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--deep-plum); }
.tool-sample__key { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 0.875rem; line-height: 1.35; }
.tool-sample__key-tick { flex: none; width: 3px; height: 18px; border-radius: 2px; background: var(--deep-plum); }

/* Illustrations (Yates, 2026-12-04: "just a inspirational illustration" on the Growth Team Coverage Map and the
   Market Saturation Test, his picks Coverage A "A seat for every piece" and Saturation B "A jar nearly full"). Inline
   SVG drawn with presentation attributes only, on the same Soft Mint ground, no tag or caption. The drawing is centred
   and never wider than it was drawn (560 x 340), so it fills the feature tile's panel at desktop and sits centred in the
   wider stacked panel at tablet. */
.tool-sample--art { justify-content: center; align-items: center; padding: 28px 24px; }
.tool-sample__art { display: block; width: 100%; max-width: 560px; height: auto; }

/* At desktop the lead tile is as tall as the two tiles beside it: its sample grows into any spare height (rows stay
   centred), so no empty band opens between the card line and the sample. */
@media (min-width: 1000px) {
  /* The eyebrow sits beside the icon, so the taller sample keeps the lead close to the height of its two neighbours. */
  .tool-card--lead { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; gap: 16px 20px; }
  .tool-card--lead > .tool-card__icon { grid-column: 1; grid-row: 1; }
  .tool-card--lead > .tool-card__eyebrow { grid-column: 2; grid-row: 1; align-self: center; }
  .tool-card--lead > .tool-card__body, .tool-card--lead > .tool-sample, .tool-card--lead > .tool-card__foot { grid-column: 1 / -1; }
  .tool-card--lead .tool-sample { flex: 1 1 auto; justify-content: center; gap: 12px; }
  .tool-card--lead .tool-sample__rows { gap: 10px; }
  .tool-card--lead .tool-card__foot { margin-top: 0; padding-top: 4px; }
}
.tool-directory__invite { margin-top: 8px; }
@media (min-width: 641px) {
  .tool-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-mosaic__item--lead, .tool-mosaic__item--wide, .tool-mosaic__item--feature { grid-column: 1 / -1; }
  .tool-card--wide { flex-direction: row; align-items: center; gap: 28px; }
  .tool-card--wide .tool-card__body { flex: 1 1 auto; }
  .tool-card--wide .tool-card__foot { margin-top: 0; padding-top: 0; flex-direction: column; align-items: flex-end; flex-wrap: nowrap; flex: none; }
}
@media (min-width: 1000px) {
  .tool-mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tool-mosaic__item--span-5 { grid-column: span 5; }
  .tool-mosaic__item--span-6 { grid-column: span 6; }
  .tool-mosaic__item--span-7 { grid-column: span 7; }
  .tool-mosaic__item--wide, .tool-mosaic__item--feature { grid-column: span 12; }
  .tool-mosaic__item--lead { grid-column: 1 / span 6; grid-row: span 2; }
  .tool-mosaic__item--side { grid-column: 7 / span 6; }
}
/* A feature tile (one per group after the first): the card's text on the left, its sample panel on the right. */
@media screen and (min-width: 1000px) {
  .tool-card--feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; gap: 16px 48px; }
  .tool-card--feature > .tool-card__icon { grid-column: 1; grid-row: 1; }
  .tool-card--feature > .tool-card__body { grid-column: 1; grid-row: 2; }
  .tool-card--feature > .tool-card__foot { grid-column: 1; grid-row: 3; align-self: end; }
  .tool-card--feature > .tool-sample { grid-column: 2; grid-row: 1 / -1; }
}

/* ---------- Card hover: lift and frosted glass (Yates, 2026-12-04, options A and B combined) ----------
   Every directory card (.tool-card) and every related-tool card on the tool pages (.related-card) rises 5px, grows a
   touch and turns to frosted glass: white at 50% over a 20px blur, a one-pixel white edge with a brighter top edge,
   a Soft Mint tint at 30% and a deeper soft shadow. The tint is an inset shadow (painted under the card's content, so
   sample panels and illustrations stay solid), which lets it ease with everything else on one 220ms curve. Hover runs
   only where a pointer can hover, so a tap on a phone never leaves a card raised; keyboard focus gets the same state
   plus the Deep Teal ring. Only transform, shadow, background and backdrop-filter change, so no neighbour moves. The
   raised card sits above its neighbours and keeps that z-index until it has settled back. The full-width tiles grow
   less (1.009), so a 1100px card swells about 10px, not 20. Review page and notes:
   tests/out/hover-options-2026-12-04/ (class .hv-o-ab). */
.tool-card, .related-card {
  --lift-ease: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --lift-scale: 1.018;
  position: relative; z-index: 0;
  box-shadow: var(--shadow), 0 4px 12px rgba(56, 49, 74, 0), inset 0 1px 0 rgba(255, 255, 255, 0),
    inset 0 0 0 1px rgba(255, 255, 255, 0), inset 0 0 0 999px rgba(199, 235, 225, 0);
  transition: transform var(--lift-ease), box-shadow var(--lift-ease), background-color var(--lift-ease),
    -webkit-backdrop-filter var(--lift-ease), backdrop-filter var(--lift-ease), z-index 0s linear 220ms;
}
.related-card { box-shadow: var(--shadow-small), 0 4px 12px rgba(56, 49, 74, 0), inset 0 1px 0 rgba(255, 255, 255, 0),
    inset 0 0 0 1px rgba(255, 255, 255, 0), inset 0 0 0 999px rgba(199, 235, 225, 0); }
.tool-mosaic__item--wide > .tool-card, .tool-mosaic__item--feature > .tool-card { --lift-scale: 1.009; }
.tool-card__time { transition: color var(--lift-ease, 220ms); }
.tool-card:has(.tool-card__action:focus-visible), .related-card:focus-visible {
  transform: translateY(-5px) scale(var(--lift-scale));
  background-color: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 30px 60px rgba(56, 49, 74, 0.16), 0 6px 16px rgba(56, 49, 74, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75), inset 0 0 0 999px rgba(199, 235, 225, 0.3);
  z-index: 1; transition-delay: 0s;
}
.tool-card:has(.tool-card__action:focus-visible) .tool-card__time { color: var(--deep-plum); }
@media (hover: hover) {
  .tool-card:hover, .related-card:hover {
    transform: translateY(-5px) scale(var(--lift-scale));
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: 0 30px 60px rgba(56, 49, 74, 0.16), 0 6px 16px rgba(56, 49, 74, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1),
      inset 0 0 0 1px rgba(255, 255, 255, 0.75), inset 0 0 0 999px rgba(199, 235, 225, 0.3);
    z-index: 1; transition-delay: 0s;
  }
  .tool-card:hover .tool-card__time { color: var(--deep-plum); }
}
/* No backdrop blur: the mint tint goes to 0 and a solid card (white at 70% over Soft Mint) does the work, with the
   same lift and shadow. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tool-card:has(.tool-card__action:focus-visible), .related-card:focus-visible {
    background-color: var(--soft-mint); background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7));
    box-shadow: 0 30px 60px rgba(56, 49, 74, 0.16), 0 6px 16px rgba(56, 49, 74, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1),
      inset 0 0 0 1px rgba(255, 255, 255, 0.75), inset 0 0 0 999px rgba(199, 235, 225, 0);
  }
  @media (hover: hover) {
    .tool-card:hover, .related-card:hover {
      background-color: var(--soft-mint); background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7));
      box-shadow: 0 30px 60px rgba(56, 49, 74, 0.16), 0 6px 16px rgba(56, 49, 74, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.75), inset 0 0 0 999px rgba(199, 235, 225, 0);
    }
  }
}
/* Reduced motion keeps the glass, tint and shadow and drops the movement (transitions are already off, below). */
@media (prefers-reduced-motion: reduce) { .tool-card, .related-card { transform: none !important; } }

.print-footer { font-size: 8.5pt; color: var(--cool-gray); }

/* ---------- Responsive: tablet ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 24px; --card-pad: 32px; }
}
@media (max-width: 900px) {
  .field-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-list { grid-template-columns: minmax(0, 1fr); }
  .invite { grid-template-columns: minmax(0, 1fr); align-items: start; padding: 48px 40px; }
}

/* ---------- Responsive: phone. The 16px gutter is the minimum between any rounded surface and the edge. ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; --card-pad: 24px; --card-gap: 20px; }
  body { font-size: 1.0625rem; }
  main { padding-bottom: 56px; }
  .section { padding-block: 40px; }
  .page-hero { padding-block: 24px 40px; }
  .page-hero > .wrap { gap: 16px; }
  .promise { font-size: 1.125rem; }
  .blob { width: 380px; height: 380px; filter: blur(48px); }
  .page-blobs::after {
    background-image:
      radial-gradient(circle 200px at 0px 280px, rgba(0, 185, 139, 0.30), rgba(0, 185, 139, 0)),
      radial-gradient(circle 200px at 100% 880px, rgba(128, 217, 255, 0.38), rgba(128, 217, 255, 0)),
      radial-gradient(circle 200px at 0px 1480px, rgba(239, 171, 0, 0.22), rgba(239, 171, 0, 0)),
      radial-gradient(circle 200px at 100% 2080px, rgba(0, 185, 139, 0.28), rgba(0, 185, 139, 0)),
      radial-gradient(circle 200px at 0px 2680px, rgba(128, 217, 255, 0.38), rgba(128, 217, 255, 0)),
      radial-gradient(circle 200px at 100% 3280px, rgba(239, 171, 0, 0.22), rgba(239, 171, 0, 0));
  }
  .blob--1 { left: -190px; }
  .blob--2 { right: -200px; }
  .blob--3, .blob--5 { left: -200px; }
  .blob--4, .blob--6 { right: -200px; }
  .card-head { gap: 12px; }
  .card-head__icon { width: 48px; height: 48px; }
  .field-grid, .field-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .field-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  /* Fields keep a 16px label size (no zoom on iOS) with tighter sides, so a paired field or a long option fits. */
  .input, input[type="text"], input[type="email"], input[type="number"], input[type="month"], input[type="date"], select, textarea { font-size: 1rem; padding-inline: 12px; }
  select { padding-right: 36px; background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; }
  .tile-grid { grid-template-columns: minmax(0, 1fr); }
  .invite { padding: 36px 24px; border-radius: var(--radius); }
  .share-bar { padding: 20px var(--card-pad); }
  .form-actions .btn { flex: 1 1 100%; }
  .tool-directory { gap: 48px; }
  .tool-group__title { margin-bottom: 20px; }
  .tool-card__icon { width: 56px; height: 56px; }
  .tool-card--lead .tool-card__icon { width: 72px; height: 72px; }
  /* 32px keeps "Growth Stall Breakdown" on one line at 430 (36px left "Breakdown" alone on a second line). */
  .tool-card--lead .tool-card__title { font-size: 2rem; }
  .tool-card--lead .tool-card__foot .btn { width: 100%; }
  .tool-sample { padding: 20px 16px; }
  .tool-sample__cap { font-size: 1rem; }
  /* Phones: each bar's label and value sit on one line above a full-width track. */
  .tool-sample__rows > li, .tool-sample__bets > li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .tool-sample__rows .tool-sample__track, .tool-sample__bets .tool-sample__track { grid-column: 1 / -1; grid-row: 2; }
  .tool-sample__bets .tool-sample__val { grid-column: 1 / -1; text-align: left; font-size: 0.875rem; }
  .tool-sample--art { padding: 16px 8px; }
  .key-numbers { grid-template-columns: minmax(0, 1fr); }
  .data-table { font-size: 0.875rem; }
  /* Long column heads (a period name the visitor typed) may wrap on phones; body numbers stay on one line. */
  .data-table thead th, .data-table thead th.num { white-space: normal; }
}

/* Narrow phones: an Earlier and Later pair stacks, so a period name or a long figure is never cut off. */
@media (max-width: 480px) {
  .field-grid--pair { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print: the one-page summary (US Letter and A4). No blobs, grain, header or footer. ---------- */
@media print {
  @page { margin: 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html { font-size: 9.5pt; }
  body { font-size: 9.5pt; line-height: 1.4; background: var(--white); background-image: none; }
  main { overflow: visible; padding-bottom: 0; }
  .wrap { max-width: none; padding-inline: 0; }
  .section, .section--tight, .page-hero, .results { padding-block: 0; }
  .section--mint { background: none; }
  .page-blobs, .tvc-header, .tvc-header-space, .tvc-footer, .skip-link, .page-hero, .inputs-card, .invite, .related, .share-bar,
  details.disclosure, details.more-detail, .stale-note, .hash-error, .handoff, .no-print, [data-print="hide"] { display: none !important; }
  .print-only { display: block !important; }
  /* Logo and the footer's tagline head every printed summary (Yates, 2026-12-04). */
  .print-brand {
    display: flex !important; align-items: center; justify-content: space-between; gap: 12pt;
    padding-bottom: 8pt; margin: 0 0 12pt; border-bottom: 1px solid var(--lavender-gray);
  }
  .print-brand img { width: 110pt; height: auto; }
  .print-brand__tagline { font-size: 9pt; color: var(--cool-gray); }
  .print-title { font-family: var(--font-display); font-weight: 600; font-size: 18pt; line-height: 1.1; margin: 0 0 2pt; }
  .print-sub { color: var(--cool-gray); margin: 0 0 10pt; }
  main > * + * { margin-top: 10pt; }
  .results-body > * + * { margin-top: 10pt; }
  .results[data-stale] .results-body { opacity: 1; }
  .results__heading { display: none; }
  .verdict { padding: 10pt 12pt; border-radius: 8pt; box-shadow: none; border: 1px solid var(--lavender-gray); }
  .verdict--caution { border: 2px solid var(--amber); }
  .verdict__headline { font-size: 14pt; }
  .card, .stat, .next-step, .flag, .tile { box-shadow: none; }
  .card { padding: 10pt 12pt; border-radius: 8pt; border: 1px solid var(--lavender-gray); }
  .card + .card { margin-top: 8pt; }
  .card-head { margin-bottom: 6pt; }
  .card-head__icon { width: 20pt; height: 20pt; }
  .card-title { font-size: 13pt; }
  .key-numbers { grid-template-columns: repeat(auto-fit, minmax(110pt, 1fr)); gap: 6pt; }
  .stat { border: 1px solid var(--lavender-gray); }
  .stat__label { font-size: 8.5pt; margin-top: 2pt; }
  .next-steps > * + * { margin-top: 6pt; }
  .result-block > h3 { margin-bottom: 4pt; }
  .chart-svg { max-height: 220pt; }
  .stat { padding: 6pt 8pt; }
  .stat__value { font-size: 12pt; }
  .next-step { padding: 8pt 10pt; border: 1px solid var(--lavender-gray); }
  .tile { padding: 6pt 8pt; }
  .chart, .verdict, table, .next-step, .flag, .tile { break-inside: avoid; }
  .chart-title { margin-bottom: 4pt; font-size: 10.5pt; }
  .chart-table {
    position: static !important; width: 100% !important; height: auto !important; margin: 6pt 0 0 !important;
    overflow: visible !important; clip: auto !important; clip-path: none !important; white-space: normal !important;
    padding: 0 !important; border: 0 !important;
  }
  .data-table { font-size: 8.5pt; }
  .data-table th, .data-table td { padding: 3pt 6pt; }
  .chart-legend { margin-top: 4pt; }
  .limits > * { max-width: none; }
  .limits h2 { font-size: 10pt; font-family: var(--font-text); font-weight: 500; margin-bottom: 2pt; }
  .limits p { font-size: 8pt; color: var(--cool-gray); }
  .table-scroll { overflow: visible; }
  a { color: inherit; }
  h2 { font-size: 13pt; }
  h3 { font-size: 11pt; }
  /* Tools directory: decoration off (icons, sample, arrows, pill), every tile the same size, two across, so the ten
     tools fit one sheet; each card prints its address instead of a link. */
  .tool-directory { display: block; }
  .tool-directory > * + * { margin-top: 9pt; }
  .tool-group__title { font-size: 12pt; margin: 0 0 4pt; }
  .tool-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 5pt; }
  .tool-mosaic__item { grid-column: auto !important; grid-row: auto !important; break-inside: avoid; }
  .tool-card, .tool-card--wide { flex-direction: column !important; align-items: stretch !important; gap: 2pt; padding: 7pt 9pt; border-radius: 6pt; box-shadow: none; border: 1px solid var(--lavender-gray); break-inside: avoid; }
  .tool-card__icon, .tool-sample, .tool-card__eyebrow, .tool-card__action { display: none !important; }
  .tool-card__title, .tool-card--lead .tool-card__title { font-size: 11.5pt; line-height: 1.15; }
  .tool-card__line, .tool-card--lead .tool-card__line { font-size: 8.5pt; line-height: 1.35; }
  .tool-card__foot { margin: 0; padding: 0; }
  .tool-card__time, .tool-card__url { margin: 0; font-size: 7.5pt; color: var(--cool-gray); }
}
