/* ============================================================
   TSB-4 Free Training Funnel — shared styles
   Premium dark. Used by index.html, training.html, booked.html
   ============================================================ */

:root {
  --bg: #0c0e11;
  --surface: #14171c;
  --surface-2: #1b1f26;
  --border: #2a2f38;
  --text: #f4f5f7;
  --muted: #9ba1aa;
  --accent: #d8b47a;
  --accent-strong: #e8c793;
  --accent-ink: #1a1509;
  --radius: 14px;
  --maxw: 1040px;
  --readw: 660px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-strong); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- layout ---------- */

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

.reading { max-width: var(--readw); margin-inline: auto; }

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

section + section { border-top: 1px solid var(--border); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}

/* hero eyebrow = standout gold badge */
.hero .eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7dda8 0%, #e7c388 45%, #dcb679 100%);
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 8px 22px -8px rgba(216, 180, 122, 0.6);
}

.section-title {
  font-size: clamp(1.7rem, 3.8vw, 2.35rem);
  text-align: center;
  margin: 0 0 0.7em;
}

.section-title.left { text-align: left; }

/* ---------- hero ---------- */

.hero { text-align: center; padding-top: clamp(40px, 7vw, 76px); }

.hero h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.75rem);
  max-width: 42ch;
  margin: 0.35em auto 0.45em;
  text-wrap: balance;
}

@media (max-width: 560px) {
  .hero h1 br { display: none; }
}

.hero .sub {
  color: var(--muted);
  font-size: clamp(1.02rem, 2.3vw, 1.18rem);
  max-width: 56rem;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .hero .sub br { display: none; }
}

.hero .sub--oneline {
  max-width: 72rem;
  font-size: clamp(0.98rem, 1.9vw, 1.1rem);
}

/* ---------- cards / lists ---------- */

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

.list-check { list-style: none; padding: 0; margin: 0; }

.list-check li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
}

.list-check li:last-child { margin-bottom: 0; }

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    linear-gradient(var(--accent), var(--accent)) no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
}

/* ---------- form embed ---------- */

.form-embed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
}

.form-embed iframe {
  width: 100%;
  min-height: 540px;
  border: none;
  border-radius: 8px;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after { transition: none; }
}

/* ---------- spacing helpers ---------- */

.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 40px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.narrow { max-width: 520px; margin-inline: auto; }

/* ============================================================
   Brand header + depth pass
   ============================================================ */

html { scroll-padding-top: 80px; }

body {
  background:
    radial-gradient(1100px 620px at 50% 160px, rgba(216, 180, 122, 0.20), rgba(216, 180, 122, 0) 68%),
    radial-gradient(900px 560px at 90% 46%, rgba(216, 180, 122, 0.10), rgba(216, 180, 122, 0) 70%),
    radial-gradient(800px 500px at 6% 72%, rgba(216, 180, 122, 0.08), rgba(216, 180, 122, 0) 70%),
    var(--bg);
  background-repeat: no-repeat;
}

.hero {
  background:
    radial-gradient(760px 520px at 4% 8%, rgba(224, 110, 178, 0.20), rgba(224, 110, 178, 0) 70%),
    radial-gradient(760px 520px at 96% 22%, rgba(90, 140, 226, 0.20), rgba(90, 140, 226, 0) 70%);
  background-repeat: no-repeat;
}

/* --- sticky brand header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  display: block;
  height: 32px;
  width: auto;
}
.brand__name {
  font-family: "Inter", -apple-system, sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1;
}
.brand__name span {
  display: block;
  margin-top: 3px;
  font-family: "Inter", -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-header__cta {
  flex-shrink: 0;
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  font-family: "Inter", -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
  background: linear-gradient(180deg, #f7dda8 0%, #e7c388 45%, #dcb679 100%);
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 8px 20px -8px rgba(216, 180, 122, 0.7);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.site-header__cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
@media (max-width: 520px) {
  .brand__name { display: none; }
  .site-header__cta { font-size: 0.76rem; padding: 9px 15px; }
  .site-header__inner { padding: 10px 16px; }
}

/* --- alternating section tone for depth --- */
body > section:nth-of-type(even):not(.hero) {
  background:
    radial-gradient(700px 480px at 8% 15%, rgba(224, 110, 178, 0.09), rgba(224, 110, 178, 0) 70%),
    radial-gradient(700px 480px at 92% 85%, rgba(90, 140, 226, 0.09), rgba(90, 140, 226, 0) 70%),
    #12151b;
}

/* --- panels lift off the background --- */
.card,
.form-embed {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 26px 50px -28px rgba(0, 0, 0, 0.72);
}

/* --- headline accent --- */
.hl { color: var(--accent-strong); font-weight: 600; }
.list-check .hl { font-weight: 700; }

/* ---------- stat badge strip ---------- */
.stat-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 900px; margin-inline: auto;
}
.stat-badge {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 10px 18px; font-size: 0.85rem; color: var(--muted);
  white-space: nowrap;
}
.stat-badge strong { color: var(--text); font-weight: 700; }

/* --- site footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  background: #0a0c0f;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-strong); }
.site-footer__sep { margin: 0 9px; opacity: 0.5; }
