/* Larger navigation and primary actions; captions remain visually secondary. */
:root { --bar-button-height: 42px; --bar-gap: 8px; }
/* Balance headings and keep short final lines out of reading copy. */
:is(h1, h2, h3) { text-wrap: balance; }
:is(main, footer) :is(p, li, blockquote, figcaption, summary) { text-wrap: pretty; }
.nav-wrap .wordmark img { width: 112px; }
.nav-wrap #site-navigation { font-size: 13px; gap: 20px; }
.nav-actions { margin-left: auto; }
.nav-actions .button { min-height: 42px; height: 42px; padding-inline: 18px; font-size: 12px; }
.hero-copy .trial, .legal-actions .button { min-height: 48px; height: 48px; padding-inline: 24px; font-size: 14px; }
.view-switch button { min-height: 42px; height: 42px; padding-inline: 18px; font-size: 12px; }
.view-switch svg { width: 14px; height: 14px; }
.section-label, .eyebrow, .stack-strip .eyebrow, .step-kicker,
.customer-quote figcaption, .human-preview-body .preview-kicker,
.footer-groups > * > :is(span, label), .legal-updated { font-size: 15px; }
.step-address, .browser-address, .agent-file-label { font-size: 11px; }
.footer-legal { font-size: 12px; }
.hero-copy .built-for { font-size: 12px; letter-spacing: 0; white-space: normal; flex-wrap: wrap; gap: 8px; }
.hero-copy .built-for-tail { flex-basis: auto; margin-top: 0; }
.hero-copy .engine-chip { width: 112px; height: 30px; }
@media (max-width: 1040px) {
  #mobile-menu { display: flex; align-items: center; justify-content: center; flex-direction: column; flex: none; gap: 5px; width: 32px; height: 42px; padding: 0; margin: 0; background: none; }
  #mobile-menu span { display: block; width: 17px; height: 1.5px; background: #1d2c1b; }
  .nav-wrap #site-navigation { position: absolute; top: calc(100% + 8px); bottom: auto; left: 0; right: 0; transform: none; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border: 1px solid #d7ded3; border-radius: 18px; background: #fff; box-shadow: 0 8px 16px #00000009; }
  .nav-wrap[data-menu-open] #site-navigation { display: flex; }
  .nav-wrap #site-navigation a { padding: 12px 14px; }
}
@media (max-width: 599px) {
  .nav-wrap .wordmark img { width: 104px; height: auto; }
  .nav-wrap .wordmark { min-width: 0; padding-left: 10px; }
  .nav-wrap { gap: 6px; padding-inline: 8px; }
  .nav-actions { gap: 6px; }
  .nav-actions .button, .view-switch button { font-size: 11px; padding-inline: 12px; }
  .nav-wrap #site-navigation { top: calc(100% + 8px); bottom: auto; max-height: calc(100svh - 150px); overflow-y: auto; }
}
@media (max-width: 389px) {
  .nav-wrap { gap: 3px; padding-inline: 6px; }
  .nav-wrap .wordmark img { width: 96px; }
  .nav-actions { gap: 4px; }
  .nav-actions .button, .view-switch button { font-size: 10px; padding-inline: 7px; }
  #mobile-menu { width: 28px; }
}

/* Phones show the wordmark and the menu button; both calls to action move into the menu. */
.nav-wrap #site-navigation .menu-cta { display: none; }
@media (max-width: 599px) {
  .nav-wrap .nav-actions { display: none; }
  .nav-wrap #mobile-menu { margin-left: auto; width: 44px; height: 44px; }
  .nav-wrap #site-navigation .menu-cta { display: flex; justify-content: center; margin-top: 8px; padding: 12px 14px; border: 1px solid #0c110e; border-radius: 99px; font: 13px/1.3 var(--mono); color: #0c110e; }
  .nav-wrap #site-navigation .menu-cta-primary { background: #0c110e; color: #fff; }
}

.nav-actions .login-link { display: inline-flex; align-items: center; height: 42px; padding-inline: 10px; font: 12px/1.2 var(--mono); color: inherit; text-decoration: none; white-space: nowrap; }
.nav-actions .login-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-wrap #site-navigation .menu-login { display: none; }
@media (max-width: 599px) {
  .nav-wrap #site-navigation .menu-login { display: block; }
}
@media (min-width: 1041px) {
  .nav-wrap #site-navigation { position: static; transform: none; margin-left: auto; }
  .nav-wrap .nav-actions { margin-left: 28px; }
}
