/* BJJ Study — shared site styles, Wave 6 "The Link" identity (Direction B).
   One stylesheet for every static page (landing, goal pages, support, privacy, terms) —
   see docs/brand/BJJ-STUDY-BRAND-GUIDE.md for the canonical token values this mirrors. */

:root {
  color-scheme: light dark;
  --primary: #4A38A8;
  --primary-light: #7A67D8;
  --primary-deep: #1C1733;
  --icon-field: #241C47;
  --gold: #D9A62E;
  --watch: #0E9487;
  --review: #7359D9;
  --drill: #C17A2E;
  --ink: #17132A;
  --muted: #635F78;
  --bg: #F7F5FB;
  --card: #FFFFFF;
  --border: rgba(23, 19, 42, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F1EEFB;
    --muted: #B3ABD1;
    --bg: #150F26;
    --card: #201A3B;
    --border: rgba(255, 255, 255, 0.09);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}

a { color: var(--primary-light); }
@media (prefers-color-scheme: light) { a { color: var(--primary); } }

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

select.lang-picker {
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
}

section { padding: 56px 0; }
section.tight { padding: 32px 0; }

.hero {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-deep) 78%);
  border-radius: 28px;
  padding: 56px 40px;
  color: #fff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.06;
  margin: 0 0 16px;
  font-weight: 800;
}

.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 0 28px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--gold); color: #241C08; }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-ghost.disabled { opacity: 0.7; cursor: default; }

.btn-note { font-size: 13px; color: rgba(255, 255, 255, 0.68); }

h2.section-title {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 8px;
  font-weight: 800;
}

p.section-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0 0 32px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

.method-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.method-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  text-align: left;
}

.method-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--step-color, var(--primary));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

.method-step h3 { margin: 0 0 4px; font-size: 16px; }
.method-step p { margin: 0; color: var(--muted); font-size: 13.5px; }

.pricing-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.pricing-card { border-radius: 22px; padding: 26px; border: 1px solid var(--border); }
.pricing-card.free { background: var(--card); }
.pricing-card.premium {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  border: none;
}
.pricing-card h3 { margin: 0 0 4px; font-size: 20px; }
.pricing-card .tag { font-size: 13px; opacity: 0.8; margin-bottom: 16px; }
.pricing-card ul { margin: 0; padding-left: 18px; }
.pricing-card li { margin-bottom: 8px; font-size: 14.5px; }
.pricing-note { font-size: 13px; color: var(--muted); margin-top: 18px; }

.shot-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.shot-strip img {
  height: 340px;
  border-radius: 18px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 56px;
  color: var(--muted);
  font-size: 13px;
}

footer .foot-links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
footer a { color: var(--muted); font-weight: 600; text-decoration: none; }
footer a:hover { color: var(--ink); }

.goal-hero {
  background: var(--icon-field);
  color: #fff;
  border-radius: 24px;
  padding: 40px;
}
.goal-hero h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 38px); }
.goal-hero p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0; }

article.legal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
}
article.legal h1 { margin-top: 0; font-size: 32px; }
article.legal h2 { margin-top: 28px; font-size: 20px; }
article.legal .muted { color: var(--muted); }

[data-i18n], [data-i18n-html] { unicode-bidi: isolate; }
