/* ============================================
   THE OFFICE ATHLETE — Design Tokens & Styles
   Brand: Dark Navy + Teal + Gold
   ============================================ */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'General Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

/* LIGHT MODE (default) */
:root, [data-theme="light"] {
  --color-bg:             #f8f7f3;
  --color-surface:        #ffffff;
  --color-surface-2:      #f3f1ec;
  --color-border:         #ddd9d2;
  --color-text:           #091717;
  --color-text-muted:     #4a5858;
  --color-text-faint:     #8a9494;
  --color-primary:        #20808d;
  --color-primary-hover:  #176872;
  --color-gold:           #d4a029;
  --color-gold-hover:     #b8891d;
  --color-navy:           #091717;
  --color-navy-light:     #112d2d;
  --color-accent-bg:      #e8f5f7;

  --shadow-sm: 0 1px 2px rgba(9,23,23,0.06);
  --shadow-md: 0 4px 16px rgba(9,23,23,0.08);
  --shadow-lg: 0 12px 40px rgba(9,23,23,0.12);
}

/* DARK MODE */
[data-theme="dark"] {
  --color-bg:             #091717;
  --color-surface:        #0f2424;
  --color-surface-2:      #163333;
  --color-border:         #1e4444;
  --color-text:           #e0ecec;
  --color-text-muted:     #8aafaf;
  --color-text-faint:     #5a7878;
  --color-primary:        #4fb8c6;
  --color-primary-hover:  #6dd0dc;
  --color-gold:           #ffc553;
  --color-gold-hover:     #ffd77a;
  --color-navy:           #e0ecec;
  --color-navy-light:     #c0d5d5;
  --color-accent-bg:      #112d2d;
  --color-lead-magnet-bg:  #163333;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #091717;
    --color-surface:        #0f2424;
    --color-surface-2:      #163333;
    --color-border:         #1e4444;
    --color-text:           #e0ecec;
    --color-text-muted:     #8aafaf;
    --color-text-faint:     #5a7878;
    --color-primary:        #4fb8c6;
    --color-primary-hover:  #6dd0dc;
    --color-gold:           #ffc553;
    --color-gold-hover:     #ffd77a;
    --color-navy:           #e0ecec;
    --color-navy-light:     #c0d5d5;
    --color-accent-bg:      #112d2d;
    --color-lead-magnet-bg:  #163333;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  }
}

/* ============================================
   COMPONENTS
   ============================================ */

/* Container */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.container--narrow {
  max-width: var(--content-default);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding: var(--space-3) 0;
  transition: box-shadow 0.3s var(--ease-out);
}
.nav--scrolled {
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}
.nav__logo svg {
  width: 32px;
  height: 32px;
}
.nav__logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav__link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}
.nav__link:hover { color: var(--color-text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover { background: var(--color-primary-hover); }

.btn--gold {
  background: var(--color-gold);
  color: #091717;
}
.btn--gold:hover { background: var(--color-gold-hover); }

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--outline:hover {
  background: var(--color-surface-2);
  border-color: var(--color-primary);
}

.btn--lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-lg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--space-16), 10vw, var(--space-32)) 0 clamp(var(--space-12), 8vw, var(--space-24));
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, transparent 30%, transparent 60%, var(--color-bg) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 720px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent-bg);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}
.hero__title span {
  color: var(--color-primary);
}
.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 560px;
  line-height: 1.5;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.hero__proof {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}
.hero__proof-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Section */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}
.section--alt {
  background: var(--color-surface-2);
}
.section__header {
  text-align: left;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
  max-width: 640px;
}
.section__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.section__desc {
  color: var(--color-text-muted);
  max-width: 540px;
}

/* Problem Section */
.problems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-4);
}
.problem-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.problem-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}
.problem-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.problem-card__text {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* Product Section */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}
.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.product-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.product-features li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  margin-top: 2px;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
}
.product-card__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.product-card__orig {
  text-decoration: line-through;
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.product-card__detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

/* Free Challenge (Lead Magnet) */
.lead-magnet {
  background: var(--color-lead-magnet-bg, var(--color-navy));
  color: #e0ecec;
  border-radius: var(--radius-xl);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.2);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .lead-magnet {
    grid-template-columns: 1fr 1fr;
  }
}
.lead-magnet__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}
.lead-magnet__text {
  color: #8aafaf;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}
.lead-magnet__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.lead-magnet__list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: #c0d5d5;
}
.lead-magnet__list li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-gold);
}

/* Credibility */
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--space-4);
  text-align: center;
}
.credential {
  padding: var(--space-6);
}
.credential__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.credential__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 720px;
}
.faq-item {
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-align: left;
  background: var(--color-surface);
  cursor: pointer;
}
.faq-question:hover { background: var(--color-surface-2); }
.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-faint);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.faq-item[open] .faq-question svg {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 var(--space-5) var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding: var(--space-8) 0 var(--space-6);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.footer__text {
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}
.footer__links {
  display: flex;
  gap: var(--space-4);
}
.footer__links a {
  color: var(--color-text-faint);
  text-decoration: none;
  font-size: var(--text-xs);
}
.footer__links a:hover {
  color: var(--color-text-muted);
}

/* Dark mode toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* Scroll reveals — IntersectionObserver based */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive hiding */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
}

/* Legal disclaimer */
.disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 640px;
  margin-top: var(--space-6);
  line-height: 1.5;
}
