/* Masthead, introduction, hardware strip, and deployment signup. */
.bagel-masthead, .bagel-introduction, .bagel-hardware {
  --intro-inset: 24px;
  --brand-orange: #ae3e06;
  --porcelain: #fbf9f6;
  --ink: #332d29;
  color: var(--ink);
  background: var(--porcelain);
}
.bagel-masthead *, .bagel-introduction *, .bagel-hardware * { box-sizing: border-box; }
.bagel-masthead { background: var(--brand-orange); color: #fff; }
.bagel-masthead__inner {
  width: min(1248px, calc(100% - var(--intro-inset) * 2));
  margin-inline: auto;
  min-height: 88px;
  display: grid;
  grid-template: "brand weather" 40px "nav nav" 44px / minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  align-content: center;
}
.bagel-masthead a { color: inherit; text-decoration: none; }
.bagel-masthead__brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  width: 133px;
  min-height: 44px;
}
.bagel-masthead__brand img { display: block; width: 100%; height: auto; }
.bagel-masthead__nav {
  grid-area: nav;
  display: flex;
  gap: 13px;
  align-items: center;
  margin-left: -6px;
}
.bagel-masthead__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 6px;
  min-width: 44px;
  min-height: 44px;
  font: 500 1rem/1.375 "Zilla Slab", Georgia, serif;
  white-space: nowrap;
}
.bagel-masthead__nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.bagel-masthead a:focus-visible { outline: 2px solid white; outline-offset: 1px; }
.bagel-masthead .viewer-location {
  grid-area: weather;
  display: flex;
  align-items: center;
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
  font: 400 .625rem/1.3 "JetBrains Mono", monospace;
  letter-spacing: 1.4px;
  white-space: nowrap;
}
.viewer-location-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.viewer-weather-temp, .viewer-weather-icon { flex: none; }
.viewer-weather-icon { width: 15px; height: 15px; }
.viewer-weather-icon:empty, .viewer-weather-temp:empty { display: none; }
.weather-symbol {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: url("/weather-symbols.bcd33d49.svg") var(--weather-x, 0%) 0 / 700% 100% no-repeat;
  mask: url("/weather-symbols.bcd33d49.svg") var(--weather-x, 0%) 0 / 700% 100% no-repeat;
}
.weather-partly { --weather-x: 16.6667%; }
.weather-cloud { --weather-x: 33.3333%; }
.weather-fog { --weather-x: 50%; }
.weather-rain { --weather-x: 66.6667%; }
.weather-snow { --weather-x: 83.3333%; }
.weather-storm { --weather-x: 100%; }
.bagel-introduction__inner {
  margin-inline: auto;
  width: min(1248px, calc(100% - var(--intro-inset) * 2));
  padding-block: 26px 24px;
}
.bagel-introduction h1 {
  margin: 0;
  max-width: 1050px;
  color: var(--brand-orange);
  font: 500 2.25rem/1.08334 "Fira Sans Condensed", "Arial Narrow", sans-serif;
  letter-spacing: -.01em;
}
.bagel-introduction p {
  margin: 12px 0 0;
  max-width: 824px;
}
.bagel-introduction p,
.bagel-hardware h2 {
  font: 500 1rem/1.375 var(--font-body);
  color: var(--ink);
  letter-spacing: 0;
}

.bagel-hardware {
  --logo-height: 51.06px;
  --logo-inset: 24px;
  padding-block: 15px 71px;
}
.bagel-hardware h2 {
  display: grid;
  place-content: center;
  min-height: 24px;
  margin: 0 var(--intro-inset);
  text-align: center;
}
.bagel-hardware__window {
  display: flex;
  align-items: center;
  width: calc(100% - 24px);
  height: 55px;
  margin: 5px auto 10px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black var(--logo-inset), black calc(100% - var(--logo-inset)), transparent);
}
.bagel-hardware__track {
  display: flex;
  flex: none;
  align-items: center;
  margin-left: var(--logo-inset);
  animation: bagel-hardware-scroll 32s linear infinite;
}
.bagel-hardware__track img {
  display: block;
  flex: none;
  width: auto;
  max-width: none;
  height: var(--logo-height);
}
.bagel-hardware__window:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; mask-image: none; }
.bagel-hardware__window:focus-visible .bagel-hardware__track { animation-play-state: paused; }
/* The phone logo artwork uses the original six-mark sequence and its authored edge fade. */
.bagel-hardware__track picture { display: block; flex: none; }
@media (max-width: 599px) {
  .bagel-hardware__track img { width: 917px; height: 52px; margin-inline-end: -.68px; }
  .bagel-hardware__window {
    mask-image: linear-gradient(to right, transparent, rgb(0 0 0 / .13) 6px,
      rgb(0 0 0 / .62) 14.4px, black 24px, black calc(100% - 24px),
      rgb(0 0 0 / .62) calc(100% - 14.4px), rgb(0 0 0 / .13) calc(100% - 6px), transparent);
  }
}
@keyframes bagel-hardware-scroll { to { transform: translateX(-50%); } }

.bagel-deploy {
  position: relative;
  width: min(896px, calc(100% - var(--intro-inset) * 2));
  margin: 0 auto;
  font: 400 1rem/1.375 "Zilla Slab", Georgia, serif;
}
.bagel-deploy .interest-controls { display: grid; gap: 8px; }
.bagel-deploy__field {
  position: relative;
  display: block;
  min-width: 0;
  height: 52px;
  border: 1px solid rgb(51 45 41 / 65%);
  border-radius: 4px;
  cursor: text;
}
.bagel-deploy__field span {
  position: absolute;
  top: 14px;
  left: 15px;
  pointer-events: none;
}
.bagel-deploy__field input {
  margin: 0;
  width: 100%;
  height: 100%;
  padding: 16px 15px 1px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  appearance: none;
}
.bagel-deploy__field input::placeholder { opacity: 0; }
.bagel-deploy__field:focus-within span, .bagel-deploy__field:has(input:not(:placeholder-shown)) span {
  top: 2px;
  font-size: .875rem;
}
.bagel-deploy__field input:focus::placeholder { color: var(--ink); opacity: .7; }
.bagel-deploy__field:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; z-index: 1; }
.bagel-deploy__field input:focus { outline: 0; }
.bagel-deploy__field:has([aria-invalid="true"]) { border-color: var(--brand-orange); }
.bagel-deploy .model-interest-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid var(--brand-orange);
  border-radius: 4px;
  color: #fff;
  background: var(--brand-orange);
  font: 500 1rem/1.375 "Zilla Slab", Georgia, serif;
  cursor: pointer;
}
.bagel-deploy .model-interest-submit:hover .model-interest-submit-label { text-decoration: underline; text-underline-offset: .25em; }
.bagel-deploy .model-interest-submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bagel-deploy .model-interest-submit:disabled { cursor: default; }
.bagel-deploy .interest-arrow { width: 16px; height: 16px; flex: none; }
.bagel-deploy .interest-arrow-text { display: none; }
.bagel-deploy .model-interest-trap, .bagel-deploy:not(:focus-within) #model-interest-note {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.bagel-deploy [hidden], .bagel-deploy .model-interest-status:empty { display: none; }
.bagel-deploy p { margin: 8px 0 0; font: 400 .875rem/1.4286 "Zilla Slab", Georgia, serif; }
.bagel-deploy .interest-email-error, .bagel-deploy .model-interest-status[data-state="error"] { font-weight: 500; }

@media (max-width: 359px) {
  .bagel-masthead, .bagel-introduction, .bagel-hardware { --intro-inset: 16px; }
  .bagel-masthead__brand { width: 119px; }
}
@media (max-width: 299px) {
  .bagel-masthead__inner { grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; }
  .bagel-masthead__brand { width: 96px; }
  .bagel-masthead .viewer-location { letter-spacing: .25px; gap: 3px; }
}
@media (min-width: 520px) {
  .bagel-masthead { --intro-inset: 18px; }
  .bagel-masthead__inner {
    min-height: 64px;
    grid-template: "brand nav weather" auto / auto auto minmax(0, 1fr);
    column-gap: 13px;
  }
  .bagel-masthead__brand { width: 124px; }
  .bagel-masthead__nav { margin: 0; gap: 7px; }
}
@media (min-width: 600px) {
  .bagel-masthead { --intro-inset: 28px; }
  .bagel-introduction, .bagel-hardware { --intro-inset: 28px; }
  .bagel-masthead__brand { width: 133px; }
  .bagel-masthead__inner { column-gap: 18px; }
  .bagel-masthead__nav { gap: 17px; }
  .bagel-masthead .viewer-location { gap: 7px; }
  .viewer-weather-icon { width: 16px; height: 16px; }
  .bagel-introduction__inner { padding-block: 28px 24px; }
  .bagel-introduction h1 {
    --hero-size: clamp(36px, round(nearest, 6.1vw, 1px), 50px);
    font-size: var(--hero-size);
    line-height: round(down, calc(var(--hero-size) * 1.145), 1px);
  }
  .bagel-introduction p { margin-top: 14px; max-width: 750px; }
  .bagel-hardware { --logo-inset: 22px; --logo-height: 62px; padding-block: 21px 34px; }
  .bagel-hardware h2 { min-height: 28px; }
  .bagel-hardware__window { width: calc(100% - var(--intro-inset) * 2); height: 70px; margin-block: 7px 23px; }
  .bagel-deploy { width: min(746px, calc(100% - var(--intro-inset) * 2)); }
  .bagel-deploy .interest-controls { grid-template-columns: minmax(0, 1fr) 224px; gap: 0; }
  .bagel-deploy__field { border-radius: 4px 0 0 4px; border-right: none; }
  .bagel-deploy .model-interest-submit { border-radius: 0 4px 4px 0; }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .bagel-masthead, .bagel-introduction, .bagel-hardware { --intro-inset: 32px; }
}
@media (min-width: 850px) and (max-width: 1023px) {
  .bagel-masthead, .bagel-introduction, .bagel-hardware { --intro-inset: 40px; }
}
@media (min-width: 1024px) {
  .bagel-masthead, .bagel-introduction, .bagel-hardware { --intro-inset: clamp(32px, calc(15.3846vw - 125.54px), 96px); }
  .bagel-masthead__inner { min-height: 70px; column-gap: 34px; }
  .bagel-introduction__inner { padding-block: 34px 28px; }
  .bagel-introduction h1 {
    --hero-size: clamp(48px, round(nearest, calc(3.84615vw + 8.6154px), 1px), 64px);
    font-size: var(--hero-size);
    line-height: round(nearest, calc(var(--hero-size) * 1.13), 1px);
  }
  .bagel-introduction p { margin-top: 12px; max-width: 824px; }
  .bagel-hardware { --logo-height: 74px; --logo-inset: 28px; padding-block: 32px 58px; }
  .bagel-hardware h2 { min-height: 34px; }
  .bagel-hardware__window { width: min(1312px, calc(100% - var(--intro-inset) * 2 + var(--logo-inset) * 2)); height: 74px; margin-block: 20px 36px; }
  .bagel-deploy { width: min(896px, calc(100% - var(--intro-inset) * 2)); }
  .bagel-deploy .interest-controls { grid-template-columns: minmax(0, 1fr) 248px; }
}
.bagel-introduction p > span { position: relative; top: 2px; }
@media (max-width: 599px) {
  .bagel-introduction h1 > span { position: relative; top: 1px; }
  .bagel-hardware h2 > span { position: relative; top: 1px; translate: 0 0; will-change: translate; }
  /* Preserve the half-pixel edge of the phone artwork without moving the form. */
  .bagel-deploy { top: -.5px; transform: translate3d(0, .5px, 0); }
  .bagel-deploy__field { transform: translateZ(0); }
  .bagel-deploy__field span { top: 15.5px; translate: 0 -.5px; will-change: translate; transform: translateZ(0); }
  .model-interest-submit-label, .bagel-deploy .interest-arrow-text { position: relative; left: -1.75px; top: -1px; }
  .bagel-deploy .model-interest-submit > .mobile-type-paint,
  .bagel-deploy .model-interest-submit:not(.mobile-type-host) > span { transform: translate3d(0, .5px, 0); }
  .bagel-deploy .interest-arrow { display: none; }
  .bagel-deploy .interest-arrow-text { display: inline-block; flex: none; }
}
@media (max-width: 519px) {
  .bagel-masthead__brand img { transform: translateY(4px); }
  .bagel-masthead .viewer-location { transform: translateY(2.5px); }
  .viewer-location-text, .viewer-weather-temp { margin-right: -1.4px; }
  .mobile-type-ready .bagel-masthead__nav { top: -2px; }
  .bagel-masthead__nav a { padding-inline: 4px; }
  .bagel-masthead__nav a[href="/careers"] { min-width: 67px; }
  .bagel-masthead__nav a[href="/partner"] { min-width: 66px; }
  .bagel-masthead__nav a > span { width: calc-size(max-content, round(up, size, 1px)); }
}
@media (max-width: 343px) {
  .bagel-hardware h2 { margin-inline: 8px; }
}
@media (min-width: 800px) and (max-width: 1023px) and (min-height: 501px) {
  .bagel-introduction h1 { --hero-size: 50px; }
}
@media (min-width: 600px) and (max-width: 1023px) and (max-height: 500px) {
  .bagel-introduction__inner { padding-block: 18px; }
  .bagel-introduction h1 { --hero-size: clamp(36px, round(nearest, 6.1vw, 1px), 44px); }
  .bagel-introduction p { margin-top: 10px; }
}
@media (min-width: 1024px) {
  .bagel-masthead__nav { position: relative; top: 1px; }
  .bagel-masthead .viewer-location { font-size: 11px; line-height: 15px; letter-spacing: .66px; }
}
@media (min-width: 1200px) {
  .bagel-masthead__inner { min-height: 76px; }
  .bagel-introduction__inner { padding-block: 34px; }
}
@media (min-width: 1440px) {
  .bagel-masthead__inner { min-height: 80px; }
  .bagel-introduction__inner { padding-block: 40px 42px; }
  .bagel-introduction h1 { min-height: 74px; }
  .bagel-introduction p { margin-top: 14px; }
  .bagel-hardware { --logo-inset: 32px; padding-block: 38px 64px; }
  .bagel-hardware__window { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .bagel-hardware__window { overflow-x: auto; scrollbar-width: thin; }
  .bagel-hardware__track { animation: none; }
  .bagel-hardware__track img[aria-hidden="true"] { display: none; }
}
/* Keep text and input controls wholly inside individual screens across a physical hinge. */
@media (horizontal-viewport-segments: 2) {
  .bagel-masthead__inner {
    width: 100%;
    padding-inline: var(--intro-inset);
    display: flex;
    gap: 16px;
  }
  .bagel-masthead__brand { flex: none; }
  .bagel-masthead__nav { flex: none; }
  .bagel-masthead .viewer-location {
    margin-left: auto;
    max-width: calc(env(viewport-segment-width 1 0) - var(--intro-inset) * 2);
  }
  .bagel-introduction__inner {
    width: calc(env(viewport-segment-width 0 0) - var(--intro-inset) * 2);
    margin-inline: var(--intro-inset) auto;
  }
  .bagel-deploy { width: 100%; }
  .bagel-deploy .interest-controls {
    grid-template-columns: minmax(0, env(viewport-segment-width 0 0)) minmax(0, 1fr);
    gap: calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0));
  }
  .bagel-deploy__field { margin-inline: var(--intro-inset); border-right: 1px solid rgb(51 45 41 / 65%); border-radius: 4px; }
  .bagel-deploy .model-interest-submit { margin-inline: var(--intro-inset); border-radius: 4px; }
  .bagel-deploy p { margin-inline: var(--intro-inset); max-width: calc(env(viewport-segment-width 0 0) - var(--intro-inset) * 2); }
}
