/* =========================================================
   DOWNLOAD PAGE — LitoSul IPTV
   ========================================================= */

.dl-hero {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 3rem + 4vw, 7rem) var(--gutter) var(--space-block);
  text-align: center;
}
.dl-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}
.dl-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.6rem + 4.5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 1.5rem 0 1.2rem;
  color: var(--text);
}
.dl-hero__title em {
  display: block;
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(110deg, var(--gold) 0%, var(--sunset) 50%, var(--sunset-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px var(--gold-glow);
}
.dl-hero__lead {
  font-size: var(--text-lead);
  color: var(--text-soft);
  line-height: 1.55;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}
.dl-hero__lead strong { color: var(--text); font-weight: 600; }

.dl-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
}
.dl-hero__chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  background: rgba(244, 160, 58, 0.06);
  border: 1px solid var(--border-sunset);
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ===== Brand icons ===== */
.chip-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
  color: var(--text);
}
.chip-icon--android { color: #3ddc84; }   /* Android verde oficial */
.chip-icon--win     { color: #00adef; }   /* Windows azul */
.chip-icon--fire    { color: #ff9900; }   /* Fire Stick laranja Amazon */

.pill-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
}
.dl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.dl-pill--android  { color: #3ddc84; background: rgba(61, 220, 132, 0.1);  border-color: rgba(61, 220, 132, 0.4); }
.dl-pill--ios      { color: #f5ede0; }
.dl-pill--windows  { color: #00adef; background: rgba(0, 173, 239, 0.12);  border-color: rgba(0, 173, 239, 0.45); }
.dl-pill--fire     { color: #ff9900; background: rgba(255, 153, 0, 0.12);  border-color: rgba(255, 153, 0, 0.4); }
.dl-pill--mi       { color: #ff6900; background: rgba(255, 105, 0, 0.12);  border-color: rgba(255, 105, 0, 0.4); }

/* ===================================================
   SECTIONS
   =================================================== */
.dl-section {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-block);
}
.dl-section__head {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.dl-section__icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(244, 160, 58, 0.18), rgba(196, 99, 46, 0.12));
  border: 1px solid var(--border-sunset);
  display: grid;
  place-items: center;
  color: var(--sunset);
}
.dl-section__icon svg { width: 32px; height: 32px; }
.dl-section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0.3rem 0 0.4rem;
}
.dl-section__sub {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 300;
  margin: 0;
}

/* ===================================================
   CARDS
   =================================================== */
.dl-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 980px) { .dl-grid-3 { grid-template-columns: 1fr; } }

.dl-card {
  position: relative;
  padding: 1.8rem 1.6rem;
  background: linear-gradient(165deg, var(--navy-card) 0%, var(--navy-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.dl-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-sunset);
}
.dl-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0.6rem 0 1rem;
}
.dl-card__body { display: contents; }
.dl-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.dl-card__note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}
.dl-card__meta {
  display: block;
  text-align: center;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dl-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(245, 237, 224, 0.06);
  border: 1px solid rgba(245, 237, 224, 0.12);
  border-radius: 100px;
  color: var(--text);
  font-weight: 600;
}
.dl-pill--android { background: rgba(64, 196, 99, 0.12); border-color: rgba(64, 196, 99, 0.4); color: #5be374; }
.dl-pill--ios     { background: rgba(245, 237, 224, 0.08); border-color: rgba(245, 237, 224, 0.18); }
.dl-pill--windows { background: rgba(91, 155, 255, 0.12); border-color: rgba(91, 155, 255, 0.4); color: var(--cobalt-bright); }

/* ===================================================
   STEPS
   =================================================== */
.dl-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.6rem;
}
.dl-steps li {
  position: relative;
  padding-left: 2.2rem;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.5;
  counter-increment: step;
  font-weight: 300;
}
.dl-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(244, 160, 58, 0.12);
  color: var(--sunset);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border-sunset);
}
.dl-steps li strong { color: var(--text); font-weight: 600; }
.dl-steps li code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.1rem 0.4rem;
  background: rgba(244, 160, 58, 0.12);
  border-radius: 4px;
  color: var(--gold);
}

/* ===================================================
   CALLOUT (dica)
   =================================================== */
.dl-callout {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  background: rgba(91, 155, 255, 0.08);
  border-left: 3px solid var(--cobalt);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.dl-callout strong { color: var(--cobalt-bright); }
.dl-callout code { font-family: var(--font-mono); color: var(--gold); }

/* ===================================================
   APP ICONS (Xcloud, Premium IPTV, Downloader)
   =================================================== */
.dl-steps--apps li.dl-steps__app {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 0;
}
.dl-steps--apps li.dl-steps__app::before {
  display: none;
}
.dl-steps__app-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}
.dl-steps__app-icon svg,
.dl-steps__app-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.dl-callout--apps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(244, 169, 58, 0.08), rgba(220, 38, 38, 0.08));
  border-left: 3px solid #fbbf24;
}
.dl-callout--apps strong { color: #fbbf24; display: block; margin-bottom: 0.25rem; }
.dl-callout__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.35);
}
.dl-callout__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dl-mini-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-block;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.dl-mini-icon svg,
.dl-mini-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* ===================================================
   CODE BLOCK (Downloader)
   =================================================== */
.dl-code-block {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(244, 160, 58, 0.18), rgba(196, 99, 46, 0.08));
  border: 1px solid var(--border-sunset);
  border-radius: 10px;
  margin-top: 0.6rem;
}
.dl-code-block__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dl-code-block__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--gold);
  flex: 1;
  text-align: center;
}
.dl-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  background: var(--sunset);
  color: #1a0e00;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background 200ms ease, transform 200ms ease;
}
.dl-copy:hover { background: var(--gold); transform: translateY(-1px); }
.dl-copy.is-copied { background: #5be374; }

/* ===================================================
   DOWNLOAD CARD
   =================================================== */
.dl-card--download {
  display: flex;
  flex-direction: column;
}
.dl-card--download .dl-steps { flex: 1; }
.dl-btn { margin-top: auto; }

/* ===================================================
   FINAL STEP
   =================================================== */
.dl-final-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: clamp(1.8rem, 1.4rem + 1vw, 2.6rem);
  background:
    radial-gradient(circle at 0% 50%, rgba(244, 160, 58, 0.15), transparent 50%),
    linear-gradient(135deg, var(--navy-card), var(--navy-elev));
  border: 1px solid var(--border-sunset);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 50px -20px rgba(244, 160, 58, 0.2);
}
.dl-final-step__num {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--sunset-deep));
  color: #1a0e00;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  box-shadow: 0 12px 24px -8px var(--gold-glow);
}
.dl-final-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem);
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0.3rem 0 0.5rem;
}
.dl-final-step p {
  color: var(--text-soft);
  line-height: 1.55;
  font-weight: 300;
  margin-bottom: 1.2rem;
}
.dl-final-step strong { color: var(--text); font-weight: 600; }

@media (max-width: 720px) {
  .dl-final-step { flex-direction: column; gap: 1rem; }
  .dl-section__head { flex-direction: column; gap: 0.8rem; }
  .dl-section__icon { width: 52px; height: 52px; }
}
