/* 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; }
.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; }
  .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; }
}
