/* Inner pages: app page, legal text, contact. Uses the tokens from style.css. */
.page-hero { padding: 72px 0 24px; text-align: left; }
.page-hero.hero-alt { text-align: center; padding-top: 88px; }
.page-hero.hero-alt .hero-actions { justify-content: center; }
.narrow { max-width: 860px; }
.page-hero h1 { margin: 18px 0 12px; font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.02em; font-weight: 800; line-height: 1.12; }
.page-hero .lead { margin: 0; color: var(--color-fg-muted); font-size: 17px; line-height: 1.6; max-width: 62ch; }
.page-hero.hero-alt .lead { margin-inline: auto; }
.page-hero .meta { margin: 14px 0 0; color: var(--color-fg-dim); font-size: 13.5px; }
.grad { background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.center { text-align: center; }
.alt { background: var(--color-surface-2); border-block: 1px solid var(--color-edge); }

.doc { padding: 24px 0 88px; }
.doc article { padding-top: 34px; scroll-margin-top: 90px; }
.doc h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.01em; font-weight: 700; }
.doc p, .doc li { color: var(--color-fg-muted); line-height: 1.7; font-size: 15.5px; }
.doc li { margin: 6px 0; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc strong { color: var(--color-fg); font-weight: 600; }
.doc a { color: var(--color-accent-2); text-decoration: underline; text-underline-offset: 3px; }
.doc a.btn { text-decoration: none; color: #fff; }
.doc a.btn-ghost { color: var(--color-fg); }

.toc { margin: 20px 0 8px; padding: 20px 24px; border: 1px solid var(--color-edge); background: var(--color-panel); border-radius: var(--radius-md); }
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-fg-dim); margin: 0 0 8px; }
.toc ol { columns: 2; column-gap: 32px; margin: 0; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.toc a { text-decoration: none; color: var(--color-fg-muted); }
.toc a:hover { color: var(--color-accent-2); }

.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--color-edge); border-radius: var(--radius-md); background: var(--color-panel); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--color-edge); color: var(--color-fg-muted); line-height: 1.55; }
th { background: var(--color-panel-2); color: var(--color-fg); font-weight: 600; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--color-fg); font-weight: 600; width: 28%; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { position: relative; padding: 14px 16px 14px 56px; margin: 10px 0; border: 1px solid var(--color-edge); background: var(--color-panel); border-radius: var(--radius-md); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 12px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(160deg, var(--color-accent-2), var(--color-accent)); }

.card { padding: 22px 24px; border: 1px solid var(--color-edge); background: var(--color-panel); border-radius: var(--radius-md); }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p, .card li { color: var(--color-fg-muted); line-height: 1.6; font-size: 14.5px; }
.card.wide { margin-top: 18px; }
.contact-grid, .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
@media (max-width: 720px) { .contact-grid, .two-col { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: 180px 1fr; gap: 12px 24px; margin: 12px 0; }
.facts dt { color: var(--color-fg-dim); font-size: 14px; font-weight: 600; }
.facts dd { margin: 0; color: var(--color-fg); line-height: 1.55; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }

.footer-top.footer-top-4 { grid-template-columns: 1.6fr repeat(3, 1fr); }
@media (max-width: 780px) { .footer-top.footer-top-4 { grid-template-columns: repeat(2, 1fr); } }
.footer-bottom { flex-direction: row; }

.dl-card { margin: 0 0 18px; border-color: var(--color-accent); }
.dl-card h3 { font-size: 19px; }
.small { font-size: 13px; color: var(--color-fg-dim); line-height: 1.6; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; background: var(--color-panel-2); padding: 2px 6px; border-radius: 6px; }
.card ol { padding-left: 20px; margin: 8px 0; }
.card a, .small a { color: var(--color-accent-2); }
.card a.btn, .small a.btn { text-decoration: none; }
.card a.btn-primary { color: #fff; }
.card a.btn-ghost { color: var(--color-fg); }

.dl-form { margin: 16px 0 8px; }
.dl-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--color-fg); }
.dl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-row input { flex: 1 1 240px; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--color-edge); background: var(--color-surface); color: var(--color-fg); font: inherit; font-size: 15px; }
.dl-row input:focus { outline: 2px solid var(--color-accent-2); outline-offset: 1px; border-color: transparent; }
.dl-form .dl-consent { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 6px; font-weight: 400; font-size: 13.5px; color: var(--color-fg-muted); }
.dl-consent input { margin-top: 3px; accent-color: var(--color-accent); width: 16px; height: 16px; }
.dl-msg { min-height: 22px; margin: 8px 0 4px; font-size: 14px; color: var(--color-fg-muted); }
.dl-msg.ok { color: var(--color-online); font-weight: 600; }
.dl-msg.err { color: var(--color-danger); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dl-card button:disabled { opacity: .6; cursor: not-allowed; }
.dl-count { display: inline-block; margin: 10px 0 0; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--color-online); background: var(--color-panel-2); border: 1px solid var(--color-edge); }
.dl-count[hidden] { display: none; }

/* AgentOS downloads */
.dl-prod { margin: 0 0 18px; }
.os-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px; margin-top: 10px; border: 1px solid var(--color-edge); border-radius: var(--radius-md); background: var(--color-surface); }
.os-row .small { color: var(--color-fg-muted); word-break: break-all; }
.os-row.match { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent) inset; }
#recommend[hidden] { display: none; }
.tbl-wrap { overflow-x: auto; }
.sums { width: 100%; border-collapse: collapse; font-size: 13px; }
.sums td { padding: 8px 6px; border-bottom: 1px solid var(--color-edge); vertical-align: top; }
.sums code { word-break: break-all; font-size: 12px; }
.card code { font-size: 13px; word-break: break-word; }

/* very narrow phones: the header's button and menu button no longer fit side by side */
@media (max-width: 430px) { .topbar-actions .btn { display: none; } }
