/* Long-form pages in the 2026-11 redesign (/pricing/, and /a11y-mcp/ next). Tokens,
   type, header and footer come from site.css. The layout is a reading column with an
   "On this page" list that sits beside it on wide screens. */

.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.5rem); max-width: 20ch; }
.page-head .lede { max-width: 60ch; }

.page-body { display: grid; gap: 40px; padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 120px); }
@media (min-width: 1000px) {
  .page-body { grid-template-columns: 230px minmax(0, 1fr); gap: 72px; }
  .toc { position: sticky; top: 96px; align-self: start; }
}

/* On this page */
.toc-title { font: 500 .75rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
@media (max-width: 999px) {
  .toc ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
}
.toc a { display: inline-block; padding: 4px 0; color: var(--fg-soft); text-decoration: none; font-size: .9375rem; }
.toc a:hover { color: var(--fg); text-decoration: underline; }

/* Reading column */
.prose { max-width: 720px; min-width: 0; }
.prose > section + section { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--rule); }
.prose h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); max-width: none; margin-bottom: 14px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--fg-soft); }
.prose p + p, .prose ul + p, .prose p + ul, .prose .table-wrap + p, .prose p + .table-wrap { margin-top: 16px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a:not(.btn) { color: var(--accent-text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 16px 0 0; }
.prose li { margin: 8px 0; }
.prose ul li::marker { color: var(--accent-text); }
.prose code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }

/* Price line: the amount in Gloock, the terms in mono beside it. */
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 18px; }
.price-line .amount { font: 400 clamp(2.25rem, 1.8rem + 1.6vw, 3rem)/1 var(--font-display); color: var(--fg); letter-spacing: -0.01em; }
.price-line .terms { font: 500 .8125rem var(--font-mono); color: var(--fg-soft); }
/* A service page states its price under the lede, so the price is clear before the detail. */
.page-head .price-line { margin: 28px 0 0; }

/* Callout for the "what this isn't" notes. */
.note { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 18px 20px; }
.prose .note { margin-top: 20px; }

/* Tables scroll inside their own box at 320px rather than widening the page. */
.table-wrap { overflow-x: auto; margin: 20px 0 0; border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule); color: var(--fg-soft); }
/* On the narrowest phones a three-column table only fits without sideways scrolling if
   the cells give up some side padding. */
@media (max-width: 400px) { .table th, .table td { padding: 10px 10px; } }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table thead th { background: var(--surface); font: 500 .6875rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); }
.table tbody th { font-weight: 600; color: var(--fg); }
.table td.num { white-space: nowrap; color: var(--fg); font-weight: 500; }
/* A price cell can carry a short qualifier; let only that part wrap so narrow screens keep the table inside the page. */
.table td.num .num-note { display: block; white-space: normal; font-weight: 400; color: var(--fg-soft); }

/* Closing call to action */
.page-cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* Code blocks (for /a11y-mcp/): scroll inside their own box at 320px. */
.prose pre { background: var(--surface-2); color: var(--fg); padding: 16px 18px; border-radius: var(--radius-lg); overflow-x: auto; margin-top: 16px; }
.prose pre code { background: none; padding: 0; overflow-wrap: normal; }

/* ---------- /a11y-mcp/ parts ---------- */
/* Connector address with a copy button; the button wraps under the address at 320px. */
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 12px; }
.prose .copy-row code { font-size: 1rem; padding: 8px 12px; }
/* One line reserved so the text below doesn't jump when the confirmation appears. */
.copy-status { min-height: 1.6em; margin: 8px 0 0; font-size: .9375rem; }
/* Demo video: scales to the column; the width/height attributes keep 16:9. */
.video { display: block; width: 100%; height: auto; margin-top: 18px; background: var(--surface-2); border-radius: var(--radius-lg); border: 1px solid var(--rule); }
.transcript { margin-top: 14px; border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 0 18px; }
.transcript summary { cursor: pointer; font-weight: 600; color: var(--fg); padding: 12px 0; min-height: 44px; }
.transcript[open] { padding-bottom: 18px; }
.transcript p + p { margin-top: 12px; }
/* The opening callout on /a11y-mcp/ sits right above the first section. */
.prose > .note + section { margin-top: 40px; }

/* 404: the page head on its own, with room to breathe. */
.not-found { border-bottom: 0; min-height: 60vh; display: grid; align-content: center; }
