/* ============================================================
   download.css — Página de download pública
   ============================================================ */

.page-download {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 5rem) clamp(1.5rem, 6vw, 3rem) 5rem;
  gap: 1.25rem;
}

.hero__title {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
  animation: fadeUp 0.5s var(--ease) 0.1s both;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--muted);
  font-weight: 400;
  max-width: 430px;
  line-height: 1.65;
  animation: fadeUp 0.5s var(--ease) 0.2s both;
}

/* ── CTA ──────────────────────────────────────────────────── */
.dl-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  animation: fadeUp 0.5s var(--ease) 0.3s both;
}

.dl-btn--win {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.05rem 2.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast);
}

.dl-btn--win:hover {
  background: var(--accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(59,130,246,0.3);
}

.dl-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero__version {
  font-size: 0.78rem;
  color: var(--muted2);
  font-family: var(--font-mono);
}

.hero__features-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  /* color: var(--muted2); */
  color: var(--muted);
  text-decoration: none;
  transition: color var(--fast);
  letter-spacing: 0.005em;
}

.hero__features-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform var(--fast);
}

.hero__features-link:hover {
  color: var(--muted);
}

.hero__features-link:hover svg {
  transform: translateX(2px);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 1.75rem clamp(1.5rem, 6vw, 3rem);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--muted2);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__link {
  font-size: 0.8rem;
  color: var(--muted2);
  text-decoration: none;
  transition: color var(--fast);
}

.footer__link:hover { color: var(--muted); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Pages internas (Ajuda / Contato) ─────────────────────── */
.page-inner {
  min-height: 100dvh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
}

.inner-wrap {
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  padding: 4rem clamp(1.5rem, 5vw, 2.5rem) 5rem;
}

.inner-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.inner-lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 3rem;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--fast);
}

.faq-btn:hover { color: var(--accent-hi); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted2);
  transition: transform var(--mid), color var(--fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--mid);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-text {
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Contact form ─────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cf-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cf-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.cf-input,
.cf-textarea {
  padding: 0.7rem 0.9rem;
  background: var(--bg1);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--fast), box-shadow var(--fast);
}

.cf-input:focus,
.cf-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.cf-input::placeholder,
.cf-textarea::placeholder { color: var(--muted2); }

.cf-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.cf-hint {
  font-size: 0.76rem;
  color: var(--muted2);
  text-align: right;
}

.cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  align-self: flex-end;
  transition: background var(--fast), transform var(--fast);
}

.cf-submit:hover {
  background: var(--accent-hi);
  transform: translateY(-1px);
}

.cf-error {
  padding: 0.75rem 1rem;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #fca5a5;
}

.cf-char-count {
  font-size: 0.76rem;
  color: var(--muted2);
  text-align: right;
  transition: color var(--fast);
}

.cf-char-count.warn { color: var(--warning); }
.cf-char-count.limit { color: var(--error); }

/* ── Success page ─────────────────────────────────────────── */
.success-icon {
  width: 56px;
  height: 56px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.success-icon svg {
  width: 24px;
  height: 24px;
  color: var(--success);
}

@media (max-width: 480px) {
  .cf-submit { align-self: stretch; justify-content: center; }
}