/* ============================================================
   CLEAR Performance Coaching — Shared Styles
   ============================================================ */

:root {
  --orange: #E85D04;
  --orange-deep: #C24A00; /* WCAG AA (4.5:1+) with white text and on light backgrounds */
  --orange-light: #F48C3C;
  --black: #0A0A0A;
  --off-black: #111111;
  --gray-900: #1A1A1A;
  --gray-600: #6B6B6B;
  --gray-200: #E8E8E8;
  --gray-100: #F5F5F3;
  --white: #FAFAF8;
  --font-display: 'Bebas Neue', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

img { display: block; max-width: 100%; height: auto; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  padding: 0 48px;
  background: var(--black);
  border-bottom: 1px solid #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.nav-logo img { height: 56px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-link {
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: #fff; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
}
.cart-icon-wrap svg { display: block; }

#cart-badge {
  position: absolute;
  top: -8px; right: -8px;
  width: 18px; height: 18px;
  background: var(--orange-deep);
  color: #fff;
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.nav-cta {
  background: var(--orange-deep);
  color: #fff;
  padding: 14px 28px;
  border-radius: 0;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #A83E00; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--off-black);
  padding: 32px 80px;
  border-top: 3px solid var(--orange);
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.footer-logo { justify-self: start; display: flex; align-items: center; }
.footer-logo img { height: 48px; width: auto; display: block; }

.footer-legal {
  justify-self: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  list-style: none;
}
.footer-legal a {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--white); }

.footer-copy {
  justify-self: end;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--orange-deep);
  flex-shrink: 0;
}
.section-label.light { color: var(--orange-light); }
.section-label.light::before { background: var(--orange-light); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-deep);
  color: #fff;
  padding: 15px 28px;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--off-black); }
.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  border-bottom: 2px solid var(--gray-200);
  padding: 4px 0;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  cursor: pointer;
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--orange); }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--orange-deep);
  padding: 15px 28px;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-white:hover { background: var(--black); color: var(--white); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
  padding: 15px 28px;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background: var(--orange-deep);
  padding: 96px 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: 'CLEAR';
  font-family: var(--font-display);
  font-size: 220px;
  color: rgba(0,0,0,0.07);
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.cta-strip-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.95;
  color: #fff;
  margin-bottom: 16px;
}
.cta-strip-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  line-height: 1.6;
}
.cta-strip-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   HAMBURGER TOGGLE (hidden on desktop)
   ============================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .nav { padding: 0 24px; }
  .nav-right { gap: 20px; }
  .nav-cta { padding: 10px 18px; font-size: 12px; }
  .footer { padding: 40px 48px; }
  .cta-strip { padding: 72px 48px; gap: 40px; }
  .cta-strip::before { font-size: 160px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-right {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: var(--black);
    padding: 24px 32px;
    gap: 18px;
    border-bottom: 1px solid #1e1e1e;
    z-index: 999;
  }
  .nav-right.open { display: flex; }
  .nav-link { padding: 8px 0; font-size: 16px; }
  .nav-cta { width: 100%; text-align: center; padding: 14px 28px; font-size: 14px; }
  .cart-icon-wrap { position: fixed; top: 28px; right: 72px; z-index: 1001; }

  .footer { padding: 32px 32px 20px; }
  .footer-row {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-logo { justify-self: center; }
  .footer-legal { justify-self: center; justify-content: center; gap: 16px; }
  .footer-copy { justify-self: center; }

  .cta-strip {
    grid-template-columns: 1fr;
    padding: 64px 32px;
    gap: 32px;
    text-align: center;
  }
  .cta-strip-sub { margin: 0 auto; }
  .cta-strip-btns { align-items: center; }
  .cta-strip::before { font-size: 100px; right: 20px; }

  .btn-primary, .btn-white, .btn-outline-white {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   RESPONSIVE — SMALL PHONE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .nav { padding: 0 16px; }
  .nav-right { padding: 20px; }
  .cart-icon-wrap { right: 56px; }

  .footer { padding: 32px 20px; }
  .cta-strip { padding: 48px 20px; }
  .cta-strip::before { font-size: 72px; }
}

/* ============================================================
   BRIEFING MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  width: 100%; max-width: 560px;
  border-radius: 4px;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-head {
  background: var(--black);
  padding: 36px 40px 32px;
  position: relative;
}
.modal-head::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--orange);
}
.modal-eyebrow {
  font-family: var(--font-condensed); font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 8px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 0.93; color: var(--white);
}
.modal-title em { font-style: normal; color: var(--orange); }
.modal-sub {
  font-size: 14px; font-weight: 300; line-height: 1.6;
  color: rgba(255,255,255,0.45); margin-top: 10px;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.06); border: none;
  border-radius: 2px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: white; }

.modal-body { padding: 32px 40px 36px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group:last-of-type { margin-bottom: 0; }

.form-label {
  font-family: var(--font-condensed); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-600);
}
.form-label .req { color: var(--orange); }
.form-label .opt { color: var(--gray-200); font-weight: 400; letter-spacing: 0; text-transform: none; font-family: var(--font-body); font-size: 12px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%; padding: 11px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  font-family: var(--font-body); font-size: 14px; font-weight: 300;
  color: var(--black); outline: none;
  transition: border-color 0.2s;
  appearance: none; -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--orange); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-200); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-textarea { resize: none; height: 80px; line-height: 1.5; }

.form-error {
  font-size: 12px; font-weight: 500; color: var(--orange-deep);
  display: none; margin-top: 2px;
}

.submit-btn {
  width: 100%; padding: 16px;
  background: var(--orange-deep); color: white; border: none;
  font-family: var(--font-condensed); font-size: 15px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 2px; cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 20px;
}
.submit-btn:hover { background: var(--off-black); }
.submit-btn svg { transition: transform 0.2s; }
.submit-btn:hover svg { transform: translateX(4px); }

.modal-success {
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 56px 40px; text-align: center; min-height: 280px;
}
.success-icon {
  width: 56px; height: 56px; background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.success-title {
  font-family: var(--font-display); font-size: 40px;
  line-height: 0.93; color: var(--black); margin-bottom: 12px;
}
.success-sub {
  font-size: 15px; font-weight: 300; line-height: 1.65;
  color: var(--gray-600); max-width: 340px;
}

/* ============================================================
   RESPONSIVE — OVERFLOW-X & TEXT CONTRAST FIXES
   ============================================================ */

@media (max-width: 1024px) {
  section, main, header, footer, .hero, .podcast-hero {
    overflow-x: hidden;
    max-width: 100%;
  }
  img, video, iframe, svg { max-width: 100%; box-sizing: border-box; }
}

@media (max-width: 768px) {
  /* Darker text for body copy on LIGHT backgrounds */
  .hero-sub,
  .categories-sub,
  .ai-app-sub,
  .challenge-body p,
  .three-ways-sub,
  .who-for-sub,
  .why-sticks-sub,
  .buy-desc,
  .legal-section p,
  .legal-section ul li,
  .legal-section ol li,
  .cart-page-sub,
  .line-note,
  .upsell-body,
  .empty-sub,
  .buy-team-note,
  .vid-desc,
  .engage-desc,
  .who-desc,
  .step-desc,
  .card-desc { color: var(--gray-900); }

  /* Darker text for body copy on DARK backgrounds */
  .hiw-hero-sub,
  .product-dark-sub,
  .feature-item span:not(.ai-app .feature-item span),
  .stats-dark-sub,
  .pull-quote p,
  .pricing-compare-sub,
  .vid-hero-sub,
  .vid-cta-sub,
  .pod-sub,
  .cta-strip-sub,
  .price-card-2 .price-feature { color: rgba(255,255,255,0.8); }
}
