/* The Pricing and Docs pages. Extends home.css with the rate table, its length slider, and the agent prompt. */

.platform .col a { color: #dfe6d2; text-decoration: none; border-bottom: 1px solid rgba(177, 231, 79, 0.35); }
.platform .col a:hover { color: var(--accent, #b1e74f); border-color: var(--accent, #b1e74f); }
.platform .col a.act { border-bottom: 1px solid; }
.platform .col a.act-primary { color: #0d1005; border-color: var(--accent, #b1e74f); }
.platform .col a.act-primary:hover { color: #0d1005; border-color: #c3f065; }
.platform .col a.act-ghost { border-color: rgba(177, 231, 79, 0.42); }

/* ---- The rate tables on the pricing page. */

.platform .pf-rates { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 0.95rem; }
.platform .pf-rates th, .platform .pf-rates td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.platform .pf-rates th { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; color: var(--dim); }
.platform .pf-rates td + td, .platform .pf-rates th + th { font-family: var(--mono); }
/* A figure or a length never breaks inside its cell, and figures take equal widths. */
.platform .pf-rates td + td { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Fixed columns: the length and the totals change as the slider moves, and no column moves with them. */
@media (min-width: 561px) {
  .platform .pf-rates { table-layout: fixed; }
  .platform .pf-rates .pf-c-figure { width: 5.6rem; }
  .platform .pf-rates .pf-c-op { width: 1.6rem; }
  .platform .pf-rates .pf-c-length { width: 5.8rem; }
}
.platform .pf-rates .pf-op { color: var(--dim); text-align: center; padding-right: 12px; width: 1ch; }
/* The sum of one episode stands out in the accent colour. */
.platform .pf-rates .pf-total { font-weight: 600; color: var(--accent, #b1e74f); }
.platform .pf-rates td.pf-length-value { color: var(--dim); }
.platform .pf-length { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 6px; font-family: var(--mono); font-size: 0.85rem; color: var(--dim); }
.platform .pf-length input { flex: 1 1 160px; max-width: 320px; accent-color: var(--accent); }
.platform .pf-length output { color: var(--muted); min-width: 9ch; }
/* The volume-discount line and its contact button, under the table. */
/* Phone: each environment on its own line, its sum on the next. */
@media (max-width: 560px) {
  .platform .pf-rates thead { display: none; }
  .platform .pf-rates tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .platform .pf-rates td { border: 0; padding: 0; }
  .platform .pf-rates td:first-child { flex-basis: 100%; }
  .platform .pf-rates .pf-op { width: auto; padding: 0; }
  /* The length and the total keep one width while the slider moves: "10.0 min", "$13.50". */
  .platform .pf-rates td.pf-length-value { min-width: 8ch; }
  .platform .pf-rates td.pf-total { min-width: 7ch; }
}

/* The subtitle runs to the same right edge as the text below it. */
.platform .page-head .hero-lede { max-width: none; }

/* ---- The Docs page: a link on each section label, the prompt with a Copy button. */

.platform .band[id] { scroll-margin-top: 90px; }
/* The label's own link shows on hover or focus, so a reader can copy the section's address. */
.platform .label .anchor { margin-left: 0.5em; color: var(--dim); text-decoration: none; border: 0; opacity: 0; transition: opacity 0.15s ease; }
.platform .band:hover .label .anchor, .platform .label .anchor:focus-visible { opacity: 1; }
.platform .label .anchor:hover { color: var(--accent, #b1e74f); }
.platform .band code { font-family: var(--mono); font-size: 0.88em; background: var(--panel); border: 1px solid var(--hair); border-radius: 3px; padding: 0.1em 0.35em; }
.platform .prompt { position: relative; }
.platform .prompt pre { margin: 0; padding: 16px 18px 64px; background: var(--panel); border: 1px solid var(--hair); border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.platform .prompt pre code { font-size: 0.84rem; line-height: 1.6; color: #dfe6d2; background: transparent; border: 0; padding: 0; }
.platform .prompt-copy { position: absolute; right: 14px; bottom: 14px; padding: 8px 18px; font-size: 0.9rem; cursor: pointer; }

@media (max-width: 640px) {
  .platform .prompt-copy { width: auto; }
  /* A phone has no hover, so the section links stay in view. */
  .platform .label .anchor { opacity: 1; }
}
