/* ============================================================
   Rihla — vitrine stylesheet
   Palette mirrors the app's "Habitica-clean" design system.
   ============================================================ */

@font-face {
  font-family: "Amiri";
  src: url("assets/fonts/Amiri-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Amiri";
  src: url("assets/fonts/Amiri-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --purple: #6133B4;
  --purple-deep: #4F2A93;
  --purple-light: #925CF3;
  --bg: #F4F3F8;
  --card: #FFFFFF;
  --hairline: #E1E0E6;
  --text: #34313A;
  --dim: #68606F;
  --amber: #F1A624;
  --hp: #F74E52;
  --xp: #FFBE5D;
  --bk: #50B5E9;
  --radius: 12px;
  --shadow: 0 2px 6px rgba(52, 49, 58, 0.08), 0 8px 24px rgba(97, 51, 180, 0.07);
  --shadow-lift: 0 4px 10px rgba(52, 49, 58, 0.10), 0 14px 32px rgba(97, 51, 180, 0.12);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --arabic: "Amiri", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Pixel art: nearest-neighbor everywhere */
.px {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

a { color: var(--purple); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); color: var(--purple-deep); }
h3 { font-size: 1.05rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--purple-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: 999px;
  font: 600 0.95rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 2px 8px rgba(97, 51, 180, 0.35);
}
.btn-primary:hover { background: var(--purple-deep); transform: translateY(-1px); }
.btn-light {
  background: #fff;
  color: var(--purple-deep);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-icon { width: 36px; height: 36px; border-radius: 9px; }
.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--purple-deep);
  letter-spacing: 0.01em;
}
.site-nav {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
}
.site-nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3rem 0;
}
.site-nav a:hover { color: var(--purple); }
.btn-header { padding: 0.5rem 1.1rem; font-size: 0.88rem; }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .btn-header { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(146, 92, 243, 0.16), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(80, 181, 233, 0.10), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 1.25rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.9rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 800;
  color: var(--text);
}
.hero-arabic {
  font-family: var(--arabic);
  font-weight: 700;
  color: var(--purple);
  font-size: 1.25em;
  line-height: 1;
}
.hero-sub {
  margin-top: 1.1rem;
  max-width: 34rem;
  color: var(--dim);
  font-size: 1.05rem;
}
.waitlist {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  max-width: 30rem;
}
.waitlist input {
  flex: 1 1 14rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font: 400 0.95rem var(--sans);
  color: var(--text);
  background: #fff;
}
.waitlist input::placeholder { color: #878190; }
.waitlist input:focus-visible { outline-offset: 0; }
.hero-note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--dim);
}
.hero-stats {
  margin-top: 1.6rem;
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stats li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dim);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-hp { background: var(--hp); }
.dot-xp { background: var(--xp); }
.dot-bk { background: var(--bk); }

.hero-art { display: flex; justify-content: center; }
.hero-icon {
  width: min(340px, 70vw);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(79, 42, 147, 0.30);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; }
  .hero-icon { width: min(220px, 60vw); }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 1.25rem;
}
.section > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section-alt { background: #fff; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-head {
  text-align: center;
  max-width: 44rem;
  margin-bottom: 2.4rem;
}
.section-head p { margin-top: 0.7rem; color: var(--dim); }
.section-foot {
  text-align: center;
  margin-top: 1.8rem;
  color: var(--dim);
  font-size: 0.92rem;
}

/* ---------- Evolutions ---------- */
.evo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.evo-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1rem 1.1rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.evo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.evo-card figcaption {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
}
.evo-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.4rem;
}
.px-avatar { width: 72px; height: 72px; }
.evo-row .px-avatar:last-of-type { width: 84px; height: 84px; }
.evo-arrow { color: var(--amber); font-weight: 700; font-size: 1.1rem; padding-bottom: 1.6rem; }
.evo-levels {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
  gap: 2.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.feat-icon { width: 48px; height: 48px; margin-bottom: 0.9rem; }
.feature h3 { color: var(--purple-deep); margin-bottom: 0.4rem; }
.feature p { font-size: 0.92rem; color: var(--dim); }

/* ---------- Souq strip ---------- */
.souq-strip-wrap { margin-top: 2.6rem; }
.strip-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
}
.souq-strip {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 0.9rem;
  justify-content: safe center;
  scrollbar-width: thin;
}
@media (min-width: 900px) {
  .souq-strip {
    flex-wrap: wrap;
    overflow: visible;
    max-width: 680px;
    margin: 0 auto;
    justify-content: center;
  }
}
.slot {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.slot:hover { transform: translateY(-2px); border-color: var(--amber); }
.slot img { width: 48px; height: 48px; }

/* ---------- Character card demo ---------- */
.card-demo-inner {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.card-demo-copy h2 { margin-bottom: 1rem; }
.card-demo-copy p { color: var(--dim); margin-bottom: 0.9rem; max-width: 32rem; }
.tone-hp { color: var(--hp); }
.tone-xp { color: #D98A0B; }
.tone-bk { color: #2591C7; }

.char-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  max-width: 380px;
  justify-self: center;
  width: 100%;
}
.char-card-top {
  background: var(--purple-deep);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}
.char-avatar {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 4px;
}
.char-id { display: flex; flex-direction: column; }
.char-name { font-weight: 800; font-size: 1.05rem; }
.char-title { font-size: 0.78rem; opacity: 0.85; }
.char-coins {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFD98A;
}
.char-coins img { width: 18px; height: 18px; }
.char-bars { padding: 1rem 1.1rem 0.4rem; display: grid; gap: 0.55rem; }
.bar-row { display: grid; grid-template-columns: 2rem 1fr 3.6rem; align-items: center; gap: 0.6rem; }
.bar-label { font-size: 0.72rem; font-weight: 800; color: var(--dim); }
.bar-num { font-size: 0.72rem; color: var(--dim); text-align: right; font-variant-numeric: tabular-nums; }
.bar {
  height: 10px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill { display: block; height: 100%; border-radius: 999px; }
.fill-hp { background: var(--hp); }
.fill-xp { background: var(--xp); }
.fill-bk { background: var(--bk); }

.char-tasks { list-style: none; padding: 0.8rem 1.1rem 0.4rem; display: grid; gap: 0.45rem; }
.task {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  padding: 0.5rem 0.75rem;
}
.tick {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 6px;
  border: 2px solid var(--hairline);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}
.task.done .tick { background: var(--purple); border-color: var(--purple); }
.task.done { color: var(--dim); }
.char-toast {
  margin: 0.9rem 1.1rem 1.1rem;
  text-align: center;
  background: #FFF6E3;
  border: 1px solid #F5D9A0;
  color: #9A6A0B;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
}

@media (max-width: 860px) {
  .card-demo-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Stable ---------- */
.stable-flow {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.stable-flow .evo-arrow { padding-bottom: 0; }
.stable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.species {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.3rem 1rem 1rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.species:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.species-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.1rem;
  min-height: 108px;
}
.px-pet { width: 72px; height: 72px; }
.px-mount { width: 108px; height: 108px; }
.species figcaption {
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--purple-deep);
  font-size: 0.95rem;
}

.chip-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}
#quests .chip-row { margin-top: 0; margin-bottom: 1.8rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.3rem 0.9rem 0.3rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dim);
  box-shadow: var(--shadow);
}
.chip img { width: 24px; height: 24px; }
.chip-row + .section-foot { margin-top: 0.9rem; }

/* ---------- Bosses ---------- */
.boss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.boss-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.3rem;
  text-align: center;
  border-top: 4px solid var(--hp);
}
.boss-card img { width: 160px; height: 160px; margin: 0 auto 1rem; }
.boss-card h3 { color: var(--purple-deep); margin-bottom: 0.4rem; }
.boss-card p { font-size: 0.92rem; color: var(--dim); }

.paths-row { margin-top: 2.6rem; }
.paths-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.paths-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.45rem 1.1rem 0.45rem 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--purple-deep);
  box-shadow: var(--shadow);
}
.paths-list img { width: 36px; height: 36px; }

/* ---------- Journey ---------- */
.section-deep {
  background: linear-gradient(180deg, var(--purple-deep), #3E2175);
  color: #fff;
}
.section-deep .section-head h2 { color: #fff; }
.section-deep .section-head p { color: rgba(255, 255, 255, 0.78); }
.journey-strip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.8rem 0.4rem 1.2rem;
  justify-content: safe center;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.4) transparent;
}
.city { flex: 0 0 auto; text-align: center; }
.px-city {
  width: 112px;
  height: 112px;
  margin: 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
.city figcaption {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.city:first-child figcaption,
.city:last-child figcaption { color: var(--amber); font-weight: 800; }
.city-path {
  flex: 0 0 34px;
  height: 0;
  border-top: 3px dotted rgba(255, 255, 255, 0.45);
  margin-bottom: 1.6rem;
}

/* ---------- Seasons ---------- */
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.season-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.3rem;
  text-align: center;
}
.px-season { width: 128px; height: 128px; margin: 0 auto 1rem; }
.season-card h3 { color: var(--purple-deep); margin-bottom: 0.4rem; }
.season-card p { font-size: 0.92rem; color: var(--dim); }
.season-chip {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #FFF6E3;
  border: 1px solid #F5D9A0;
  color: #9A6A0B;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.season-chip img { width: 24px; height: 24px; }

/* ---------- Pledge ---------- */
.pledge-card {
  max-width: 46rem;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  border-top: 5px solid var(--amber);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.pledge-card h2 { margin-bottom: 0.8rem; }
.pledge-lede { color: var(--dim); margin-bottom: 1.2rem; }
.pledge-list { list-style: none; display: grid; gap: 0.8rem; }
.pledge-list li {
  padding-left: 1.9rem;
  position: relative;
  color: var(--dim);
}
.pledge-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.pledge-list strong { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 46rem; display: grid; gap: 0.8rem; }
.faq-list details {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 1.3rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--purple-deep);
  padding: 1.05rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 1.3rem;
  font-weight: 700;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--dim); padding-bottom: 1.2rem; font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0.6rem 0 1.4rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--hairline);
  padding: 2.2rem 1.25rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  color: var(--dim);
  font-size: 0.9rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 0.5rem;
}
.footer-brand .brand-icon { width: 28px; height: 28px; border-radius: 7px; }
.footer-fine { margin-top: 0.8rem; font-size: 0.78rem; color: #878190; }
.footer-fine code { font-size: 0.95em; }

/* ---------- Motion & small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 480px) {
  .px-avatar { width: 60px; height: 60px; }
  .evo-row .px-avatar:last-of-type { width: 72px; height: 72px; }
  .evo-levels { gap: 2rem; }
  .px-city { width: 96px; height: 96px; }
  .boss-card img { width: 128px; height: 128px; }
}

/* ============ Download section ============ */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.dl-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dl-icon { font-size: 2.2rem; display: block; margin-bottom: 0.8rem; }
.dl-card h3 { color: var(--purple-deep); margin-bottom: 0.4rem; }
.dl-card p { font-size: 0.92rem; color: var(--dim); }
.dl-btn { margin-top: auto; padding-top: 0.7rem; }
.dl-card .dl-btn { margin-top: 1rem; }
.dl-alt { margin-top: 0.8rem; font-size: 0.78rem; }
.dl-alt a { color: var(--purple); font-weight: 700; }
.dl-alt code {
  display: inline-block;
  background: #F1EEF8;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  word-break: break-all;
}
.dl-card-soon { opacity: 0.75; }
.dl-soon {
  margin-top: 1rem;
  display: inline-block;
  background: #F1EEF8;
  border: 1px solid var(--hairline);
  color: var(--dim);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.dl-note {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--dim);
}

/* ============ Header download dropdown (MEGA-style) ============ */
.nav-dd { position: relative; }
.nav-dd-toggle {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dim);
  padding: 0.3rem 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-dd-toggle:hover, .nav-dd.open .nav-dd-toggle { color: var(--purple); }
.dd-chev { font-size: 0.7rem; transition: transform 0.15s ease; }
.nav-dd.open .dd-chev, .nav-dd:hover .dd-chev { transform: rotate(180deg); }
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: -60px;
  min-width: 270px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--hairline);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}
.nav-dd:hover .nav-dd-panel, .nav-dd.open .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dd-panel::before { /* hover bridge so the gap doesn't close the menu */
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.dd-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  border-radius: 9px;
  text-decoration: none;
}
a.dd-row:hover { background: #F1EEF8; }
.dd-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #F1EEF8;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex: none;
}
.dd-txt { display: flex; flex-direction: column; line-height: 1.25; }
.dd-txt strong { color: var(--text); font-size: 0.9rem; }
.dd-txt small { color: var(--dim); font-size: 0.76rem; }
.dd-row-soon { opacity: 0.55; cursor: default; }
.dd-foot {
  display: block;
  text-align: center;
  margin-top: 0.35rem;
  padding: 0.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.dd-foot:hover { text-decoration: underline; }
