/* Shared styles for combatscout.com (landing page + legal/support pages). */

:root {
  --bg: #0E0F13;
  --surface: #1A1C22;
  --surface-alt: #23262E;
  --border: #2E323C;
  --text: #F5F6F8;
  --text-muted: #9CA3AF;
  --accent: #E11D2A;
  --accent-muted: #7A1119;
  /* Lighter red for small text on the dark background (WCAG AA contrast). */
  --accent-text: #F25C66;
  --focus: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

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

/* ---------- Header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 19, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.logo .mark { color: var(--accent); }

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

.header-actions .hide-sm { display: none; }

.lang-link {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 6px;
}

.lang-link:hover { color: var(--text); text-decoration: underline; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #c81824; }

.btn-ghost {
  background: rgba(14, 15, 19, 0.4);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--text-muted); }

.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
  border-radius: 10px;
}

/* App Store / Google Play placeholders: plain styled labels, not links. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(14, 15, 19, 0.7);
  color: var(--text);
  line-height: 1.2;
}

.store-badge small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.store-badge strong {
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding: 200px 0 48px;
  border-bottom: 1px solid var(--border);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 0%;
  height: 340px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

/* Dark overlay so the headline stays readable over the photo. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 15, 19, 0.3) 0%, rgba(14, 15, 19, 0.82) 38%, rgba(14, 15, 19, 0.97) 100%);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: rgba(14, 15, 19, 0.7);
  border: 1px solid var(--accent-muted);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 18px;
  max-width: 16ch;
}

h1 .accent { color: var(--accent-text); }

.hero-sub {
  font-size: 17px;
  color: #D7DAE0;
  max-width: 52ch;
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 14px 0 0;
}

/* ---------- Section shell ---------- */

section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 60ch;
  margin: 0 0 36px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 10px;
}

h2 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 12px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* ---------- Roles ---------- */

.role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.role-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 25%;
}

.role-body { padding: 22px 24px 26px; }

.role-card .role-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}

.role-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.role-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.role-card li { margin-bottom: 6px; }

.role-card li::marker {
  color: var(--accent-text);
  font-weight: 800;
}

/* ---------- Features ---------- */

.features-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.feature h3 {
  font-size: 16px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.feature h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: middle;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Fictional fighter card showing what discovery looks like. */
.preview-figure { margin: 0; }

.preview-card {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.preview-card img {
  width: 100%;
  height: auto;
}

.preview-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(14, 15, 19, 0.95) 55%);
}

.preview-info strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3B82F6;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.preview-info p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #D7DAE0;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.preview-tags span {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.preview-caption {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 0;
}

/* ---------- How it works (steps + wide photo) ---------- */

.how-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.how-photo {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-text);
  font-size: 16px;
}

.step h3 {
  font-size: 17px;
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 56ch;
}

/* ---------- Photo strip ---------- */

.photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 12px;
  margin: 0;
  padding: 0 20px 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
}

.photo-strip li { scroll-snap-align: start; }

.photo-strip img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(225, 29, 42, 0.08), var(--surface) 40%);
  position: relative;
}

.price-card .badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 18px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.price-amount {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 4px;
}

.price-amount span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.price-card p.price-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.price-card li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.price-card li:first-child { border-top: none; }

.price-card li .tick {
  color: var(--accent-text);
  font-weight: 800;
  flex-shrink: 0;
}

.fine-print {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
}

.faq details {
  border-top: 1px solid var(--border);
  padding: 4px 0;
}

.faq details:last-child { border-bottom: 1px solid var(--border); }

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px 14px 0;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
  font-size: 22px;
  color: var(--accent-text);
}

.faq details[open] summary::after { content: "\2212"; }

.faq details p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Final CTA with photo ---------- */

.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 88px 0;
  border-bottom: none;
}

.final-cta .cta-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 15, 19, 0.82);
}

.final-cta h2 { font-size: 30px; }

.final-cta p {
  color: #D7DAE0;
  max-width: 46ch;
  margin: 0 auto 28px;
  font-size: 15px;
}

.final-cta .hero-cta,
.final-cta .store-badges { justify-content: center; }

/* ---------- Footer ---------- */

footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-inner .logo { font-size: 16px; color: var(--text); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-links a:hover { color: var(--text); text-decoration: underline; }

.footer-note {
  margin: 0;
  font-size: 12px;
}

/* ---------- Legal / support pages ---------- */

.doc {
  max-width: 760px;
  padding: 48px 20px 64px;
}

.doc h1 {
  font-size: 34px;
  max-width: none;
}

.doc h2 {
  font-size: 21px;
  margin: 36px 0 10px;
}

.doc h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}

.doc p,
.doc li {
  color: #C9CDD4;
  font-size: 15px;
}

.doc ul,
.doc ol { padding-left: 22px; }

.doc li { margin-bottom: 6px; }

.doc a { color: var(--accent-text); }

.doc .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.template-notice {
  border: 1px solid #A16207;
  background: rgba(161, 98, 7, 0.15);
  color: #FDE68A;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  margin: 0 0 28px;
}

.template-notice strong { color: #FEF3C7; }

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  h1 { font-size: 52px; }
  h2 { font-size: 32px; }
  .header-actions .hide-sm { display: inline-flex; }
  .role-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
  .photo-strip { grid-auto-columns: 32%; }
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 860px) {
  h1 { font-size: 62px; }
  .hero {
    min-height: 680px;
    align-items: center;
    padding: 120px 0 96px;
  }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(14, 15, 19, 0.94) 0%, rgba(14, 15, 19, 0.75) 45%, rgba(14, 15, 19, 0.25) 100%),
      linear-gradient(180deg, transparent 70%, rgba(14, 15, 19, 0.9) 100%);
  }
  .hero-photo {
    height: 100%;
    -webkit-mask-image: none;
    mask-image: none;
    object-position: 60% 30%;
  }
  .features-layout { grid-template-columns: 1fr 340px; }
  .preview-card { position: sticky; top: 96px; }
  .how-layout { grid-template-columns: 1fr 1fr; }
  .photo-strip {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    max-width: 1120px;
    margin: 0 auto;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
