/* /download page styles. brand.css must load first. */

.dl-hero .h1 { max-width: 16ch; margin: 18px 0 20px; }
.dl-hero .lede { color: var(--mute-dark); }

/* The platform the visitor is on (or picked). */
.dl-primary {
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(24px, 3vw, 36px);
  max-width: 640px;
  border: 1px solid var(--hairline-dark);
  border-radius: 20px;
  background: var(--ink-soft);
}
.dl-for {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-meta { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--mute-dark); }

.dl-soon {
  display: inline-block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 10px;
}
.dl-soon-text { color: var(--mute-dark); margin-bottom: 18px; max-width: 48ch; }

.dl-interest { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-email {
  flex: 1 1 240px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline-dark);
  background: var(--ink);
  color: var(--bone);
  font: 500 15px var(--sans);
}
.dl-email:focus { outline: 2px solid var(--signal); outline-offset: 2px; }
.dl-flash { margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.dl-flash-ok { background: rgba(242,237,226,0.1); color: var(--bone); }
.dl-flash-error { background: var(--signal-soft); color: var(--ink); }

/* Honeypot and screen-reader-only label. */
.dl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.dl-companions { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hairline-dark); }
.dl-companions-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute-dark); margin-bottom: 12px;
}
.dl-companion { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.dl-companion-name { font-weight: 600; }
.dl-companion .btn-secondary { padding: 10px 18px; font-size: 13px; }

/* Every platform. */
.dl-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.dl-card {
  display: flex; flex-direction: column;
  padding: 22px;
  border: 1px solid var(--hairline-light);
  border-radius: 16px;
  background: var(--paper-card);
}
.dl-card-current { border-color: var(--ink); }
.dl-card-name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.dl-card-status { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--signal); }
.dl-card-req { margin-top: 4px; font-size: 14px; color: var(--mute-light); flex: 1; }
.dl-card-action { margin-top: 18px; }
.dl-card-action .btn-secondary { padding: 10px 18px; font-size: 13px; }

/* ── Device graphics ── */

/* Hero: text and the visitor's download beside a Mac with a phone in front. */
.dl-hero-grid { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (min-width: 1000px) {
  .dl-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
/* Two phones, one behind the other. */
.dl-stage { position: relative; width: min(100%, 520px); margin: 0 auto; aspect-ratio: 1 / 1.08; }
.dl-stage .dl-phone { position: absolute; width: 50%; }
.dl-stage .dl-phone-back { left: 4%; top: 0; transform: rotate(-6deg); opacity: 0.92; }
.dl-stage .dl-phone-front { right: 4%; top: 8%; transform: rotate(4deg); }
@media (max-width: 999px) {
  .dl-stage { width: min(100%, 420px); }
}

/* A Mac app window: title bar with the three lights, then the app. */
.dl-mac {
  border-radius: 12px;
  overflow: hidden;
  background: #1c1c1e;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
}
.dl-mac-bar { display: flex; gap: 7px; padding: 10px 12px; background: #2a2a2d; }
.dl-mac-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dl-mac-bar span:nth-child(2) { background: #febc2e; }
.dl-mac-bar span:nth-child(3) { background: #28c840; }
.dl-mac img { display: block; width: 100%; height: auto; }

/* A phone: dark bezel with rounded corners around the screenshot. */
.dl-phone {
  padding: 2.4%;
  border-radius: 13% / 6%;
  background: #0b0b0d;
  box-shadow: 0 30px 60px -18px rgba(0,0,0,0.65), inset 0 0 0 2px #2c2c30;
}
.dl-phone img { display: block; width: 100%; height: auto; border-radius: 11% / 5%; }

/* Showcase: three phone screens with what they're for. */
.dl-showcase-head { max-width: 40ch; margin-bottom: clamp(32px, 4vw, 56px); }
.dl-showcase-head .h2 { margin-top: 14px; }
.dl-screens { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .dl-screens { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .dl-screens figure { scroll-snap-align: start; }
}
.dl-screens figure { margin: 0; }
.dl-screens .dl-phone { max-width: 300px; margin: 0 auto; }
.dl-screens figcaption { max-width: 300px; margin: 20px auto 0; }
.dl-screens figcaption strong { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.dl-screens figcaption span { display: block; margin-top: 6px; color: var(--mute-dark); font-size: 15px; line-height: 1.5; }
