/* /download (src/download.njk), inside the normal site nav and footer. The visitor's device is set as
   html[data-dl-os] before first paint: mac = the Mac option leads; everything else = the browser option leads. */

.theme-2026.brand-v2 .dl-icon { display: block; width: 20px; height: 20px; flex: none; }

/* == hero: the homepage's dark band, with an illustration of the Mac app == */
.theme-2026.brand-v2 .dl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--v2-paper) 18%, transparent);
  color: var(--v2-paper);
  background:
    radial-gradient(70% 100% at 85% 30%, color-mix(in srgb, var(--v2-signal) 26%, var(--v2-band)), transparent 62%),
    linear-gradient(112deg, color-mix(in srgb, var(--v2-band) 96%, var(--v2-ink)) 0%, var(--v2-band) 58%, color-mix(in srgb, var(--v2-band) 88%, var(--v2-signal)) 100%);
}
.theme-2026.brand-v2 .dl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(color-mix(in srgb, var(--v2-paper) 11%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--v2-paper) 11%, transparent) 1px, transparent 1px);
  background-size: var(--v2-space-7) var(--v2-space-7);
  mask-image: linear-gradient(90deg, #ffffff 30%, transparent 70%);
}
.theme-2026.brand-v2 .dl-hero__grid { display: grid; gap: 56px; align-items: center; }
.theme-2026.brand-v2 .dl-hero .home-eyebrow { color: color-mix(in srgb, var(--v2-paper) 76%, transparent); }
.theme-2026.brand-v2 .dl-hero__title { margin: 0; color: var(--v2-paper); font-size: clamp(44px, 5.6vw, 72px); font-weight: 300; line-height: 1.02; letter-spacing: -.038em; text-wrap: balance; }
.theme-2026.brand-v2 .dl-hero__title > span,
.theme-2026.brand-v2 .dl-hero__title > strong { display: block; }
.theme-2026.brand-v2 .dl-hero__title strong { color: var(--v2-signal-bright); font-weight: 500; }
.theme-2026.brand-v2 .dl-hero__lede { max-width: 540px; margin: 24px 0 0; color: color-mix(in srgb, var(--v2-paper) 78%, transparent); font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.theme-2026.brand-v2 .dl-hero .home-actions { margin-top: 32px; }
.theme-2026.brand-v2 .dl-hero .home-button--secondary { color: var(--v2-paper); background: color-mix(in srgb, var(--v2-band) 64%, transparent); border-color: color-mix(in srgb, var(--v2-paper) 42%, transparent); }
.theme-2026.brand-v2 .dl-hero .home-button--secondary:hover { background: color-mix(in srgb, var(--v2-paper) 10%, transparent); border-color: color-mix(in srgb, var(--v2-paper) 72%, transparent); }
.theme-2026.brand-v2 .dl-hero__meta { margin: 20px 0 0; color: color-mix(in srgb, var(--v2-paper) 58%, transparent); font: 400 13px/1.5 var(--display); font-variant-numeric: tabular-nums; }

.theme-2026.brand-v2 .dl-window {
  width: 100%;
  max-width: 460px;
  margin: 0;
  justify-self: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--v2-paper) 20%, transparent);
  border-radius: 10px;
  color: var(--v2-paper);
  background: color-mix(in srgb, var(--v2-band) 82%, var(--v2-ink));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .3);
}
.theme-2026.brand-v2 .dl-window__bar { position: relative; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid color-mix(in srgb, var(--v2-paper) 10%, transparent); background: color-mix(in srgb, var(--v2-paper) 5%, transparent); }
.theme-2026.brand-v2 .dl-window__bar span { width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--v2-paper) 22%, transparent); }
.theme-2026.brand-v2 .dl-window__bar span:nth-child(1) { background: #ff5f57; }
.theme-2026.brand-v2 .dl-window__bar span:nth-child(2) { background: #febc2e; }
.theme-2026.brand-v2 .dl-window__bar span:nth-child(3) { background: #28c840; }
.theme-2026.brand-v2 .dl-window__bar b { position: absolute; left: 50%; transform: translateX(-50%); color: color-mix(in srgb, var(--v2-paper) 64%, transparent); font: 500 12px/1 var(--display); }
.theme-2026.brand-v2 .dl-window__body { display: grid; gap: 14px; padding: 18px; }

.theme-2026.brand-v2 .dl-call { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid color-mix(in srgb, var(--v2-signal) 55%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--v2-signal) 16%, transparent); }
.theme-2026.brand-v2 .dl-call__avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--v2-signal); font: 600 15px/1 var(--display); }
.theme-2026.brand-v2 .dl-call__who { display: grid; gap: 2px; min-width: 0; flex: 1; }
.theme-2026.brand-v2 .dl-call__label { color: color-mix(in srgb, var(--v2-paper) 64%, transparent); font: 500 10px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.theme-2026.brand-v2 .dl-call__who strong { font: 500 17px/1.25 var(--display); }
.theme-2026.brand-v2 .dl-call__num { color: color-mix(in srgb, var(--v2-paper) 70%, transparent); font: 400 13px/1.3 var(--display); font-variant-numeric: tabular-nums; }
.theme-2026.brand-v2 .dl-call__actions { display: flex; gap: 10px; }
.theme-2026.brand-v2 .dl-call__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.theme-2026.brand-v2 .dl-call__btn .dl-icon { width: 18px; height: 18px; }
.theme-2026.brand-v2 .dl-call__btn--decline { background: #e5484d; }
.theme-2026.brand-v2 .dl-call__btn--answer { background: var(--v2-complete); animation: dl-ring 1.8s var(--v2-ease) infinite; }

.theme-2026.brand-v2 .dl-recents__title { margin: 4px 0 0; color: color-mix(in srgb, var(--v2-paper) 58%, transparent); font: 500 10px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.theme-2026.brand-v2 .dl-recents { display: grid; margin: 0; padding: 0; list-style: none; }
.theme-2026.brand-v2 .dl-recents li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 2px; border-top: 1px solid color-mix(in srgb, var(--v2-paper) 9%, transparent); font: 400 14px/1.3 var(--display); }
.theme-2026.brand-v2 .dl-recents__kind { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--v2-paper) 8%, transparent); color: color-mix(in srgb, var(--v2-paper) 76%, transparent); }
.theme-2026.brand-v2 .dl-recents__kind .dl-icon { width: 15px; height: 15px; }
.theme-2026.brand-v2 .dl-recents__kind--missed { color: #ff8a8e; }
.theme-2026.brand-v2 .dl-recents__kind--text { color: var(--v2-signal-bright); }
.theme-2026.brand-v2 .dl-recents__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-2026.brand-v2 .dl-recents__time { color: color-mix(in srgb, var(--v2-paper) 52%, transparent); font-size: 12px; font-variant-numeric: tabular-nums; }

@keyframes dl-ring {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--v2-complete) 55%, transparent); }
  60% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--v2-complete) 0%, transparent); }
}

/* == shared section heading == */
.theme-2026.brand-v2 .dl-section-head { max-width: 720px; margin-bottom: 40px; }
.theme-2026.brand-v2 .dl-section-head h2 { margin: 0; color: var(--v2-ink); font: 300 clamp(32px, 3.8vw, 48px)/1.08 var(--display); letter-spacing: -.03em; }
.theme-2026.brand-v2 .dl-section-head h2 strong { display: block; color: var(--v2-signal); font-weight: 500; }

/* == options: Mac app and browser == */
.theme-2026.brand-v2 .dl-options { padding: clamp(64px, 8vw, 112px) 0; background: var(--v2-ground); color: var(--v2-ink); }
.theme-2026.brand-v2 .dl__options { display: grid; gap: 20px; }
.theme-2026.brand-v2 .dl-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border: 1px solid var(--v2-rule); border-radius: var(--v2-radius-sm); background: var(--v2-paper); transition: border-color 240ms var(--v2-ease), box-shadow 240ms var(--v2-ease); }
.theme-2026.brand-v2 .dl-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--v2-radius-sm); background: color-mix(in srgb, var(--v2-signal) 10%, transparent); color: var(--v2-signal); }
.theme-2026.brand-v2 .dl-card__icon .dl-icon { width: 22px; height: 22px; }
.theme-2026.brand-v2 .dl-card h3 { margin: 4px 0 0; font: 500 24px/1.2 var(--display); letter-spacing: -.01em; }
.theme-2026.brand-v2 .dl-card__req { margin: 0; color: var(--v2-quiet); font: 400 15px/1.5 var(--display); }
.theme-2026.brand-v2 .dl-card__button { align-self: flex-start; margin-top: 6px; }
.theme-2026.brand-v2 .dl-card__meta { margin: 0; color: var(--v2-quiet); font: 400 14px/1.4 var(--display); font-variant-numeric: tabular-nums; }
.theme-2026.brand-v2 .dl-card__note { margin: 0; color: var(--v2-quiet); font: 400 14px/1.5 var(--display); }

.theme-2026.brand-v2 .dl-steps { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.theme-2026.brand-v2 .dl-steps li { display: flex; align-items: center; gap: 12px; margin: 0; font: 400 15px/1.45 var(--display); }
.theme-2026.brand-v2 .dl-steps li > span:first-child { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid var(--v2-rule-strong); border-radius: 50%; font: 500 12px/1 var(--mono); }
.theme-2026.brand-v2 .dl-checks { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.theme-2026.brand-v2 .dl-checks li { position: relative; margin: 0; padding-left: 26px; font: 400 15px/1.45 var(--display); }
.theme-2026.brand-v2 .dl-checks li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 12px; height: 7px; border-left: 1.5px solid var(--v2-complete); border-bottom: 1.5px solid var(--v2-complete); transform: rotate(-45deg); }

.theme-2026.brand-v2 .dl-card__checksum { color: var(--v2-quiet); font: 400 13px/1.5 var(--display); }
.theme-2026.brand-v2 .dl-card__checksum summary { cursor: pointer; color: var(--v2-ink); }
.theme-2026.brand-v2 .dl-card__checksum code { display: block; margin: 8px 0; overflow-wrap: anywhere; font-size: 12px; }
.theme-2026.brand-v2 .dl-card__checksum p code { display: inline; margin: 0; }
.theme-2026.brand-v2 .dl-card__checksum p { margin: 0; }

/* The leading option gets the filled button and the accent border; the other is outlined. */
.theme-2026.brand-v2 .dl-card--mac .dl-card__button,
html:not([data-dl-os="mac"]) .theme-2026.brand-v2 .dl-card--web .dl-card__button { color: var(--v2-paper); background: var(--v2-signal); border-color: var(--v2-signal); box-shadow: var(--v2-shadow-soft); }
html:not([data-dl-os="mac"]) .theme-2026.brand-v2 .dl-card--mac .dl-card__button,
html[data-dl-os="mac"] .theme-2026.brand-v2 .dl-card--web .dl-card__button { color: var(--v2-ink); background: var(--v2-paper); border-color: var(--v2-rule-strong); box-shadow: none; }
html:not([data-dl-os="mac"]) .theme-2026.brand-v2 .dl-card--web { order: -1; }
html:not([data-dl-os="mac"]) .theme-2026.brand-v2 .dl-card--web,
html[data-dl-os="mac"] .theme-2026.brand-v2 .dl-card--mac { border-color: var(--v2-signal); box-shadow: var(--v2-shadow-soft); }

/* == features == */
.theme-2026.brand-v2 .dl-features { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--v2-rule); background: var(--v2-paper); color: var(--v2-ink); }
.theme-2026.brand-v2 .dl-features__grid { display: grid; gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--v2-rule); border-radius: var(--v2-radius-sm); background: var(--v2-rule); list-style: none; }
.theme-2026.brand-v2 .dl-features__grid li { display: grid; align-content: start; gap: 10px; margin: 0; padding: 28px; background: var(--v2-paper); }
.theme-2026.brand-v2 .dl-features__icon { color: var(--v2-signal); }
.theme-2026.brand-v2 .dl-features__icon .dl-icon { width: 26px; height: 26px; }
.theme-2026.brand-v2 .dl-features__grid h3 { margin: 6px 0 0; font: 500 19px/1.25 var(--display); }
.theme-2026.brand-v2 .dl-features__grid p { margin: 0; color: var(--v2-quiet); font: 400 15px/1.5 var(--display); }

/* == help band == */
.theme-2026.brand-v2 .dl-help { padding: 56px 0; background: var(--v2-signal); color: var(--v2-paper); }
.theme-2026.brand-v2 .dl-help__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.theme-2026.brand-v2 .dl-help h2 { margin: 0; color: var(--v2-paper); font: 400 clamp(26px, 3vw, 36px)/1.15 var(--display); letter-spacing: -.02em; }
.theme-2026.brand-v2 .dl-help p { margin: 6px 0 0; color: color-mix(in srgb, var(--v2-paper) 82%, transparent); font: 400 17px/1.5 var(--display); }
.theme-2026.brand-v2 .dl-help .home-button--light:hover { color: var(--v2-signal); background: var(--v2-paper); border-color: var(--v2-paper); }

@media (min-width: 640px) {
  .theme-2026.brand-v2 .dl-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .theme-2026.brand-v2 .dl-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; }
  .theme-2026.brand-v2 .dl-window { justify-self: end; }
  .theme-2026.brand-v2 .dl__options { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .theme-2026.brand-v2 .dl-features__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .theme-2026.brand-v2 .dl-hero .home-actions { flex-direction: column; align-items: stretch; }
  .theme-2026.brand-v2 .dl-card { padding: 24px; }
  .theme-2026.brand-v2 .dl-card__button { align-self: stretch; }
  .theme-2026.brand-v2 .dl-call { padding: 12px; gap: 10px; }
  .theme-2026.brand-v2 .dl-call__btn { width: 36px; height: 36px; }
  .theme-2026.brand-v2 .dl-help .home-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-2026.brand-v2 .dl-call__btn--answer { animation: none; }
}
