/* Homepage layout-only fixes.
   Scope: CSS/layout/responsiveness only. No homepage copy, CTAs, or content are changed. */

/* Keep homepage-specific styling loaded after Bootstrap and global CCF CSS. */
body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--ccf-bg, #000);
  color: var(--ccf-fg, #fff);
  overflow-x: hidden;
}

img,
picture,
video {
  max-width: 100%;
}

picture {
  display: block;
}

.ccf-nav .navbar-brand,
.ccf-nav .nav-link {
  color: var(--ccf-fg, #fff) !important;
}

.ccf-nav .nav-link:hover,
.ccf-nav .nav-link.ccf-active {
  color: var(--ccf-accent, #9D1A01) !important;
}

.ccf-nav .ccf-brand {
  letter-spacing: 0;
  text-transform: none;
}

.ccf-nav .ccf-brand-subtitle {
  color: var(--ccf-muted2, rgba(255,255,255,.55)) !important;
}

.max-copy {
  max-width: 760px;
}

/* Typography: prevent oversized homepage text while preserving Bootstrap's responsive flow. */
.hero h1 {
    max-width: 980px;
    
    font-size: clamp(2rem, 3.4vw, 3.35rem);
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.hero .sub-headline,
.hero-copy,
.section .lead {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.hero-copy {
  max-width: 820px;
}

.section h2 {
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.section h3,
.plan-card-lite h3,
.ccf-spine-card h3,
.ccf-reputation-card h3,
.ccf-proof-card h3,
.faq-card h3 {
  line-height: 1.2;
  text-wrap: balance;
}

.hero-proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  max-width: 980px;
  margin-top: 1.25rem;
}

.hero-proof-list span {
  display: block;
  border: 1px solid rgba(200, 167, 93, .35);
  border-radius: 999px;
  padding: .65rem .85rem;
  background: rgba(0, 0, 0, .38);
  color: rgba(255, 255, 255, .86);
  font-weight: 700;
  text-align: center;
}

.hero-image-card {
  max-width: 960px;
}

.hero-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Current markup has three mechanism cards; use three tracks on desktop. */
.ccf-product-spine {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ccf-spine-card,
.ccf-reputation-card,
.ccf-proof-card {
  height: 100%;
  padding: clamp(1rem, 1.5vw, 1.35rem);
  border: 1px solid rgba(200, 167, 93, .35);
  border-radius: 1rem;
}

.ccf-spine-card {
  background: rgba(255, 255, 255, .06);
}

.ccf-spine-card span,
.ccf-proof-card span {
  display: block;
  margin-bottom: .65rem;
  color: var(--gold, #c8a75d);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ccf-spine-card h3,
.ccf-reputation-card h3,
.ccf-proof-card h3 {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
}

.ccf-spine-card p,
.ccf-reputation-card p,
.ccf-proof-card p {
  margin-bottom: 0;
}

.ccf-proof-card {
  background: #fff;
  color: #17110e;
}

.ccf-proof-card span {
  color: #9D1A01;
}

.dictionary-term-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.dictionary-term-grid a {
  display: block;
  border: 1px solid rgba(157, 26, 1, .22);
  border-radius: .85rem;
  padding: .85rem 1rem;
  background: rgba(157, 26, 1, .06);
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  word-break: normal;
  overflow-wrap: anywhere;
}

.dictionary-term-grid a:hover,
.dictionary-term-grid a:focus-visible {
  text-decoration: underline;
}

.book-zero-panel {
  overflow: hidden;
  border: 1px solid rgba(200, 167, 93, .4);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .04);
}

.book-zero-copy {
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.book-zero-copy p {
  color: rgba(255, 255, 255, .82);
}

.book-zero-poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, .06);
  border-left: 1px solid rgba(200, 167, 93, .28);
  text-align: center;
}

.book-zero-poster figure {
  width: 100%;
  text-align: center;
}

.book-zero-poster picture,
.book-zero-poster img {
  margin-inline: auto;
}

.book-zero-poster img {
  width: min(100%, 330px);
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

/* Center the Play Video button regardless of Bootstrap/flex parent behavior. */
.book-zero-poster .btn[data-bs-target="#bookZeroVideoModal"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-inline: auto;
  width: auto;
  max-width: 100%;
  text-align: center;
}

.book-zero-note {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .72);
}

.plan-card-lite {
  height: 100%;
  padding: clamp(1.15rem, 1.8vw, 1.5rem);
  border: 1px solid rgba(200, 167, 93, .38);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, .06);
}

.plan-card-lite.featured {
  border-color: var(--gold, #c8a75d);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .28);
}

.plan-card-lite .price {
  font-size: clamp(1.8rem, 3.1vw, 2.45rem);
  font-weight: 900;
  line-height: 1;
  color: var(--gold, #c8a75d);
}

.plan-card-lite .price span {
  font-size: clamp(.85rem, 1vw, 1rem);
  color: rgba(255, 255, 255, .74);
}

.plan-card-lite details {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 1rem;
}

.plan-card-lite summary {
  cursor: pointer;
  font-weight: 800;
}

.billing-toggle-panel {
  text-align: center;
}

.billing-toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(200, 167, 93, .55);
  border-radius: 999px;
  background: rgba(12, 18, 32, .72);
  color: var(--paper, #fff);
  font-weight: 900;
  padding: 5px;
  line-height: 1;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .22);
}

.billing-toggle-choice {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 9px 16px;
  line-height: 1;
  transition: background-color .18s ease, color .18s ease;
}

.billing-toggle-choice.active {
  background: var(--gold, #c8a75d);
  color: var(--ink, #17110e);
}

.faq-card {
  height: 100%;
  border: 1px solid rgba(200, 167, 93, .25);
  border-radius: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, .06);
}

.faq-card h3 {
  font-size: 1.05rem;
}

.modal-footer {
  display: block;
  text-align: center;
}

.modal-billing-toggle .billing-toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(200, 167, 93, .55);
  border-radius: 999px;
  background: rgba(12, 18, 32, .72);
  color: var(--paper, #fff);
  font-weight: 900;
  padding: 5px;
  line-height: 1;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .22);
}

.modal-billing-toggle .billing-toggle-choice {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 9px 16px;
  line-height: 1;
  transition: background-color .18s ease, color .18s ease;
}

.modal-billing-toggle .billing-toggle-choice.active {
  background: var(--gold, #c8a75d);
  color: var(--ink, #17110e);
}

/* Bootstrap/Razor note: external CSS must use @media, not @@media. */
@media (max-width: 1199.98px) {
  .hero h1 {
    font-size: clamp(2.1rem, 5vw, 4rem);
  }

  .dictionary-term-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .hero {
    text-align: center;
  }

  .hero h1,
  .hero-copy,
  .hero-image-card,
  .max-copy {
    margin-inline: auto;
  }

  .hero-proof-list,
  .ccf-product-spine,
  .dictionary-term-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-zero-poster {
    border-top: 1px solid rgba(200, 167, 93, .28);
    border-left: 0;
    min-height: auto;
  }

  .book-zero-poster img {
    width: min(70vw, 330px);
    max-height: none;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.15rem);
    line-height: 1.02;
  }

  .section h2 {
    font-size: clamp(1.55rem, 8vw, 2.25rem);
  }

  .plan-card-lite .btn,
  #final-cta .btn,
  .hero .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .hero-proof-list,
  .ccf-product-spine,
  .dictionary-term-grid {
    grid-template-columns: 1fr;
  }

  .book-zero-copy,
  .book-zero-poster {
    padding: 1.25rem;
  }

  .book-zero-note {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }

  .billing-toggle-switch {
    max-width: 100%;
  }

  .billing-toggle-choice {
    padding-inline: 12px;
  }
}
