/* Dungeon Combat — website styles.
   Brand tokens mirror mobile/src/components/theme.ts so web and app read as one product. */

:root {
  --bg: #f1e7c9;
  --bg-card: #e9dcb4;
  --bg-elevated: #e6d8ab;
  --gold: #b8892e;
  --gold-dark: #8a6a1f;
  --border: #cdbb8a;
  --ink: #2e2013;
  --ink-soft: #7a6c50;
  --ink-muted: #a89876;
  --danger: #7a2323;
  --success: #3a6b4a;
  --blue: #3a6bb0;
  --red: #8a2323;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --maxw: 1080px;
  --shadow: 0 2px 8px rgba(46, 32, 19, 0.14);
  --shadow-lg: 0 10px 34px rgba(46, 32, 19, 0.20);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  /* Faint parchment texture via layered radial gradients — no external asset. */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(184, 137, 46, 0.06), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(122, 35, 35, 0.05), transparent 46%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.62;
}

h1, h2, h3, .display {
  font-family: 'Cinzel', Georgia, serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.4em;
}

a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(241, 231, 201, 0.86);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: var(--shadow); }
.brand .name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 18px; letter-spacing: 0.5px; color: var(--ink); }
.brand .name span { color: var(--gold-dark); }
.navlinks { display: flex; gap: 26px; align-items: center; }
.navlinks a { color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.navlinks a:hover { color: var(--gold-dark); text-decoration: none; }
.navlinks .navlinks-cta {
  color: #2e2013;
  background: var(--gold);
  border: 1px solid var(--gold-dark);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
}
.navlinks .navlinks-cta:hover { background: #c8992f; color: #2e2013; text-decoration: none; }
@media (max-width: 640px) {
  .navlinks a { display: none; }
  .navlinks .navlinks-cta { display: inline-flex; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Cinzel', serif; font-weight: 600; font-size: 15px;
  letter-spacing: 0.5px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-dark);
  background: var(--gold);
  color: #2e2013;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-lg); background: #c8992f; }
.btn.ghost { background: transparent; color: var(--gold-dark); }
.btn.ghost:hover { background: rgba(184, 137, 46, 0.12); }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  min-width: 180px;
}
.store-badge:hover { text-decoration: none; background: #40301c; }
.store-badge .glyph { font-size: 26px; line-height: 1; }
.store-badge .lines { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .small { font-size: 11px; opacity: 0.8; font-family: 'Spectral', serif; }
.store-badge .big { font-size: 17px; font-family: 'Cinzel', serif; font-weight: 600; }
.store-badge.disabled { opacity: 0.5; pointer-events: none; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 76px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero { padding: 48px 0 40px; } }
.eyebrow {
  display: inline-block;
  font-family: 'Cinzel', serif; font-weight: 600; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 700; letter-spacing: 1px; }
.hero h1 .sub { display: block; font-size: clamp(16px, 2.4vw, 22px); color: var(--gold-dark); letter-spacing: 4px; margin-top: 8px; }
.lede { font-size: 20px; color: var(--ink-soft); max-width: 40ch; margin: 18px 0 22px; }
@media (max-width: 860px) { .lede { margin-left: auto; margin-right: auto; } .stores { justify-content: center; } }

/* Quick proof points under the lede */
.proof-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: 'Cinzel', serif; font-weight: 600; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 28px;
}
.proof-strip i { font-style: normal; color: var(--ink-muted); }
@media (max-width: 860px) { .proof-strip { justify-content: center; } }

/* Hero art: the real app icon (full-bleed dungeon scene) with two
   class portraits stepping out of the frame. */
.hero-art { position: relative; padding: 0 26px; }
.hero-art .hero-icon {
  width: 100%;
  border-radius: 22px;
  border: 2px solid var(--gold-dark);
  box-shadow: var(--shadow-lg);
}
.hero-art .hero-hover {
  position: absolute;
  bottom: -14px;
  width: 40%;
  filter: drop-shadow(0 8px 14px rgba(46, 32, 19, 0.45));
}
.hero-art .hero-hover-l { left: -6px; }
.hero-art .hero-hover-r { right: -6px; transform: scaleX(-1); }
@media (max-width: 860px) { .hero-art { max-width: 380px; margin: 34px auto 0; } }

/* ── Sections ────────────────────────────────────────────── */
section.band { padding: 62px 0; border-top: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); }
.section-head p { color: var(--ink-soft); font-size: 18px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card .ico { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ── Class showcase ──────────────────────────────────────── */
.band-dark {
  background: #241708;
  background-image: radial-gradient(ellipse at 50% 0%, #33220c, #241708 70%);
  border-top: 1px solid var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
}
.band-dark .section-head h2 { color: #f0e2b8; }
.band-dark .section-head p { color: #b3a37e; }
.classes-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 900px) { .classes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .classes-grid { grid-template-columns: 1fr; } }
.class-card {
  margin: 0;
  background: rgba(241, 231, 201, 0.05);
  border: 1px solid rgba(184, 137, 46, 0.4);
  border-radius: var(--radius-lg);
  padding: 20px 16px 18px;
  text-align: center;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}
.class-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(241, 231, 201, 0.09);
}
.class-card img {
  height: 200px; width: auto; max-width: 92%;
  object-fit: contain;
  margin: 0 auto 14px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55));
}
.class-card h3 { color: #f0e2b8; font-size: 19px; margin-bottom: 6px; }
.class-card p { color: #b3a37e; font-size: 14px; line-height: 1.5; margin: 0; }

/* ── How a duel plays ────────────────────────────────────── */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  counter-reset: step;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow);
}
.step-n {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold-dark);
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 19px;
  margin-bottom: 14px;
  background: var(--bg);
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ── Screenshots ─────────────────────────────────────────── */
.shots {
  display: flex; gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
}
.shots img {
  flex: 0 0 auto;
  width: min(78vw, 300px);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  scroll-snap-align: center;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { max-width: 680px; margin: 0 auto; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  font-family: 'Cinzel', serif; font-weight: 600; font-size: 17px;
  padding: 16px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 2px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-dark); font-size: 22px; font-family: 'Spectral', serif;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* Promise strip */
.promise {
  text-align: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-lg);
}
.promise h2 { color: #f0e2b8; }
.promise p { color: #d8c79a; margin: 0 auto; max-width: 52ch; }

/* ── Content pages (privacy / terms / support) ───────────── */
.page { padding: 56px 0 72px; }
.page .prose { max-width: 760px; margin: 0 auto; }
.page h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.page .updated { color: var(--ink-muted); font-size: 14px; font-style: italic; margin-bottom: 34px; }
.prose h2 { font-size: 24px; margin-top: 38px; }
.prose h3 { font-size: 19px; margin-top: 26px; font-family: 'Spectral', serif; font-weight: 700; }
.prose p { color: var(--ink); }
.prose li { color: var(--ink); margin-bottom: 8px; }
.prose a { text-decoration: underline; }

/* ── Support form ────────────────────────────────────────── */
.form-card {
  max-width: 620px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-family: 'Cinzel', serif; font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: 'Spectral', serif; font-size: 16px;
  color: var(--ink);
  background: #f4ead0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

.direct-contact { text-align: center; margin-top: 30px; color: var(--ink-soft); }
.direct-contact a { font-weight: 700; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 36px 0;
  margin-top: 20px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
footer .foot-brand { display: flex; align-items: center; gap: 10px; font-family: 'Cinzel', serif; font-weight: 700; color: var(--ink); }
footer .foot-brand img { width: 26px; height: 26px; border-radius: 6px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer nav a { color: var(--ink-soft); font-size: 15px; }
footer .copy { width: 100%; color: var(--ink-muted); font-size: 13px; padding-top: 8px; }
