/* Shared by every public page. Page widths come from styles.css .container. */
html { scrollbar-gutter: stable; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

main { flex: 1; }

.site-header {
  position: relative;
  z-index: 20;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 80px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  flex: none;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  line-height: 20px;
}

.nav-links { justify-content: center; }
.nav-actions { gap: 24px; }
.nav-links a, .login-link { white-space: nowrap; }

.nav-links a,
.login-link,
.footer-group a,
.operator-link {
  color: var(--muted);
  transition: color .4s var(--ease);
}

.nav-links a:hover,
.login-link:hover,
.footer-group a:hover,
.operator-link:hover { color: var(--brand); }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-block: 48px;
}

.footer-intro p {
  margin: 16px 0 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.footer-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
}

.footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 12px;
  font-size: 14px;
  line-height: 20px;
}

.footer-group h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
}

.footer-copyright { font-size: inherit; }
.company-name {
  font-family: "Sora", Manrope, sans-serif;
  font-weight: 500;
}
.operator-link { color: #a1a1aa; }

@media (max-width: 720px) {
  .nav {
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    padding-block: 8px 16px;
  }
  .nav-actions { grid-column: 2; grid-row: 1; justify-self: end; gap: 16px; }
  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 16px;
  }
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
    padding-block: 32px;
  }
  .footer-intro { grid-column: 1 / -1; }
  .footer-group { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a, .login-link, .footer-group a, .operator-link { transition: none; }
}

/* Native disclosures keep every navigation destination usable without JS. */
.nav { position: relative; }
.nav-menu > summary {
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  list-style: none;
  white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu[open] > summary, .nav-menu > summary:hover {
  color: var(--ink);
  background: #f4f4f5;
}
.nav-links { gap: 16px; }
.nav-links > a { padding: 12px 8px; }
.nav-links a[aria-current="page"], .nav-menu.is-current > summary { color: var(--brand); }
.nav-panel {
  position: absolute;
  z-index: 30;
  top: 100%;
  margin-top: 8px;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 48px rgb(24 24 27 / .1);
  --sq-r: 24px;
  max-height: calc(100svh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mega-panel {
  left: 0;
  width: min(100%, 880px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
}
.mega-panel > div { min-width: 0; }
.nav-panel a { white-space: normal; overflow-wrap: anywhere; }
.nav-label { margin: 0 0 16px; font-size: 12px; line-height: 16px; color: var(--muted); }
.nav-product { margin-bottom: 24px; }
.nav-product:last-child { margin-bottom: 0; }
.nav-product a { display: block; padding: 8px; font-size: 20px; line-height: 28px; font-weight: 600; border-radius: 8px; }
.nav-product p { margin: 0 8px; color: var(--muted); font-size: 14px; line-height: 24px; }
.nav-compare { display: flex; flex-direction: column; align-items: stretch; }
.nav-compare a, .compact-panel a { display: block; padding: 12px 16px; border-radius: 8px; font-size: 16px; line-height: 24px; }
.nav-compare a:last-child { margin-top: 16px; color: var(--brand); }
.nav-panel a:hover, .nav-panel a[aria-current="page"] { background: #f4f4f5; color: var(--brand); }
.compact-panel { min-width: 240px; padding: 16px; }
@media(max-width:960px) {
  .nav { gap: 16px; }
  .nav-links { gap: 4px; }
  .nav-actions { gap: 16px; }
  .footer-main { gap: 32px; }
}
@media(max-width:720px) {
  .nav-links { gap: 0; }
  .nav-menu > summary, .nav-links > a { padding: 12px 8px; min-height: 44px; font-size: 14px; }
  .nav-panel { left: 0; right: 0; max-height: calc(100svh - 160px); overflow-y: auto; padding: 24px; }
  .mega-panel { width: 100%; gap: 24px; }
  .nav-product a { font-size: 18px; line-height: 28px; padding: 8px 0; }
  .nav-product p { margin: 0; font-size: 12px; line-height: 20px; }
  .nav-compare a { padding: 12px 8px; font-size: 14px; line-height: 20px; }
  .nav-product { margin-bottom: 16px; }
  .compact-panel { min-width: 0; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width:380px) {
  .nav-menu > summary, .nav-links > a { padding-inline: 4px; }
  .nav-panel { padding: 16px; }
  .mega-panel { grid-template-columns: 1fr; }
}

/* Product, use case, guide and comparison pages use the same reading rhythm. */
.content-page { padding-block: 64px 80px; }
.breadcrumbs { margin: 0 0 32px; color: var(--muted); font-size: 14px; line-height: 24px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: flex; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.breadcrumbs li + li::before { content: '/'; flex: none; margin-right: 16px; color: #a1a1aa; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
.page-intro { padding-block: 16px 64px; max-width: 840px; }
.page-intro > .text-link { margin-bottom: 32px; }
.page-intro .eyebrow { margin-bottom: 24px; }
.page-intro h1 { max-width: 680px; margin: 0 0 24px; font-size: 48px; line-height: 1; letter-spacing: -.04em; font-weight: 600; }
.heading-line { display: block; max-width: 100%; text-wrap: balance; }
.page-intro .lead { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; line-height: 28px; }
.content-section { margin-bottom: 64px; scroll-margin-top: 24px; }
.content-section > h2, .home-section h2 { font-size: 30px; line-height: 36px; letter-spacing: -.03em; font-weight: 600; margin-bottom: 16px; }
.content-section > p { max-width: 840px; color: var(--muted); font-size: 16px; line-height: 28px; margin-bottom: 24px; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.content-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-card { padding: 32px; background: var(--surface); border: 1px solid var(--line); --sq-r: 24px; min-width: 0; }
.content-card h2, .content-card h3 { font-size: 20px; line-height: 28px; font-weight: 600; margin-bottom: 16px; letter-spacing: -.02em; }
.content-card p { color: var(--muted); font-size: 14px; line-height: 24px; margin-bottom: 0; }
.content-card p + p, .content-card .text-link { margin-top: 24px; }
.content-card .card-kicker { color: var(--brand); font-size: 12px; line-height: 16px; margin: 0 0 16px; }
.content-card.recommended { background: var(--brand-soft); border-color: #c7d2fe; }
.content-section .steps { margin-top: 32px; }
.content-section .section-link { margin-top: 24px; }
.content-cta { background: var(--brand-soft); border: 1px solid #c7d2fe; padding: 40px; --sq-r: 24px; }
.content-cta h2 { font-size: 30px; line-height: 36px; font-weight: 600; margin-bottom: 16px; }
.content-cta p { color: var(--muted); font-size: 16px; line-height: 28px; margin-bottom: 24px; }
.content-cta > .button { margin-top: 8px; }
.code-example { padding: 24px; margin: 24px 0; overflow-x: auto; background: #181818; color: #e4e4e7; border-radius: 12px; font-family: var(--ui-font-mono); font-size: 14px; line-height: 24px; }
.content-section code { font-family: var(--ui-font-mono); font-size: 14px; overflow-wrap: anywhere; }
.comparison-scroll, .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-top: 16px; }
.comparison-scroll:focus-visible, .table-scroll:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.comparison-scroll table, .table-scroll table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 24px; }
.comparison-scroll caption, .table-scroll caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.content-section > .table-title { margin-top: 32px; margin-bottom: 12px; color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 600; }
.content-section > .table-hint { display: none; margin: 0 0 12px; font-size: 14px; line-height: 20px; }
.comparison-scroll th, .comparison-scroll td, .table-scroll th, .table-scroll td { padding: 16px 24px; vertical-align: top; border-top: 1px solid var(--line); }
.comparison-scroll thead, .table-scroll thead { background: #f4f4f5; }
.comparison-scroll th, .table-scroll th { font-weight: 600; }
.comparison-scroll tbody th, .table-scroll tbody th { width: 20%; }
.comparison-scroll td, .table-scroll td { color: #52525b; width: 40%; }
.comparison-scroll td:nth-child(2) { background: #f8f9ff; }
.source-note { border: 1px solid var(--line); padding: 32px; border-radius: 16px; background: #f4f4f5; }
.source-note h2 { font-size: 20px; line-height: 28px; }
.source-note p { font-size: 14px; line-height: 24px; }
.source-note p:last-child { margin-bottom: 0; }
.source-links { display: flex; flex-wrap: wrap; gap: 16px 24px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 14px; line-height: 24px; }
.source-note a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.related-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-link { padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; line-height: 20px; transition: background .4s var(--ease), color .4s var(--ease); }
.related-link:hover { background: var(--brand-soft); color: var(--brand); }
.home-section { padding-bottom: 96px; }
.home-section .section-heading .text-link { margin-top: 8px; }

/* Four product values: the characters carry the identity, the copy stays concrete. */
.core-values { padding-top: 96px; scroll-margin-top: 32px; }
.core-values .section-heading { max-width: 680px; margin-bottom: 32px; }
.core-values .section-heading h2 { margin: 16px 0; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -.03em; }
.core-values-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.core-value-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 24px; padding: 32px; min-width: 0; border: 1px solid var(--line); background: var(--surface); --sq-r: 24px; }
.core-value-mark { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; color: var(--brand); background: var(--brand-soft); box-shadow: 0 4px 12px rgb(79 70 229 / .06); font-size: 60px; line-height: 1; font-weight: 600; --sq-r: 20px; }
.core-value-copy { min-width: 0; }
.core-value-copy .core-value-kicker { margin: 0 0 8px; color: var(--brand); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.core-value-copy h3 { margin: 0 0 12px; color: var(--ink); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; }
.core-value-copy > p:last-child, .core-value-copy > h3 + p { margin: 0; color: var(--muted); font-size: 14px; line-height: 24px; }
.core-value-facts { display: grid; gap: 8px; margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
.core-value-facts li { display: flex; align-items: baseline; gap: 12px; color: var(--muted); font-size: 14px; line-height: 24px; }
.core-value-facts b { flex: none; min-width: 96px; color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 600; }
.core-values-note { max-width: 840px; margin: 24px 0 0; color: #a1a1aa; font-size: 12px; line-height: 20px; }

.content-page .faq-list details { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 16px 24px; }
.content-page .faq-list summary { cursor: pointer; font-size: 16px; line-height: 24px; font-weight: 600; }
.content-page .faq-list p { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 24px; }
@media(min-width:1051px) and (max-width:1152px) {
  .hero h1 { font-size: 36px; line-height: 40px; letter-spacing: -.04em; }
}
@media(max-width:960px) {
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width:720px) {
  .content-page { padding-block: 48px 64px; }
  .page-intro { padding-block: 0 48px; }
  .page-intro h1 { font-size: 36px; line-height: 40px; }
  .page-intro .lead { font-size: 16px; line-height: 28px; }
  .content-grid, .content-grid.two-columns { grid-template-columns: 1fr; }
  .core-values { padding-top: 64px; }
  .core-values .section-heading h2 { font-size: 30px; line-height: 36px; }
  .core-values-grid { grid-template-columns: 1fr; gap: 16px; }
  .core-value-card { grid-template-columns: 64px minmax(0, 1fr); padding: 24px; gap: 16px; }
  .core-value-mark { width: 64px; height: 64px; font-size: 36px; line-height: 40px; --sq-r: 16px; }
  .core-value-copy h3 { font-size: 18px; line-height: 28px; }
  .content-card, .content-cta, .source-note { padding: 24px; }
  .content-section, .home-section { margin-bottom: 0; padding-bottom: 64px; }
  .content-cta, .source-note { margin-bottom: 48px; padding-bottom: 24px; }
  .content-section > h2, .content-cta h2 { font-size: 24px; line-height: 32px; }
  .code-example { padding: 16px; font-size: 12px; line-height: 24px; }
  .content-section > .table-hint { display: block; }
  .comparison-scroll th, .comparison-scroll td, .table-scroll th, .table-scroll td { padding: 16px; }
  .tagline h2 > span { display: inline-block; max-width: 100%; text-wrap: balance; }
}
@media(prefers-reduced-motion:reduce) {
  .nav-menu > summary, .related-link { transition: none; }
}

@media(max-width:480px) {
  .hero h1, .content-page .page-intro h1, .tagline h2 { font-size: 30px; line-height: 36px; }
}
@media(max-width:360px) {
  .hero h1, .content-page .page-intro h1, .tagline h2 { font-size: 24px; line-height: 32px; letter-spacing: -.02em; }
}
@media(max-width:380px) {
  .hero h1 > span, .tagline h2 > span { display: inline-block; max-width: 100%; text-wrap: balance; }
}

/* Approved static footer wordmark and transparent social icons. */
.footer-wordmark { display: block; width: 160px; height: 64px; color: var(--brand); overflow: visible; transform-origin: left center; transition: transform 700ms cubic-bezier(.32,.72,0,1); }
.footer-brand:is(:hover,:focus-visible) .footer-wordmark { transform: scale(1.04); }
.footer-socials { display: flex; align-items: center; gap: 4px; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; color: var(--muted); background: transparent; border-radius: 12px; transition: color 700ms cubic-bezier(.32,.72,0,1); }
.footer-social-link svg { display: block; width: 20px; height: 20px; overflow: visible; transition: transform 700ms cubic-bezier(.32,.72,0,1); }
.footer-social-link:is(:hover,:focus-visible) { color: var(--brand); }
.footer-social-link:is(:hover,:focus-visible) svg { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .footer-wordmark, .footer-social-link, .footer-social-link svg { transition: none; } }

/* Self-hosted documentation: long-form reading rendered from docs/*.md. */
.doc-intro .lead + .lead { margin-top: 16px; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.doc-article { min-width: 0; max-width: 800px; }
.doc-article .page-intro { max-width: none; padding-top: 0; }
.doc-sidebar { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 24px 0; scrollbar-width: thin; }
.doc-toc p, .doc-toc summary { margin: 0 0 12px; color: var(--ink); font-size: 14px; line-height: 24px; font-weight: 600; }
.doc-toc ol { margin: 0; padding: 0; list-style: none; }
.doc-toc a { display: block; padding: 4px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14px; line-height: 22px; transition: color .2s, border-color .2s; }
.doc-toc > ol > li > a, .doc-toc nav > ol > li > a { color: var(--ink); font-weight: 600; }
.doc-toc ol ol a { padding-left: 24px; font-size: 13px; }
.doc-toc > ol > li + li, .doc-toc nav > ol > li + li { margin-top: 4px; }
.doc-toc a:hover { color: var(--brand); }
.doc-toc a.is-active { border-left-color: var(--brand); color: var(--brand); }
.doc-toc-inline { display: none; }
@media(max-width:1024px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-sidebar { display: none; }
  .doc-article { max-width: 800px; }
  .doc-toc-inline { display: block; margin: 0 0 48px; padding: 16px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .doc-toc-inline summary { margin: 0; min-height: 28px; cursor: pointer; }
  .doc-toc-inline[open] summary { margin-bottom: 12px; }
}
.doc-section { max-width: none; }
.doc-section h3 { margin: 48px 0 16px; color: var(--ink); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; scroll-margin-top: 24px; }
.doc-section > h2 + h3, .doc-section > h2 + p + h3 { margin-top: 32px; }
.doc-section > p, .doc-list { color: #52525b; font-size: 16px; line-height: 28px; margin: 0 0 16px; }
.doc-list { padding-left: 24px; }
.doc-list li + li { margin-top: 8px; }
.doc-section strong { color: var(--ink); font-weight: 600; }
.doc-section p a, .doc-list a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.doc-section :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: #f4f4f5; color: var(--ink); font-size: 14px; }
.doc-section .code-example { margin: 16px 0 24px; white-space: pre; }
.doc-section .doc-table { margin: 16px 0 24px; }
.doc-table table { min-width: 560px; }
.doc-table td, .doc-table th { width: auto; }
.doc-note { padding: 16px 24px; border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; background: var(--brand-soft); }
@media(max-width:720px) {
  .doc-toc-inline { padding: 12px 16px; }
  .doc-section h3 { margin-top: 40px; }
  .doc-note { padding: 16px; }
}
.doc-table code { white-space: nowrap; overflow-wrap: normal; }
.doc-section .code-example.code-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.core-values-compare { margin-top: 48px; }
.core-values-compare h3 { margin: 0 0 12px; color: var(--ink); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; }
.core-values-compare .table-hint { display: none; margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 20px; }
.core-values-compare .comparison-table { min-width: 720px; }
.core-values-compare .comparison-scroll tbody th { width: 16%; }
.core-values-compare .comparison-scroll td { width: 28%; }
.related-compare { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; }
.core-values-note a { text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:720px) { .core-values-compare .table-hint { display: block; } }
.core-value-art { display: block; width: 76px; height: 76px; }
@media(max-width:720px) { .core-value-art { width: 52px; height: 52px; } }
