/* Página de download (baixar.html): cabeçalho escuro do site + corpo claro como as seções de recursos e preços */
body { background: #fff; }

.header-action.is-current { background: var(--gold); }
.header-action.is-current:hover { background: var(--gold-light); }

.download {
  background: #fff;
  color: #0a0c10;
}

.download-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(80px, 8vw, 128px) 24px clamp(78px, 7vw, 110px);
  background: radial-gradient(ellipse 560px 310px at 50% 30%, #fff9e8 0, #fff 82%);
  text-align: center;
}

.download-hero h1 {
  max-width: 1100px;
  margin: 0 auto;
  font-size: clamp(56px, 7vw, 112px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.079em;
  text-wrap: balance;
}

.download-lead {
  max-width: 740px;
  margin: clamp(24px, 2.6vw, 36px) auto 0;
  color: #70747a;
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.5;
  letter-spacing: -.025em;
}

.download-primary,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 700;
  transition: background .2s, transform .2s, border-color .2s;
}

.download-primary svg,
.download-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.download-primary {
  min-height: 66px;
  margin-top: clamp(34px, 3.5vw, 52px);
  padding: 0 32px;
  border-radius: 16px;
  background: #f6c945;
  color: #18180f;
  font-size: 19px;
}
.download-primary:hover { background: #ffe98a; transform: translateY(-3px); }
.download-primary:focus-visible,
.download-button:focus-visible { outline: 3px solid #0a0c10; outline-offset: 4px; }

.download-hint {
  margin-top: 18px;
  color: #9a9da2;
  font-size: 15px;
}

.download-platforms {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: clamp(58px, 6vw, 88px);
  padding-bottom: clamp(90px, 9vw, 150px);
  border-top: 1px solid #e9e9e6;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.download-platforms h2 {
  text-align: center;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.07em;
  text-wrap: balance;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(36px, 4vw, 50px);
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 352px;
  padding: clamp(32px, 3.4vw, 44px);
  border: 1px solid #e6e6e2;
  border-radius: 24px;
  background: #fafaf8;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.download-card.is-detected {
  border-color: #f6c945;
  box-shadow: 0 0 0 1px #f6c945, 0 24px 50px #f6c94526;
}

.download-os {
  width: 60px;
  height: 60px;
  padding: 11px;
  border: 1px solid #e8e8e3;
  border-radius: 15px;
  background: #fff;
  fill: #0a0c10;
}

.download-card h3 {
  margin: 24px 0 0;
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -.06em;
}

.download-card p {
  max-width: 360px;
  margin-top: 10px;
  color: #70747a;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.02em;
}

.download-button {
  width: 100%;
  max-width: 360px;
  min-height: 62px;
  margin-top: auto;
  padding: 0 16px;
  border: 1px solid #e0e0db;
  border-radius: 14px;
  background: #f1f1ee;
  color: #0a0c10;
  font-size: 16px;
  text-align: center;
}
.download-button:hover { border-color: #f6c945; background: #fff7d6; }
.download-button--dark { border-color: #0a0c10; background: #0a0c10; color: #fff; }
.download-button--dark:hover { border-color: #26282d; background: #26282d; }

.download-next {
  margin-top: clamp(86px, 8vw, 120px);
}

.download-next ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: clamp(34px, 3vw, 46px) 0 0;
  padding: 0;
  list-style: none;
}

.download-next li {
  padding: 26px 14px 0;
  border-top: 1px solid #e0e0db;
  text-align: center;
}

.download-next li span {
  display: block;
  color: #b48a1e;
  font: 500 13px "DM Mono", monospace;
  letter-spacing: .12em;
}

.download-next li strong {
  display: block;
  margin-top: 18px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.download-next li p {
  max-width: 310px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 10px;
  color: #70747a;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.02em;
}

.download-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  padding: 30px clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font: 12px "DM Mono", monospace;
  letter-spacing: .06em;
}
.download-footer a:hover { color: var(--gold); }

@media (max-width: 760px) {
  .download-hero { padding: 66px 18px 76px; }
  .download-hero h1 { font-size: clamp(44px, 11vw, 64px); }
  .download-lead { max-width: 34rem; font-size: 17px; }
  .download-break { display: none; }
  .download-primary { width: min(100%, 360px); padding: 0 18px; font-size: 16px; }
  .download-platforms { width: calc(100% - 36px); padding-top: 62px; }
  .download-grid { grid-template-columns: 1fr; gap: 18px; }
  .download-card { min-height: 320px; padding: 30px 22px; }
  .download-button { margin-top: auto; }
  .download-next ol { grid-template-columns: 1fr; gap: 0; }
  .download-next li { padding: 24px 12px 32px; }
  .download-footer { flex-wrap: wrap; gap: 14px 22px; text-align: center; }
  .download-footer span { width: 100%; }
}

/* instalação pelo terminal, abaixo do botão de download */
.download-cli {
  width: 100%;
  max-width: 360px;
  margin-top: 18px;
  text-align: left;
}
.download-cli-label {
  display: block;
  margin-bottom: 8px;
  color: #70747a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.download-cli-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 12px;
  border-radius: 12px;
  background: #0a0c10;
}
.download-cli-row code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  color: #e6e7ea;
  font: 12.5px/1.5 "DM Mono", ui-monospace, Menlo, monospace;
  /* o comando inteiro à vista (quebra em qualquer ponto, sem rolagem) */
  white-space: normal;
  word-break: break-all;
}
.download-cli-copy {
  flex: none;
  min-width: 74px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: #f6c945;
  color: #2a1d00;
  font: 600 12.5px/1 inherit;
  cursor: pointer;
}
.download-cli-copy:focus-visible { outline: 3px solid #f6c945; outline-offset: 2px; }
.download-cli small {
  display: block;
  margin-top: 8px;
  color: #8b8f98;
  font-size: 12.5px;
  line-height: 1.45;
}
