/* TommyAPI content pages (2026-11-17): pricing, docs, status, changelog, about, terms, privacy.
   Self-contained light theme; pair with chrome.css for the header and footer. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-tap-highlight-color: rgba(8,127,131,.16); }
body.tm-page { --ink:#171717; --muted:#5f6363; --subtle:#8a8f8f; --line:#e5e7eb; --line-strong:#d1d5db; --soft:#fafafa; --teal:#087f83; --teal-dark:#05666a;
  margin: 0; color: var(--ink); background: #fff; font: 16px/1.75 Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; text-rendering: optimizeLegibility; }
.tm-page :focus-visible { outline: 3px solid #35a8aa; outline-offset: 2px; }
.tm-page .skip-link { position: absolute; left: 16px; top: 8px; z-index: 200; transform: translateY(-160%); padding: 9px 12px; border-radius: 6px; color: #fff; background: #111; font-size: 13px; text-decoration: none; }
.tm-page .skip-link:focus-visible { transform: none; }
.pg-wrap { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.pg-wrap-wide { width: min(1280px, calc(100% - 64px)); margin: 0 auto; }

/* hero */
.pg-hero { padding: 64px 0 40px; border-bottom: 1px solid #f0f0f0; background: linear-gradient(180deg, #f7fafa 0%, #fff 100%); }
.pg-eyebrow { display: inline-block; margin-bottom: 14px; font: 600 12px/1 "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.pg-hero h1 { margin: 0; font-size: clamp(32px, 4.6vw, 48px); font-weight: 750; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
.pg-hero p { max-width: 44em; margin: 16px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.pg-meta { margin-top: 14px !important; font-size: 13px !important; color: var(--subtle) !important; }
.pg-main { padding: 40px 0 8px; }

/* prose */
.pg-prose { max-width: 46em; }
.pg-prose h2 { margin: 44px 0 12px; padding-top: 4px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.pg-prose h2:first-child { margin-top: 0; }
.pg-prose h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 650; line-height: 1.4; }
.pg-prose p { margin: 0 0 14px; }
.pg-prose ul, .pg-prose ol { margin: 0 0 16px; padding-left: 1.4em; }
.pg-prose li { margin: 6px 0; }
.pg-prose a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 4px; }
.pg-prose a:hover { color: var(--ink); }
.pg-prose strong { font-weight: 650; }
.pg-prose code { padding: 2px 6px; border-radius: 4px; background: #f3f4f6; font: 13.5px/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }
.pg-prose table { width: 100%; margin: 4px 0 20px; border-collapse: collapse; font-size: 14.5px; }
.pg-prose th, .pg-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pg-prose th { font-size: 12.5px; font-weight: 650; color: var(--muted); background: var(--soft); white-space: nowrap; }
.pg-callout { margin: 18px 0 20px; padding: 14px 16px; border: 1px solid #cfe9e6; border-left: 4px solid var(--teal); border-radius: 6px; background: #f3fbfa; font-size: 15px; }
.pg-callout.warn { border-color: #f3dfc0; border-left-color: #b7791f; background: #fffaf1; }
.pg-callout p:last-child { margin-bottom: 0; }

/* docs layout */
.pg-docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.pg-toc { position: sticky; top: 92px; display: grid; gap: 2px; padding: 4px 0; font-size: 14px; }
.pg-toc strong { padding: 6px 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.pg-toc a { padding: 7px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.pg-toc a:hover { color: var(--ink); background: #f3f4f6; }

/* code */
.code-card { margin: 12px 0 20px; border: 1px solid #1f2937; border-radius: 8px; background: #0f172a; overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; border-bottom: 1px solid #1f2937; color: #cbd5e1; font: 12px/1 "SFMono-Regular", Consolas, monospace; }
.copy-code { height: 28px; padding: 0 10px; border: 1px solid #334155; border-radius: 6px; background: transparent; color: #e2e8f0; font: inherit; cursor: pointer; }
.copy-code:hover { background: #1e293b; }
.code-card pre { margin: 0; padding: 16px; overflow-x: auto; }
.code-card code { padding: 0; background: none; color: #e2e8f0; font: 13.5px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace; white-space: pre; overflow-wrap: normal; }

/* pricing */
.pg-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.pg-toolbar strong { font-size: 18px; font-weight: 650; }
.pg-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-pills button { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.pg-pills button:hover { color: var(--ink); border-color: var(--line-strong); }
.pg-pills button[aria-pressed="true"] { background: #111; border-color: #111; color: #fff; font-weight: 600; }
.pg-table-wrap { border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; background: #fff; }
.pg-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; }
.pg-table th { position: sticky; top: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 12.5px; font-weight: 650; text-align: left; white-space: nowrap; }
.pg-table td { padding: 13px 16px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.pg-table tr:last-child td { border-bottom: 0; }
.pg-table tr[hidden] { display: none; }
.pg-table tbody tr:hover { background: #fafcfc; }
.pg-table td:first-child a { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.pg-table td:first-child a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pg-table .price-chip { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.pg-table .price-chip b { color: var(--ink); font-size: 15.5px; font-weight: 700; }
.pg-table .price-note { color: var(--subtle); font-size: 13px; }
.model-availability { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 4px; font-size: 12px; line-height: 1.7; color: #80531b; background: #fff5e8; white-space: nowrap; vertical-align: 1px; }
.model-availability[data-availability="unavailable"] { color: #8a3d3d; background: #fdeeee; }
.pg-note { margin: 16px 0 0; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.pg-note a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 4px; }

/* status */
.pg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 8px 0 8px; }
.pg-stats .stat { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pg-stats .stat b { display: block; font-size: 28px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pg-stats .stat span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.pg-live { display: grid; gap: 10px; margin: 8px 0 8px; }
.pg-live-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pg-live-row span { color: var(--muted); font-size: 14px; }
.pg-live-row strong { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pg-live-row strong::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #c4c9c9; }
.pg-live-row[data-state="ok"] strong::before { background: #1f9d55; }
.pg-live-row[data-state="bad"] strong::before { background: #c53030; }
.pg-section-title { margin: 36px 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.pg-section-title:first-child { margin-top: 0; }

/* changelog */
.log-entry { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.log-entry:last-child { border-bottom: 0; }
.log-entry time { padding-top: 3px; font: 13px/1.6 "SFMono-Regular", Consolas, monospace; color: var(--subtle); }
.log-entry h2 { margin: 0 0 6px; font-size: 18px; font-weight: 650; line-height: 1.4; }
.log-entry p { margin: 0 0 6px; font-size: 15px; color: #3f4444; overflow-wrap: anywhere; }
.log-entry p strong { font-weight: 650; color: var(--ink); }

@media (max-width: 900px) {
  .pg-wrap, .pg-wrap-wide { width: calc(100% - 40px); }
  .pg-hero { padding: 40px 0 28px; }
  .pg-docs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pg-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
  .pg-toc strong { display: none; }
  .pg-toc a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
}
@media (max-width: 560px) {
  .pg-wrap, .pg-wrap-wide { width: calc(100% - 32px); }
  .pg-prose h2 { font-size: 21px; }
  .log-entry { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pg-live-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tm-page * { transition: none !important; } }

/* support and utility blocks */
.pg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 8px 0 8px; }
.pg-card { display: flex; flex-direction: column; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.pg-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 26px rgba(17,24,39,.07); }
.pg-card h3 { margin: 0; font-size: 17px; font-weight: 700; }
.pg-card p { flex: 1; margin: 8px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.pg-card span { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--teal); }
.pg-contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin: 8px 0 4px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pg-contact-list { display: grid; gap: 2px; }
.pg-contact-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.pg-contact-row:last-child { border-bottom: 0; }
.pg-contact-row span { color: var(--muted); font-size: 14.5px; }
.pg-contact-row strong { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pg-contact-row a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 4px; }
.pg-qr { margin: 0; text-align: center; }
.pg-qr img { display: block; width: 180px; height: auto; border: 1px solid var(--line); border-radius: 8px; object-fit: contain; background: #fff; }
.pg-qr figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.pg-hero-center { padding: 112px 0 120px; border-bottom: 0; text-align: center; }
.pg-hero-center p { margin-left: auto; margin-right: auto; }
.pg-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.pg-btn:hover { border-color: #111; }
.pg-btn-primary { border-color: var(--teal); background: var(--teal); color: #fff; }
.pg-btn-primary:hover { border-color: var(--teal-dark); background: var(--teal-dark); }
.pg-prose > :last-child { margin-bottom: 0; }
.pg-main { padding-bottom: 24px; }
@media (max-width: 640px) {
  .pg-contact { grid-template-columns: minmax(0, 1fr); }
  .pg-qr { justify-self: start; }
  .pg-contact-row { flex-direction: column; gap: 2px; }
  .pg-hero-center { padding: 72px 0 80px; }
}
