/* ─────────────────────────────────────────────────────
   Download page — component styles
   Loaded only on /download/
   ───────────────────────────────────────────────────── */

/* ── Mobile hero CTA ──────────────────────────────────── */

.mobile-hero-cta {
  margin: 1.25rem 0 1.5rem;
}

@media (min-width: 980px) {
  .mobile-hero-cta {
    display: none;
  }
}

.mobile-hero-cta .demo-banner__cta {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  text-align: center;
}

.mobile-hero-cta .demo-banner__fine {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
}

/* ── Platform grid ────────────────────────────────────── */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 760px) {
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 460px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

.platform-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.1rem 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
}

.platform-card--featured {
  border-color: #00c853;
  background: #f0fff5;
}

.platform-card__badge {
  position: absolute;
  top: -0.65rem;
  left: 1rem;
  background: #00c853;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
}

.platform-card__icon {
  width: 36px;
  height: 36px;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.platform-card__name {
  font-weight: 700;
  font-size: 0.93rem;
  color: #111;
  line-height: 1.3;
}

.platform-card__meta {
  font-size: 0.77rem;
  color: #6b7280;
  line-height: 1.4;
  flex: 1;
}

/* ── Download buttons ─────────────────────────────────── */

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.81rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  margin-top: 0.25rem;
}

.dl-btn--primary {
  background: #00c853;
  color: #fff;
  border-color: #00c853;
}

.dl-btn--primary:hover {
  background: #00a844;
  border-color: #00a844;
}

.dl-btn--dark {
  background: #1a1f2e;
  color: #fff;
  border-color: #1a1f2e;
}

.dl-btn--dark:hover {
  background: #252c3f;
  border-color: #252c3f;
}

.dl-btn--outline {
  background: transparent;
  color: #374151;
  border-color: #d1d5db;
}

.dl-btn--outline:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

/* Standalone download button (inside sections) */
.section-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  margin: 1rem 0;
}

.section-dl-btn--primary {
  background: #00c853;
  color: #fff;
}

.section-dl-btn--primary:hover {
  background: #00a844;
}

.section-dl-btn--dark {
  background: #1a1f2e;
  color: #fff;
}

.section-dl-btn--dark:hover {
  background: #252c3f;
}

/* ── APK recommended callout (green) ─────────────────── */

.apk-callout {
  background: #f0fff5;
  border: 1.5px solid #86efac;
  border-left: 4px solid #00c853;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.apk-callout__title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #14532d;
  margin: 0 0 0.4rem;
}

.apk-callout p {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  color: #166534;
  line-height: 1.55;
}

.apk-callout p:last-child {
  margin-bottom: 0;
}

/* ── Info callout (amber — warnings, notes) ───────────── */

.info-callout {
  background: #fefce8;
  border: 1.5px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.info-callout__title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #78350f;
  margin: 0 0 0.4rem;
}

.info-callout p {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  color: #451a03;
  line-height: 1.55;
}

.info-callout p:last-child {
  margin-bottom: 0;
}

.info-callout strong {
  color: #92400e;
}

/* ── Install steps list ───────────────────────────────── */

.steps-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  counter-reset: step;
}

.steps-list li {
  display: block;
  position: relative;
  padding: 0.75rem 0 0.75rem 2.75rem;
  border-bottom: 1px solid #f3f4f6;
  counter-increment: step;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
}

.steps-list li:last-child {
  border-bottom: none;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
  background: #00c853;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
}

/* ── System requirements table ────────────────────────── */

.req-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.req-table th {
  background: #f9fafb;
  font-weight: 700;
  color: #374151;
  padding: 0.6rem 0.85rem;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

.req-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
  vertical-align: middle;
}

.req-table tr:last-child td {
  border-bottom: none;
}

.req-table tr:nth-child(even) td {
  background: #fafafa;
}

.tag-recommended {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  white-space: nowrap;
  vertical-align: middle;
}

/* ── System requirements table ───────────────────────────── */

.req-table td,
.req-table th {
  vertical-align: middle;
}

/* Column widths: Platform gets most space, Size is compact */
.req-table th:nth-child(1),
.req-table td:nth-child(1) { width: 44%; }
.req-table th:nth-child(2),
.req-table td:nth-child(2) { width: 36%; }
.req-table th:nth-child(3),
.req-table td:nth-child(3) { width: 20%; }

/* Sub-note inside a cell (e.g. RAM requirement) */
.req-note {
  display: block;
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 0.15rem;
  font-weight: 400;
}

/* Mobile: table is 3 cols — fits without scrolling, just tighten */
@media (max-width: 560px) {
  .req-table {
    min-width: 0;
    font-size: 0.78rem;
  }
  .req-table th,
  .req-table td {
    padding: 0.45rem 0.5rem;
  }
}

/* ── After-install 3-step grid ────────────────────────── */

.first-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (max-width: 580px) {
  .first-steps {
    grid-template-columns: 1fr;
  }
}

.first-step {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.1rem 1rem;
  background: #fff;
  text-align: center;
}

.first-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: #00c853;
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.88rem;
  margin: 0 auto 0.65rem;
}

.first-step__title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #111;
  margin: 0 0 0.35rem;
}

.first-step p {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.45;
}

/* ── Troubleshooting cards ────────────────────────────── */

.trouble-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  background: #fff;
}

.trouble-card__title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #111;
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trouble-card__title::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.trouble-card p {
  margin: 0 0 0.3rem;
  font-size: 0.83rem;
  color: #4b5563;
  line-height: 1.5;
}

.trouble-card p:last-child {
  margin-bottom: 0;
}

.trouble-card__fix {
  color: #15803d !important;
  font-weight: 500;
}
