/* King of the Mat — marketing site. Mirrors the app's royal-red design system
   (src/theme/tokens.ts): charcoal ground, blood red action, gold for crowns ONLY.
   Rule: every product visual is a REAL app screenshot (screens/) or a real photo
   (images/) — never a hand-drawn mockup of a screen that doesn't exist. */

@font-face {
  font-family: 'Mona Sans';
  src: url('/fonts/MonaSans-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Mona Sans';
  src: url('/fonts/MonaSans-SemiBold.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Mona Sans';
  src: url('/fonts/MonaSans-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-display: swap;
}

:root {
  --bone: #F7F2EA;
  --fg2: rgba(247, 242, 234, 0.80);
  --muted: rgba(247, 242, 234, 0.62);
  --dim: rgba(247, 242, 234, 0.42);
  --charcoal: #0B0812;
  --charcoal-2: #070409;
  --surface-1: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.08);
  --blood: #C41E3A;
  --blood-hi: #DE5B6C;
  --blood-deep: #7E1322;
  --crown: #D9B54A;
  --crown-dim: #A8842F;
  --border: rgba(255, 255, 255, 0.11);
  --border-dim: rgba(255, 255, 255, 0.07);
  --success: #43C795;
  --steel: #8B9CC0;
  --radius: 18px;
  --radius-sm: 12px;
  --w: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Mona Sans', system-ui, -apple-system, sans-serif;
  background: var(--charcoal-2);
  color: var(--bone);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
section { padding: 76px 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.6vw, 46px); }
p { color: var(--fg2); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blood-hi); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blood-hi); margin-bottom: 12px;
}
.eyebrow--gold { color: var(--crown); }
.lede { color: var(--muted); max-width: 54ch; font-size: 17px; margin-top: 12px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ── nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 4, 9, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dim);
}
.nav__in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.06em; font-size: 15px; text-decoration: none; }
.nav__links { display: none; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav__links a:hover { color: var(--bone); }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 4px; }
.lang:hover { color: var(--bone); }
@media (min-width: 940px) { .nav__links { display: flex; } .nav__cta { margin-left: 0; } }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 15px 28px; border-radius: 999px;
  font-weight: 800; font-size: 15px; text-decoration: none; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--blood {
  background: linear-gradient(180deg, var(--blood), var(--blood-deep));
  color: #fff; box-shadow: 0 8px 30px rgba(196, 30, 58, 0.38);
}
.btn--blood:hover { transform: translateY(-1px); box-shadow: 0 12px 38px rgba(196, 30, 58, 0.5); }
.btn--ghost { border: 1px solid var(--border); color: var(--fg2); background: var(--surface-1); }
.btn--ghost:hover { background: var(--surface-2); color: var(--bone); }
.btn--small { padding: 10px 20px; font-size: 14px; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; padding: 76px 0 60px;
  background:
    radial-gradient(1100px 540px at 76% -12%, rgba(196, 30, 58, 0.17), transparent 62%),
    var(--charcoal-2);
  overflow: hidden;
}
.hero__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.hero h1 { font-size: clamp(46px, 8vw, 82px); letter-spacing: -0.03em; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--blood-hi); }
.hero__lede { font-size: 19px; color: var(--fg2); max-width: 30ch; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-bottom: 20px; }
.hero__note { font-size: 13px; color: var(--dim); }

/* Photo frame — used for hero + coaches shots */
.shot {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: var(--charcoal);
}
.shot img { width: 100%; }

/* ── trust strip ─────────────────────────────────────────────────────────── */
.trust { border-top: 1px solid var(--border-dim); border-bottom: 1px solid var(--border-dim); background: var(--charcoal); padding: 22px 0; }
.trust__in { display: grid; gap: 14px; }
@media (min-width: 800px) { .trust__in { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.trust__item { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.trust__item b { color: var(--fg2); font-weight: 600; }
.tick { color: var(--success); flex: none; }

/* ── app-screen gallery (REAL screenshots) ───────────────────────────────── */
.gallery { background: var(--charcoal); border-top: 1px solid var(--border-dim); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 244px;
  gap: 20px; margin-top: 40px; padding: 6px 20px 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  justify-content: safe center;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }
.screen { scroll-snap-align: center; }
.screen__frame {
  border-radius: 26px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--charcoal-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.screen__frame img { width: 100%; }
.screen__cap {
  margin-top: 12px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--muted);
}

/* ── full-bleed photo band ───────────────────────────────────────────────── */
.band { position: relative; min-height: 460px; display: grid; place-items: center; overflow: hidden; text-align: center; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,4,9,0.55), rgba(7,4,9,0.82));
}
.band__in { position: relative; z-index: 2; padding: 76px 20px; max-width: 720px; }
.band h2 { font-size: clamp(30px, 5vw, 52px); }
.band .lede { margin: 14px auto 0; color: var(--fg2); }

/* ── the flow: mat → ladder, step by step ────────────────────────────────── */
.flow { margin-top: 44px; display: grid; gap: 0; position: relative; max-width: 720px; margin-inline: auto; }
.flow__step {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px;
  padding-bottom: 26px; position: relative;
}
/* the rail connecting the steps */
.flow__step:not(:last-child)::before {
  content: ''; position: absolute; left: 22px; top: 46px; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--blood), rgba(196,30,58,0.12));
}
.flow__n {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
  color: var(--bone);
  background: linear-gradient(180deg, var(--blood), var(--blood-deep));
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.32);
  position: relative; z-index: 2;
}
.flow__step--gold .flow__n {
  background: linear-gradient(180deg, var(--crown), var(--crown-dim));
  color: #2A1F05; box-shadow: 0 6px 20px rgba(217, 181, 74, 0.3);
}
.flow__body { padding-top: 4px; }
.flow__body h3 { font-size: 20px; margin-bottom: 5px; }
.flow__body p { font-size: 15px; color: var(--muted); max-width: 56ch; }
.flow__note {
  display: inline-block; margin-top: 10px;
  font-size: 13px; color: var(--fg2);
  background: var(--surface-1); border: 1px solid var(--border-dim);
  border-left: 2px solid var(--crown);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 9px 14px; max-width: 56ch;
}
.flow__note b { color: var(--crown); font-weight: 600; }

/* ── features (compact) ──────────────────────────────────────────────────── */
.fgrid { display: grid; gap: 14px; margin-top: 38px; }
@media (min-width: 680px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fgrid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface-1); border: 1px solid var(--border-dim);
  border-radius: var(--radius); padding: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.feature h3 { font-size: 16px; margin-bottom: 3px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.45; }
.fico { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; background: rgba(196, 30, 58, 0.14); color: var(--blood-hi); }
.fico--gold { background: rgba(217, 181, 74, 0.12); color: var(--crown); }
.fico--steel { background: rgba(139, 156, 192, 0.14); color: var(--steel); }

/* ── coaches ─────────────────────────────────────────────────────────────── */
.coaches { background: var(--charcoal); border-top: 1px solid var(--border-dim); }
.coaches__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .coaches__grid { grid-template-columns: 1fr 1fr; } }
.checklist { list-style: none; margin: 22px 0 28px; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; color: var(--fg2); font-size: 15px; }

/* ── pricing ─────────────────────────────────────────────────────────────── */
.plans { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--surface-1); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan--hot { border-color: rgba(196, 30, 58, 0.5); background: linear-gradient(180deg, rgba(196, 30, 58, 0.08), var(--surface-1)); }
.plan__tag { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blood-hi); min-height: 15px; margin-bottom: 8px; }
.plan h3 { font-size: 21px; }
.plan__price { font-size: 38px; font-weight: 800; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan__cap { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.plan ul { list-style: none; display: grid; gap: 8px; margin-bottom: 24px; }
.plan li { font-size: 14px; color: var(--fg2); }
.plan .btn { margin-top: auto; }
.pricing__note { text-align: center; margin-top: 24px; font-size: 14px; color: var(--muted); }
.pricing__note a { color: var(--fg2); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq__list { margin: 34px auto 0; display: grid; gap: 10px; max-width: 800px; }
.faq__item { background: var(--surface-1); border: 1px solid var(--border-dim); border-radius: var(--radius-sm); padding: 2px 18px; }
.faq__item summary {
  cursor: pointer; font-weight: 600; font-size: 16px; padding: 15px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-weight: 400; font-size: 22px; color: var(--muted); transition: transform 0.2s; flex: none; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 16px; font-size: 15px; color: var(--muted); }

/* ── final CTA + footer ──────────────────────────────────────────────────── */
.cta-band {
  text-align: center;
  background: radial-gradient(700px 320px at 50% 0%, rgba(196, 30, 58, 0.2), transparent 65%), var(--charcoal);
  border-top: 1px solid var(--border-dim); padding: 84px 0;
}
.cta-band h2 { font-size: clamp(32px, 5.5vw, 54px); }
.footer { border-top: 1px solid var(--border-dim); padding: 32px 0 42px; background: var(--charcoal-2); }
.footer__in { display: flex; flex-wrap: wrap; gap: 16px 30px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--dim); }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--bone); }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
