/* ===================================================================
   Inner pages (services, guides, legal, signup, compare)
   Builds on styles.css tokens. Header is always visible here.
   =================================================================== */
.page-body { overflow-x: clip; }
.page-body .header-logo { transform: none !important; }
.page-body .header-glass { opacity: 1; transform: none; }
/* ...except while the header is hidden on the way down: the glass rides up with it */
.page-body.is-header-hidden .header-glass { transform: translateY(-110%); }
.page-body .header-buttons .icon-btn { transform: none !important; opacity: 1 !important; }

.page { display: flex; flex-direction: column; gap: 3rem; padding: 7.5rem var(--px) 4rem; max-width: 80rem; margin: 0 auto; width: 100%; }
@media (min-width: 1024px) { .page { padding-top: 9rem; gap: 4rem; } }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; color: #6b7378; }
.crumbs a { color: #6b7378; }
.crumbs a:hover { color: var(--black); }
.crumb-sep { color: #b3b9bd; }

.page-hero { display: flex; flex-direction: column; gap: 1rem; max-width: 60rem; }
.page-hero .section-label.is-visible { opacity: 1; transform: none; }
.page-title { font-size: 2.5rem; font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: var(--black); }
@media (min-width: 768px)  { .page-title { font-size: 3.5rem; } }
@media (min-width: 1280px) { .page-title { font-size: 4.5rem; letter-spacing: -0.06em; } }
.page-title .t-grey { color: var(--grey); }
.page-lede { font-size: 1.15rem; line-height: 1.5; color: #4b5257; max-width: 46rem; }
@media (min-width: 1024px) { .page-lede { font-size: 1.35rem; } }
.page-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: .5rem; }
.page-actions .pill-label { font-size: .8rem; padding: 0 1.25rem 0 1.5rem; }
.page-actions .pill-icon { width: 2.25rem; height: 2.25rem; }

/* prose blocks (legal, guides, service copy) */
.prose { max-width: 46rem; color: #2b3136; font-size: 1.05rem; line-height: 1.65; }
.prose h2 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--black); margin: 2.5rem 0 .9rem; }
.prose h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--black); margin: 1.75rem 0 .5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.25rem; padding: 0; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--grey); }
.prose a { color: var(--black); text-decoration: underline; text-decoration-color: rgba(30,35,44,.3); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--black); }
.prose code, .prose pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.prose code { background: rgba(30,35,44,.07); padding: .1rem .35rem; border-radius: .3rem; font-size: .92em; }
.prose pre { background: var(--deep); color: #d4d4d4; padding: 1rem 1.25rem; border-radius: 1rem; overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid rgba(30,35,44,.12); vertical-align: top; }
.prose th { font-weight: 600; color: var(--black); }
.prose blockquote { margin: 1.25rem 0; padding: .75rem 1.25rem; border-left: 3px solid var(--soft); color: #4b5257; }
.prose .meta { font-size: .9rem; color: #6b7378; }

/* two-column: prose + sticky aside */
.page-cols { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .page-cols { grid-template-columns: minmax(0, 1fr) 22rem; gap: 4rem; } }
.page-aside { position: sticky; top: 8rem; display: flex; flex-direction: column; gap: 1rem; }
.aside-card { background: var(--soft); border-radius: 1.5rem; padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; font-size: .95rem; }
.aside-card.dark { background: var(--deep); color: var(--white); }
.aside-card h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.aside-card .kv { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid rgba(30,35,44,.1); }
.aside-card.dark .kv { border-color: rgba(255,255,255,.1); }
.aside-card .kv span:first-child { color: #6b7378; }
.aside-card.dark .kv span:first-child { color: var(--grey); }
.aside-card .pill { align-self: flex-start; margin-top: .5rem; }
.aside-card .pill-label { font-size: .8rem; padding: 0 1.25rem 0 1.5rem; }
.aside-card .pill-icon { width: 2.25rem; height: 2.25rem; }
.toc { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; }
.toc a { color: #4b5257; }
.toc a:hover { color: var(--black); }

/* status + access badges */
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; background: rgba(30,35,44,.08); color: var(--black); white-space: nowrap; }
.badge i { width: .45rem; height: .45rem; border-radius: 999px; background: #8a9196; }
.badge.live i { background: #3ddc84; }
.badge.rolling i { background: #e0a53a; }
.badge.roadmap i { background: #8a9196; }
.badge.dark { background: rgba(255,255,255,.1); color: var(--white); }

/* catalog grids */
/* Card grids are flex rows whose cards grow, so a last row never has empty slots:
   3 cards + 2 cards renders as a full row of three over a full row of two. */
.card-grid { display: flex; flex-wrap: wrap; gap: 1rem; }
.card-grid > * { flex: 1 1 100%; min-width: 0; }
@media (min-width: 640px)  { .card-grid > * { flex-basis: calc(50% - .5rem); } }
@media (min-width: 1024px) { .card-grid { gap: 1.25rem; } .card-grid > * { flex-basis: calc(33.333% - .84rem); } }
@media (min-width: 1280px) { .card-grid.four > * { flex-basis: calc(25% - .94rem); } }
.svc-card { display: flex; flex-direction: column; gap: .75rem; background: var(--soft); border-radius: 1.5rem; padding: 1.5rem; color: var(--black); transition: background-color .2s ease; }
.svc-card:hover { background: #ccd5d9; }
.svc-card-head { display: flex; align-items: center; gap: .75rem; }
.svc-card .app-ico { width: 2.5rem; height: 2.5rem; border-radius: 28%; background: var(--deep); border: 0; box-shadow: none; flex: none; }
.svc-card .app-ico img { width: 52%; height: 52%; }
.svc-card .app-ico.mono { color: #fff; font: 700 .9rem/1 Inter, sans-serif; }
.svc-card h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.svc-card .svc-cat { font-size: .8rem; color: #6b7378; }
.svc-card p { font-size: .95rem; color: #4b5257; line-height: 1.45; margin: 0; flex: 1; }
.svc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .25rem; }
.svc-card.dark { background: var(--deep); color: var(--white); }
.svc-card.dark p { color: #c9cfd3; }
.svc-card.dark .svc-cat { color: var(--grey); }
.svc-card.dark:hover { background: #151b22; }

/* filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter-chip { padding: .45rem .9rem; border-radius: 999px; background: var(--soft); color: var(--black); font-size: .85rem; font-weight: 500; border: 1px solid transparent; }
.filter-chip.is-on, .filter-chip:hover { background: var(--deep); color: var(--white); }
.search-box { flex: 1 1 14rem; min-width: 12rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid rgba(30,35,44,.15); background: #fff; font: inherit; font-size: .95rem; color: var(--black); outline: none; }
.search-box:focus { border-color: var(--black); }

/* section blocks on inner pages */
.page-section { display: flex; flex-direction: column; gap: 1.25rem; }
.page-section > h2 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
@media (min-width: 1024px) { .page-section > h2 { font-size: 2.25rem; } }
.three-up { display: flex; flex-wrap: wrap; gap: 1rem; }
.three-up > * { flex: 1 1 100%; min-width: 0; }
@media (min-width: 1024px) { .three-up { gap: 1.25rem; } .three-up > * { flex-basis: calc(33.333% - .84rem); } }
.step-card { background: var(--soft); border-radius: 1.5rem; padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.step-card .how-num { font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: #6b7378; }
.step-card h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.step-card p { color: #4b5257; font-size: .98rem; line-height: 1.5; margin: 0; }
.step-card.dark { background: var(--deep); color: var(--white); }
.step-card.dark p { color: #c9cfd3; }
.step-card.dark .how-num { color: var(--grey); }

/* FAQ */
.page-faq { display: flex; flex-direction: column; gap: .25rem; max-width: 52rem; }
.page-faq h2 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: .75rem; }
.faq { border-top: 1px solid rgba(30,35,44,.12); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.4rem; color: var(--grey); transition: transform .25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 1.1rem; color: #4b5257; line-height: 1.55; }

/* comparison table */
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; overflow: hidden; border-radius: 1.25rem; border: 1px solid rgba(30,35,44,.12); }
.cmp-table th, .cmp-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid rgba(30,35,44,.1); vertical-align: top; }
.cmp-table thead th { background: var(--deep); color: var(--white); font-weight: 600; }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table td:first-child { font-weight: 600; color: var(--black); }
.cmp-table .yes { color: #157a4a; font-weight: 600; }
.cmp-table .no { color: #9a3b3b; }

/* CTA band reused on inner pages */
.page-cta { background: var(--deep); color: var(--white); border-radius: 2rem; padding: 2.5rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 1024px) { .page-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 3rem 3.5rem; border-radius: 2.5rem; } }
.page-cta h2 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; margin: 0; }
@media (min-width: 1024px) { .page-cta h2 { font-size: 2.5rem; } }
.page-cta p { color: #c9cfd3; margin: .35rem 0 0; max-width: 34rem; }
.page-cta .pill-label { font-size: .8rem; padding: 0 1.25rem 0 1.5rem; }
.page-cta .pill-icon { width: 2.25rem; height: 2.25rem; }

/* footer legal row */
/* footer legal row: styled in styles.css (.footer-info .footer-legal) */

/* cookie consent */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 998;
  background: var(--deep); color: var(--white); border-radius: 1.5rem; padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 30px 60px rgba(0,0,0,.35);
  transform: translateY(120%); opacity: 0;
}
@media (min-width: 768px) { .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 30rem; } }
.cookie-banner.is-open { transform: none; opacity: 1; }
.cookie-banner p { margin: 0; font-size: .95rem; line-height: 1.5; color: #c9cfd3; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions .pill-label { font-size: .75rem; padding: 0 1rem 0 1.25rem; }
.cookie-actions .pill-icon { width: 2rem; height: 2rem; }
.cookie-prefs { display: none; flex-direction: column; gap: .5rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: .75rem; }
.cookie-banner.show-prefs .cookie-prefs { display: flex; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.cookie-row small { display: block; color: var(--grey); font-size: .8rem; }
.switch { position: relative; width: 2.6rem; height: 1.5rem; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: rgba(255,255,255,.18); border-radius: 999px; transition: background-color .2s; }
.switch span::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 999px; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: #8fe3c1; }
.switch input:checked + span::after { transform: translateX(1.1rem); }
.switch input:disabled + span { opacity: .5; }

/* reveal helper for inner pages */
[data-reveal] { opacity: 0; transform: translateY(18px); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- /services/ launch lineup ---------- */
.lineup-grid.three-up { gap: 1rem; }
@media (min-width: 768px)  { .lineup-grid.three-up > * { flex-basis: calc(50% - .5rem); } }
@media (min-width: 1024px) { .lineup-grid.three-up > * { flex-basis: calc(33.333% - .67rem); } }
.lineup-items { display: flex; flex-direction: column; gap: .75rem; }
.lineup-item { display: flex; align-items: center; gap: .85rem; color: var(--deep); text-decoration: none; }
.lineup-item .app-ico { width: 2.5rem; height: 2.5rem; flex: none; background: var(--deep); box-shadow: none; }
.lineup-item .app-ico.mono { display: flex; align-items: center; justify-content: center; font: 700 .8rem/1 Inter, sans-serif; color: var(--white); }
.lineup-item > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.lineup-item strong { font-weight: 600; }
.lineup-item .svc-cat { font-size: .8rem; color: #6b7378; }
.lineup-item:hover strong { text-decoration: underline; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-link { background: var(--deep); color: var(--white); font-size: .85rem; padding: .5rem .95rem; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.tag-link:hover { background: #2a313a; }

/* ---------- /mcp/ ---------- */
.mcp-hero-block { gap: 2rem; }
.mcp-install {
  background: var(--soft); border-radius: 1.5rem; padding: 1.25rem;
  display: flex; flex-direction: column; gap: .8rem; max-width: 46rem; width: 100%;
}
@media (min-width: 1024px) { .mcp-install { padding: 1.5rem; border-radius: 1.75rem; } }
.mcp-install-copy { display: flex; flex-direction: column; gap: .3rem; }
.mcp-install-text { font-size: .95rem; line-height: 1.45; color: #4b5257; margin: 0; }
.mcp-install-note { font-size: .85rem; line-height: 1.5; color: #6b7378; margin: 0; }
.mcp-install-note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: rgba(30,35,44,.08); padding: .1rem .3rem; border-radius: .3rem; }
.mcp-install .hero-cmd { min-width: 0; }
.mcp-install .hero-cmd.is-json .hero-cmd-prompt { font-size: .85em; letter-spacing: 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mcp-tools { min-width: 40rem; }
.mcp-tools td code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: rgba(30,35,44,.07); padding: .1rem .35rem; border-radius: .3rem; }
.mcp-tools thead th code { background: none; }
.mcp-tools td:first-child { white-space: nowrap; }
.mcp-tools td:first-child .badge { margin-left: .4rem; font-size: .62rem; padding: .22rem .5rem; }
.mcp-args { color: #4b5257; }
.mcp-args code { display: inline-block; margin: .1rem .15rem .1rem 0; }

.mcp-diagram { margin: .5rem 0 0; display: flex; flex-direction: column; gap: .75rem; }
.mcp-diagram svg { width: 100%; height: auto; display: block; }
.mcp-diagram figcaption { font-size: .9rem; color: #6b7378; max-width: 46rem; }
.mcp-diagram-scroll { width: 100%; }
@media (max-width: 767px) { .mcp-diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; } .mcp-diagram svg { min-width: 34rem; } }

.prose pre.mcp-transcript { font-size: .72rem; line-height: 1.55; white-space: pre; }
@media (min-width: 768px) { .prose pre.mcp-transcript { font-size: .8rem; } }
.prose pre.mcp-url { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; }
.mcp-hero-block .page-hero { max-width: 46rem; }

/* /mcp/ tools table: stacked cards on phones, a real table from 768px up */
@media (max-width: 767px) {
  .table-scroll { overflow-x: visible; }
  .mcp-tools { display: block; min-width: 0; border: 0; border-radius: 0; }
  .mcp-tools thead { display: none; }
  .mcp-tools tbody, .mcp-tools tr, .mcp-tools td { display: block; }
  .mcp-tools tr { background: var(--soft); border-radius: 1.25rem; padding: 1rem 1.1rem; margin-bottom: .75rem; }
  .mcp-tools td { border: 0; padding: .15rem 0; }
  .mcp-tools td:first-child { white-space: normal; font-size: 1rem; margin-bottom: .2rem; }
  .mcp-tools td:first-child code { background: none; padding: 0; font-weight: 600; }
  .mcp-tools .mcp-args { padding-bottom: .4rem; }
  .mcp-tools .mcp-args code { background: rgba(30,35,44,.12); }
}
