.hero-section {
  padding-top: 69px;
  overflow-x: clip;
  background: linear-gradient(to bottom, #0b1017 0 calc(100% - 150px), white calc(100% - 150px));
}
.hero-copy {
  display: grid;
  align-items: center;
  margin-bottom: 39px;
}
.hero-title-block h1 {
  font-size: 84px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #f2f5f9;
}
.hero-title-block h1 span {
  color: #1fe3c2;
}
.hero-intro > p:first-child {
  color: #b9c3cf;
}
.showcase-top {
  display: flex;
  justify-content: flex-end;
  margin: 0 1px 13px;
  padding: 0 2px;
}
.demo-theme {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #18212c;
  border: 1px solid #2a3442;
  border-radius: 6px;
}
.demo-theme label {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  background: transparent;
  color: #adb8c5;
  font-size: 9px;
  line-height: 1.2;
  border-radius: 4px;
}
.demo-theme input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.demo-theme label:has(input:focus-visible) { outline: 2px solid #1fe3c2; }
.demo-theme label:has(input:checked) {
  color: white;
  background: #303c49;
}
.demo-theme .icon {
  width: 12px;
  height: 12px;
}
.product-frame {
  box-sizing: content-box;
  container-type: inline-size;
  position: relative;
  color-scheme: light;
  aspect-ratio: 1240 / 590;
  --preview-chrome: #1c2430;
  overflow: hidden;
  isolation: isolate;
  background: var(--preview-chrome);
  border: 1px solid #3b4855;
  border-radius: 13px;
  box-shadow: 0 22px 48px -22px #17313e36;
}
.inbox-showcase:has(#inbox-theme-dark:checked) .product-frame {
  --preview-chrome: #0c1016;
  color-scheme: dark;
}

@media (min-width: 701px) {
  .hero-copy {
    max-width: 960px;
    margin-inline: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 4vw, 56px);
  }
  .hero-title-block h1 {
    width: fit-content;
    margin-inline: auto;
    font-size: clamp(48px, 6.5vw, 84px);
  }
  .hero-intro {
    display: grid;
    grid-template-columns: minmax(0, 25rem);
    justify-content: center;
    justify-items: start;
  }
}
.hero-intro > p:first-child {
  max-width: 48ch;
  font-size: clamp(15px, 1.18vw, 17px);
  line-height: 1.6;
  text-wrap: pretty;
}
.hero-intro .button {
  margin: 22px 0 10px;
}

/* iPhone 15 Pro frame around the 393 × 852 point native capture. */
.inbox-showcase { container-type: inline-size; }
.device-stage {
  --web-height: calc((100cqi - 2px) * 590 / 1240);
  --phone-height: max(310px, calc(var(--web-height) * 0.86));
  position: relative;
  isolation: isolate;
  padding-bottom: max(36px, calc(56px + var(--phone-height) - var(--web-height)));
}
.phone-overlay {
  --phone-scale: tan(atan2(var(--phone-height), 884.986877px));
  position: absolute;
  right: -24px;
  bottom: 0;
  width: calc(426.194226px * var(--phone-scale));
  height: calc(884.986877px * var(--phone-scale));
  margin: 0;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 23px 22px #07131038);
}
.iphone-device {
  position: absolute;
  top: 0;
  left: 0;
  width: 426.194226px;
  height: 884.986877px;
  transform: scale(var(--phone-scale));
  transform-origin: top left;
  border-radius: 67px;
  background: linear-gradient(
    105deg,
    #757575 0,
    #333436 1.4%,
    #141516 2.1%,
    #464749 3%,
    #363739 96.8%,
    #17191b 98%,
    #747577 99.4%,
    #333537 100%
  );
  box-shadow:
    inset 0 0 0 1px #a4a6a8,
    inset 0 0 0 3.5px #535557,
    0 2px 3px #10141066;
}
.iphone-device::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: #050605;
  border-radius: 63px;
  box-shadow: inset 0 0 0 1px #111610;
}
.iphone-screen {
  background: #050605;
  position: absolute;
  left: 16.597113px;
  top: 16.493439px;
  width: 393px;
  height: 852px;
  overflow: hidden;
  border-radius: 55px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: left;
  line-height: 1.25;
}
.iphone-button {
  position: absolute;
  background: linear-gradient(90deg, #343639, #a4a6a9 50%, #45484b);
  width: 4px;
  border-radius: 2px;
  z-index: -1;
  left: -3px;
}
.iphone-action {
  height: 25px;
  top: 124px;
}
.iphone-volume-up {
  height: 62px;
  top: 183px;
}
.iphone-volume-down {
  height: 62px;
  top: 263px;
}
.iphone-power {
  height: 100px;
  top: 220px;
  left: auto;
  right: -3px;
}
.iphone-screen img {
  display: block;
  width: 393px;
  height: 852px;
  max-width: none;
}
.iphone-screen .native-phone-dark {
  display: none;
}
.inbox-showcase:has(#inbox-theme-dark:checked) .native-phone-light {
  display: none;
}
.inbox-showcase:has(#inbox-theme-dark:checked) .native-phone-dark {
  display: block;
}
.web-inbox {
  /* The real app's desktop layout stays at its original zoom as the hero resizes. */
  position: absolute;
  inset: 0 auto auto 0;
  width: 1379px;
  height: 657px;
  transform-origin: top left;
  transform: scale(tan(atan2(100cqi, 1377.78px)));
  display: block;
  overflow: hidden;
}
@media (min-width: 1500px) {
  .hero-section {
    padding-top: 76px;
  }
}
@media (max-width: 1150px) {
  .hero-section {
    padding-top: 60px;
  }
  .phone-overlay {
    right: -12px;
  }
}
@media (max-width: 950px) {
  .hero-section {
    padding-top: 52px;
  }
  .hero-copy {
    margin-bottom: 29px;
  }
}
@media (max-width: 700px) {
  .hero-title-block h1 {
    font-size: 48px;
  }
  .hero-section {
    padding-top: 42px;
    background: linear-gradient(to bottom, #0b1017 0 calc(100% - 240px), white calc(100% - 240px));
  }
  .hero-copy {
    display: block;
    margin-bottom: 26px;
  }
  .hero-intro {
    padding-top: 22px;
  }
}
@media (max-width: 700px), (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  .showcase-top {
    justify-content: center;
    margin-bottom: 16px;
  }
  .demo-theme label {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 11px;
  }
  .product-frame {
    display: none;
  }
  .device-stage {
    padding-bottom: 0;
  }
  .phone-overlay {
    --phone-scale: 0.72;
    position: relative;
    inset: auto;
    margin-inline: auto;
    visibility: visible;
  }
}
@media (max-width: 359px) {
  .phone-overlay {
    --phone-scale: 0.62;
  }
}
@media (max-width: 420px) {
  .hero-title-block h1 {
    font-size: 42px;
  }
}

.drive-feature {
  background: #101d22;
  color: #f3f7f6;
  font-family: 'Home Plex', system-ui, sans-serif;
  scroll-margin-top: 12px;
}
.drive-inner {
  display: grid;
  grid-template-columns: minmax(270px, .84fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
  padding-block: clamp(64px, 6.6vw, 100px);
}
.drive-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
}
.drive-lockup img {
  display: block;
  width: clamp(145px, 13.7vw, 192px);
  height: auto;
}
.drive-lockup > span {
  color: #57e4cc;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 600;
  letter-spacing: -.035em;
}
.drive-copy p {
  margin: 24px 0 0;
  max-width: 36ch;
  color: #c8d6d6;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  letter-spacing: -.012em;
}
.drive-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6de8cf;
  font-weight: 600;
  text-decoration: none;
  margin-top: 25px;
}
.drive-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.drive-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.drive-pane {
  margin: 0;
  border-radius: 13px;
  overflow: hidden;
  background: #161d28;
  border: 1px solid #263340;
  box-shadow: 0 2px 4px #0002, 0 20px 48px -25px #000a;
}
.drive-pane img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 495px) {
  .meet-call-preview { width: min(100%, 390px); box-sizing: border-box; justify-self: center; }
}
/* Calendar, Drive, Pass and Meet follow one another in the same dress, every other one mirrored: its picture on the left. */
.drive-feature + .drive-feature {
  border-top: 1px solid #1d2d33;
}
@media (min-width: 851px) {
  .drive-feature.flip .drive-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(270px, .84fr);
  }
  .drive-feature.flip .drive-copy {
    order: 2;
  }
}
@media (min-width: 851px) and (max-width: 950px) {
  .drive-feature.flip .drive-inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(235px, .72fr);
  }
}
@media (max-width: 950px) {
  .drive-inner {
    grid-template-columns: minmax(235px,.72fr) minmax(0,1.35fr);
    gap: 32px;
  }
}
@media (max-width: 850px) {
  .drive-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 54px;
  }
  .drive-copy p {
    max-width: 49ch;
    margin-top: 16px;
  }
  .drive-link {
    margin-top: 16px;
  }
}
@media (max-width: 420px) {
  .drive-inner {
    padding-block: 44px;
    gap: 25px;
  }
  .drive-pane {
    border-radius: 10px;
  }
}
