/* ============================================================================
   FIRE YOUR COACH — THE PAID CONNECTION'S PAGES
   /mcp, /mcp/<client> and /mcp/docs. Loaded after site.css, on those pages only.
   ============================================================================

   Token dialect: site.css's (--chalk / --ink / --stone / --oxblood). These
   pages never carry the older --color-* dialect, and nothing here may add it.

   Shapes these pages need and site.css has no rule for: the server URL with its
   Copy button, a terminal command, the client picker, numbered setup steps,
   short lists of facts, and the four-line price.

   Oxblood is not spent here (canon L10). The hero accent and the primary CTA
   already spend it on every one of these pages; Copy is ink, step numerals are
   ink, and a client row turns oxblood only under the pointer.
   ============================================================================ */

/* ── The server URL and Copy ───────────────────────────────────────────────
   The label swaps from Copy to Copied. Both labels sit in one grid cell, so the
   button is as wide as the longer one from the first paint and the swap moves
   nothing (canon L1, L7). The swap is an opacity ramp, not a cut (L2). */
.connect { gap: 14px; width: 100%; max-width: var(--measure-text, 640px); }
.connect-url {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1.5px solid var(--ink);
  background: var(--chalk-subtle);
}
.connect-url code,
.cmd code {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.connect-url code { font-size: 15px; line-height: 1.4; padding: 13px 16px; }

.copy-btn {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 96px;
  min-height: 48px;
  padding: 0 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk);
  background: var(--ink);
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.copy-btn > span { grid-area: 1 / 1; transition: opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1); }
.copy-btn .copy-done { opacity: 0; }
.copy-btn[data-state="done"] .copy-idle { opacity: 0; }
.copy-btn[data-state="done"] .copy-done { opacity: 1; }
.copy-btn:hover { background: var(--steel); }
.copy-btn:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

/* A command to paste in a terminal. Chalk-deep, not ink: a code block is not a
   moment the page has earned an ink surface for. */
.cmd {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: var(--measure-text, 640px);
  margin-top: 12px;
  border: 1px solid var(--border);
  background: var(--chalk-deep);
}
.cmd code { font-size: 14px; line-height: 1.55; padding: 13px 16px; white-space: pre-wrap; }
.cmd .copy-btn { min-width: 88px; font-size: 12px; }

/* Inline code in running copy: a menu name, a file path, a command fragment. */
.body-text code,
.step-body code,
.fact-list code,
.spec-table code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--ink);
  background: var(--chalk-deep);
  padding: 1px 5px;
  overflow-wrap: anywhere;
}
.body-text a,
.step-body a,
.fact-list a,
.checked a,
.price-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ── The client picker ─────────────────────────────────────────────────────── */
.client-list {
  list-style: none;
  max-width: var(--measure-wide, 800px);
  border-top: 1px solid var(--border);
}
.client-list li { border-bottom: 1px solid var(--border-faint); }
.client-list a {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 24px;
  padding: 18px 0;
  color: var(--ink);
}
.client-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color 0.15s ease;
}
.client-note { font-size: 15px; line-height: 1.5; color: var(--stone); }
.client-go {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.client-list a:hover .client-name { color: var(--oxblood); }
.client-list a:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }

/* ── What it reads: a two-column roll of short labels ─────────────────────── */
.sees-list {
  list-style: none;
  max-width: var(--measure-wide, 800px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  border-top: 1px solid var(--border);
}
.sees-list li {
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-faint);
}

/* ── Facts: one bold lead, one sentence or two ────────────────────────────── */
.fact-list {
  list-style: none;
  max-width: var(--measure-text, 640px);
  border-top: 1px solid var(--border);
}
.fact-list li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--stone);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-faint);
}
.fact-list li strong { color: var(--ink); font-weight: 600; }
.prose-section .fact-list + .body-text,
.prose-section .body-text + .fact-list,
.prose-section .sees-list + .body-text,
.prose-section .fact-list + .cmd { margin-top: 24px; }

/* ── Prompts to try, set in mono as a prompt is typed ──────────────────────── */
.ask-list {
  list-style: none;
  max-width: var(--measure-text, 640px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ask-list li {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: var(--chalk-subtle);
  overflow-wrap: anywhere;
}
.ask-list li::before { content: ">"; font-weight: 700; margin-right: 12px; color: var(--stone); }

/* ── Numbered setup steps ──────────────────────────────────────────────────── */
.step-list {
  list-style: none;
  counter-reset: step;
  max-width: var(--measure-text, 640px);
  border-top: 1px solid var(--border);
}
.step-list > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-faint);
}
.step-list > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding-top: 3px;
}
.step-group-h {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
  margin: 40px 0 14px;
}
.step-group-h:first-of-type { margin-top: 8px; }
.step-body { min-width: 0; font-size: 16px; line-height: 1.65; color: var(--ink); }
.step-body .step-note { display: block; margin-top: 6px; font-size: 15px; color: var(--stone); }

/* ── The price: four lines ────────────────────────────────────────────────── */
.price { max-width: var(--measure-text, 640px); border-top: 2px solid var(--ink); }
.price-line {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--border);
}
.price-terms { list-style: none; }
.price-terms li {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-faint);
}
.price-note { margin-top: 20px; max-width: var(--measure-text, 640px); }

/* ── "Checked <date>" and the phone hand-off ─────────────────────────────── */
.checked {
  margin-top: 28px;
  max-width: var(--measure-text, 640px);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--stone);
}
.share-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 24px;
  max-width: var(--measure-text, 640px);
  font-size: 15px;
  line-height: 1.5;
  color: var(--stone);
}
.share-btn {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.share-btn > span { grid-area: 1 / 1; transition: opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1); }
.share-btn .copy-done { opacity: 0; }
.share-btn[data-state="done"] .copy-idle { opacity: 0; }
.share-btn[data-state="done"] .copy-done { opacity: 1; }
.share-btn:hover { background: var(--ink); color: var(--chalk); }
.share-btn:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

/* Tables on these pages hold words, not numbers. */
.prose-section .spec-table-wrap { max-width: var(--measure-wide, 800px); }
.spec-table td.access { width: 1%; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Tables of sentences stack on a phone: the row header on its own line, then
   each cell under its column name. Desktop keeps the table. */
@media (max-width: 700px) {
  .spec-table--stack { min-width: 0; }
  .spec-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec-table--stack, .spec-table--stack tbody, .spec-table--stack tr { display: block; width: 100%; }
  .spec-table--stack tr { padding: 14px 0; border-bottom: 1px solid var(--border-faint); }
  .spec-table--stack tbody tr:last-child { border-bottom: none; }
  .spec-table--stack th, .spec-table--stack td { display: block; padding: 2px 0; border: 0; white-space: normal; }
  .spec-table--stack tbody th { margin-bottom: 4px; }
  .spec-table--stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone);
    margin-top: 6px;
  }
}

/* ── Phones ───────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .sees-list { grid-template-columns: minmax(0, 1fr); }
  .sees-list li { font-size: 15px; }
  .ask-list li { font-size: 14px; padding: 14px 16px; }
  .client-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .client-note { grid-column: 1 / -1; grid-row: 2; }
  .connect-url code { font-size: 14px; padding: 12px 12px; }
  .cmd code { font-size: 13px; padding: 12px; }
  .copy-btn { min-width: 84px; padding: 0 14px; }
}
/* On a phone the URL and a Copy beside it do not fit on one line, and the URL
   broke mid-word ("fireyourcoach.c / o/mcp"). Stack them: the text gets the
   full width and stays whole, and Copy becomes a full-width bar under it. */
@media (max-width: 480px) {
  .connect { align-self: stretch; }
  .connect-url, .cmd { flex-direction: column; }
  .connect-url code { font-size: 14px; padding: 14px 14px; }
  .connect-url .copy-btn, .cmd .copy-btn { width: 100%; min-height: 48px; }
}

/* The constraint is the finger, not the width (website/AGENTS.md). */
@media (pointer: coarse) {
  .copy-btn, .share-btn { min-height: 48px; }
  .client-list a { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .copy-btn, .copy-btn > span, .share-btn, .share-btn > span, .client-name { transition: none; }
}
