/* ============================================================
   99 Not Out Fitness — Global Stylesheet
   Design: forest green accent, light backgrounds, serif headings
   Matched to Systeme.io brand style
   Mobile-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* === VARIABLES === */
:root {
  /* Greens */
  --green:       #3B6B35;
  --green-dark:  #2D4A1E;
  --green-lt:    #4A8042;
  --green-dim:   rgba(59, 107, 53, 0.08);
  --green-grad:  linear-gradient(135deg, #3B6B35 0%, #2A5020 50%, #3B6B35 100%);

  /* Surfaces */
  --bg:          #FFFFFF;
  --bg-2:        #F5F3EE;
  --bg-3:        #EBEBEB;
  --bg-card:     #FFFFFF;
  --bg-dark:     #1E1E1E;

  /* Text */
  --text:        #333333;
  --text-light:  #666666;
  --text-muted:  #999999;
  --white:       #FFFFFF;

  /* Accent — green replaces gold */
  --accent:      var(--green);
  --accent-lt:   var(--green-lt);
  --accent-dim:  var(--green-dim);

  /* Borders */
  --border:      rgba(0, 0, 0, 0.08);
  --border-green: rgba(59, 107, 53, 0.2);

  /* Typography */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Layout */
  --max-w:       1080px;
  --radius:      10px;
  --radius-lg:   16px;
  --t:           0.2s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; }
ul, ol { list-style: none; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.15;
  font-weight: 700;
  color: var(--green-dark);
}
h4 {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.3;
}
h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { color: var(--text-light); line-height: 1.75; }
.eyebrow {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-title { color: var(--green-dark); margin-bottom: 16px; }
.section-sub { color: var(--text-light); font-size: 1.05rem; max-width: 600px; }
.text-green { color: var(--green); }
.text-gold { color: var(--green); } /* backward compat — maps gold to green */
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* === INVERTED SECTIONS (green or dark backgrounds) === */
.section-green {
  background: var(--green-grad);
  color: var(--white);
}
.section-green h1,
.section-green h2,
.section-green h3,
.section-green h4,
.section-green .eyebrow,
.section-green .section-title,
.section-green p,
.section-green .stat-number,
.section-green .stat-label,
.section-green .story-quote,
.section-green .story-name,
.section-green .pain-text {
  color: var(--white);
}
.section-green .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.section-green p {
  color: rgba(255, 255, 255, 0.85);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark .section-title {
  color: var(--white);
}
.section-dark p,
.section-dark .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

/* Warm off-white section */
.section-warm {
  background: var(--bg-2);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-lt); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--green); color: var(--green); }
.btn-outline-gold,
.btn-outline-green {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline-gold:hover,
.btn-outline-green:hover { background: var(--green); color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* White button for green sections */
.section-green .btn-primary { background: var(--white); color: var(--green-dark); }
.section-green .btn-primary:hover { background: #f0f0f0; }
.section-green .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.4); }
.section-green .btn-secondary:hover { border-color: var(--white); }
.section-green .btn-outline-gold,
.section-green .btn-outline-green { color: var(--white); border-color: var(--white); }
.section-green .btn-outline-gold:hover,
.section-green .btn-outline-green:hover { background: var(--white); color: var(--green-dark); }

/* === TOP BAR === */
.top-bar {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* === NAVBAR === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img { height: 48px; width: auto; }
.nav-logo-text {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-link {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--t);
}
.nav-link:hover { color: var(--green-dark); }

/* === HERO === */
.hero {
  background: var(--green-grad);
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 .text-gold,
.hero h1 .text-green {
  color: rgba(255,255,255,0.85);
  font-style: italic;
}
.hero .eyebrow {
  color: rgba(255,255,255,0.7);
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--white); color: var(--green-dark); }
.hero .btn-primary:hover { background: #f0f0f0; }
.hero .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.4); }
.hero .btn-secondary:hover { border-color: var(--white); }
.hero-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* === STATS BAR === */
.stats-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Green stats bar variant */
.stats-bar.section-green {
  border: none;
}
.stats-bar.section-green .stat-number {
  color: var(--white);
}
.stats-bar.section-green .stat-label {
  color: rgba(255,255,255,0.7);
}

/* === PAIN POINTS === */
.pain-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.pain-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.pain-text { font-size: 0.97rem; color: var(--text-light); }

/* === STORY CARD === */
.story-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.story-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
  border-left: 3px solid var(--green);
  padding-left: 20px;
}
.story-result {
  display: inline-block;
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.story-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Story card on green background */
.section-green .story-card {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}
.section-green .story-quote {
  color: var(--white);
  border-left-color: rgba(255,255,255,0.5);
}
.section-green .story-result {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.section-green .story-name {
  color: rgba(255,255,255,0.7);
}

/* === HOW IT WORKS / STEP CARDS === */
.steps-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green-dim);
  line-height: 1;
  margin-bottom: 12px;
}
.step-card h3 { color: var(--green-dark); margin-bottom: 8px; font-size: 1.05rem; }
.step-card p { font-size: 0.92rem; }

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial-stars { color: var(--green); font-size: 0.9rem; margin-bottom: 14px; }
.testimonial-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-initials {
  width: 40px; height: 40px;
  background: var(--green-dim);
  border: 1px solid var(--border-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--green);
  flex-shrink: 0;
}
.testimonial-name { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.testimonial-meta { font-size: 0.78rem; color: var(--text-muted); }

/* Testimonial quote block (full-width green) */
.testimonial-block {
  background: var(--green-grad);
  padding: 72px 20px;
  text-align: center;
}
.testimonial-block .container { max-width: 800px; }
.testimonial-block blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--white);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial-block cite {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* === PRICING CARD === */
.pricing-card {
  background: var(--bg);
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  margin: 0 auto;
}
.pricing-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.pricing-name { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.pricing-price {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price span { font-size: 1.2rem; font-weight: 400; color: var(--text-muted); }
.pricing-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: var(--text-light);
}
.pricing-feature::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-guarantee {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 2px; margin-top: 36px; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  color: var(--text);
  font-size: 0.97rem;
  font-weight: 600;
  text-align: left;
  transition: color var(--t);
}
.faq-q:hover { color: var(--green); }
.faq-icon { font-size: 1.2rem; color: var(--green); flex-shrink: 0; transition: transform var(--t); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s ease;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }
.faq-a p { font-size: 0.92rem; }

/* === OPT-IN FORM === */
.optin-form { display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text-light); }
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color var(--t);
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { outline: none; border-color: var(--green); }
.form-trust {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}
.form-error { font-size: 0.82rem; color: #e55; margin-top: 4px; display: none; }
.form-success-msg {
  display: none;
  background: var(--green-dim);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--green);
  font-weight: 600;
}

/* Form on green background */
.section-green .form-input {
  background: var(--white);
  border-color: rgba(255,255,255,0.3);
  color: var(--text);
}
.section-green .form-label { color: rgba(255,255,255,0.8); }
.section-green .form-trust { color: rgba(255,255,255,0.6); }

/* === FEATURE LIST === */
.feature-list { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.feature-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.95rem; color: var(--text-light);
}
.feature-icon { color: var(--green); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

/* === DIVIDER === */
.divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* === BADGE === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-green);
}

/* === CTA SECTION === */
.cta-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
  text-align: center;
}
.cta-section h2 { margin-bottom: 16px; color: var(--green-dark); }
.cta-section p { margin-bottom: 32px; }
.cta-buttons { display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* === FOOTER === */
.footer {
  background: var(--bg-dark);
  padding: 40px 0 28px;
  color: var(--white);
}
.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}
.footer-brand .footer-logo img { height: 36px; margin-bottom: 12px; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--t);
}
.footer-link:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* === BLOG CARD === */
.blog-grid { display: grid; gap: 24px; margin-top: 36px; }
.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--t);
}
.blog-card:hover { border-color: var(--green); }
.blog-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.blog-card h3 { color: var(--green-dark); margin-bottom: 10px; font-size: 1.1rem; }
.blog-card p { font-size: 0.9rem; margin-bottom: 16px; }
.blog-read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t);
}
.blog-card:hover .blog-read-more { gap: 8px; }

/* === ARTICLE === */
.article-hero { padding: 64px 0 40px; }
.article-hero .eyebrow { margin-bottom: 16px; }
.article-body { padding-bottom: 72px; }
.article-content { max-width: 720px; }
.article-content h2 { color: var(--green-dark); margin: 40px 0 16px; font-size: 1.5rem; }
.article-content h3 { color: var(--green-dark); margin: 28px 0 12px; font-size: 1.2rem; }
.article-content p { margin-bottom: 18px; font-size: 1rem; }
.article-content ul, .article-content ol {
  margin: 16px 0 20px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { color: var(--text-light); font-size: 0.97rem; }
.article-content strong { color: var(--text); font-weight: 700; }
.article-cta-box {
  background: var(--bg-2);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}
.article-cta-box h3 { color: var(--green-dark); margin-bottom: 10px; }
.article-cta-box p { margin-bottom: 20px; font-size: 0.92rem; }

/* === UTILITY === */
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px;  }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === LOADING SPINNER === */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TABLET  >= 640px
   ============================================================ */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-buttons { flex-direction: row; justify-content: center; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   DESKTOP  >= 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .section { padding: 96px 0; }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
