/* One handset canvas across the website: 406 × 860 with a 390 × 844 screen. */
.phone:not(.is-proportioned) { aspect-ratio: 406 / 860; }
.phone:not(.is-proportioned) .phone-screen { position: absolute; inset: 8px; height: auto; min-height: 0; }
.phone:not(.is-proportioned) .phone-content { min-height: 0; overflow-y: auto; }
.phone.is-proportioned {
  --phone-scale: .763546798;
  position: relative;
  aspect-ratio: 406 / 860;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  flex: none;
}
.phone-hardware {
  position: absolute;
  left: 0;
  top: 0;
  width: 406px;
  height: 860px;
  padding: 8px;
  border-radius: 40px;
  background: linear-gradient(115deg,#9094a0 0%,#373842 10%,#090a15 35%,#282b38 83%,#b5b8c1);
  box-shadow: 0 2px 1px #ffffff7d inset,0 0 0 1px #373a4a,1px 5px 3px #1012371a,0 25px 35px #11132324;
  transform: scale(var(--phone-scale));
  transform-origin: top left;
}
.phone.is-proportioned .phone-screen {
  width: 390px;
  height: 844px;
  min-height: 0;
  border: 0;
  border-radius: 32px;
  box-shadow: 0 0 0 2px #060815;
}
.phone.is-proportioned .phone-status { height: 44px; flex: none; padding: 14px 24px 6px; }
.phone.is-proportioned .phone-brand { flex: none; margin-inline: 24px; padding: 12px 0 16px; }
.phone.is-proportioned .phone-brand img { width: 114px; }
.phone.is-proportioned .phone-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 0px;
  min-height: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.phone.is-proportioned .phone-bottom { height: 20px; flex: none; margin: 0; background: white; }
.phone.is-proportioned .phone-bottom > span { width: 116px; }
/* Fill the screen using flex sizing, not a percentage min-height inside a flex child.
   Safari can leave the percentage unresolved, lifting the app tabs above empty space. */
.phone.is-proportioned .phone-content > * { flex-shrink: 0; }
.phone.is-proportioned .phone-content > .ui-shell { display:flex; flex-direction:column; flex: 1 1 0px; min-height: 0; }
.phone.is-proportioned .ui-body { padding: 20px 24px 24px; flex:1 1 0px; min-height:0; overflow-y:auto; }
.phone.is-proportioned .ui-heading h3 { font-size: 29px !important; line-height: 1.14 !important; }
/* position:sticky fails inside transform:scale() ancestors on WebKit/Safari.
   Use margin-top:auto in the flex column to pin the nav to the bottom instead. */
.phone.is-proportioned .ui-nav { position:static; margin-top:auto; }
.phone.is-proportioned .ui-home .ui-body { padding: 18px 24px 16px; }
.phone.is-proportioned .ui-home .ui-heading { margin-bottom: 20px; }
.phone.is-proportioned .ui-home .ui-shift { padding: 14px 16px; margin-bottom: 20px; }
.phone.is-proportioned .ui-home .ui-shift strong { margin-top: 8px; }
.phone.is-proportioned .ui-home .ui-shift small { margin-top: 4px; }
.phone.is-proportioned .ui-home .ui-section-label { margin-bottom: 12px !important; }
.phone.is-proportioned .ui-home .ui-row { min-height: 66px; padding: 11px 12px; margin: 8px 0; gap: 12px; }
.phone.is-proportioned .ui-home .ui-row-icon { width: 37px; height: 37px; }
.phone.is-proportioned .ui-home .ui-notice { font-size: 13px; padding: 11px 13px; margin: 16px 0 0; }
.ui-preview-phone.is-proportioned { --phone-scale: .837438424; width: min(340px, 100%); }
.demo-phone.is-proportioned { --phone-scale: .911330049; width: min(370px, 100%); }
.context-phone-host { padding: 28px 20px; }
.context-phone-host .ui-preview-phone { width: min(320px, 100%); }
.platform-app-hero {
  position: relative;
  border-radius: 28px;
  padding: 32px 30px 26px;
  background: #efedf8;
  text-align: center;
  min-width: 0;
}
.platform-app-screen .ui-preview-phone { width: min(280px, 100%); }
.platform-app-hero > p { font-size: 15px; line-height: 1.5; color: #565b72; margin: 26px 0 12px; }
.platform-point-link { font-size: 14px; color: #5940c3; text-decoration: underline; text-underline-offset: 4px; }
.page-product .page-hero { padding-top: 156px; padding-bottom: 72px; }
.page-home .hero-stage { height: 600px; }
@media (max-width: 1000px) {
  .page-home .hero-stage { height: 550px; }
}
@media (max-width: 800px) {
  .platform-app-hero { width: min(520px,100%); margin-inline: auto; }
  .page-product .page-hero { padding-top: 140px; }
}
@media (max-width: 760px) {
  .page-home .hero-stage { height: 430px; }
  .platform-app-hero { display: none; }
  .page-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 120px; padding-bottom: 40px; }
}
@media (max-width: 560px) {
  .context-phone-host { padding: 22px 12px; }
  .page-product .page-hero { padding-top: 125px; }
}
