﻿/* /downloads/ â€” the download cards, on top of landing.css.
 *
 * Colours come from the light token set at the end of landing.css (--text, --muted, --link,
 * --border), so this page follows the rest of the site without repeating the palette.
 */

.downloads {
  max-width: 1120px;
  padding: 48px 24px 64px;
  text-align: center;
}

/* The eyebrow as a chip rather than a line of tracked capitals. */
.dl-eyebrow {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #e9f4ee;
  color: #176247;
  font-size: .62rem;
  letter-spacing: .19em;
}

.downloads h1 {
  max-width: 780px;
  margin: 0 auto 16px;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--text);
}

.dl-lede {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- the three cards ---------- */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1010px;
  margin: 36px auto 0;
}

.dl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 20px 20px;
  border: 1px solid #e2dfd4;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 30px rgba(53, 75, 61, .05);
}

/* The card for the visitor's own system. Not a different layout: same card, tinted, so the
   three remain comparable and the page does not reflow around a detection result. */
.dl-card.is-primary {
  border-color: #8ec8aa;
  background: #edf6f0;
  box-shadow: 0 16px 38px rgba(39, 84, 62, .12);
}

.dl-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: #14261e;
}
.dl-icon svg { width: 30px; height: 30px; }

.dl-name {
  margin: 0 0 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #10251d;
}

.dl-meta {
  margin: 0 0 12px;
  color: #5c6b62;
  font-size: .8rem;
  line-height: 1.45;
}

.dl-file {
  margin-bottom: 18px;
  padding: 2px 8px;
  border: 1px solid #dcd9cd;
  border-radius: 6px;
  background: #fff;
  color: #43564b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
}

.dl-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: .82em 1em;
  border-radius: 10px;
  font-size: .86rem;
  text-align: center;
}
.dl-button-icon { width: 15px; height: 15px; flex: 0 0 auto; }

/* ---------- the three reassurances under the cards ---------- */

.dl-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.dl-trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 26px;
  color: #4d5f55;
  font-size: .8rem;
}

.dl-trust li + li { border-left: 1px solid #ddd9cd; }

.dl-trust svg { width: 17px; height: 17px; flex: 0 0 auto; color: #3f5a4b; }

/* ---------- narrow ---------- */

/* Between the three-up layout and the single column the card is too narrow for the longest
   label at full size, so the button shrinks before it has to wrap. */
@media (min-width: 761px) and (max-width: 900px) {
  .dl-button { gap: 6px; padding: .8em .7em; font-size: .8rem; }
  .dl-card { padding: 20px 16px 18px; }
}

/* Three cards hold down to ~760px; below that one column, capped at a comfortable width. */
@media (max-width: 760px) {
  .downloads { padding: 36px 18px 48px; }
  .dl-lede { font-size: .95rem; }
  .dl-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 400px;
    margin-top: 28px;
  }
  .dl-card { padding: 20px 18px 18px; }
  .dl-trust { flex-direction: column; gap: 12px; }
  .dl-trust li + li { padding-left: 0; border-left: 0; }
}
