/* ============================================================
   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;
}

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

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  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;
}

.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(2.05rem, 5.4vw, 3.35rem);
  max-width: 18ch;
  margin: 0.35em auto 0.45em;
}

.hero .sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  max-width: 52ch;
  margin: 0 auto;
}

/* ---------- buttons ---------- */

.btn {
  appearance: none;
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 18px 28px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

/* ---------- 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;
}

/* ---------- proof grid ---------- */

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

.proof-card { overflow: hidden; padding: 0; }
.proof-card .proof-img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.proof-card .proof-body { padding: 20px; }
.proof-card h3 { font-size: 1.15rem; margin-bottom: 0.25em; }
.proof-card .proof-meta {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7em;
}
.proof-card p { font-size: 0.95rem; color: var(--muted); }

/* ---------- video ---------- */

.video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

wistia-player { display: block; }

/* ---------- 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;
}

/* ---------- hero trigger (opens form popup) ---------- */

.hero-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  transition: transform 0.15s ease;
}

.hero-trigger:hover { transform: translateY(-2px); }
.hero-trigger:active { transform: translateY(0); }
.hero-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.hero-trigger img,
.hero-trigger .hero-media {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

/* interim placeholder look (removed when the real <img> goes in) */
.hero-media.placeholder {
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}
.play-badge svg { width: 30px; height: 30px; margin-left: 4px; }

/* ---------- form popup (dialog) ---------- */

.form-modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}

.form-modal:not([open]) { display: none; }

.form-modal::backdrop {
  background: rgba(6, 7, 9, 0.74);
  backdrop-filter: blur(3px);
}

.form-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 14px 18px;
  border-bottom: 1px solid var(--border);
}

.form-modal__bar h2 { font-size: 1.1rem; }

.form-modal__close {
  appearance: none;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  padding: 2px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.form-modal__close:hover { color: var(--text); }

.form-modal__body {
  padding: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 130px);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-trigger { transition: none; }
}

/* ---------- calendly ---------- */

.calendly-inline-widget {
  min-width: 320px;
  height: 700px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

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

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

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin-top: 12px; color: var(--muted); }

/* ---------- callout / quote ---------- */

.quote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- message screenshot wall ---------- */

.msg-wall {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
}

.msg-wall img,
.msg-wall .placeholder {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---------- vertical (9:16) testimonial video grid ---------- */

.vid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin-inline: auto;
}

.vtestimonial {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.vtestimonial wistia-player { display: block; width: 100%; }

.vtestimonial figcaption {
  padding: 9px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ---------- placeholder marker ---------- */

.placeholder {
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  background: repeating-linear-gradient(
    45deg,
    rgba(216, 180, 122, 0.04),
    rgba(216, 180, 122, 0.04) 12px,
    transparent 12px,
    transparent 24px
  );
}

.placeholder__tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.placeholder p { margin: 0.4em 0 0; font-size: 0.95rem; }

/* ---------- 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; }

/* ---------- dev banner (remove for production) ---------- */

.devbar {
  background: #3a2d12;
  color: var(--accent-strong);
  font-size: 0.8rem;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--accent);
}
.devbar code { color: #fff; }
