/* Shared navigation and phone layouts, loaded after the product illustrations. */
:root { --header-height: 80px; }
html {
  scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 20px);
  overscroll-behavior-y: none;
}
body { overflow-x: clip; }
/* Decorative paths stay inside the page content and cannot extend past the footer. */
main { overflow: clip; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: calc(var(--header-height) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
  gap: 24px;
  background: #060b13f5;
  border-bottom: 1px solid #a4c6ff1c;
  box-shadow: 0 6px 24px #00000018;
}
@supports (backdrop-filter: blur(16px)) {
  .site-header { background: #060b13e8; backdrop-filter: blur(16px); }
}
.desktop-nav { gap: 24px; }
.desktop-nav a, .site-header .login { display: inline-flex; align-items: center; min-height: 44px; }
.header-actions { gap: 20px; }
.header-actions > .button-small { min-height: 44px; }
.header-cta-short { display: none; }
.mobile-nav {
  top: 100%;
  max-height: calc(100vh - var(--header-height) - env(safe-area-inset-top));
  max-height: calc(100dvh - var(--header-height) - env(safe-area-inset-top));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  box-shadow: 0 18px 32px #0005;
}
.mobile-nav a { display: flex; align-items: center; min-height: 48px; padding: 10px 12px; border-radius: 6px; }
.mobile-nav a:hover, .mobile-nav a:focus-visible { background: #193154; }
.mobile-nav a[href$="#waitlist"] { color: #b5d0ff; }
.site-footer { padding-bottom: max(33px, env(safe-area-inset-bottom)); }
.site-footer > div { flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.site-footer a, .motion-toggle { min-height: 44px; align-items: center; }
.motion-toggle { padding-inline: 10px; }

@media (max-width: 1180px) {
  .desktop-nav { display: none; }
  .menu-button {
    display: flex; flex-direction: column; gap: 6px;
    align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; flex-shrink: 0;
    border: 1px solid #34445c; border-radius: 7px; background: #122039;
  }
  .menu-button span { width: 19px; height: 1px; background: var(--white); transition: transform .2s; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; font-size: 16px; padding-inline: 32px; }
}

@media (max-width: 800px) {
  :root { --header-height: 68px; }
  .site-header { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); gap: 12px; }
  .header-actions { gap: 12px; }
  .header-actions > .button-small { display: inline-flex; }
  .site-header .brand { font-size: 24px; gap: 8px; }
  .site-header .brand img { width: 24px; height: 24px; }
  .mobile-nav { padding-inline: 20px; }
  .site-footer { display: block; padding-top: 28px; }
  .site-footer > .brand { margin-bottom: 18px; }
  .site-footer > div {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6px 20px; max-width: none; width: 100%; font-size: 13px;
  }
  .site-footer > div > span { grid-column: 1 / -1; margin-bottom: 8px; font-size: 12px; color: #9fb1ca; }
  .site-footer > div > a { justify-content: flex-start; }
  .motion-toggle { justify-self: start; font-size: 12px; }
  .text-link { min-height: 44px; }
  .waitlist-form-wrap input, .waitlist-form-wrap select { min-height: 48px; font-size: 16px; }
}

@media (max-width: 600px) {
  .site-header { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .header-actions { gap: 8px; }
  .header-actions > .login { display: none; }
  .header-cta-full { display: none; }
  .header-cta-short { display: inline; }
  .header-actions > .button-small { padding: 10px 12px; font-size: 12px; }
  .mobile-nav { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px max(20px, env(safe-area-inset-bottom)); }
  .hero-actions, .ai-page-hero > .hero-actions, .comms-hero > .hero-actions { flex-wrap: wrap; gap: 12px 20px; }
  .page-home .hero-lead-copy .hero-actions { gap: 8px 20px; }
  .page-home .hero-lead-copy > p { font-size: 16px; line-height: 1.65; }
  .page-home .hero-lead-copy .access-note { font-size: 11px; line-height: 1.65; margin: 12px auto 0; }
  .page-home .hero-lead-copy .button, .page-home .hero-lead-copy .text-link { font-size: 13px; }
  .page-home .product-hero { padding-top: calc(102px + env(safe-area-inset-top)); }
  .page-home .product-hero h1 { font-size: clamp(2.6rem, 12vw, 3.2rem); }
  .hero-product-caption, .page-home .hero-product-caption { font-size: 12px; }
  .hero-product-caption > a { font-size: 13px; }
  .x-chrome { height: 44px; }
  .x-theme, .x-mobile-nav > button { min-width: 44px; min-height: 44px; }
  .x-mobile-nav { gap: 8px; padding: 9px 10px; }
  .x-mobile-nav label { font-size: 11px; }
  .x-mobile-nav select { min-height: 44px; font-size: 16px; padding-inline: 8px; }
  .x-view { overscroll-behavior-y: auto; }
  .x-btn, .x-segment button, .x-period button, .x-link { min-height: 44px; }
  .x-agent-list strong { font-size: 10px; }
  .page-home .x-speech p { font-size: 13px; line-height: 1.7; }
  .x-app-foot { font-size: 10px; line-height: 1.6; }
  .x-search input, .x-report-filters select, .cb-filters select, .p-brand-controls input { font-size: 16px; min-height: 44px; }
  .x-report-filters select { max-width: none; width: 100%; }
  .cb-tabs { gap: 8px; flex-wrap: wrap; }
  .cb-health-tabs .x-btn { min-height: 44px; }
  .cb-person-link, .cb-policy-link, .cb-row-open, .x-report-filters .x-segment button { min-height: 44px; }
  .cb-row-open { min-width: 44px; }
  .ai-theater button, .p-art-button, .p-reply-options > button, .p-spoken > button { min-height: 44px; }
  .p-swatches > button { width: 44px; height: 44px; }
  .p-whisper-card { flex-wrap: wrap; }
  .p-whisper-card > div { flex: 1; min-width: 120px; }
  .p-whisper-card > button { width: 100%; }
  .p-art-title { flex-wrap: wrap; }
  .p-feature-detail summary, .detail-jump a { min-height: 44px; align-content: center; }
  .flow-run, .flow-canvas-tools > button { min-height: 44px; }
  .flow-canvas-tools > [data-flow-zoom] { min-width: 44px; }
  .flow-template, .flow-outcome { flex-direction: column; align-items: stretch; font-size: 12px; }
  .flow-template select, .flow-outcome select { width: 100%; max-width: none; min-height: 44px; font-size: 16px; }
  .flow-consent { min-height: 44px; font-size: 12px; }
  .flow-consent input { width: 20px; height: 20px; flex-shrink: 0; }
  .flow-canvas-tools { flex-wrap: wrap; }
  .comms-capabilities p, .client-story-copy > p, .ai-detail-intro > p, .ai-detail-rows p, .ai-beyond-grid p { font-size: 16px; }
  .waitlist-form-wrap { padding: 24px 20px; }
  .form-pair { grid-template-columns: 1fr; }
  .form-note { font-size: 12px; }
}

@media (max-width: 360px) {
  .site-header { gap: 8px; }
  .site-header .brand { font-size: 22px; gap: 7px; }
  .site-header .brand img { width: 22px; height: 22px; }
  .header-actions > .button-small { padding-inline: 10px; }
  .page-home .hero-lead-copy .hero-actions { flex-direction: column; }
  body main h2 { overflow-wrap: anywhere; }
  .ai-closing h2 { font-size: 2.1rem; }
  .p-network { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .p-network-node { gap: 8px; padding-inline: 10px; font-size: 11px; }
  .ai-page-hero > h1, .comms-hero > h1, .p-hero h1, .detail-hero h1 { font-size: 2.5rem; }
  .x-workflow-actions > div { flex-wrap: wrap; justify-content: stretch; }
  .x-workflow-actions .x-btn { flex: 1; }
  .x-metrics.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-channel-bars > div { grid-template-columns: 1fr 1fr; }
  .p-channel-bars > div > i { grid-column: 1 / -1; }
  .cb-coverage-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-button span { transition: none; }
}
