/* Quest2Fitness — black velvet + ember. Resend-style canvas, app-style accent. */

/* ---------- tokens ---------- */
:root {
  --bg: #000000;
  --hairline: #292d30;
  --white: #ffffff;
  --bone: #f0f0f0;
  --ash: #a1a4a5;
  --smoke: #abafb4;
  --iron: #6e727a;
  --charcoal: #464a4d;
  --lift: #0b0e14;

  --ember: #ff8a1f;
  --ember-hi: #ffa64d;
  --ember-ink: #1a0d00;

  --ok: #3ad389;
  --xp: #70b8ff;
  --loot: #baa7ff;
  --boss: #ff9592;
  --crit: #ffca16;

  --r-sm: 6px;
  --r-card: 16px;
  --r-panel: 24px;
  --maxw: 1200px;
  --gap-section: 96px;
  --pad-card: 32px;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-head: "Inter Tight", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-pixel: "Silkscreen", "Inter Tight", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- fonts ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/playfair-display-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/silkscreen-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/silkscreen-latin-700.woff2") format("woff2");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ---------- layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
}
main { display: block; }
section { padding: var(--gap-section) 0; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ember);
  color: var(--ember-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  z-index: 200;
  transition: top 150ms ease-out;
}
.skip-link:focus { top: 12px; }

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

/* ---------- typography ---------- */
.h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 7.6vw, 96px);
  letter-spacing: -0.01em;
  line-height: 1.0;
  color: var(--white);
}
.h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--white);
}
.h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.lead {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ash);
  line-height: 1.5;
}
.small { font-size: 14px; }
.pixel-label {
  font-family: var(--font-pixel);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- card tag (section-label style, no square) ---------- */
.card-tag {
  display: block;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

/* ---------- section label ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ember);
  flex-shrink: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 16px;
  transition: border-color 150ms ease-out;
}
.btn:hover { border-color: var(--white); }

.btn-primary {
  background: var(--ember);
  color: var(--ember-ink);
  border: none;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 13px 18px;
  transition: background-color 150ms ease-out;
}
.btn-primary:hover { background: var(--ember-hi); }

.badge-link { display: inline-block; line-height: 0; }
.badge-link img { height: 54px; width: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--bone);
  transition: border-color 150ms ease-out;
}
.pill:hover { border-color: var(--white); }
.pill .chevron { color: var(--ember); }

/* ---------- fine print row ---------- */
.fineprint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--iron);
}
.fineprint span.sep {
  width: 4px;
  height: 4px;
  background: var(--charcoal);
  flex-shrink: 0;
}

/* ---------- cards ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--pad-card);
  transition: border-color 150ms ease-out;
}
.card:hover { border-color: #3a4045; }
@media (max-width: 768px) {
  .card { padding: 24px; }
}

/* ---------- checklist ---------- */
.checklist li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--bone);
  font-size: 16px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--ember);
}
.checklist li:last-child { margin-bottom: 0; }

/* ---------- phone frame ---------- */
.phone-frame {
  border: 1px solid var(--hairline);
  border-radius: 44px;
  padding: 8px;
  background: var(--bg);
  overflow: hidden;
}
.phone-frame img, .phone-frame video {
  border-radius: 36px;
  width: 100%;
  height: auto;
  display: block;
}
.phone-frame--sm { border-radius: 32px; padding: 6px; }
.phone-frame--sm img, .phone-frame--sm video { border-radius: 24px; }

/* ---------- pixel grid texture ---------- */
.pixel-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
}

/* ---------- reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
  }
  html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  @keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
  .hero-phone { animation: floaty 7s ease-in-out infinite; }
}

/* ================= header / nav ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--bone);
}
.brand-word .num-ok { color: var(--ok); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--bone);
  transition: color 150ms ease-out;
}
.nav-links a:hover { color: var(--white); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .nav-actions { gap: 8px; }
  .nav-actions .btn-primary { padding: 9px 12px; font-size: 11px; }
  .brand-word { font-size: 13px; }
}
@media (max-width: 400px) {
  .brand-word { display: none; }
}

.nav-panel {
  display: none;
  border-top: 1px solid var(--hairline);
  padding: 16px 0 24px;
}
.nav-panel.open { display: block; }
.nav-panel ul { display: flex; flex-direction: column; gap: 4px; }
.nav-panel a {
  display: block;
  padding: 12px 4px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--bone);
  border-bottom: 1px solid var(--hairline);
}
.nav-panel a:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ================= hero ================= */
.hero { padding-top: 96px; padding-bottom: 96px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: 48px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-copy .h1 { margin: 0; }
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-media { display: flex; justify-content: center; position: relative; }
.hero-phone-wrap { width: min(340px, 80vw); position: relative; z-index: 1; }
.hero-phone-wrap .phone-frame { width: 100%; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-cta-row { justify-content: center; }
  .fineprint { justify-content: center; }
  .hero-media { order: 2; margin-top: 48px; }
  .hero-phone-wrap { width: 300px; margin: 0 auto; }
}

/* ================= proof strip ================= */
.proof {
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.proof-cell {
  padding: 28px 24px;
  text-align: center;
  border-left: 1px solid var(--hairline);
}
.proof-cell:first-child { border-left: none; }
.proof-value {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 40px;
  color: var(--white);
  letter-spacing: -0.02em;
}
.proof-caption {
  margin-top: 8px;
  font-family: var(--font-pixel);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ash);
}
@media (max-width: 768px) {
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof-cell:nth-child(2n+1) { border-left: none; }
  .proof-cell:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}

/* ================= how it works ================= */
.how-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
.how-steps > .step {
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 20px;
}
.how-steps > .step:first-child { border-top: none; padding-top: 0; }
.how-steps > .step:last-child { padding-bottom: 0; }
.step-num {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--ember);
  padding-top: 4px;
  flex-shrink: 0;
}
.step-body h3 { margin-bottom: 8px; }
.step-body p { color: var(--ash); font-size: 16px; line-height: 1.5; }

.battlelog-card {
  padding: 0;
  overflow: hidden;
}
.battlelog-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--hairline);
}
.battlelog-dot { width: 8px; height: 8px; border-radius: 50%; background: #464a4d; }
.battlelog-file {
  margin-left: 8px;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--iron);
}
.battlelog {
  padding: 20px 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
}
.battlelog .line { display: block; white-space: pre-wrap; }
.battlelog .prompt { color: var(--ash); }
.battlelog .num-ember { color: var(--ember); }
.battlelog .status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
}
.battlelog .ok { color: var(--ok); }
.battlelog .ok .status-dot { background: var(--ok); }
.battlelog .crit { color: var(--crit); }
.battlelog .crit .status-dot { background: var(--crit); }
.battlelog .boss { color: var(--boss); }
.battlelog .boss .status-dot { background: var(--boss); }
.battlelog .xp { color: var(--xp); }
.battlelog .xp .status-dot { background: var(--xp); }
.battlelog .loot { color: var(--loot); }
.battlelog .loot .status-dot { background: var(--loot); }
.battlelog .status-word { color: inherit; }
.battlelog .status-value { color: var(--bone); }
.battlelog-caption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--iron);
}

@media (max-width: 768px) {
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ================= features / bento ================= */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.bento .card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }

.feature-card { min-height: 0; padding-bottom: 0; }
.feature-card .h3 { margin-top: 4px; margin-bottom: 10px; }
.feature-card p { color: var(--ash); font-size: 16px; line-height: 1.5; max-width: 46ch; }
.feature-card .card-shots {
  margin-top: 32px;
  height: 340px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 0 0 auto;
}
.feature-card .card-shots .phone-frame {
  width: 260px;
  max-width: 70%;
  flex-shrink: 0;
}

/* split layout: Companion and Loot cards (paired shots, text left / shots right) */
.bento .feature-card--split {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 0;
}
.feature-card--split .card-copy { min-width: 0; }
.feature-card--split .card-copy p { max-width: 52ch; }
.feature-card--split .card-shots {
  height: 340px;
  margin-top: 32px;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
}
.feature-card--split .card-shots .phone-frame {
  width: 260px;
  max-width: calc(50% - 8px);
  min-width: 0;
}

@media (max-width: 1023px) {
  .bento .feature-card--split {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .feature-card--split .card-shots {
    height: 340px;
    margin-top: 32px;
    align-items: flex-start;
  }
  .feature-card--split .card-shots .phone-frame { width: calc(50% - 8px); max-width: 200px; }
}

/* tracker card */
.bento .tracker-card {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 40px;
  align-items: start;
  min-height: 0;
  padding-bottom: 0;
}
.tracker-card .tracker-copy { padding-bottom: 32px; }
.tracker-card .tracker-copy .checklist { margin-top: 20px; }

@media (max-width: 767px) {
  .tracker-card .tracker-copy { padding-bottom: 24px; }
}
.tracker-card .tracker-media {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-height: 360px;
}
.tracker-card .resume-video {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 520px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}
.tracker-card .tracker-phone { width: 200px; flex-shrink: 0; }

@media (max-width: 767px) {
  .bento { grid-template-columns: 1fr; }
  .span-5, .span-6, .span-7, .span-12 { grid-column: span 1; }
}

@media (max-width: 1023px) {
  .bento .tracker-card { grid-template-columns: 1fr; }
  .tracker-card .tracker-media { flex-direction: column; max-height: none; align-items: flex-start; }
  .tracker-card .resume-video { max-width: 100%; }
  .tracker-card .tracker-phone { width: 200px; }
}

@media (max-width: 480px) {
  .card-shots.pair .phone-frame:last-child { display: none; }
  .card-shots.pair .phone-frame:first-child { width: 70%; max-width: 260px; }
}

/* ================= walkthrough ================= */
.wt-panel {
  border-radius: var(--r-panel);
  border: 1px solid var(--hairline);
  padding: 12px;
}
.wt-panel video { width: 100%; height: auto; border-radius: 16px; }
.wt-wide { display: block; }
.wt-tall { display: none; max-width: 420px; margin: 0 auto; }
@media (max-width: 767px) {
  .wt-wide { display: none; }
  .wt-tall { display: block; }
}
.wt-steps-title { margin: 40px 0 20px; }
.wt-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 32px;
}
.wt-steps li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--ash);
  line-height: 1.5;
}
.wt-steps .wt-num {
  font-family: var(--font-pixel);
  color: var(--ember);
  font-size: 12px;
  flex-shrink: 0;
  padding-top: 2px;
}
@media (max-width: 767px) {
  .wt-steps { grid-template-columns: 1fr; }
}

/* ================= pricing ================= */
.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.pricing-eyebrow {
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 28px;
}
.price-amount {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 80px;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-suffix { font-size: 16px; color: var(--ash); }
.pricing-hr { border: none; border-top: 1px solid var(--hairline); margin: 0 0 24px; }
.pricing-card .checklist { text-align: left; margin-bottom: 28px; }
.pricing-fine { margin-top: 20px; font-size: 13px; color: var(--iron); }

/* ================= faq ================= */
.faq-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 64px;
  align-items: start;
}
.faq-side { position: sticky; top: 96px; }
.faq-side p { margin-top: 16px; font-size: 16px; color: var(--ash); }
.faq-side a { color: var(--ember); text-decoration: underline; }

.faq-item { border-top: 1px solid var(--hairline); }
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 18px; font-weight: 500; color: var(--white); }
.faq-plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 150ms ease-out;
}
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  background: var(--bone);
}
.faq-plus::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-answer { padding: 0 0 24px; max-width: 68ch; font-size: 16px; color: var(--ash); line-height: 1.6; }
.faq-answer a { color: var(--ember); text-decoration: underline; }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; }
}

/* ================= final cta ================= */
.final-cta {
  position: relative;
  border-radius: var(--r-panel);
  border: 1px solid var(--hairline);
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #000;
  background-image: url("/assets/img/art/cta-forge.webp");
  background-size: cover;
  background-position: center;
}
.final-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.final-cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 24px;
}
.final-cta-content .section-label { margin-bottom: 0; justify-content: center; }
.final-cta-content .h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 77px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  max-width: 18ch;
}
.final-cta-content p { font-size: 18px; color: var(--ash); }

/* ================= footer ================= */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand-line { margin-top: 12px; font-size: 14px; color: var(--iron); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a { font-size: 14px; color: var(--ash); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--iron);
}
@media (max-width: 600px) {
  .footer-top { flex-direction: column; }
}

/* ================= mobile sticky buy bar ================= */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--hairline);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.sticky-buy.visible { display: flex; }
.sticky-buy-id { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.sticky-buy-id img { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.sticky-buy-text { min-width: 0; }
.sticky-buy-name { font-size: 14px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy-price { font-size: 12px; color: var(--ash); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .btn-primary { flex-shrink: 0; padding: 10px 16px; }

@media (min-width: 768px) {
  .sticky-buy { display: none !important; }
}
@media (max-width: 767px) {
  body { padding-bottom: 78px; }
}

/* ================= legal / support template ================= */
.legal-main { max-width: 720px; margin: 0 auto; padding: 72px 24px; }
.breadcrumb {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--iron);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.legal-h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 48px;
  letter-spacing: -0.03em;
  color: var(--white);
}
.legal-updated { margin-top: 12px; font-size: 14px; color: var(--iron); }
.legal-lead { margin-top: 32px; font-size: 16px; color: var(--bone); line-height: 1.7; }
.legal-body h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 24px;
  color: var(--white);
  margin-top: 40px;
  margin-bottom: 16px;
}
.legal-body p { font-size: 16px; color: var(--bone); line-height: 1.7; margin-top: 16px; }
.legal-body p:first-of-type { margin-top: 24px; }
.legal-body ul { margin-top: 16px; }
.legal-body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--bone);
  line-height: 1.7;
}
.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--ember);
}
.legal-body a { color: var(--ember); text-decoration: underline; }
.support-btn-row { margin-top: 16px; }

@media (max-width: 480px) {
  .legal-main { padding: 48px 20px; }
  .legal-h1 { font-size: 36px; }
}

/* ================= 404 ================= */
.notfound {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
}
.notfound-inner { max-width: 420px; }
.notfound .section-label { justify-content: center; margin-bottom: 24px; }
.notfound h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(32px, 6vw, 48px);
  letter-spacing: -0.03em;
  color: var(--white);
}
.notfound p { margin-top: 16px; font-size: 16px; color: var(--ash); }
.notfound .btn { margin-top: 28px; }
