/* A concise, hand drawn Android preview in the style of the Windows hero. */
.illustration { min-height: 680px; }
.illustration::before { inset: 28px 6% 22px; }

.mobile-phone {
  position: relative;
  width: 350px;
  height: 628px;
  padding: 8px;
  border: 2px solid #38527b;
  border-radius: 39px;
  background: #1d3153;
  box-shadow: 0 42px 64px -32px rgba(22, 51, 103, .48);
  transform: rotate(2deg);
}
.mobile-phone::before, .mobile-phone::after {
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: #405b83;
  content: "";
}
.mobile-phone::before { top: 99px; left: -5px; height: 44px; }
.mobile-phone::after { top: 118px; right: -5px; height: 54px; }
.mobile-phone-speaker {
  position: absolute;
  z-index: 3;
  top: 2px;
  left: calc(50% - 23px);
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: #8194b2;
}

.mobile-window {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dce7f6;
  border-radius: 30px;
  background: #f6f9ff;
  color: #17243a;
}

.mobile-topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid #e2eaf5;
  background: #fff;
}
.mobile-brand, .mobile-top-actions { display: flex; align-items: center; }
.mobile-brand { gap: 9px; }
.mobile-brand img { width: 32px; height: 32px; border-radius: 9px; }
.mobile-brand strong { color: #182b49; font-size: 17px; letter-spacing: -.04em; }
.mobile-top-actions { gap: 14px; color: #627794; }
.mobile-top-actions svg { width: 20px; height: 20px; }
.mobile-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9efff;
  color: #4a67ae;
  font-size: 12px;
  font-weight: 800;
}

.mobile-content { padding: 16px 13px 54px; }
.mobile-intro small { display: block; color: #2871e5; font-size: 10px; font-weight: 800; }
.mobile-intro strong { display: block; margin-top: 5px; color: #172c4c; font-size: 23px; letter-spacing: -.05em; }
.mobile-intro p { margin: 3px 0 0; color: #798ca5; font-size: 10px; }
.mobile-new {
  height: 31px;
  display: inline-flex;
  align-items: center;
  margin-top: 9px;
  padding: 0 13px;
  border-radius: 8px;
  background: #2f6bfe;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.mobile-feature {
  position: relative;
  min-height: 165px;
  margin-top: 11px;
  padding: 17px;
  overflow: hidden;
  border-radius: 16px;
  background: #1d416f;
  color: #fff;
}
.mobile-feature::before {
  position: absolute;
  right: -49px;
  bottom: -120px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: #315b91;
  content: "";
}
.mobile-feature::after {
  position: absolute;
  right: 7px;
  top: -30px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  content: "";
}
.mobile-feature-kicker, .mobile-feature strong, .mobile-feature p, .mobile-feature-button { position: relative; z-index: 2; }
.mobile-feature-kicker { display: flex; align-items: center; gap: 6px; color: #d6e7fa; font-size: 10px; }
.mobile-feature-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #52d190; }
.mobile-feature strong { display: block; max-width: 226px; margin-top: 16px; font-size: 17px; line-height: 1.3; }
.mobile-feature p { margin: 5px 0 0; color: #e0e9f6; font-size: 10px; }
.mobile-feature-button {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 11px;
  border-radius: 7px;
  background: #fff;
  color: #233b60;
  font-size: 10px;
  font-weight: 800;
}
.mobile-feature-icon {
  position: absolute;
  z-index: 2;
  right: 25px;
  bottom: 38px;
  width: 68px;
  height: 68px;
  transform: rotate(-11deg);
  filter: drop-shadow(0 6px 7px rgba(5, 19, 44, .24));
}
.mobile-feature-plant { position: absolute; z-index: 3; right: -8px; bottom: -10px; width: 69px; height: 69px; }

.mobile-projects {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #e1eaf5;
  border-radius: 17px;
  background: #fff;
}
.mobile-projects-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.mobile-projects-head strong { color: #1b2c47; font-size: 15px; }
.mobile-projects-head > span { color: #2e72e9; font-size: 10px; font-weight: 700; }
.mobile-project {
  min-height: 59px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 5px;
  padding: 7px;
  border: 1px solid #e3ebf6;
  border-radius: 11px;
  background: #fff;
}
.mobile-project-icon { flex: none; width: 39px; height: 39px; border-radius: 9px; }
.windows-mark { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2px; padding: 9px; background: #e7f2ff; }
.windows-mark i { background: #2098f0; }
.windows-mark i:nth-child(2), .windows-mark i:nth-child(4) { background: #087adf; }
.globe-mark { display: grid; place-items: center; background: #e8efff; color: #2460d4; }
.globe-mark svg { width: 26px; height: 26px; }
.mobile-project-copy { min-width: 0; flex: 1; }
.mobile-project-copy strong, .mobile-project-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mobile-project-copy strong { color: #1a2d4d; font-size: 12px; }
.mobile-project-copy small { margin-top: 2px; color: #8192a9; font-size: 9px; }
.mobile-saved { color: #16a566; font-size: 9px; font-weight: 800; white-space: nowrap; }

.mobile-tabs {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 3px 10px;
  border-top: 1px solid #e1e8f2;
  background: #fff;
}
.mobile-tabs span { width: 47px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #687b98; }
.mobile-tabs span.active { background: #e8f0ff; color: #2f6bfe; }
.mobile-tabs svg { width: 19px; height: 19px; }

@keyframes mobile-phone-enter {
  from { opacity: 0; transform: translateY(16px) rotate(4deg); }
  to { opacity: 1; transform: translateY(0) rotate(2deg); }
}
html.motion-ready .mobile-phone { animation: mobile-phone-enter .7s .2s both; }
@media (max-width: 700px) { .illustration { min-height: 655px; } .illustration::before { inset: 25px 0 22px; } }
@media (max-width: 350px) {
  .illustration { min-height: 540px; }
  .mobile-phone { transform: scale(.8) rotate(2deg); }
  @keyframes mobile-phone-enter {
    from { opacity: 0; transform: translateY(16px) scale(.8) rotate(4deg); }
    to { opacity: 1; transform: translateY(0) scale(.8) rotate(2deg); }
  }
}
@media (prefers-reduced-motion: reduce) { html.motion-ready .mobile-phone { animation: none; } }

/* On an Android screen, install choices matter more than a second phone screen. */
@media (max-width: 700px) {
  main { display: flex; flex-direction: column; }
  main > .hero { order: 1; }
  main > .download { order: 2; }
  main > .features { order: 3; }
  main > .together { order: 4; }
  .hero { padding: 36px 0 32px; }
  .hero-grid { display: block; }
  .hero .illustration { display: none; }
  .eyebrow { margin-bottom: 17px; }
  .hero h1 { font-size: clamp(42px, 11vw, 52px); line-height: 1.16; }
  .hero-lead { margin-top: 17px; font-size: 15px; line-height: 1.7; }
  .hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 24px; }
  .hero-actions .button.primary { width: 100%; min-height: 52px; }
  .hero-actions .button.quiet { align-self: center; min-height: 42px; padding: 7px 14px; border: 0; background: transparent; color: var(--blue-deep); box-shadow: none; }
  .hero-note { margin-top: 12px; text-align: center; }
  .download { padding: 34px 0 54px; }
  .download .section-head { margin-bottom: 23px; }
  .download .section-head h2 { font-size: clamp(28px, 7.5vw, 36px); }
  .download-card { padding: 21px; }
  .download-card h3 { margin-top: 13px; font-size: 22px; }
  .download-card p { min-height: 0; }
  .download-actions { margin-top: 18px; }
  .features { padding-top: 69px; }
  html.motion-ready .reveal:not(.in) { opacity: 1; transform: none; }
  html[data-theme=dark] .download-actions .button.gitee { background: #fff1f1; border-color: #ffc8cb; color: #a71d28; }
  html[data-theme=dark] .download-actions .button.github { background: #f7f9fc; border-color: #dce6f5; color: #263c59; }
}
@media (max-width: 390px) {
  .hero { padding-top: 30px; }
  .download-actions { grid-template-columns: 1fr; }
}
