/* Mythfell — mythfell.com
   Single stylesheet, no build step. Dark fantasy palette keyed to the app icon
   (background #16181d, lava accent from the cracked-tower mark). */

:root {
  --bg: #16181d;
  --bg-2: #1b1e25;
  --surface: #22262f;
  --surface-2: #2a2f3a;
  --line: #313846;
  --text: #e9e7e2;
  --muted: #9aa3af;
  --accent: #e8763a;
  --accent-dim: #b8551f;
  --accent-soft: rgba(232, 118, 58, 0.13);
  --cold: #7fb2dd;
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1120px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Subtle ember glow behind the whole page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 50% -10rem, rgba(232, 118, 58, 0.10), transparent 70%),
    radial-gradient(40rem 24rem at 90% 10%, rgba(127, 178, 221, 0.06), transparent 70%);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #16181d; padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0; font-weight: 700;
}
.skip:focus { left: 0; }

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

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 24, 29, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 1.15rem; letter-spacing: 0.02em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 600;
  font-size: .95rem;
}
.site-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.site-nav a.active { color: var(--text); background: var(--surface); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  background: var(--accent); color: #17120e; border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: #f2854a; text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(28px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.hero h1 { margin-bottom: 16px; }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--muted); max-width: 54ch; }
.hero-cta { margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* portrait promo video: phone frame on desktop, full bleed on mobile */
.phone {
  width: min(300px, 78vw); margin-inline: auto; aspect-ratio: 9 / 16;
  border-radius: 34px; padding: 10px; background: #0d0f13;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.phone video, .phone img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 26px; background: #0d0f13;
}
.phone-cap { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 6vw, 76px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-head p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px;
}
.card h3 { color: var(--text); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .num {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: .85rem; margin-bottom: 12px;
}

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--bg-2);
}
.gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; text-align: center; }

.shot {
  width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--bg-2);
}

/* ---------- store badge state ---------- */
.stores { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-soon {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px;
  border: 1px dashed var(--line); border-radius: 999px; color: var(--muted);
  font-weight: 600; font-size: .92rem; background: var(--surface);
}
/* Live state: a real store link, so it reads as a control, not a status line. */
.store-live {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px;
  border: 1px solid var(--accent); border-radius: 999px; color: var(--text);
  font-weight: 700; font-size: .92rem; background: var(--accent-soft);
}
.store-live:hover { text-decoration: none; background: var(--accent); color: #17120e; }
.store-soon .dot, .store-live .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.6rem; color: var(--text); }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose li strong { color: var(--text); }
.prose dl { color: var(--muted); }
.prose dt { color: var(--text); font-weight: 700; margin-top: 1rem; }
.prose .updated {
  display: inline-block; font-size: .82rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 1.4rem;
}
.callout {
  background: var(--accent-soft); border: 1px solid rgba(232, 118, 58, .3);
  border-radius: var(--radius); padding: 16px 18px; margin: 1.6rem 0;
}
.callout p:last-child { margin: 0; }
.callout strong { color: var(--accent); }

/* ---------- news ---------- */
.news-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 18px;
}
.news-item h1, .news-item h2 { margin-top: 0; border: 0; padding: 0; }
.news-item h2 a { color: var(--text); }
.news-item h2 a:hover { color: var(--accent); }
.news-date { font-size: .82rem; color: var(--muted); margin: -.2rem 0 1rem; }
.news-body { color: var(--muted); }
.news-body h2 { color: var(--text); }
.news-body strong { color: var(--text); }
.empty { color: var(--muted); font-style: italic; }

/* ---------- forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 30px);
  max-width: 640px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  font: inherit; font-size: .96rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* honeypot: hidden from humans, tempting to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: .94rem; }
.notice-ok { background: rgba(127, 178, 221, .12); border: 1px solid rgba(127, 178, 221, .35); }
.notice-err { background: rgba(232, 118, 58, .12); border: 1px solid rgba(232, 118, 58, .4); }

.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq details[open] summary { margin-bottom: 10px; color: var(--accent); }
.faq p { color: var(--muted); margin: 0; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 34px 0; background: var(--bg-2); }
.foot-inner { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.foot-col { margin-right: auto; }
.foot-tag { color: var(--muted); margin: 10px 0 2px; font-size: .92rem; }
.foot-by { color: var(--muted); margin: 0; font-size: .82rem; }
.foot-links, .foot-social { display: flex; flex-direction: column; gap: 8px; }
.foot-links a, .foot-social a { color: var(--muted); font-size: .9rem; }
.foot-links a:hover, .foot-social a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone { order: -1; width: min(260px, 70vw); }
  .site-nav a:not(.btn) { padding: 8px 9px; font-size: .9rem; }
}
@media (max-width: 560px) {
  .brand-name { display: none; }
  .site-nav { gap: 2px; }
  .foot-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
