/* ==========================================================================
   Red Belt Gym — Landing Site Styles
   Mobile-first. Dark + Light themes via [data-theme] on <html>.
   Brand palette: black, red-belt red, blue accent, white.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Brand */
  --red: #e11d2a;
  --red-600: #c1121f;
  --blue: #2563eb;
  --blue-600: #1d4ed8;

  /* Type */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, sans-serif;

  /* Spacing / shape */
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark theme (default) */
:root,
:root[data-theme="dark"] {
  --bg: #0b0b0f;
  --bg-elev: #14141b;
  --bg-elev-2: #1c1c26;
  --surface: #14141b;
  --border: #2a2a36;
  --text: #f5f6fa;
  --text-muted: #a7adba;
  --hero-grad: radial-gradient(
      1200px 600px at 80% -10%,
      rgba(37, 99, 235, 0.18),
      transparent 60%
    ),
    radial-gradient(900px 500px at 0% 0%, rgba(225, 29, 42, 0.16), transparent 55%);
  --header-bg: rgba(11, 11, 15, 0.82);
  color-scheme: dark;
}

/* Light theme */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-elev: #f6f7f9;
  --bg-elev-2: #eef1f6;
  --surface: #ffffff;
  --border: #e3e7ee;
  --text: #11131a;
  --text-muted: #5a6376;
  --hero-grad: radial-gradient(
      1200px 600px at 80% -10%,
      rgba(37, 99, 235, 0.10),
      transparent 60%
    ),
    radial-gradient(900px 500px at 0% 0%, rgba(225, 29, 42, 0.08), transparent 55%);
  --header-bg: rgba(255, 255, 255, 0.85);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

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

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
}

p {
  margin: 0 0 1rem;
}

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

section {
  padding-block: clamp(48px, 8vw, 96px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.center {
  text-align: center;
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  line-height: 1;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(225, 29, 42, 0.7);
}
.btn-primary:hover {
  background: var(--red-600);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-block {
  width: 100%;
}

/* ---- Header / Nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
}
.brand b {
  color: var(--red);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.theme-toggle:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}
.theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}
:root[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

.nav-cta {
  display: none;
}

@media (min-width: 880px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  background: var(--hero-grad);
  padding-top: clamp(36px, 6vw, 64px);
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.hero h1 .hl {
  color: var(--red);
}
.hero .lead {
  margin-bottom: 28px;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.trust-row .check {
  color: var(--blue);
  font-weight: 800;
}

/* ---- Contact card (above the fold) -------------------------------------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.contact-card h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.contact-card .sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  gap: 14px;
}
@media (min-width: 520px) {
  .field-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.optins {
  display: grid;
  gap: 12px;
  margin: 6px 0 18px;
}
.optin {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.optin input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  flex: none;
}
.optin a {
  font-weight: 600;
}

.turnstile-wrap {
  margin: 4px 0 16px;
  min-height: 65px;
}
.turnstile-wrap:empty {
  min-height: 0;
  margin: 0;
}

.form-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.form-success {
  display: none;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid var(--blue);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.form-success.show {
  display: block;
}

/* ---- Generic section helpers ------------------------------------------- */
.section-head {
  max-width: 64ch;
  margin-bottom: 40px;
}
.section-head.center {
  margin-inline: auto;
}

.alt {
  background: var(--bg-elev);
  border-block: 1px solid var(--border);
}

/* ---- Feature / card grids ---------------------------------------------- */
.grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}
.card .ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-elev-2);
  color: var(--red);
  margin-bottom: 16px;
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin: 0;
}

/* Highlight (the differentiator) */
.spotlight {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-600) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 880px) {
  .spotlight {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.spotlight h2 {
  color: #fff;
}
.spotlight p {
  color: rgba(255, 255, 255, 0.92);
}
.spotlight .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.spotlight-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.spotlight-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.spotlight-points .num {
  font-weight: 800;
  background: #fff;
  color: var(--red-600);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  flex: none;
}

/* ---- Comparison table --------------------------------------------------- */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
table.compare th,
table.compare td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
}
table.compare thead th {
  background: var(--bg-elev-2);
  font-weight: 700;
}
table.compare th[scope="col"]:nth-child(2) {
  color: var(--red);
}
table.compare tbody tr:last-child td {
  border-bottom: 0;
}
table.compare .yes {
  color: #16a34a;
  font-weight: 800;
}
table.compare .no {
  color: var(--text-muted);
  font-weight: 700;
}

/* ---- Steps -------------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 {
  margin-bottom: 6px;
}
.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ---- FAQ (Q&A / AEO) ---------------------------------------------------- */
.faq {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin-inline: auto;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: var(--blue);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .plus {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.2s var(--ease);
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  background: var(--red);
  border-radius: 2px;
}
.faq summary .plus::before {
  inset: 10px 0;
  height: 2px;
}
.faq summary .plus::after {
  inset: 0 10px;
  width: 2px;
}
.faq details[open] summary .plus {
  transform: rotate(45deg);
}
.faq details > p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

/* ---- Final CTA ---------------------------------------------------------- */
.final-cta {
  text-align: center;
  background: var(--hero-grad);
}
.final-cta .btn {
  margin-top: 8px;
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding-block: 48px 28px;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-grid a {
  color: var(--text);
}
.footer-grid a:hover {
  color: var(--blue);
}
.footer-about p {
  color: var(--text-muted);
  max-width: 38ch;
  margin-top: 12px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.footer-bottom a {
  color: var(--text-muted);
}

/* ---- Legal pages -------------------------------------------------------- */
.legal {
  max-width: 820px;
  margin-inline: auto;
}
.legal h1 {
  margin-bottom: 6px;
}
.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 1.35rem;
  margin-top: 36px;
}
.legal p,
.legal li {
  color: var(--text-muted);
}
.legal ul {
  padding-left: 20px;
}
.legal li {
  margin-bottom: 8px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  margin-bottom: 24px;
}
