/* The render template gates this sheet to narrow viewports on phone-size screens. */
:root {
  --phone-header-size: 68px;
  --phone-header-gutter: clamp(12px, 4vw, 22px);
  scroll-padding-top: calc(var(--phone-header-size) + 12px);
}

.header {
  height: var(--phone-header-size);
  min-height: var(--phone-header-size);
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0 var(--phone-header-gutter);
}
.header .brand { flex: none; gap: 8px; }
.header .brand .brand-name img { width: clamp(84px, 27vw, 120px); }
.header .header-actions { width: auto; margin-left: auto; gap: 4px; }
.header-actions > .theme-toggle, .header-actions > .header-login { display: none; }
.header-actions .header-cta { padding-inline: 10px; white-space: nowrap; }
.header-actions .menu-toggle { min-width: 44px; padding-inline: 4px; }

.mobile-nav {
  max-height: calc(100dvh - var(--phone-header-size));
  padding-block: 8px max(16px, env(safe-area-inset-bottom));
}
.phone-menu-actions[hidden] {
  /* The neutral markup stays hidden wherever this stylesheet does not apply. */
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-block: 4px 8px;
}
.phone-menu-actions a { font-size: .9375rem; font-weight: 500; min-height: 44px; padding: 8px 0; }
.phone-menu-actions .theme-toggle { width: 44px; }

.hero.hero-video-trial {
  min-height: min(calc(100svh - var(--phone-header-size)), 620px);
  padding-top: clamp(64px, 16svh, 132px);
  padding-bottom: 64px;
  justify-content: flex-end;
}
.hero-video-trial .hero-copy { width: 100%; min-width: 0; }
.hero-video-trial h1 { font-size: clamp(38px, 10.6vw, 52px); text-wrap: balance; }
.hero-video-trial .hero-summary { max-width: 32ch; margin-top: 18px; }
.hero-video-trial .actions { gap: 8px 16px; margin-top: 20px; }
.hero-video-trial .actions .text-link { min-height: 44px; }
.hero-video-trial .hero-video-media :is(video, img) { object-position: 50% 48%; }
.hero-video-trial .hero-video-toggle { right: var(--gutter); bottom: 12px; }

.access-page { padding-block: 32px 60px; }
.access-intro { margin-bottom: 28px; }
.access-intro .eyebrow { margin-bottom: 16px; }
.access-intro > p:last-child { margin-top: 16px; }
.access-field, .access-interest { margin-bottom: 20px; }
.access-form, .access-form fieldset, .access-field input, .access-field textarea { min-width: 0; max-width: 100%; }

/* Let narrow-page elements fit without masking horizontal scrolling. */
.demo-section .product-demo-stage, .demo-section .product-demo-frame { min-width: 0; max-width: 100%; }
.footer-signature, .footer-wordmark { min-width: 0; }
.footer-wordmark img { max-width: 100%; }

@media (max-width: 359px) {
  .header .brand { gap: 6px; min-width: 0; flex-shrink: 1; }
  .header .brand .brand-name { min-width: 0; }
  .header .brand .brand-name img { width: clamp(64px, 23vw, 82px); max-width: 100%; }
  .header-actions .header-cta { padding-inline: 8px; font-size: .8125rem; }
  .header .brand .brand-emblem { flex-basis: 30px; width: 30px; }
  .header .brand .brand-emblem img { width: 30px; }
  .hero-video-trial .actions .button { padding-inline: 14px; }
  .footer-legal { flex-wrap: wrap; gap: 0 12px; }
  .footer-legal > span { white-space: normal; }
  .legal-links { min-width: 0; max-width: 100%; margin-inline-start: auto; }
}

/* Preserve access to Sign in when the menu cannot run. */
@media (scripting: none) {
  .header-actions > .header-login { display: inline-flex; }
}
