/* The portal's look. It follows the site's DESIGN.md (fixedbyfriday.work): white page,
   Literata for the biggest words, Hanken Grotesk for everything else, near-black ink,
   pale pills, one flat colour field per diagram. Tokens are copied from the site's
   tokens.css; keep them in step. Readers are often older: nothing under 15px, controls
   at least 44px, contrast at least 7:1 for body text. */

@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(hanken.woff2) format('woff2');
}
@font-face {
  font-family: 'Literata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(literata.woff2) format('woff2');
}

:root {
  --white: oklch(1 0 0);
  --ink: oklch(0.19 0.004 107);
  --ink-hover: oklch(0.32 0.004 107);
  --ink-2: oklch(0.437 0.008 107);
  --on-ink: oklch(0.985 0.004 107);
  --pale: oklch(0.959 0.009 107);
  --pale-hover: oklch(0.925 0.01 107);
  --pale-2: oklch(0.981 0.004 107);
  --rule: oklch(0.9 0.005 107);
  --line: oklch(0.64 0.006 107);
  /* The site's colour fields; ink on each is 8:1 or better. A .tone-* class picks one. */
  --stage-pricing: oklch(0.894 0.142 91);   /* yellow, the logo's */
  --stage-numbers: oklch(0.83 0.145 163);   /* mint */
  --stage-finding: oklch(0.783 0.145 221.8);/* sky blue */
  --stage-reports: oklch(0.759 0.121 269.3);/* periwinkle */
  --stage-team: oklch(0.779 0.188 336.1);   /* pink */
  --stage-offers: oklch(0.77 0.144 44.7);   /* orange */
  --stage: var(--stage-pricing);

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: 15px;
  --text-s: 17px;
  --text-body: 19px;
  --text-m: 22px;
  --text-l: clamp(24px, 2.2vw, 30px);
  --text-xl: clamp(28px, 2.6vw, 36px);
  --text-section: clamp(34px, 3.4vw, 46px);
  --text-lede: clamp(22px, 2.1vw, 28px);
  --text-title: clamp(42px, 6.4vw, 96px);

  --space-2xs: 8px;
  --space-xs: 12px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 144px;

  --gutter: 80px;
  --page-max: 1440px;
  --bar-h: 72px;
  --control-h: 56px;
  --tap: 44px;
  --radius-s: 6px;
  --radius-panel: 8px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 450ms;
  --dur-enter: 580ms;
}
@media (max-width: 900px) { :root { --gutter: 32px; } }
@media (max-width: 600px) { :root { --gutter: 16px; --bar-h: 64px; --text-body: 17px; --text-m: 19px; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + var(--space-m)); }
html.motion { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: var(--text-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { text-wrap: balance; }
.tone-pricing { --stage: var(--stage-pricing); }
.tone-numbers { --stage: var(--stage-numbers); }
.tone-finding { --stage: var(--stage-finding); }
.tone-reports { --stage: var(--stage-reports); }
.tone-team { --stage: var(--stage-team); }
.tone-offers { --stage: var(--stage-offers); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--space-s); top: -100px; z-index: 50;
  background: var(--ink); color: var(--on-ink); padding: var(--space-xs) var(--space-s);
  border-radius: var(--radius-pill); font-size: var(--text-s); text-decoration: none;
}
.skip-link:focus { top: var(--space-xs); }
.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-height: var(--tap); padding: 0 var(--space-m); border: 0; border-radius: var(--radius-pill);
  font-family: var(--sans); font-size: var(--text-s); font-weight: 500; line-height: 1.15;
  text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color var(--dur-fast) ease;
}
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: var(--ink-hover); }
.btn--pale { background: var(--pale); color: var(--ink); }
.btn--pale:hover { background: var(--pale-hover); }
.textlink {
  display: inline-flex; align-items: center; gap: 0.35em; min-height: var(--tap);
  padding: 0; border: 0; background: none;
  font-size: var(--text-s); font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.textlink:hover { text-decoration-thickness: 2px; }
.tag {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-xs);
  background: var(--pale); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 500;
}
.status {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-s);
  background: var(--ink); color: var(--on-ink); border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: 500;
}

/* ------------------------------------------------------------------ top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--rule); }
.topbar__inner { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); }
.topbar__mark {
  display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap);
  font-family: var(--serif); font-size: 26px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap;
}
.topbar__logo { flex: none; width: 30px; height: 30px; }
@media (max-width: 370px) { .topbar__mark { font-size: 22px; } }

/* ------------------------------------------------------------------ page header */
.page-head { padding: var(--space-2xl) 0 var(--space-2xl); }
.page-head__kicker { color: var(--ink-2); font-size: var(--text-s); margin-bottom: var(--space-m); }
.page-head__title {
  font-family: var(--serif); font-weight: 400; font-size: var(--text-title);
  line-height: 1.04; letter-spacing: -0.035em; max-width: 16ch; margin-left: -0.03em;
}
.page-head__lede {
  margin-top: var(--space-l); max-width: 34ch;
  color: var(--ink-2); font-size: var(--text-lede); line-height: 1.4; letter-spacing: -0.01em;
}
.page-head__meta {
  margin-top: var(--space-l); display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-m);
  align-items: center; color: var(--ink-2); font-size: var(--text-s);
}
.page-head__art { margin-top: var(--space-xl); }
@media (min-width: 1000px) {
  .page-head--hero .page-head__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; }
  .page-head--hero .page-head__art { margin-top: 0; }
  .page-head--hero .page-head__title { font-size: clamp(42px, 5.4vw, 84px); max-width: 12ch; }
}
@media (max-width: 600px) {
  .page-head { padding: var(--space-xl) 0 var(--space-xl); }
  .page-head__lede { margin-top: var(--space-m); }
}
/* Arriving: the words rise in, then the board's rows land one by one. Motion only. */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
html.motion .page-head__text > * { animation: rise var(--dur-enter) var(--ease-out) both; }
html.motion .page-head__text > :nth-child(2) { animation-delay: 70ms; }
html.motion .page-head__text > :nth-child(3) { animation-delay: 140ms; }
html.motion .page-head__text > :nth-child(4) { animation-delay: 210ms; }
html.motion .page-head__art .stage { animation: rise var(--dur-enter) var(--ease-out) 200ms both; }
html.motion .page-head__art .board-row { animation: rise var(--dur-enter) var(--ease-out) both; }
html.motion .page-head__art .board-row:nth-child(1) { animation-delay: 500ms; }
html.motion .page-head__art .board-row:nth-child(2) { animation-delay: 640ms; }
html.motion .page-head__art .board-row:nth-child(3) { animation-delay: 780ms; }
html.motion .page-head__art .board-row:nth-child(4) { animation-delay: 920ms; }

/* ------------------------------------------------------------------ sections and blocks */
.p-section { padding: var(--space-3xl) 0; border-top: 1px solid var(--rule); }
.section-title { font-size: var(--text-section); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.section-intro { margin-top: var(--space-s); max-width: 40ch; color: var(--ink-2); font-size: var(--text-m); line-height: 1.4; }
.p-block { margin-top: var(--space-3xl); }
.p-section > .wrap > .section-title + .p-block,
.p-section > .wrap > .section-intro + .p-block { margin-top: var(--space-2xl); }
.p-block__title { font-size: var(--text-xl); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; max-width: 26ch; }
.p-block__intro { margin-top: var(--space-s); max-width: 44ch; color: var(--ink-2); font-size: var(--text-m); line-height: 1.4; }
.p-block__body { margin-top: var(--space-xl); display: grid; gap: var(--space-xl); }
.p-text { max-width: 60ch; }
.p-section > .wrap > .p-text { margin-top: var(--space-s); color: var(--ink-2); font-size: var(--text-m); line-height: 1.4; }
.p-section > .wrap > .p-text + .p-block { margin-top: var(--space-2xl); }
@media (max-width: 600px) {
  .p-section { padding: var(--space-2xl) 0; }
  .p-block { margin-top: var(--space-2xl); }
  .p-block__body { margin-top: var(--space-l); gap: var(--space-l); }
}

/* ------------------------------------------------------------------ stage: a colour field holding a white panel */
.stage { background: var(--stage); padding: var(--space-xl); }
.stage__panel { background: var(--white); border-radius: var(--radius-panel); padding: var(--space-l); }
.stage__note { margin-top: var(--space-m); color: var(--ink-2); font-size: var(--text-xs); }
@media (max-width: 600px) {
  .stage { margin-inline: calc(-1 * var(--gutter)); padding: var(--space-m) var(--gutter); }
  .stage__panel { padding: var(--space-m) var(--space-s); }
}

/* ------------------------------------------------------------------ scatter: a loose pile of places */
.scatter {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--space-s) var(--space-m); padding: var(--space-l) 0;
}
.scatter li {
  padding: 10px var(--space-s); border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--white); font-size: var(--text-s); font-weight: 500;
}
.scatter li:nth-child(4n+1) { transform: rotate(-3deg) translateY(6px); }
.scatter li:nth-child(4n+2) { transform: rotate(2deg) translateY(-10px); }
.scatter li:nth-child(4n+3) { transform: rotate(-1.5deg) translateY(12px); }
.scatter li:nth-child(4n) { transform: rotate(3deg) translateY(-4px); }
.scatter__caption { margin: var(--space-s) auto 0; max-width: 40ch; text-align: center; color: var(--ink-2); }
@media (max-width: 600px) {
  .scatter { gap: var(--space-xs); }
  .scatter li:nth-child(n) { transform: rotate(var(--tilt, -2deg)); }
  .scatter li:nth-child(even) { --tilt: 2deg; }
}

/* ------------------------------------------------------------------ options: choices from safest to riskiest */
.options__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.options__table th, .options__table td { text-align: left; vertical-align: top; padding: var(--space-s) var(--space-m) var(--space-s) 0; }
.options__labels { width: 190px; }
.options__table tbody th { font-size: var(--text-s); font-weight: 500; color: var(--ink-2); }
.options__table tbody tr { border-top: 1px solid var(--rule); }
.options__table tbody tr:last-child { border-bottom: 1px solid var(--rule); }
.options__scale td { padding-bottom: var(--space-2xs); }
.options__scale td:last-child { display: flex; align-items: center; gap: var(--space-s); color: var(--ink-2); font-size: var(--text-s); }
.options__arrow { position: relative; flex: 1; height: 0; border-top: 1.5px solid var(--line); }
.options__arrow::after {
  content: ""; position: absolute; right: -2px; top: -6.5px;
  border: 5.5px solid transparent; border-left: 9px solid var(--line); border-right: 0;
}
.options__head th { padding-bottom: var(--space-m); }
.options__name { display: block; font-size: var(--text-m); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.options__tag {
  display: inline-flex; align-items: center; min-height: 28px; margin-top: var(--space-2xs); padding: 0 var(--space-xs);
  background: var(--pale); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 500;
}
.options__cell { font-size: var(--text-s); line-height: 1.45; }
.options__col--plan .options__tag { background: var(--stage-pricing); }
.options__cell.options__col--plan { font-weight: 500; }
.options__col--off, .options__col--off .options__name { color: var(--ink-2); }
.options__col--off .options__tag::before { content: "✕"; margin-right: 6px; }
.options__ask { margin-top: var(--space-m); }
/* On a phone: the three choices as a list, then each row with its three answers. */
@media (max-width: 900px) {
  .options__table, .options__table thead, .options__table tbody, .options__table tr,
  .options__table th, .options__table td { display: block; width: auto; padding: 0; }
  .options__table .options__scale, .options__table .options__head > td { display: none; }
  .options__head { display: grid; gap: var(--space-xs); margin-bottom: var(--space-l); }
  .options__head th { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-xs); padding: 0; }
  .options__head .options__tag { margin-top: 0; }
  .options__table tbody tr { padding: var(--space-m) 0; }
  .options__table tbody th { margin-bottom: var(--space-xs); color: var(--ink); font-size: var(--text-m); }
  .options__cell + .options__cell { margin-top: var(--space-s); }
  .options__cell::before { content: attr(data-label); display: block; font-weight: 500; color: var(--ink); }
  .options__cell.options__col--plan { padding-left: var(--space-s); border-left: 3px solid var(--stage-pricing); }
  .options__cell.options__col--off::before { color: var(--ink-2); }
}

/* ------------------------------------------------------------------ pieces: everything feeds one board */
.pieces { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; gap: var(--space-m); }
.pieces__inputs { display: grid; gap: var(--space-s); }
.piece { padding: var(--space-m); border: 1.5px solid var(--rule); border-radius: var(--radius-panel); background: var(--white); }
.piece__name { font-size: var(--text-m); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.piece__text { margin-top: var(--space-2xs); color: var(--ink-2); font-size: var(--text-s); line-height: 1.45; }
.piece__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-xs); }
.piece__tags li {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 var(--space-xs);
  background: var(--pale); border-radius: var(--radius-s); font-size: var(--text-xs); font-weight: 500;
}
.pieces__arrow::before { content: "→"; display: block; text-align: center; font-size: 56px; line-height: 1; }
.piece--hub { border: 1.5px solid var(--ink); padding: var(--space-l); }
.piece--hub .piece__name { font-size: var(--text-l); }
.piece--hub .board-rows { margin-top: var(--space-m); }
@media (max-width: 900px) {
  .pieces { grid-template-columns: 1fr; }
  .pieces__arrow::before { content: "↓"; font-size: 44px; }
}

/* ------------------------------------------------------------------ flow: a day in the life */
.flow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.flow__steps { position: relative; display: grid; gap: var(--space-m); }
.flow__steps::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: var(--rule); }
.flow__step { position: relative; padding-left: 44px; transition: color var(--dur) ease; }
.flow__step::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 4px var(--white);
  transition: background-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.flow__title { font-size: var(--text-m); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.flow__text { margin-top: 4px; color: var(--ink-2); font-size: var(--text-s); line-height: 1.45; max-width: 46ch; }
.flow__or { margin: var(--space-xl) 0 var(--space-m); padding-top: var(--space-m); border-top: 1px solid var(--rule); font-size: var(--text-s); font-weight: 500; color: var(--ink-2); }
/* States, set by portal.js while it plays. Upcoming steps stay readable. */
.flow__step.is-ahead { color: var(--ink-2); }
.flow__step.is-ahead::before { background: var(--white); box-shadow: 0 0 0 4px var(--white), inset 0 0 0 2px var(--line); }
.flow__step.is-now::before { background: var(--stage); box-shadow: 0 0 0 4px var(--white), inset 0 0 0 2.5px var(--ink); transform: scale(1.25); }

.flow__board { position: sticky; top: calc(var(--bar-h) + var(--space-m)); z-index: 2; }
.flow__board-label { font-size: var(--text-s); font-weight: 500; color: var(--ink-2); margin-bottom: var(--space-s); }
.flow__row { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.flow__cell { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: var(--space-s); padding: var(--space-xs) 0; border-bottom: 1px solid var(--rule); }
.flow__cell dt { color: var(--ink-2); font-size: var(--text-s); }
.flow__cell dd { font-size: var(--text-s); font-weight: 500; }
.flow__cell--status dd { justify-self: start; padding: 2px var(--space-xs); background: var(--pale); border-radius: var(--radius-pill); }
.flow__cell dd.is-changed { animation: flow-changed 1.2s var(--ease-out); }
@keyframes flow-changed { from { background: var(--stage); } }
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; gap: var(--space-xl); }
  /* On a phone the board rides along the bottom of the screen while the steps scroll past. */
  .flow__board { top: auto; bottom: var(--space-2xs); padding: var(--space-2xs); margin-inline: 0; }
  .flow__board .stage__panel { padding: var(--space-xs) var(--space-s); }
  .flow__board .stage__note { margin-top: 4px; }
  .flow__row { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-s); }
  .flow__cell { grid-template-columns: 1fr; gap: 0; padding: 4px 0; }
  .flow__cell--breakdown, .flow__cell--status { grid-column: 1 / -1; }
  .flow__cell dt { font-size: var(--text-xs); }
  .flow__board-label { margin-bottom: 4px; }
}

/* ------------------------------------------------------------------ coverage: more people on, more caught */
.coverage__label { font-size: var(--text-s); font-weight: 500; color: var(--ink-2); margin-bottom: var(--space-s); }
.coverage__people { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.coverage__person {
  display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: var(--tap); padding: 0 var(--space-m);
  border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: var(--white);
  font-size: var(--text-s); font-weight: 500;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.coverage__person::before { content: "Off"; font-size: var(--text-xs); color: var(--ink-2); }
.coverage__person[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.coverage__person[aria-pressed="true"]::before { content: "On"; color: var(--stage); }
.coverage__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; max-width: 760px; margin-top: var(--space-l); }
.coverage__cell { aspect-ratio: 1; border-radius: var(--radius-s); border: 1.5px dashed var(--line); background: var(--white); transition: background-color var(--dur) ease, border-color var(--dur) ease; }
.coverage__cell.is-caught { background: var(--stage); border: 1.5px solid var(--ink); }
.coverage__sum { margin-top: var(--space-l); font-size: var(--text-l); font-weight: 500; letter-spacing: -0.02em; }
.coverage__sum [data-count] { font-family: var(--serif); font-weight: 400; font-size: 1.4em; }
@media (max-width: 700px) { .coverage__grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 900px) {
  .coverage { display: grid; grid-template-columns: 220px minmax(0, 760px); column-gap: var(--space-xl); align-items: start; }
  .coverage__people { flex-direction: column; align-items: stretch; }
  .coverage__grid { margin-top: 0; }
}

/* ------------------------------------------------------------------ fixes: before and now */
.fixes { display: grid; gap: var(--space-2xl); }
.fix__title { font-size: var(--text-l); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; max-width: 30ch; }
.fix__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); margin-top: var(--space-m); }
.fix__side { display: grid; gap: var(--space-m); align-content: start; padding: var(--space-l); border-radius: var(--radius-panel); }
.fix__side--before { background: var(--pale); }
.fix__side--before .before-now__text { color: var(--ink-2); }
.fix__side--now { background: var(--stage); }
.fix__art { display: grid; place-items: center; min-height: 150px; padding: var(--space-m); background: var(--white); border-radius: var(--radius-s); }
.before-now__text { font-size: var(--text-m); line-height: 1.4; }
.fix__meta { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); align-items: center; margin-top: var(--space-m); }
@media (max-width: 800px) {
  .fix__pair { grid-template-columns: 1fr; }
  .fix__side { padding: var(--space-m); }
}

/* ------------------------------------------------------------------ rows: label and sentence */
.rows { border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-m) var(--space-xl); padding: var(--space-l) 0; border-top: 1px solid var(--rule); }
.row__label { font-size: var(--text-m); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.row__label::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 12px; vertical-align: 0;
  border-radius: 4px; background: var(--sw); box-shadow: 0 0 0 1.5px var(--ink);
}
.row:nth-child(6n+1) { --sw: var(--stage-pricing); }
.row:nth-child(6n+2) { --sw: var(--stage-numbers); }
.row:nth-child(6n+3) { --sw: var(--stage-finding); }
.row:nth-child(6n+4) { --sw: var(--stage-team); }
.row:nth-child(6n+5) { --sw: var(--stage-reports); }
.row:nth-child(6n) { --sw: var(--stage-offers); }
.row__text { color: var(--ink-2); max-width: 54ch; }
@media (max-width: 800px) { .row { grid-template-columns: 1fr; gap: var(--space-2xs); padding: var(--space-m) 0; } }

/* ------------------------------------------------------------------ board: a pretend board */
.board__title { font-size: var(--text-m); font-weight: 500; letter-spacing: -0.015em; margin-bottom: var(--space-s); }
.board-rows { border-top: 1px solid var(--rule); }
.board-row {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 9em; gap: var(--space-s); align-items: center;
  padding: var(--space-s) 0; border-bottom: 1px solid var(--rule); font-size: var(--text-s); line-height: 1.3;
}
.board-row__title { font-weight: 500; }
.board-row__detail { display: block; margin-top: 2px; font-weight: 400; font-size: var(--text-xs); color: var(--ink-2); }
.board-row__who { color: var(--ink-2); }
.board-row__status {
  justify-self: start; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--pale);
  font-size: var(--text-xs); font-weight: 500; white-space: nowrap;
}
.board-row__status[class*="tone-"] { background: var(--stage); }
.board--small { width: 100%; }
.board--small .board-row { grid-template-columns: minmax(0, 1fr) auto; }
.board--small .board-row__who { display: none; }
@media (max-width: 600px) {
  .board-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--space-s); }
  .board-row__title { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ illustrations */
/* Spot illustrations in the logo's style (src/art.js). One small part of some of them moves
   once when it comes into view, to show what it means; portal.js adds .is-seen. */
.art { display: block; width: 100%; height: auto; }
.options__art { display: block; width: 112px; margin-bottom: var(--space-s); }
.piece--art { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: var(--space-m); align-items: start; }
.piece__art { display: block; padding-top: 4px; }
.fix__art .art { width: min(220px, 100%); }
@media (max-width: 900px) {
  .options__art { display: inline-block; width: 64px; margin: 0 var(--space-xs) 0 0; vertical-align: middle; }
  .options__head th { flex-wrap: nowrap; }
  .piece--art { grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-s); }
}
.art__move { transform-box: fill-box; transform-origin: center; }
@keyframes art-drop { from { opacity: 0; transform: translateY(-22px) rotate(-12deg); } }
@keyframes art-slide { from { opacity: 0; transform: translateX(-26px); } }
@keyframes art-scan { from { transform: translate(-34px, 14px); } }
@keyframes art-pop { from { opacity: 0; transform: scale(0.4) translateX(-30px); } }
html.motion .art:not(.is-seen) .art__move { opacity: 0; }
html.motion .art.is-seen .art__move { animation: art-drop 700ms var(--ease-out) 200ms both; }
html.motion .art--forward.is-seen .art__move { animation-name: art-slide; }
html.motion .art--check:not(.is-seen) .art__move { opacity: 1; transform: translate(-34px, 14px); }
html.motion .art--check.is-seen .art__move { animation: art-scan 1100ms var(--ease-out) 200ms both; }
html.motion .art--phone.is-seen .art__move { animation-name: art-pop; }

/* ------------------------------------------------------------------ questions */
.questions__privacy { margin-top: var(--space-m); max-width: 60ch; color: var(--ink-2); font-size: var(--text-s); line-height: 1.5; }
.questions { margin-top: var(--space-2xl); display: grid; gap: 0; border-bottom: 1px solid var(--rule); }
.question { padding: var(--space-l) 0; border-top: 1px solid var(--rule); }
.question__reply > :first-child { margin-top: var(--space-m); }
@media (min-width: 900px) {
  .question { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0 var(--space-xl); }
  .question__reply > :first-child { margin-top: 0; }
  .question__text { font-size: var(--text-m); }
}
.question__text { font-size: var(--text-l); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.question__n { font-family: var(--serif); font-weight: 400; font-size: 1.35em; margin-right: 0.25em; }
.question__note { margin-top: var(--space-xs); color: var(--ink-2); }
.question__sent {
  display: inline-flex; align-items: center; gap: var(--space-2xs); margin-top: var(--space-s); min-height: 40px;
  padding: 0 var(--space-s); background: var(--stage); border-radius: var(--radius-pill); font-weight: 500; font-size: var(--text-s);
}
.answer { margin-top: var(--space-s); padding: var(--space-m); background: var(--pale-2); border-left: 3px solid var(--ink); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.answer__meta { color: var(--ink-2); font-size: var(--text-xs); }
.answer__body { margin-top: var(--space-2xs); white-space: pre-wrap; }
.answer-form { margin-top: var(--space-s); display: grid; gap: var(--space-s); justify-items: start; }
.textarea {
  display: block; width: 100%; min-height: 112px; padding: var(--space-s);
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--white);
  font-size: 20px; line-height: 1.45; resize: vertical;
}
.textarea:focus-visible { outline-offset: 2px; }
.question__more { margin-top: var(--space-2xs); }
.question__more summary { cursor: pointer; display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--text-s); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }

/* ------------------------------------------------------------------ sign-in */
.signin { padding: var(--space-2xl) 0 var(--space-3xl); }
.signin__card { max-width: 520px; padding: var(--space-xl); background: var(--stage-pricing); border-radius: var(--radius-panel); }
.signin__title { font-family: var(--serif); font-weight: 400; font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.1; }
.signin__lede { margin-top: var(--space-xs); }
.signin__error {
  margin-top: var(--space-m); padding: var(--space-s) var(--space-m); background: var(--white);
  border-left: 3px solid var(--ink); border-radius: 0 var(--radius-s) var(--radius-s) 0; font-weight: 500;
}
.signin__form { margin-top: var(--space-l); display: grid; gap: var(--space-m); justify-items: start; }
.field { display: grid; gap: var(--space-2xs); width: 100%; }
.field__label { font-size: var(--text-s); font-weight: 500; }
.input {
  width: 100%; min-height: var(--tap); padding: 0 var(--space-s);
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--white); font-size: 20px;
}
.signin__help { margin-top: var(--space-m); color: var(--ink-2); font-size: var(--text-s); }
@media (max-width: 520px) { .signin__card { padding: var(--space-l) var(--space-m); } }

/* ------------------------------------------------------------------ footer and message page */
.footer { border-top: 1px solid var(--rule); }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-s) var(--space-l);
  padding-top: var(--space-l); padding-bottom: var(--space-l); color: var(--ink-2); font-size: var(--text-s);
}
.footer__mark { font-family: var(--serif); color: var(--ink); font-size: 20px; letter-spacing: -0.01em; }
.message { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); display: grid; gap: var(--space-m); }

/* ------------------------------------------------------------------ reduced motion: nothing moves */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
