/* Loaded at phone widths. The logo stays above the scene and the dock below it. */
:root {
  --phone-gutter: max(clamp(16px, 5vw, 24px), env(safe-area-inset-left), env(safe-area-inset-right));
  --content-left: var(--phone-gutter);
  --header-top: calc(env(safe-area-inset-top) + 8px);
  --header-height: 44px;
  --dock-bottom: calc(env(safe-area-inset-bottom) + 10px);
  --dock-height: 54px;
  --phone-top: calc(var(--header-top) + var(--header-height) + clamp(10px, 3dvh, 30px));
  --phone-bottom: calc(var(--dock-bottom) + var(--dock-height) + clamp(12px, 2.2dvh, 22px));
}

.site-header { align-items: center; }
.sky-brand { min-height: var(--header-height); gap: 7px; font-size: 17px; }
.sky-brand img { width: 26px; }

.sky-nav {
  position: fixed;
  inset: auto var(--phone-gutter) var(--dock-bottom);
  box-sizing: border-box;
  height: var(--dock-height);
  max-width: 350px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr .84fr 1.15fr auto;
  gap: 0;
  padding: 5px;
  isolation: isolate;
  --aqua-radius: calc(var(--dock-height) / 2 - 1px);
  border-radius: 999px;
  color: #343a43;
  text-shadow: none;
  font-size: 14px;
  font-weight: 550;
  pointer-events: auto;
}
.sky-nav-surface { display: block; }
.sky-nav > :is(span, a) {
  display: grid;
  place-items: center;
  min-height: 44px;
}
.sky-nav .sky-get-app {
  padding-inline: clamp(13px, 4vw, 22px);
  font-size: clamp(16px, 4.2vw, 18px);
  font-weight: 700;
  letter-spacing: -.015em;
}
.sky-nav a:focus-visible { outline: 2px solid #376598; outline-offset: -2px; border-radius: 999px; }

.hero-copy { top: max(var(--phone-top), 23dvh); text-align: center; }
.hero-copy h1 { font-size: clamp(38px, 10.4vw, 54px); }
.hero-copy .hero-actions {
  --badge-height: 44px;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(16px, 2.8dvh, 24px);
}

.showcase {
  --content-top: var(--phone-top);
  --content-bottom: var(--phone-bottom);
  padding-inline: var(--phone-gutter);
  row-gap: clamp(8px, 1.6dvh, 16px);
}
.showcase-intro { width: 100%; }
.showcase-copy {
  max-width: 24ch;
  font-size: clamp(22px, 6.4vw, 30px);
  line-height: 1.17;
  text-align: center;
}
.flight-playback { display: flex; margin-top: clamp(12px, 2dvh, 18px); }
.flight-segment-label span { display: none; }
.flight-segment-label svg { width: 20px; height: 20px; }

.deep-focus {
  padding: var(--phone-top) var(--phone-gutter) var(--phone-bottom);
  row-gap: clamp(10px, 2dvh, 22px);
}
.focus-copy { text-align: center; }
.focus-copy h2 { font-size: clamp(28px, 7.6vw, 38px); }
.focus-description {
  max-width: 31ch;
  margin: 10px auto 0;
  font-size: clamp(17px, 4.9vw, 23px);
}
.focus-description p { line-height: 1.32; text-wrap: balance; }
.porthole { height: min(118cqh, 143cqw); }

.download-layout { padding: var(--phone-top) var(--phone-gutter) var(--phone-bottom); }
.download-label { font-size: clamp(15px, 4vw, 18px); }
.download-copy h2 { font-size: clamp(43px, 12vw, 60px); }
.download-copy p { font-size: clamp(16px, 4.5vw, 21px); }
.download-awards { margin-top: clamp(18px, 2.8dvh, 26px); }
.download-sketches img { --y: 50%; }

@media (orientation: landscape) and (max-height: 450px) {
  :root { --phone-top: calc(var(--header-top) + var(--header-height) + 4px); }
  .hero-copy { top: var(--phone-top); }
  .hero-copy h1 { font-size: 32px; }
  .hero-copy .hero-actions { margin-top: 8px; }
  .showcase {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 44px;
    gap: 4px 12px;
  }
  .showcase-intro { grid-row: 1 / 3; }
  .showcase-copy { font-size: 18px; }
  .flight-segment-label svg { width: 16px; height: 16px; }
  .showcase-stage, .showcase-devices { grid-column: 2; }
  .showcase-devices { gap: 2px; }
  .deep-focus { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .focus-copy h2 { font-size: 23px; }
  .focus-description { font-size: 15px; margin-top: 6px; }
  .download-layout { grid-template-rows: 1fr; }
  .download-copy { grid-row: 1; }
  .download-copy h2 { font-size: 32px; }
  .download-awards, .download-copy .hero-actions { --badge-height: 28px; margin-top: 6px; }
}
