/* Plan B VPN download page: header with logo, one card per platform, three steps */
.vpn { padding-bottom: clamp(56px, 7vw, 96px); }

.vpn-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); text-align: center; }
.vpn-logo { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 22px; box-shadow: var(--shadow-card); }
.vpn-head h1 { font-size: clamp(34px, 5vw, 52px); }
.vpn-lead { max-width: 36rem; margin: 16px auto 0; font-size: clamp(16px, 1.8vw, 19px); color: var(--ink-soft); }

.dl-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .dl-grid { grid-template-columns: repeat(4, 1fr); } }

/* Each card shares the row tracks of its grid row (subgrid): a two-line caption
   in one card moves every button in that row down together, so they stay aligned. */
.dl {
  position: relative; display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0;
  align-content: start;
  padding: 26px 22px 22px; border-radius: var(--radius);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.dl:hover { box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-card); transform: translateY(-2px); }
.dl.is-mine { box-shadow: inset 0 0 0 1.5px var(--a-indigo), var(--shadow-card); }

.dl-badge {
  display: none; position: absolute; top: 14px; right: 14px;
  padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 560;
  color: var(--a-indigo); background: rgba(79,70,229,.09);
}
.dl.is-mine .dl-badge { display: inline-block; }

.dl-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  color: #fff; background: var(--grad);
}
.dl-icon svg { width: 26px; height: 26px; }
.dl h2 { margin-top: 18px; font-size: 22px; }
.dl-meta { margin-top: 6px; font-size: 14.5px; color: var(--ink-faint); }
.dl .btn { margin-top: 20px; font-size: 15.5px; align-self: start; white-space: nowrap; }
.dl-note { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

.btn-soon { color: var(--ink-faint); background: var(--wash); box-shadow: inset 0 0 0 1px var(--hairline); cursor: default; }
.btn-soon:active { transform: none; }
.dl.is-soon .dl-icon { background: linear-gradient(100deg, #9AA3B8, #7C86A0); }

.steps { margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 3vw, 34px); border-radius: var(--radius); background: var(--wash); box-shadow: inset 0 0 0 1px var(--hairline); }
.steps h2 { font-size: clamp(22px, 2.6vw, 28px); }
.steps ol { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 820px) { .steps ol { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li { position: relative; padding-left: 44px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-size: 15px; font-weight: 600; color: #fff; background: var(--ink);
}
.steps b { display: block; font-weight: 580; }
.steps span { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-soft); }

.vpn-foot { margin-top: 32px; text-align: center; font-size: 15px; color: var(--ink-faint); }
.vpn-foot a { color: var(--a-indigo); }
.vpn-foot a:hover { color: var(--a-violet); }

/* Older browsers without subgrid: reserve two lines for the caption instead. */
@supports not (grid-template-rows: subgrid) {
  .dl { display: flex; flex-direction: column; }
  @media (min-width: 640px) { .dl-meta { min-height: 3.1em; } }
}
