/**
 * /training/ page. Extends styles-hud.css; tokens only, no one-off values.
 * Every class is tr- prefixed. Lime is text only on dark grounds (hero,
 * workspace, team, price, final CTA); on paper, accents use --accent-paper.
 * Scrawl notes sit in flow next to what they point at, so every arrow keeps
 * its aim at every width.
 */

/* ---------- Shared ---------- */
.tr-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.section--dark .section__title .accent, .tr-see .section__title .accent { color: var(--lime); }
.section--light :focus-visible { outline: 2px solid var(--accent-paper); outline-offset: 3px; }
.site-footer .footer-grid h3 {
  font-family: var(--font-body); font-size: var(--fs-2); font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-dim);
  margin: 0 0 var(--space-3);
}
.tr-prose { display: grid; gap: var(--space-4); max-width: 64ch; margin-top: var(--space-5); }
.tr-prose p { font-size: var(--fs-6); line-height: var(--lh-body); color: var(--paper-dim); }
.tr-card h3 {
  font-family: var(--font-display); font-stretch: var(--wdth-subhead); font-weight: 800;
  font-size: var(--fs-9); line-height: var(--lh-head); margin-bottom: var(--space-2);
}
.tr-card p { font-size: var(--fs-5); line-height: var(--lh-body); }

/* ---------- Hero ---------- */
.tr-hero { padding-top: 0; }
.tr-ticker__link { position: absolute; inset: 0; z-index: 1; }
.tr-ticker__link:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: -4px; }
.tr-hero h1 { max-width: 18ch; }
.tr-hero .hero__sub { max-width: 64ch; }

/* ---------- Problem: prose left, the pile right ---------- */
.tr-split { display: grid; gap: var(--space-6); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .tr-split { grid-template-columns: 1.3fr 1fr; gap: var(--space-7); } }
.tr-pile {
  position: relative; display: flex; flex-wrap: wrap; gap: var(--space-3);
  align-content: center; justify-content: center; padding: var(--space-5) var(--space-4);
}
.tr-pile .bnode--sm:nth-child(1) { transform: rotate(-1.5deg); }
.tr-pile .bnode--sm:nth-child(2) { transform: rotate(1.2deg); }
.tr-pile .bnode--sm:nth-child(3) { transform: rotate(-0.6deg); }
.tr-pile .bnode--sm:nth-child(4) { transform: rotate(1.6deg); }
/* The X sits behind the notes and shows through the gaps between them. */
.tr-pile .bnode--sm { position: relative; z-index: 1; }
.tr-pile__x {
  position: absolute; left: 50%; top: 50%; width: 240px; height: 200px; margin: -110px 0 0 -120px;
  color: var(--accent-paper); opacity: 0.5; pointer-events: none; z-index: 0;
}
.tr-pile__scrawl { flex-basis: 100%; justify-content: center; margin-top: var(--space-2); --scrawl-rotate: -2deg; }

/* ---------- One job, before and after ----------
   Tabs pick a job. Each panel: the task and a one-line before/after on the
   left, a chat-style mock on the right showing what comes in and the draft
   the setup writes (typed out by js/training.js). */
.tr-ws { margin-top: var(--space-6); }
.tr-ws__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-bottom: var(--space-5); }
@media (min-width: 560px) { .tr-ws__tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tr-ws__tabs[hidden] { display: none; }
.tr-ws__tabs button {
  min-height: 44px; padding: var(--space-2) var(--space-4);
  font: inherit; font-size: var(--fs-5); font-weight: 600; color: var(--ink-dim);
  background: transparent; border: 1px solid var(--control-line); border-radius: var(--r);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
@media (max-width: 559px) { .tr-ws__tabs button { padding-left: var(--space-2); padding-right: var(--space-2); } }
.tr-ws__tabs button:hover { color: var(--ink); border-color: var(--lime); }
.tr-ws__tabs button[aria-selected="true"], .tr-platform input:checked + span {
  color: var(--ink); background: color-mix(in srgb, var(--lime) 14%, transparent);
  border-color: var(--lime); box-shadow: inset 0 -3px 0 var(--lime);
}
.tr-ws__tabs button:focus-visible, .tr-ws__panel:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.tr-ws__panel {
  display: grid; gap: var(--space-5); grid-template-columns: 1fr; align-items: start;
  animation: tr-fade var(--dur) var(--ease);
}
.tr-ws__panel + .tr-ws__panel { margin-top: var(--space-7); }
.tr-ws__panel[hidden] { display: none; }
@keyframes tr-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) { .tr-ws__panel { grid-template-columns: 1fr 1.1fr; gap: var(--space-7); } }

.tr-ws__kicker {
  font-size: var(--fs-2); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: var(--space-2);
}
.tr-ws__job {
  font-family: var(--font-display); font-stretch: var(--wdth-subhead); font-weight: 800;
  font-size: var(--fs-h3); line-height: var(--lh-head); color: var(--ink);
}
.tr-vs { margin: var(--space-5) 0; display: grid; gap: var(--space-3); }
.tr-vs__row { font-size: var(--fs-4); line-height: var(--lh-snug); padding-left: var(--space-4); border-left: 2px solid var(--line-bright); color: var(--ink-dim); }
.tr-vs__row b { display: block; font-size: var(--fs-2); letter-spacing: var(--ls-label); text-transform: uppercase; margin-bottom: var(--space-1); color: var(--ink-dim); }
.tr-vs__row--after { border-left-color: var(--lime); color: var(--ink); font-size: var(--fs-6); font-weight: 600; }
.tr-vs__row--after b { color: var(--lime); }
.tr-knows { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tr-knows li {
  font-size: var(--fs-3); font-weight: 600; color: var(--ink); padding: var(--space-1) var(--space-3);
  border: 1px solid var(--line-bright); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}
.tr-knows li::before { content: "\2713\00a0"; color: var(--lime); }

/* The chat mock */
.tr-chat {
  border: 1px solid var(--line-bright); border-radius: var(--r); background: var(--panel);
  padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); position: relative;
}
.tr-chat__bar {
  display: flex; justify-content: space-between; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line);
  font-family: var(--font-hud); font-size: var(--fs-hud); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-dim);
}
.tr-chat__bar span:first-child { color: var(--lime); }
.tr-chat__msg { max-width: 88%; padding: var(--space-3) var(--space-4); border-radius: var(--r); font-size: var(--fs-5); line-height: var(--lh-snug); }
.tr-chat__msg--in { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line-bright); color: var(--ink); }
.tr-chat__msg--out { align-self: flex-end; background: color-mix(in srgb, var(--lime) 10%, var(--panel)); border: 1px solid var(--lime); color: var(--ink); min-height: 7.5em; }
.tr-chat__label { font-size: var(--fs-2); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-dim); margin-bottom: var(--space-1); }
.tr-chat__msg--out .tr-chat__label { color: var(--lime); }
.tr-chat__type.is-typing::after { content: "\258C"; color: var(--lime); animation: xp-blink 1s steps(1) infinite; }
.tr-chat__scrawl { align-self: flex-end; margin: 0 var(--space-4) calc(-1 * var(--space-2)) 0; --scrawl-rotate: -2deg; font-size: var(--fs-4); }
.tr-chat__check { align-self: flex-end; font-size: var(--fs-3); font-weight: 600; color: var(--lime); }

/* ---------- Five levels ---------- */
.tr-levels__here { margin: var(--space-5) 0 var(--space-1) var(--space-3); --scrawl-rotate: -3deg; }
.tr-lvls {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-4); grid-template-columns: 1fr;
}
@media (min-width: 760px) and (max-width: 1099px) {
  .tr-lvls { grid-template-columns: repeat(2, 1fr); }
  .tr-lvl--end { grid-column: 1 / -1; }
}
@media (min-width: 1100px) { .tr-lvls { grid-template-columns: repeat(5, 1fr); } }
.tr-lvl {
  position: relative; background: var(--paper-2); border: 1px solid var(--paper-line);
  border-top: 3px solid var(--accent-paper); border-radius: var(--r); padding: var(--space-4);
}
.tr-lvl__tag { font-family: var(--font-accent); font-weight: 800; font-size: var(--fs-6); color: var(--accent-paper); }
.tr-xp { display: flex; gap: 3px; margin: var(--space-2) 0 var(--space-3); }
.tr-xp i { flex: 1; height: 8px; background: var(--paper-line); border-radius: 1px; }
.tr-xp i.on { background: var(--accent-paper); }
.tr-lvl__title {
  font-family: var(--font-display); font-stretch: var(--wdth-subhead); font-weight: 800;
  font-size: var(--fs-h4); line-height: var(--lh-head);
}
.tr-lvl__body { margin-top: var(--space-2); font-size: var(--fs-4); line-height: var(--lh-body); color: var(--paper-dim); }
.tr-lvl--end { background: var(--paper-ink); border-color: var(--paper-ink); border-top-color: var(--lime); }
.tr-lvl--end .tr-lvl__tag { color: var(--lime); }
.tr-lvl--end .tr-xp i.on { background: var(--lime); }
.tr-lvl--end .tr-lvl__title { color: var(--paper); }
.tr-lvl--end .tr-lvl__body { color: #b9c1ac; }
.tr-lvl__x { position: absolute; top: var(--space-3); right: var(--space-3); width: 32px; height: 32px; color: var(--lime); }
.tr-levels__x { display: flex; justify-content: flex-end; margin: var(--space-4) var(--space-3) 0 0; --scrawl-rotate: -2deg; }
.tr-keep__title {
  margin-top: var(--space-7); font-family: var(--font-display); font-stretch: var(--wdth-subhead);
  font-weight: 800; font-size: var(--fs-h3); line-height: var(--lh-head);
}
.tr-keep { margin-top: var(--space-4); }
/* Equal-width inputs, so the column reads as one stack. */
.tr-keep .build-col--in .bnode--sm { width: 220px; max-width: 100%; }
@media (max-width: 899px) { .tr-keep .build-col--in .bnode--sm { width: auto; } }

/* ---------- Paper cards ---------- */
.tr-card--paper { background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: var(--r); padding: var(--space-4); }
.tr-card--paper p { color: var(--paper-dim); }

/* ---------- Price band ---------- */
.tr-price .section__title .accent { color: var(--lime); }
.tr-calc {
  margin-top: var(--space-6); display: grid; gap: var(--space-5); grid-template-columns: 1fr;
  border: 1px solid var(--line-bright); border-radius: var(--r); background: var(--panel);
  padding: var(--space-5) var(--space-4);
}
@media (min-width: 900px) {
  .tr-calc { grid-template-columns: 1.1fr 1fr; gap: var(--space-6); padding: var(--space-6); }
}
.tr-calc__in { display: grid; gap: var(--space-5); align-content: start; }
.tr-field label, .tr-platforms legend {
  display: block; font-size: var(--fs-3); font-weight: 600; letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--ink);
}
.tr-field__hint { margin-top: var(--space-2); font-size: var(--fs-3); color: var(--ink-dim); }
.tr-count { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.tr-count__range { flex: 1; min-width: 0; height: 32px; accent-color: var(--lime); cursor: pointer; }
.tr-count__box {
  width: 5.5em; flex: none; padding: var(--space-2) var(--space-3);
  font: inherit; font-size: var(--fs-7); font-weight: 700; text-align: center;
  color: var(--ink); background: var(--bg); border: 1px solid var(--control-line); border-radius: var(--r);
}
.tr-count__box:focus { outline: none; border-color: var(--lime); }
.tr-count__box:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.tr-count__range:disabled, .tr-count__box:disabled { opacity: 0.6; cursor: not-allowed; }

.tr-check { display: flex; gap: var(--space-3); align-items: flex-start; }
.tr-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--lime); }
.tr-check label { font-size: var(--fs-5); color: var(--ink); cursor: pointer; }

.tr-platforms { border: 0; margin: 0; padding: 0; min-width: 0; }
.tr-platforms__opts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.tr-platform { position: relative; cursor: pointer; }
.tr-platform input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tr-platform span {
  display: inline-block; padding: var(--space-2) var(--space-3); min-height: 44px; line-height: 26px;
  font-size: var(--fs-4); font-weight: 600; color: var(--ink-dim);
  border: 1px solid var(--control-line); border-radius: var(--r);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tr-platform input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }

.tr-calc__out {
  border-top: 1px solid var(--line-bright); padding-top: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
}
@media (min-width: 900px) { .tr-calc__out { border-top: 0; border-left: 1px solid var(--line-bright); padding: 0 0 0 var(--space-6); } }
.tr-out__label { font-size: var(--fs-3); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-dim); }
.tr-out__fee {
  font-family: var(--font-accent); font-weight: 800; font-size: clamp(2.5rem, 6vw, 3.875rem);
  line-height: var(--lh-head); color: var(--lime); font-variant-numeric: tabular-nums;
}
.tr-out__fee.is-word { font-size: var(--fs-h4); text-transform: uppercase; }
.tr-out__note { font-size: var(--fs-4); color: var(--ink); }
.tr-out__facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin: 0; }
.tr-out__facts dt { font-size: var(--fs-2); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-dim); }
.tr-out__facts dd { margin: var(--space-1) 0 0; font-size: var(--fs-5); font-weight: 600; color: var(--ink); }
.tr-out__split { font-size: var(--fs-3); color: var(--ink-dim); }
.tr-out__seats { font-size: var(--fs-3); line-height: var(--lh-snug); color: var(--ink-dim); border-top: 1px dashed var(--line-bright); padding-top: var(--space-3); }
.tr-out__note[hidden], .tr-out__split[hidden] { display: none; }

.tr-price__lines { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.tr-price__lines li { font-size: var(--fs-4); color: var(--ink-dim); padding-left: var(--space-4); position: relative; }
.tr-price__lines li::before { content: "//"; position: absolute; left: 0; color: var(--lime); font-weight: 700; }
.tr-price__cta { margin-top: var(--space-5); }
.tr-price__note { margin: var(--space-3) 0 0; font-size: var(--fs-4); color: var(--ink-dim); max-width: 52ch; }

/* Players pill, per-person line, roster grid, scrawl in the output panel */
.tr-out__label { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.tr-out__players {
  font-family: var(--font-hud); font-size: var(--fs-2); letter-spacing: var(--ls-label);
  color: var(--lime); border: 1px solid var(--line-bright); padding: var(--space-1) var(--space-2); border-radius: var(--r);
}
.tr-out__per { font-size: var(--fs-4); color: var(--ink); }
.tr-out__scrawl { margin-top: var(--space-2); --scrawl-rotate: -2deg; font-size: var(--fs-4); }
.tr-out__scrawl + .tr-out__seats { border-top: 0; padding-top: 0; }
.tr-roster { display: grid; grid-template-columns: repeat(25, 1fr); gap: 3px; margin-top: var(--space-3); max-width: 360px; }
.tr-roster i { aspect-ratio: 1; background: var(--line-bright); border-radius: 1px; transition: background-color var(--dur) var(--ease); }
.tr-roster i.on { background: var(--lime); }

/* Break-even card */
.tr-roi {
  margin-top: var(--space-4); border: 1px dashed var(--line-bright); border-radius: var(--r);
  padding: var(--space-5) var(--space-4); display: grid; gap: var(--space-4); grid-template-columns: 1fr;
}
@media (min-width: 900px) { .tr-roi { grid-template-columns: 1.1fr 0.8fr 1.1fr; padding: var(--space-6); gap: var(--space-6); align-items: start; } }
.tr-roi__head h3 {
  font-family: var(--font-display); font-stretch: var(--wdth-subhead); font-weight: 800;
  font-size: var(--fs-h4); line-height: var(--lh-head); color: var(--ink);
}
.tr-roi__head h3 span { display: block; font-family: var(--font-body); font-stretch: 100%; font-size: var(--fs-4); font-weight: 600; color: var(--lime); margin-top: var(--space-1); }
.tr-roi__head p { margin-top: var(--space-2); font-size: var(--fs-4); line-height: var(--lh-snug); color: var(--ink-dim); }
.tr-roi__in { display: grid; gap: var(--space-4); }
.tr-roi__in label { display: block; font-size: var(--fs-3); font-weight: 600; color: var(--ink); margin-bottom: var(--space-2); }
.tr-roi__box { width: 7em; }
.tr-roi__box::placeholder { color: var(--ink-dim); font-weight: 400; }
.tr-roi__out { font-size: var(--fs-4); line-height: var(--lh-snug); color: var(--ink-dim); }
.tr-roi__big { font-family: var(--font-accent); font-weight: 800; font-size: var(--fs-stat); line-height: var(--lh-head); color: var(--lime); }
.tr-roi__lead { color: var(--ink); margin-bottom: var(--space-2); }
.tr-roi__math { margin: var(--space-3) 0 0; display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-3); font-size: var(--fs-3); }
.tr-roi__math dt { color: var(--ink-dim); }
.tr-roi__math dd { margin: 0; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.tr-roi__math .tr-roi__total { border-top: 1px solid var(--line-bright); padding-top: var(--space-1); font-weight: 700; color: var(--ink); }
.tr-roi__foot { grid-column: 1 / -1; font-size: var(--fs-2); color: var(--ink-dim); }
.tr-price__lines a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Research ---------- */
.tr-stats {
  list-style: none; margin: var(--space-6) 0 0; padding: 0;
  display: grid; gap: var(--space-4); grid-template-columns: 1fr;
}
@media (min-width: 640px) { .tr-stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .tr-stats { grid-template-columns: repeat(4, 1fr); }
}
.tr-stat {
  background: var(--paper-2); border: 1px solid var(--paper-line); border-top: 3px solid var(--accent-paper);
  border-radius: var(--r); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2);
}
.tr-stat__num { font-family: var(--font-accent); font-weight: 800; font-size: var(--fs-stat); line-height: var(--lh-head); color: var(--paper-ink); }
.tr-stat__line { font-size: var(--fs-4); line-height: var(--lh-snug); color: var(--paper-ink); }
.tr-stat__src { margin-top: auto; padding-top: var(--space-2); font-size: var(--fs-2); line-height: var(--lh-snug); color: var(--paper-dim); }
.tr-stat__src a, .tr-why__src { color: var(--accent-paper); text-decoration: underline; text-underline-offset: 2px; }
.tr-why { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-4); max-width: 80ch; }
.tr-why li { font-size: var(--fs-5); line-height: var(--lh-body); color: var(--paper-dim); }
.tr-why strong { color: var(--paper-ink); }
.tr-why__src { font-size: var(--fs-3); }
.tr-why .tr-why__call {
  position: relative; background: var(--paper-ink); color: #b9c1ac; border-radius: var(--r);
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-7); transform: rotate(-0.4deg);
}
.tr-why__call strong { color: var(--lime); }
.tr-why__call .tr-why__src { color: var(--lime-bright); }
.tr-why__call .doodle--star { position: absolute; left: var(--space-4); top: var(--space-4); color: var(--lime); width: 28px; height: 28px; }
.tr-disclaimer { margin-top: var(--space-5); font-size: var(--fs-2); color: var(--paper-dim); max-width: 80ch; }

/* ---------- Final CTA ---------- */
.tr-final { text-align: center; }
.tr-final .section__title { margin-inline: auto; }
.tr-final .section__lede { margin-inline: auto; }

/* ---------- Contact ---------- */
.contact .field select {
  font: inherit; font-size: var(--fs-4); padding: 12px 14px; border-radius: var(--r);
  color: var(--paper-ink); background: var(--paper); border: 1px solid var(--control-line-paper);
}
.contact .field select:focus { outline: none; border-color: var(--accent-paper); }
.contact .field input[type="number"] { -moz-appearance: textfield; }
.tr-more { margin-top: var(--space-4); border-top: 1px solid var(--paper-line); padding-top: var(--space-3); }
.tr-more summary { cursor: pointer; font-size: var(--fs-4); font-weight: 600; color: var(--paper-ink); min-height: 44px; display: flex; align-items: center; gap: var(--space-2); list-style: none; }
.tr-more summary::-webkit-details-marker { display: none; }
/* A flex summary drops the native triangle, so draw a plus that turns. */
.tr-more summary::before {
  content: "+"; flex: none; width: 24px; height: 24px; display: grid; place-items: center;
  border: 1px solid var(--accent-paper); border-radius: var(--r); color: var(--accent-paper); font-weight: 700;
  transition: transform var(--dur) var(--ease);
}
.tr-more[open] summary::before { transform: rotate(45deg); }
.tr-more__grid { margin-top: var(--space-3); }
.form-card.is-done .tr-more, .form-card.is-done .form-grid { visibility: hidden; }
.contact .fx-label { color: var(--paper-dim); }
/* ---------- "Something else" AI tool: picker and suggestion ---------- */
.tr-other { margin-top: var(--space-3); display: grid; gap: var(--space-2); }
.tr-other[hidden] { display: none; }
.tr-other label { font-size: var(--fs-3); font-weight: 600; color: var(--ink); }
.tr-other select {
  font: inherit; font-size: var(--fs-4); padding: 12px 14px; max-width: 320px;
  color: var(--ink); background: var(--bg); border: 1px solid var(--line-bright); border-radius: var(--r);
}
.tr-other select:focus { outline: none; border-color: var(--lime); }
.tr-other__tip {
  font-size: var(--fs-3); line-height: var(--lh-snug); color: var(--ink);
  border-left: 2px solid var(--lime); padding-left: var(--space-3);
}

/* ---------- Training lead form: tools checklist and free text ---------- */
.contact .tr-tools { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact .tr-tools legend { font-size: var(--fs-3); font-weight: 500; color: var(--paper-dim); margin-bottom: var(--space-2); }
.tr-opt { font-weight: 400; color: var(--paper-dim); }
.tr-opt::before { content: "("; }
.tr-opt::after { content: ")"; }
.tr-tools__grid { display: grid; gap: var(--space-2) var(--space-4); grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.tr-tools__grid label { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-4); color: var(--paper-ink); cursor: pointer; min-height: 32px; }
.tr-tools__grid input { width: 18px; height: 18px; flex: none; accent-color: var(--accent-paper); }
.tr-tools__other { margin-top: var(--space-3); display: flex; flex-direction: column; gap: 7px; max-width: 360px; }
.tr-tools__other[hidden] { display: none; }
.tr-tools__other label { font-size: var(--fs-3); font-weight: 500; color: var(--paper-dim); }
.contact .field textarea, .contact .tr-tools__other input {
  font: inherit; font-size: var(--fs-4); padding: 12px 14px; border-radius: var(--r); resize: vertical;
  color: var(--paper-ink); background: var(--paper); border: 1px solid var(--control-line-paper);
}
.contact .field textarea:focus, .contact .tr-tools__other input:focus { outline: none; border-color: var(--accent-paper); }
.contact .field textarea::placeholder { color: var(--paper-dim); }

/* ---------- Round 4: hero qualifier, who, trust grid, booking, mobile ---------- */
.tr-hero__for {
  font-size: var(--fs-3); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--lime); margin-bottom: var(--space-3);
}
.tr-hero .hero__sub { max-width: 58ch; }
.tr-hero__call { margin-top: var(--space-3); font-size: var(--fs-4); color: var(--ink-dim); }
.tr-hero__call a, .tr-final__call a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 559px) {
  .tr-hero .hero__actions .btn, .tr-who__actions .btn { width: 100%; justify-content: center; }
}

/* Who you work with */
.tr-who__grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .tr-who__grid { grid-template-columns: 300px 1fr; gap: var(--space-7); } }
.tr-who__photo { transform: rotate(-2deg); justify-self: center; max-width: min(260px, 70vw); }
.tr-prose--dark p { color: var(--ink-dim); }
.tr-who__team { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.tr-who__team li { color: var(--ink-dim); padding-left: var(--space-4); position: relative; }
.tr-who__team li::before { content: "//"; position: absolute; left: 0; color: var(--lime); font-weight: 700; }
.tr-who__team strong { color: var(--ink); }
.tr-who__behind { margin-top: var(--space-5); }
.tr-who__facts { list-style: none; max-width: 600px; margin: var(--space-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.tr-who__facts li { border: 1px solid var(--line-bright); border-radius: var(--r); padding: var(--space-3); color: var(--ink-dim); font-size: var(--fs-3); line-height: var(--lh-snug); }
.tr-who__facts strong { display: block; font-family: var(--font-accent); font-size: var(--fs-9); line-height: var(--lh-head); color: var(--lime); margin-bottom: var(--space-1); }
.tr-who__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* For your team and your IT person: one grid, three across */
.tr-trust.section { border-top: 1px solid var(--paper-line); padding-top: clamp(40px, 5vw, 56px); }
.tr-trust__grid {
  list-style: none; margin: var(--space-6) 0 0; padding: 0;
  display: grid; gap: var(--space-4); grid-template-columns: 1fr;
}
@media (min-width: 700px) { .tr-trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tr-trust__grid { grid-template-columns: repeat(3, 1fr); } }

/* Final CTA and booking, one dark section */
.tr-final.booking.section { border-top: 0; padding-top: clamp(64px, 9vw, 104px); }
.tr-final.booking .section__title, .tr-final.booking .section__lede { text-align: center; margin-inline: auto; }
.tr-final .booking__frame {
  margin-inline: auto; min-height: 698px; display: grid;
  background: var(--panel); border: 1px solid var(--line-bright); border-top: 3px solid var(--lime);
}
.tr-final .booking__frame iframe { background: #fff; }
.tr-final .booking__placeholder { padding: var(--space-6) var(--space-4); }
.tr-final .booking__placeholder p { color: var(--ink-dim); }
.tr-final .booking__frame :focus-visible { outline-color: var(--lime); }
.tr-final__call { margin-top: var(--space-4); text-align: center; font-size: var(--fs-4); color: var(--ink-dim); }

/* Break-even card: solid frame, not a placeholder dash */
.tr-roi { border-style: solid; }

/* Phone: bigger roster squares, a thumb you can hit, stacked keep chips */
@media (max-width: 559px) {
  .tr-roster { grid-template-columns: repeat(10, 1fr); max-width: 240px; }
  .tr-keep .build-col--in { flex-direction: column; align-items: stretch; }
  .tr-keep .build-col--in .bnode--sm { width: 100%; }
}
.tr-count__range { height: 44px; }
.tr-count__range::-webkit-slider-thumb { width: 24px; height: 24px; }
.tr-count__range::-moz-range-thumb { width: 24px; height: 24px; }
/* Price heading: the accent half on its own line, never "FEE. PRICED / BY" */
.tr-price .section__title .accent { display: block; }

/* ---------- Round 5: design critique fixes ---------- */
/* Control edges at 3:1 against their background (WCAG 1.4.11). */
:root { --control-line: #626f4e; --control-line-paper: #7d8570; }
.contact .field input { border-color: var(--control-line-paper); }
.contact .field input:focus-visible, .contact .field select:focus-visible, .contact .field textarea:focus-visible {
  outline: 2px solid var(--accent-paper); outline-offset: 2px;
}
.form-status.is-err a { color: inherit; text-decoration: underline; }

/* Ticker: stops for keyboard focus too, and after a few loops. */
.tr-ticker:focus-within .demo-ticker__track { animation-play-state: paused; }
.tr-ticker .demo-ticker__track { animation-iteration-count: 3; }

/* Phones: the fee echoed under the slider, since the real one is a screen down. */
.tr-calc__live { margin-top: var(--space-2); font-family: var(--font-accent); font-weight: 800; font-size: var(--fs-8); color: var(--lime); min-height: 1.4em; }
@media (min-width: 900px) { .tr-calc__live { display: none; } }

/* Phones: the drafted reply right under the task, before the before/after. */
@media (max-width: 899px) {
  .tr-ws__panel { display: flex; flex-direction: column; gap: 0; }
  .tr-ws__brief { display: contents; }
  .tr-ws__panel > .tr-chat { margin: var(--space-3) 0 var(--space-5); }
  .tr-ws__brief > :nth-child(1) { order: 1; }
  .tr-ws__brief > :nth-child(2) { order: 2; }
  .tr-ws__panel > .tr-chat { order: 3; }
  .tr-ws__brief > :nth-child(3) { order: 4; }
  .tr-ws__brief > :nth-child(4) { order: 5; }
  .tr-ws__brief > :nth-child(5) { order: 6; }
}

/* Phones and tablets: a booking bar once the hero is gone (js/training.js). */
.tr-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: var(--space-2); align-items: center;
  padding: var(--space-2) var(--space-4) calc(var(--space-2) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: 1px solid var(--line-bright);
  backdrop-filter: blur(8px);
}
.tr-sticky[hidden] { display: none; }
.tr-sticky .btn { flex: 1; justify-content: center; }
.tr-sticky__tel {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center;
  color: var(--lime); border: 1px solid var(--control-line); border-radius: var(--r);
}
.tr-sticky__tel svg { width: 22px; height: 22px; }
@media (min-width: 1024px) { .tr-sticky, .tr-sticky[hidden] { display: none; } }
@media (max-width: 1023px) { .site-footer { padding-bottom: 88px; } }

/* iOS zooms into inputs under 16px. */
@media (max-width: 899px) { .contact .field input, .contact .field select, .contact .field textarea { font-size: 16px; } }

/* Header on this page: logo, phone, one button. */
.tr-nav__right { display: flex; align-items: center; gap: var(--space-4); }
.tr-nav__tel {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; min-width: 44px; justify-content: center;
  color: var(--ink); font-weight: 600; font-size: var(--fs-4); text-decoration: none;
}
.tr-nav__tel svg { width: 18px; height: 18px; color: var(--lime); }
.tr-nav__tel:hover span { color: var(--lime); }
.tr-nav__cta { font-size: var(--fs-3); }
@media (max-width: 639px) { .tr-nav__tel span { display: none; } }
/* Phones and tablets get the bottom booking bar instead. */
@media (max-width: 1023px) { .tr-nav__cta { display: none; } }

/* Research and team: the essentials up front, the rest one tap away. */
@media (min-width: 640px) { .tr-stats--two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tr-stats--two { grid-template-columns: repeat(2, 1fr); max-width: 900px; } }
.tr-research__more, .tr-trust__more { margin-top: var(--space-5); max-width: 900px; }
.tr-trust__more { max-width: none; }
.tr-research__more summary small, .tr-trust__more summary small { font-size: inherit; font-weight: 400; color: var(--paper-dim); }
.tr-research__more .tr-stats { margin-top: var(--space-3); }
.tr-trust__more .tr-trust__grid { margin-top: var(--space-3); }
