/* 2026-12-02: Download page — platform cards, mobile note, installation preview, preparation cards. */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rp-gap);
  margin-top: 28px;
}
.platform-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-width: 0;
  min-height: 236px;
  padding: clamp(22px, 2vw, 30px);
}
.platform-card h3 {
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 680;
  letter-spacing: -.04em;
  line-height: 1.2;
}
.platform-arch {
  margin-top: 6px;
  color: var(--rp-card-muted);
  font-size: 15px;
  line-height: 1.45;
}
.platform-card .rp-disabled { grid-row: 3; width: 100%; margin-top: 30px; }
.platform-note {
  grid-row: 4;
  margin-top: 10px;
  color: var(--rp-card-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mobile-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: var(--rp-gap);
  padding: clamp(20px, 1.9vw, 26px) clamp(22px, 2vw, 30px);
  border: 1px solid var(--rp-rule);
  border-radius: var(--rp-radius);
}
.mobile-apps h3 { font-size: 17px; font-weight: 680; letter-spacing: -.03em; line-height: 1.35; }
.mobile-apps p { margin-top: 4px; color: var(--rp-copy); font-size: 15px; line-height: 1.55; }

/* Installation preview, moved from the home page. Device layout lives in release-install.css. */
.install-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 30px clamp(28px, 5vw, 72px);
  margin-top: var(--rp-section-space);
  padding-block: clamp(36px, 4.2vw, 60px);
  border-block: 1px solid var(--rp-rule);
}
.install-copy h2 {
  font-size: clamp(25px, 2.2vw, 33px);
  font-weight: 660;
  letter-spacing: -.045em;
  line-height: 1.25;
}
.install-copy p { margin-top: 10px; color: var(--rp-copy); font-size: 16px; line-height: 1.65; }
.install-link {
  display: inline-block;
  margin-top: 14px;
  padding-block: 10px;
  color: var(--product-text);
  font-size: 15px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.install-link span { display: inline-block; margin-inline-start: 4px; }
.install-band .install-devices { justify-self: end; width: min(100%, 426px); margin-top: 0; }

.prep-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--rp-gap);
  margin-top: 28px;
}
.prep-card { min-width: 0; padding: clamp(20px, 1.8vw, 26px); }
.prep-card img { display: block; width: 23px; height: 23px; opacity: .75; }
.prep-card h3 {
  margin-top: 22px;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -.03em;
  line-height: 1.35;
}
.prep-card p {
  margin-top: 8px;
  color: var(--rp-card-muted);
  font-size: 14.5px;
  line-height: 1.62;
  text-wrap: pretty;
}

@media (max-width: 1080px) {
  .prep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .platform-grid { grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
  .platform-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 16px;
    min-height: 0;
    padding: 20px;
  }
  .platform-card h3 { font-size: 24px; }
  .platform-card .rp-disabled { grid-column: 2; grid-row: 1; width: auto; margin-top: 0; }
  .platform-note { grid-column: 1 / -1; grid-row: 2; margin-top: 12px; }
  .install-band { grid-template-columns: minmax(0, 1fr); }
  .install-band .install-devices { justify-self: center; }
  .prep-grid { grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
}

@media (max-width: 420px) {
  .platform-card { grid-template-columns: minmax(0, 1fr); }
  .platform-card .rp-disabled { grid-column: 1; grid-row: 2; width: 100%; margin-top: 16px; }
  .platform-note { grid-row: 3; }
}

/* 2026-12-02: cards and links in the guide's form. The installation link is the shared capsule
   button, and the cards use the achromatic face with the same light depth as "How moAI works"
   (soft sheen, bright top edge, faint lower edge, soft shadow). The thin rules around the
   installation band are gone; spacing separates it. */
.install-band { border-block: 0; }
.install-copy a.guide-action.install-link {
  display: inline-flex;
  margin-top: 20px;
  padding-block: 6px;
  text-decoration: none;
}
.install-copy a.guide-action.install-link span { display: inline; margin: 0; }
.rp-page :is(.platform-card, .prep-card, .mobile-apps) {
  --card-face: #e9e9e5;
  border: 0;
  border-radius: var(--rp-radius);
  background-color: var(--card-face);
  background-image:
    radial-gradient(ellipse at 22% -30%, rgb(255 255 255 / .6), transparent 62%),
    linear-gradient(170deg, rgb(255 255 255 / .3), transparent 46%, rgb(0 0 0 / .03));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .9),
    inset 0 -1px 0 rgb(28 38 30 / .08),
    0 0 0 1px rgb(28 38 30 / .045),
    0 12px 22px -16px rgb(24 34 27 / .36),
    0 2px 5px -3px rgb(24 34 27 / .16);
  color: #232523;
}
.rp-page :is(.platform-card, .prep-card, .mobile-apps) :is(.platform-arch, .platform-note, p) { color: #585c57; }
/* Unavailable buttons and tags on the cards are neutral too. */
.rp-page .platform-card .rp-disabled {
  background: #dcdcd7;
  box-shadow: inset 0 1px 1px rgb(24 26 24 / .08), inset 0 -1px 0 rgb(255 255 255 / .6);
  color: #555954;
}
.rp-page .platform-card .rp-disabled b { background: #ecece8; color: #7b7f7a; }
.rp-page .mobile-apps .status-tag { background: #dcdcd7; color: #555954; }
.prep-card img { opacity: .7; }
@media (forced-colors: active) {
  .rp-page :is(.platform-card, .prep-card, .mobile-apps) { background-image: none; box-shadow: none; outline: 1px solid CanvasText; }
}
