/*
 * Tenet — the pages around the front page: comparisons, alternatives,
 * guides, the download page. Generated by build/build.mjs. Loaded after
 * styles.css, whose tokens, type and .btn these share. Reading pages, so the
 * display type steps down from the front page's poster sizes.
 */

.pg { padding: 112px var(--gutter) 0; }
.pg h1 { font-size: clamp(40px, 5vw, 76px); line-height: 1; }
.pg h2 { font-size: clamp(27px, 2.7vw, 40px); line-height: 1.08; letter-spacing: -.035em; }
.pg h3 { font-size: 19px; }

.pg-col { max-width: 760px; margin: 0 auto; }
.pg-wide { max-width: 1060px; margin: 0 auto; }

.crumbs { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 26px; }
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink-bright); }

.pg-lede { margin-top: 22px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.42; color: var(--ink-dim); text-wrap: pretty; }
.pg-cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

.pg-sec { margin-top: clamp(56px, 7vw, 92px); }
.pg-sec > h2 + * { margin-top: 20px; }
.prose p { color: var(--ink-dim); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 16px; }
.prose strong { color: var(--ink-bright); font-weight: 650; }
.prose ul { margin: 0; padding-left: 20px; color: var(--ink-dim); }
.prose li + li { margin-top: 9px; }
.prose a, .pg-note a, .alt p a, .answer a, .reasons a, .qa a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--edge-strong); }

.answer { margin-top: 30px; padding: 22px 24px; background: var(--panel); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--edge); }
.answer h2 { font-size: 13px; font-weight: 600; letter-spacing: .02em; font-family: var(--sans); color: var(--ink-faint); line-height: 1.3; }
.answer p { margin-top: 8px; color: var(--ink); font-size: 18px; line-height: 1.45; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 22px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--edge); }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.cmp th, .cmp td { padding: 13px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--edge); }
.cmp thead th { border-top: 0; color: var(--ink-bright); font-weight: 650; }
.cmp tbody th { font-weight: 500; color: var(--ink-faint); width: 22%; }
.cmp td { color: var(--ink-dim); }
.cmp td.us { color: var(--ink-bright); background: #ffffff08; }
/* Two-column spec sheets (model pages, the models list): no forced width. */
.cmp.spec { min-width: 0; }
.cmp.spec tbody th { width: 30%; }
.cmp.spec a { color: var(--ink-bright); text-underline-offset: 3px; text-decoration-color: var(--edge-strong); }
.eyebrow { font-size: 13px; letter-spacing: .02em; color: var(--ink-faint); margin-bottom: 10px; }
.cmp thead th.us { background: #ffffff08; }

.pg-note { margin-top: 12px; font-size: 13px; color: var(--ink-faint); }

.pg-shot { margin-top: clamp(40px, 5vw, 64px); }
.pg-shot img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--edge); }
.pg-shot figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-faint); }

.cta-band {
  margin-top: clamp(56px, 7vw, 88px); padding: clamp(26px, 3.4vw, 42px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  background: var(--panel); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--edge-strong);
}
.cta-band h2 { font-size: clamp(25px, 2.5vw, 36px); }
.cta-band p { margin-top: 8px; color: var(--ink-dim); max-width: 46ch; }
.cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }

.alts { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: alt; }
.alt { counter-increment: alt; padding: 22px 0; border-top: 1px solid var(--edge); }
.alt h3 { font-size: 21px; }
.alt h3::before { content: counter(alt) ". "; color: var(--ink-faint); font-weight: 500; }
.alt p { margin-top: 7px; color: var(--ink-dim); }
.alt.first { padding: 22px 24px; background: var(--panel); border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--edge-strong); margin-bottom: 8px; }

.reasons { display: grid; gap: 26px; margin-top: 24px; }
.reasons h3 { margin-bottom: 6px; }
.reasons p { color: var(--ink-dim); }

.pg .qa { max-width: none !important; margin-top: 18px; }

.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 28px; margin-top: 20px; }
.links-grid a { padding: 7px 0; font-size: 15px; color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid var(--edge); }
.links-grid a:hover { color: var(--ink-bright); }

/* The links stay in the bar down to a phone, where the button is enough. */
/* Prompt pages: a clip, the prompt exactly as typed, and notes on it. */
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 44px 32px; margin-top: 26px; }
.clips.one { grid-template-columns: 1fr; gap: 56px; }
.clip { margin: 0; min-width: 0; }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel); border-radius: 12px; box-shadow: 0 0 0 1px var(--edge); }
.clip figcaption { margin-top: 14px; }
.clip h3 { font-size: 19px; }
.clip-meta { margin-top: 4px; font-size: 13.5px; color: var(--ink-faint); }
.clip > figcaption > p:not(.clip-meta) { margin-top: 12px; color: var(--ink-dim); }
.clip > figcaption > p + p { margin-top: 10px; }
.clip strong { color: var(--ink-bright); font-weight: 650; }
.prompt { margin: 12px 0 0; padding: 14px 16px; max-height: 14.5em; overflow: auto; background: var(--panel); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--edge); font-size: 14.5px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt p + p { margin-top: 10px; }
.nav nav.pg-links { position: static; display: flex; margin-left: auto; gap: 26px; background: none; padding: 0; height: auto; opacity: 1; visibility: visible; transform: none; }
@media (max-width: 760px) {
  .nav nav.pg-links { display: none; }
  .nav .nav-dl { margin-left: auto; display: inline-flex; }
  .pg { padding-top: 92px; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .cta-side { width: 100%; }
}
