/* ============================================================
   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%; height: auto; 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;
}

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

/* two-column feature block (What You'll Discover + Who This Is For) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  max-width: 940px;
  margin-inline: auto;
}
.two-col .section-title { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 44px; }
}

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

/* keep the manual 2-line break on wider screens; let it wrap naturally on small ones */
@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; }
}

/* Page 2 sub — sits on one line on desktop, wraps on smaller screens */
.hero .sub--oneline {
  max-width: 72rem;
  font-size: clamp(0.98rem, 1.9vw, 1.1rem);
}

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

.btn {
  appearance: none;
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7dda8 0%, #e7c388 38%, #d0a961 60%, #edcd95 100%);
  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;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 -10px 16px rgba(0, 0, 0, 0.14) inset,
    0 10px 26px -10px rgba(216, 180, 122, 0.6);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn:hover {
  filter: brightness(1.06) saturate(1.05);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 -10px 16px rgba(0, 0, 0, 0.14) inset,
    0 14px 30px -10px rgba(216, 180, 122, 0.75);
}
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(0); }

/* two-line button: bold main line + smaller supporting line */
.btn--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 15px 24px;
  line-height: 1.25;
}
.btn--stacked .btn__sub {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.005em;
  opacity: 0.82;
  max-width: 46ch;
}

.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 { width: 100%; height: auto; display: block; }
.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; }

.video-wrap--yt { aspect-ratio: 16 / 9; }
.video-wrap--yt iframe { width: 100%; height: 100%; border: 0; 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%;
  height: auto;
  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,
  .btn,
  .btn::after { transition: none; }
}

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

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

/* booking section: "What Happens on Your Call?" beside the calendar */
.booking-row {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: clamp(28px, 5vw, 56px);
  max-width: 1000px;
  margin-inline: auto;
  align-items: start;
}
.booking-aside-title {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}
.booking-row__cal .calendly-inline-widget { width: 100%; }

@media (max-width: 860px) {
  .booking-row { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- 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 a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
}

.msg-wall img,
.msg-wall .placeholder {
  width: 100%;
  display: block;
}

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

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

@media (min-width: 640px) {
  .vid-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.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; }

/* ---------- glute guide — 3D ebook mockup (real cover art) ---------- */
.guide-3d {
  width: min(330px, 76vw);
  margin: 30px auto 34px;
  perspective: 2400px;
}
.guide-cover {
  position: relative;
  aspect-ratio: 579 / 820;
  border-radius: 2px 5px 5px 2px;
  transform: rotateY(-17deg) rotateX(1.5deg);
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.15, 1);
  /* page stack on the fore edge + soft cast shadow on the ground */
  box-shadow:
    1px 0 0 #e7e1d3, 3px 0 0 #d7d0be, 5px 0 0 #e7e1d3,
    7px 0 0 #cfc7b3, 9px 0 1px #c0b8a3, 11px 0 1px #d7d0be,
    13px 1px 2px rgba(0,0,0,0.35),
    26px 30px 44px -12px rgba(0,0,0,0.55),
    46px 64px 80px -30px rgba(0,0,0,0.7);
}
.guide-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
/* binding shadow down the spine + glossy sheen sweeping across */
.guide-cover::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; z-index: 2;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.14) 4%, rgba(0,0,0,0) 12%),
    linear-gradient(105deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 82%, rgba(255,255,255,0.07) 100%);
  pointer-events: none;
}
/* thin gold edge on the spine */
.guide-cover::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px; z-index: 3;
  background: var(--accent);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 0 8px rgba(216, 180, 122, 0.5);
}
.hero-trigger:hover .guide-cover,
.guide-3d:hover .guide-cover {
  transform: rotateY(-9deg) rotateX(1deg) translateY(-4px);
}
@media (prefers-reduced-motion: reduce) {
  .guide-cover { transform: rotateY(-10deg); transition: none; }
}

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

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

body {
  background:
    radial-gradient(1000px 520px at 50% 190px, rgba(216, 180, 122, 0.09), rgba(216, 180, 122, 0) 70%),
    var(--bg);
  background-repeat: no-repeat;
}

/* --- sticky brand header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 11, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.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: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1.5px solid var(--accent);
  background: linear-gradient(180deg, rgba(216, 180, 122, 0.2), rgba(216, 180, 122, 0.03));
  color: var(--accent-strong);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.brand__name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  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: #12151b; }

/* --- panels lift off the background --- */
.card,
.proof-card,
.form-embed,
.video-wrap,
.msg-wall a,
.calendly-inline-widget {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 26px 50px -28px rgba(0, 0, 0, 0.72);
}
.proof-card { border-top: 3px solid rgba(216, 180, 122, 0.55); }

/* --- headline accent --- */
.hl { color: var(--accent-strong); }

/* --- page-2 free-training block: tighter rhythm + line control --- */
.hero h1.training-title {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  max-width: 58rem;
  margin: 0 auto;
  text-wrap: pretty;
}
.training-subhead {
  font-size: clamp(0.95rem, 2vw, 1.4rem);
  margin: 44px auto 0;
  white-space: nowrap;
}
.training-copy {
  color: var(--muted);
  font-size: clamp(0.9rem, 1.7vw, 1rem);
  max-width: 64rem;
  margin: 16px auto 0;
  text-wrap: balance;
}
@media (max-width: 880px) {
  .training-subhead { white-space: normal; max-width: 32ch; }
  .training-copy { max-width: 44ch; }
}
