/* RC1: official App prototype captures, cropped to the app screen only.
   Source canvas: 837 x 746. Coordinates are documented in public/official-ui/. */
.section-heading.centered > .eyebrow { margin-inline: auto; }
.compare-app-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  height: 340px;
  padding: 18px;
  background: linear-gradient(135deg, #dbeaf9, #eee7ff);
}
.compare-app-visual .official-ui-crop { width: 130px; max-width: 40%; }
.compare-app-arrow { color: #456488; font-size: 24px; }
.official-ui-crop {
  --capture-width: 265.714285714%;
  --capture-left: -82.857142857%;
  --capture-top: -6.184012066%;
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  aspect-ratio: 315 / 663;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  background: #f7f7f7;
  box-shadow: 0 18px 38px rgba(7, 20, 38, .16);
}
.official-ui-crop--create {
  --capture-width: 286.643835616%;
  --capture-left: -93.493150685%;
  --capture-top: -6.015037594%;
  aspect-ratio: 292 / 665;
}
.official-ui-crop > img {
  position: absolute;
  display: block;
  width: var(--capture-width);
  max-width: none;
  height: auto;
  left: var(--capture-left);
  top: var(--capture-top);
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: initial;
  object-position: initial;
  opacity: 1;
}
.visual-disclosure {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: inline-block;
  max-width: calc(100% - 28px);
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(7, 20, 38, .82);
  color: #e3edf6;
  font-size: 10px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: .015em;
  text-align: left;
  overflow-wrap: normal;
}
.visual-note {
  margin: 22px auto 0;
  color: #adc1d0;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}
.business-image { position: relative; }
.hero-visual-disclosure { right: 5vw; bottom: 145px; }
.hero-slide--app {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 105px 8vw 180px;
  background: radial-gradient(ellipse at 77% 40%, #274970 0%, #14263d 33%, #071426 70%);
}
.hero-app-preview {
  position: relative;
  width: min(220px, 21vw, calc(52vh * 315 / 663));
}
.hero-slide--app > figcaption {
  top: auto;
  right: 8vw;
  bottom: 116px;
  width: 240px;
  max-width: 28vw;
}
.hero:has(.hero-slide--app.active) .hero-shade {
  background: linear-gradient(90deg, rgba(4, 15, 31, .94) 0%, rgba(7, 20, 38, .76) 40%, transparent 72%);
}
.hero-slide--app .official-ui-crop { box-shadow: 0 30px 65px rgba(0, 0, 0, .3); }
.step-visual--app,
.step-visual--scene { height: 420px; }
.step-visual--app {
  padding: 18px 20px 35px;
  background: linear-gradient(145deg, #eaf4fc, #d7e8f6);
}
.step-visual--create { background: linear-gradient(145deg, #d5e7ff, #e7e1fa); }
.step-visual--app .official-ui-crop { width: 160px; max-width: 100%; }
.step-visual--app .visual-disclosure {
  right: auto;
  bottom: 10px;
  padding: 4px 7px;
  border: 0;
  background: transparent;
  color: #4d637c;
  text-align: center;
}
.step-visual--scene > img { object-position: 50% 50%; }
.phone-story { grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr); gap: 48px; }
.phone-story .story-label,
.phone-story .story-label.right {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 74px;
  padding: 0;
  font-size: 15px;
}
.story-step { display: flex; align-items: center; gap: 14px; min-width: 0; }
.story-step > b { flex: 0 0 31px; }
.story-step > span { min-width: 0; line-height: 1.5; overflow-wrap: normal; }
.app-ui-showcase { width: 220px; max-width: 100%; margin: 0 auto; }
.app-ui-showcase > figcaption,
.asset-callout-visual--app > figcaption {
  margin: 16px 0 0;
  color: #566e84;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.asset-callout { grid-template-columns: minmax(0, 1fr) 250px; }
.asset-callout-visual--app {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.compat-cards .soon > b { white-space: normal; text-align: right; }
html[lang="zh-CN"] .visual-disclosure,
html[lang="zh-CN"] .app-ui-showcase > figcaption,
html[lang="zh-CN"] .asset-callout-visual--app > figcaption { font-size: 11px; letter-spacing: 0; }
html[lang="zh-CN"] .step-card h3 { font-size: clamp(22px, 1.7vw, 25px); line-height: 1.35; }
html[lang="zh-CN"] .story-step > span { font-size: 16px; letter-spacing: 0; }
@media (max-width: 1050px) {
  .phone-story { grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); gap: 24px; }
  .hero-slide--app { padding-right: 5vw; }
  .hero-slide--app > figcaption { right: 5vw; }
  .compare-top { flex-wrap: wrap; gap: 6px 12px; }
}
@media (max-width: 760px) {
  html[lang="zh-CN"] .how .section-heading h2 { font-size: clamp(26px, 7.5vw, 36px); white-space: nowrap; }
  .hero-slide--app { padding: 100px 25px 0; align-items: flex-start; }
  .hero-app-preview { width: min(130px, 31vw); }
  .hero-slide--app > figcaption {
    top: 110px;
    right: auto;
    bottom: auto;
    left: 25px;
    width: 170px;
    max-width: 43vw;
  }
  .hero:has(.hero-slide--app.active) .hero-shade {
    background: linear-gradient(0deg, #061326 0%, rgba(6, 19, 38, .96) 48%, transparent 72%);
  }
  .hero-visual-disclosure { top: 190px; right: 20px; bottom: auto; }
  .step-visual--app,
  .step-visual--scene { height: 450px; }
  .step-visual--app .official-ui-crop { width: 175px; }
  .phone-story { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .phone-story .story-label,
  .phone-story .story-label.right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  .story-step { gap: 10px; }
  .app-ui-showcase { width: 220px; }
  .asset-callout { grid-template-columns: minmax(0, 1fr); }
  .asset-callout-visual--app { height: auto; width: 220px; }
  .visual-note { max-width: 390px; }
}
@media (max-width: 390px) {
  .hero-slide--app > figcaption { left: 20px; width: 155px; max-width: 44vw; }
  .hero-slide--app { padding-right: 20px; }
  .step-visual--app,
  .step-visual--scene { height: 420px; }
  .step-visual--app .official-ui-crop { width: 160px; }
  .phone-story .story-label,
  .phone-story .story-label.right { gap: 12px; font-size: 13px; }
}
