/* ==========================================================================
   Sections: hero, features, level steps, download, about, footer
   ========================================================================== */

/* ---------- Hero ---------- */
.hero { padding: 28px 0 48px; }

.hero-inner { display: grid; gap: 28px; }

.hero-plaque {
  position: relative;
  padding: 36px 22px 30px;
  text-align: center;
  background: linear-gradient(180deg, var(--umber-raised), var(--ink-deep));
  border: 1px solid var(--bronze);
  outline: 1px solid var(--umber-edge);
  outline-offset: 4px;
  border-radius: var(--radius);
  box-shadow: var(--relief-shadow);
}

.hero-plaque__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 20px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--umber-edge), 0 8px 20px rgba(0, 0, 0, 0.6);
}

.hero-title {
  font-size: clamp(28px, 8.4vw, 36px);
  margin-bottom: 14px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}
.hero-title__accent { display: block; color: var(--sand); font-size: 0.72em; letter-spacing: 0.16em; text-transform: uppercase; }

.hero-lead { font-size: 17px; color: var(--sand); max-width: 34em; margin: 0 auto 20px; }

.gem-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }

.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--sand-muted); letter-spacing: 0.04em; }

/* Banner inside a gothic pointed-arch window */
.arch-window {
  margin: 0;
  padding: 8px;
  background: linear-gradient(180deg, var(--bronze), var(--bronze-deep));
  border-radius: 50% 50% var(--radius) var(--radius) / 22% 22% var(--radius) var(--radius);
  box-shadow: 0 0 0 1px var(--gold), 0 18px 40px rgba(0, 0, 0, 0.6);
}
.arch-window__img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
  border-radius: 50% 50% 6px 6px / 21% 21% 6px 6px;
  border: 1px solid var(--ink-deep);
}

/* ---------- Features ---------- */
.features { padding: 56px 0; border-top: 1px solid var(--umber-edge); }

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.relief-card {
  position: relative;
  padding: 26px 22px 20px;
  background: linear-gradient(180deg, var(--umber-raised), #22160e);
  border: 1px solid var(--umber-edge);
  border-top: 2px solid var(--bronze);
  border-radius: var(--radius);
  box-shadow: var(--relief-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.relief-card:hover,
.relief-card:active { transform: translateY(-3px); border-color: var(--bronze); }
.relief-card p { margin: 0; color: var(--sand-muted); }
.relief-card__title { font-size: 19px; margin-bottom: 10px; }

/* Small gothic arch niche holding a candy gem */
.arch-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 64px;
  margin-bottom: 16px;
  background: radial-gradient(circle at 50% 65%, #3d2a1a, var(--ink-deep));
  border: 1px solid var(--bronze);
  border-radius: 50% 50% 6px 6px / 40% 40% 6px 6px;
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.6);
}

/* Level steps: engraved roman numerals */
.level-steps {
  margin-top: 40px;
  padding: 26px 22px;
  border: 1px dashed var(--bronze);
  border-radius: var(--radius);
  background: rgba(20, 12, 8, 0.55);
}
.level-steps__title { font-size: 20px; text-align: center; margin-bottom: 20px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step { display: flex; align-items: flex-start; gap: 16px; }
.step p { margin: 0; color: var(--sand-muted); }
.step__numeral {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-bright);
  border: 2px solid var(--bronze);
  border-radius: 50%;
  background: var(--ink-deep);
  text-shadow: 0 1px 0 #000;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}
.step__name { font-size: 17px; margin-bottom: 4px; }

/* ---------- Download CTA ---------- */
.download {
  padding: 56px 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(232, 106, 138, 0.14), transparent 55%),
    linear-gradient(180deg, var(--ink-deep), #241509 60%, var(--ink-deep));
  border-top: 1px solid var(--bronze-deep);
  border-bottom: 1px solid var(--bronze-deep);
}

.download-frame {
  position: relative;
  padding: 40px 22px 34px;
  text-align: center;
  border: 2px solid var(--bronze);
  outline: 1px solid var(--gold);
  outline-offset: -8px;
  border-radius: var(--radius);
  background: rgba(31, 20, 13, 0.85);
}
.download-frame__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  border: 2px solid var(--gold);
}
.download-title { font-size: clamp(28px, 8vw, 36px); margin-bottom: 12px; }
.download-lead { color: var(--sand); max-width: 30em; margin: 0 auto 26px; }

/* ---------- About ---------- */
.about { padding: 56px 0; }
.about-body p { color: var(--sand); }
.about-contact { padding-top: 16px; border-top: 1px solid var(--umber-edge); color: var(--sand-muted); }
.about-contact a { display: inline-block; padding: 10px 0; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px 0 calc(100px + env(safe-area-inset-bottom));
  background: var(--ink-deep);
  border-top: 2px solid var(--bronze-deep);
  text-align: center;
  font-size: 14px;
  color: var(--sand-muted);
}
.footer-inner { display: grid; gap: 14px; justify-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); color: var(--gold-bright); letter-spacing: 0.08em; }
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--bronze); }
.footer-mail { display: inline-flex; align-items: center; min-height: 44px; word-break: break-all; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sand); }
.footer-legal a:hover,
.footer-legal a:active { color: var(--gold-bright); }
.footer-copy { margin: 0; }

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .hero { padding: 48px 0 72px; }
  .hero-plaque { padding: 44px 48px 36px; }
  .hero-title { font-size: 48px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .feature-grid > :last-child { grid-column: 1 / -1; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step { flex-direction: column; align-items: center; text-align: center; }

  .features,
  .download,
  .about { padding: 80px 0; }
  .download-frame { padding: 56px 48px 48px; }
  .download-title { font-size: 44px; }

  .about-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }

  .site-footer { padding-bottom: 36px; }
  .footer-inner { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; align-items: center; }
  .footer-mail { justify-self: center; }
  .footer-copy { grid-column: 1 / -1; justify-self: center; }
}

/* ---------- Desktop: arch window on top, plaque overlapping its sill ---------- */
@media (min-width: 1024px) {
  .hero-inner { gap: 0; justify-items: center; }
  .arch-window { order: -1; width: 100%; max-width: 980px; }
  .hero-plaque { width: min(760px, 90%); margin-top: -110px; z-index: 2; }
  .hero-title { font-size: 56px; }

  .feature-grid { grid-template-columns: repeat(6, 1fr); }
  .feature-grid > * { grid-column: span 2; }
  .feature-grid > :nth-child(4) { grid-column: 2 / 4; }
  .feature-grid > :nth-child(5) { grid-column: 4 / 6; }
}
