/* ============================================================
   xx7 Game — Download Page
   Hero mockup · install steps with screenshots · QR · specs
   ============================================================ */

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.dl-hero {
  position: relative;
  padding-block: clamp(108px, 13vw, 152px) clamp(44px, 6vw, 74px);
  overflow: hidden;
}

.dl-hero__grid {
  display: grid;
  gap: clamp(38px, 5.5vw, 62px);
  align-items: center;
}

@media (min-width: 960px) {
  .dl-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.dl-hero__title {
  font-size: var(--fs-h1);
  margin-bottom: 20px;
}

.dl-hero__lead {
  max-width: 58ch;
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

/* App meta strip under the CTAs */
.app-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr));
  margin-top: 30px;
}

.app-meta__item {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: rgba(19, 18, 21, 0.7);
  transition: all var(--t-base) var(--ease-out);
}
.app-meta__item:hover { border-color: var(--color-border-strong); transform: translateY(-3px); }

.app-meta__label {
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 5px;
}
.app-meta__value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-champagne-light);
}

/* ------------------------------------------------------------
   INSTALL STEPS
   ------------------------------------------------------------ */
.install-steps {
  display: grid;
  gap: clamp(30px, 4.5vw, 58px);
}

.install-step {
  display: grid;
  gap: clamp(24px, 3.5vw, 46px);
  align-items: center;
}

@media (min-width: 820px) {
  .install-step { grid-template-columns: minmax(0, 1fr) minmax(0, 240px); }

  /* Alternate the sides. The column widths swap too, otherwise the
     text would land in the narrow device column. */
  .install-step:nth-child(even) { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
  .install-step:nth-child(even) > *:first-child { order: 2; }
}

.install-step__body {
  position: relative;
  padding-left: 62px;
}

.install-step__num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  background: linear-gradient(150deg, rgba(201, 168, 118, 0.24), rgba(92, 16, 35, 0.38));
  border: 1px solid var(--color-border-strong);
  color: var(--color-champagne-light);
}

.install-step__title {
  font-size: var(--fs-h3);
  margin-bottom: 12px;
}

.install-step__text {
  font-size: var(--fs-sm);
  line-height: 1.78;
  color: var(--color-text-secondary);
}
.install-step__text + .install-step__text { margin-top: 0.9em; }

.install-step__tip {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-soft);
  background: rgba(201, 168, 118, 0.06);
  font-size: var(--fs-xs);
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.install-step__tip svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: var(--color-champagne); }

/* Small device frame used beside each step */
.step-device {
  position: relative;
  width: min(100%, 216px);
  aspect-ratio: 851 / 1848;
  margin-inline: auto;
  padding: 7px;
  border-radius: 28px;
  background: linear-gradient(155deg, #4A4048 0%, #16141A 26%, #0C0B0E 55%, #2C262E 82%, #0A090C 100%);
  box-shadow: 0 0 0 1px rgba(201, 168, 118, 0.20), 0 20px 46px rgba(0, 0, 0, 0.65);
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
}
.step-device:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(201, 168, 118, 0.45), 0 28px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(140, 31, 63, 0.28);
}

.step-device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #0A0507;
}
.step-device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.step-device__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 42%, rgba(255, 255, 255, 0.12) 50%, transparent 58%);
}

.step-device__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 11px;
  border-radius: var(--radius-pill);
  background: #08070A;
  z-index: 2;
}

/* ------------------------------------------------------------
   ILLUSTRATED STEP SCREENS
   Steps 1 and 2 describe Android's own settings and the browser
   download — screens we have no photograph of. Rather than show a
   screenshot that doesn't match the instruction, these are drawn
   in CSS so the illustration is honest about what it depicts.
   ------------------------------------------------------------ */
.mock-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 30px 14px 16px;
  background: linear-gradient(180deg, #16141A 0%, #0D0C10 100%);
  font-size: 0.58rem;
  line-height: 1.4;
}

.mock-screen__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 11px;
  margin-bottom: 11px;
  border-bottom: 1px solid rgba(201, 168, 118, 0.16);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-champagne-light);
}
.mock-screen__bar svg { width: 12px; height: 12px; flex: 0 0 auto; }

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  margin-bottom: 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--color-text-secondary);
}

.mock-row--active {
  background: rgba(201, 168, 118, 0.14);
  border: 1px solid rgba(201, 168, 118, 0.42);
  color: var(--color-text-primary);
  box-shadow: 0 0 18px rgba(201, 168, 118, 0.20);
}

.mock-row__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row__sub { display: block; font-size: 0.5rem; color: var(--color-text-muted); }

/* Android-style toggle */
.mock-toggle {
  position: relative;
  width: 26px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
}
.mock-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #8A7C72;
  transition: all var(--t-base) var(--ease-out);
}
.mock-toggle--on { background: rgba(201, 168, 118, 0.55); }
.mock-toggle--on::after {
  left: 13px;
  background: var(--color-champagne-light);
  box-shadow: 0 0 8px rgba(232, 217, 187, 0.8);
}

/* Download progress card */
.mock-download {
  margin-top: 14px;
  padding: 12px;
  border-radius: 9px;
  background: rgba(19, 18, 21, 0.95);
  border: 1px solid rgba(201, 168, 118, 0.30);
}

.mock-download__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.mock-download__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--gradient-gold-solid);
  color: #1A1206;
}
.mock-download__icon svg { width: 12px; height: 12px; }

.mock-download__name { font-weight: 600; color: var(--color-text-primary); }
.mock-download__meta { font-size: 0.5rem; color: var(--color-text-muted); }

.mock-progress {
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(43, 36, 38, 0.9);
  overflow: hidden;
}
.mock-progress__fill {
  height: 100%;
  width: 68%;
  border-radius: var(--radius-pill);
  background: var(--gradient-gold-solid);
  animation: mockDownload 3.4s var(--ease-in-out) infinite;
}

@keyframes mockDownload {
  0%   { width: 8%; }
  70%  { width: 92%; }
  100% { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mock-progress__fill { animation: none; width: 72%; }
}

.mock-screen__caption {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.5rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   COMPATIBILITY TABLE
   ------------------------------------------------------------ */
.compat {
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.compat-card {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--gradient-surface-card);
  transition: all var(--t-base) var(--ease-out);
}
.compat-card:hover { transform: translateY(-5px); border-color: var(--color-border-strong); box-shadow: var(--shadow-card-lg); }

.compat-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.compat-card__head svg { width: 24px; height: 24px; color: var(--color-champagne); flex: 0 0 auto; }
.compat-card__head h3 { font-size: var(--fs-h4); }

.compat-list { display: grid; gap: 10px; }
.compat-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: var(--fs-xs);
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(43, 36, 38, 0.6);
  color: var(--color-text-muted);
}
.compat-list li:last-child { border-bottom: none; padding-bottom: 0; }
.compat-list b { color: var(--color-champagne-light); font-weight: 500; text-align: right; }

/* ------------------------------------------------------------
   SECURITY CALLOUT
   ------------------------------------------------------------ */
.security-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(224, 168, 60, 0.30);
  background: rgba(224, 168, 60, 0.07);
}
.security-note svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--color-warning); }
.security-note h3 { font-size: var(--fs-h4); margin-bottom: 9px; }
.security-note p { font-size: var(--fs-sm); line-height: 1.75; color: var(--color-text-secondary); }
.security-note p + p { margin-top: 0.8em; }
