/* Heroic Tales website: shared styles for every page. */

@font-face {
  font-family: "Marcellus";
  src: url("marcellus.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #120d0a;
  --bg-deep: #0b0806;
  --panel: #1d1510;
  --panel-edge: #3a2a1d;
  --text: #e9dfd0;
  --muted: #a8998a;
  --gold: #e7b75f;
  --gold-light: #f6d892;
  --ember: #e0662e;
  --maxw: 1080px;
  --readw: 720px;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-light); }

h1, h2, h3, .brand { font-family: "Marcellus", Georgia, serif; font-weight: 400; color: var(--gold-light); }
h2 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 16px; }
h3 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }

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

/* Top bar */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
}
.topbar.solid { position: static; background: var(--bg-deep); border-bottom: 1px solid var(--panel-edge); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-light); text-decoration: none; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.lang { display: flex; gap: 4px; font-size: 14px; }
.lang a, .lang span {
  padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--text);
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(231, 183, 95, 0.25);
}
.lang span { color: var(--bg-deep); background: var(--gold); border-color: var(--gold); }

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-align: center; overflow: hidden;
}
.hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(18, 13, 10, 0.55) 0%, rgba(18, 13, 10, 0) 22%),
    linear-gradient(to top, var(--bg) 4%, rgba(18, 13, 10, 0.88) 30%, rgba(18, 13, 10, 0) 62%);
}
.hero-content { position: relative; z-index: 1; padding: 0 20px 56px; max-width: 760px; }
.hero-logo { width: min(560px, 88vw); margin: 0 auto 10px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.7)); }
.tagline { font-size: clamp(18px, 3.2vw, 22px); margin: 0 auto 26px; max-width: 600px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 12px; text-decoration: none;
  font-weight: 600; font-size: 17px; color: #1c1206;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, #c8913d);
  box-shadow: 0 6px 20px rgba(224, 102, 46, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.cta:hover { color: #1c1206; filter: brightness(1.06); }
.cta svg { width: 20px; height: 20px; }
.cta[aria-disabled="true"] { cursor: default; }
.cta-note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 820px) { section { padding: 72px 0; } }
.intro { text-align: center; padding-top: 24px; }
.intro p { font-size: 19px; max-width: 680px; margin: 0 auto; }
.eyebrow {
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ember); margin: 0 0 10px; font-weight: 600;
}
.divider { width: 120px; height: 2px; margin: 28px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* Feature rows, image and text side by side, alternating */
.feature { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding: 36px 0; }
.feature + .feature { border-top: 1px solid rgba(58, 42, 29, 0.6); }
.feature figure { margin: 0; }
.feature figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--panel-edge); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.feature p { margin: 0 0 12px; }
.feature ul { margin: 0; padding-left: 20px; color: var(--muted); }
.feature li { margin: 4px 0; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; padding: 48px 0; }
  .feature:nth-child(even) figure { order: 2; }
}

/* Screenshots: a strip to swipe on phones, a row of five on wide screens */
.screens { text-align: center; padding-bottom: 24px; }
.screen-strip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  max-width: var(--maxw); margin: 8px auto 0; padding: 4px 20px 24px; scrollbar-width: none;
}
.screen-strip::-webkit-scrollbar { display: none; }
.screen-strip figure { flex: 0 0 62%; margin: 0; scroll-snap-align: center; }
.screen-strip img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--panel-edge);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}
@media (min-width: 560px) { .screen-strip figure { flex-basis: 38%; } }
@media (min-width: 820px) { .screen-strip figure { flex: 1 1 0; } }

/* Four classes */
.classes { background: linear-gradient(180deg, var(--bg), var(--bg-deep) 30%, var(--bg-deep) 70%, var(--bg)); text-align: center; }
.classes .lede { max-width: 620px; margin: 0 auto 32px; }
.class-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 820px) { .class-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.class-card {
  margin: 0; background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: var(--radius); overflow: hidden;
}
.class-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.class-card figcaption { padding: 12px 10px 14px; }
.class-card strong { display: block; font-family: "Marcellus", Georgia, serif; font-weight: 400; font-size: 20px; color: var(--gold-light); }
.class-card span { font-size: 14px; color: var(--muted); }

/* Price */
.price-card {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.price-card img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.price-card .body { padding: 28px 24px 30px; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { padding-left: 30px; position: relative; margin: 8px 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231c1206' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (min-width: 820px) { .price-card { grid-template-columns: 1.1fr 1fr; } .price-card .body { padding: 40px; } }

/* Small extras */
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 28px 0 0; }
.extras li { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius); padding: 18px 20px; }
.extras strong { display: block; color: var(--gold-light); margin-bottom: 2px; }
.extras span { color: var(--muted); font-size: 15px; }

.final { text-align: center; }

/* Text pages: support, privacy, imprint */
.page { padding-top: 48px; padding-bottom: 24px; }
.page h1 { font-size: clamp(32px, 6vw, 44px); line-height: 1.15; margin: 0 0 6px; }
.page h2 { font-size: 24px; margin: 40px 0 10px; }
.page h3 { font-size: 19px; margin: 24px 0 6px; color: var(--gold); }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.lead { font-size: 18px; }
.contact-card {
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius);
  padding: 22px 24px; margin: 24px 0;
}
.contact-card p { margin: 0 0 6px; }
.contact-card .cta { margin: 8px 0 10px; }
details {
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 12px;
  margin: 10px 0; padding: 0 20px;
}
summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
  font-weight: 600; color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--gold); }
details[open] summary::after { content: "–"; }
details > *:not(summary) { margin-top: 0; }
details[open] { padding-bottom: 6px; }

/* Footer */
footer { border-top: 1px solid var(--panel-edge); background: var(--bg-deep); margin-top: 56px; padding: 32px 0 40px; color: var(--muted); font-size: 14px; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 12px; }
footer p { margin: 4px 0; }

/* Official App Store badge (Apple marketing guidelines: unaltered, at least 40px high,
   clear space of a quarter of its height around it) */
.store-badge { display: inline-block; padding: 14px; margin: -14px; border-radius: 12px; }
.store-badge img { height: 56px; width: auto; }

/* Press page: fact sheet, downloads, picture grid */
.page-wide { max-width: var(--maxw); }
.press-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 820px) { .press-grid { grid-template-columns: 320px 1fr; gap: 48px; align-items: start; } }
.facts {
  margin: 0; background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: var(--radius); padding: 18px 22px; font-size: 15px;
}
.facts dt { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 12px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.press-grid h2:first-child { margin-top: 0; }
.downloads { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.downloads a {
  display: block; height: 100%; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius); overflow: hidden;
}
.downloads a:hover { border-color: var(--gold); color: var(--text); }
.downloads img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-deep); }
.downloads img.contain { object-fit: contain; padding: 12px; }
.downloads span { display: block; padding: 10px 12px 12px; font-size: 14px; }
.downloads small { display: block; color: var(--muted); }
.shot-grid {
  display: flex; gap: 12px; margin-top: 16px; padding-bottom: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.shot-grid::-webkit-scrollbar { display: none; }
.shot-grid img { flex: 0 0 44%; min-width: 0; scroll-snap-align: start; border-radius: 10px; border: 1px solid var(--panel-edge); }
@media (min-width: 820px) { .shot-grid img { flex: 1 1 0; } }
.downloads.art-tiles img { aspect-ratio: 3 / 4; }
/* A list with a single tile (the video) keeps the column width instead of spanning the row. */
.downloads:has(> li:only-child) { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.screen-strip video {
  display: block; width: 100%; height: auto; background: var(--bg-deep);
  border-radius: var(--radius); border: 1px solid var(--panel-edge);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}
