/* Youshi Partner download page.
   Self-contained so it renders correctly whether reached from the
   homepage or served as the fallback when a browser hits /partner. */

.dl-body {
  margin: 0;
  background: #0a0d16;
  color: #eef1fb;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

/* ---- nav ---- */
.dl-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; max-width: 1100px; margin: 0 auto;
}
.dl-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #eef1fb; }
.dl-brand img { width: 30px; height: 30px; }
.dl-brand span { font-size: 19px; font-weight: 700; letter-spacing: -0.2px; }
.dl-nav-back { color: #8b93b0; text-decoration: none; font-size: 13.5px; }
.dl-nav-back:hover { color: #eef1fb; }

.dl-main { max-width: 1100px; margin: 0 auto; padding: 0 28px 60px; }

/* ---- hero ---- */
.dl-hero { text-align: center; padding: 48px 0 40px; }
.dl-badge {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  background: rgba(212,175,55,0.14); border: 1px solid rgba(212,175,55,0.35);
  color: #e8c86a; font-size: 12px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 16px;
}
.dl-hero h1 {
  font-size: clamp(34px, 5.5vw, 54px); margin: 0 0 14px;
  letter-spacing: -1.2px; line-height: 1.08;
}
.dl-lede {
  max-width: 620px; margin: 0 auto 34px;
  font-size: 16.5px; line-height: 1.6; color: #9aa1bd;
}

/* ---- primary download ---- */
.dl-primary { margin-bottom: 8px; }
.dl-btn-primary {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 30px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(135deg, #d4af37, #f0d478);
  color: #1a1508; box-shadow: 0 8px 30px rgba(212,175,55,0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}
.dl-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(212,175,55,0.36); }
.dl-btn-icon { font-size: 26px; line-height: 1; }
.dl-btn-primary strong { display: block; font-size: 16.5px; font-weight: 750; }
.dl-btn-primary small { display: block; font-size: 12.5px; opacity: 0.75; margin-top: 2px; }
.dl-primary-note { font-size: 13px; color: #8b93b0; margin: 14px 0 0; }

.dl-unavailable {
  max-width: 520px; margin: 0 auto; padding: 18px 22px; border-radius: 12px;
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.32);
  color: #f0c674; font-size: 14px; line-height: 1.55;
}
.dl-unavailable strong { display: block; margin-bottom: 4px; }

/* ---- platform grid ---- */
.dl-section-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: #6b7392; text-align: center; margin: 0 0 22px;
}
.dl-platforms { padding: 34px 0; }
.dl-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 900px; margin: 0 auto;
}
.dl-card {
  padding: 26px 22px; border-radius: 16px; text-align: center;
  background: rgba(255,255,255,0.028); border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.dl-card:hover { border-color: rgba(212,175,55,0.4); background: rgba(255,255,255,0.05); transform: translateY(-3px); }
.dl-card.is-detected { border-color: rgba(212,175,55,0.55); background: rgba(212,175,55,0.06); }
.dl-card-os { font-size: 34px; line-height: 1; margin-bottom: 12px; }
.dl-card h3 { margin: 0 0 5px; font-size: 18px; }
.dl-card-hint { font-size: 12.5px; color: #7e86a4; margin: 0 0 6px; min-height: 32px; line-height: 1.4; }
.dl-card-meta { font-size: 12px; color: #6b7392; margin: 0 0 16px; min-height: 16px; }
.dl-card-btn {
  display: block; padding: 11px; border-radius: 10px; text-decoration: none;
  font-size: 14px; font-weight: 650;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.13); color: #eef1fb;
  transition: all 0.15s;
}
.dl-card-btn:hover { background: rgba(212,175,55,0.16); border-color: rgba(212,175,55,0.45); color: #f0d478; }
.dl-card-btn.is-disabled { opacity: 0.4; pointer-events: none; }
.dl-detected-tag {
  display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgba(212,175,55,0.16); color: #e8c86a;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
}

/* ---- why ---- */
.dl-why { padding: 44px 0 20px; }
.dl-why-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 940px; margin: 0 auto;
}
.dl-why-card {
  padding: 24px 22px; border-radius: 14px;
  background: rgba(255,255,255,0.022); border: 1px solid rgba(255,255,255,0.07);
}
.dl-why-icon { font-size: 24px; margin-bottom: 10px; }
.dl-why-card h3 { margin: 0 0 7px; font-size: 16px; }
.dl-why-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #8b93b0; }

/* ---- everything-else note ---- */
.dl-note-block {
  max-width: 700px; margin: 40px auto 0; padding: 30px 26px;
  border-radius: 16px; text-align: center;
  background: rgba(255,255,255,0.022); border: 1px solid rgba(255,255,255,0.07);
}
.dl-note-block p { font-size: 14.5px; line-height: 1.65; color: #9aa1bd; margin: 0 0 18px; }
.dl-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dl-chip {
  padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: 13.5px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #c3c8de;
  transition: all 0.15s;
}
.dl-chip:hover { border-color: rgba(212,175,55,0.4); color: #f0d478; }

/* ---- footer ---- */
.dl-footer {
  text-align: center; padding: 40px 28px; margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12.5px; color: #5d6480;
}
.dl-footer p { margin: 0 0 8px; }
.dl-footer-links a { color: #7e86a4; text-decoration: none; }
.dl-footer-links a:hover { color: #c3c8de; }

@media (max-width: 640px) {
  .dl-hero { padding: 32px 0 28px; }
  .dl-btn-primary { width: 100%; justify-content: center; }
}
