/* ========================================
   FitOps — Theme Stylesheet
   ======================================== */

:root {
  --bg: #F8F5F0;
  --bg-alt: #F0EDE6;
  --fg: #1A1A18;
  --fg-muted: #6B6B65;
  --forest: #1B4332;
  --forest-light: #2D6A4F;
  --amber: #B45309;
  --amber-light: #D97706;
  --amber-subtle: #FEF3C7;
  --white: #FFFFFF;
  --border: #E5E0D8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-w: 1140px;
  --section-py: 80px;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.02em;
}

.tagline {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 400;
  margin-left: 4px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--amber);
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--forest);
  color: var(--white) !important;
  font-weight: 600;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--forest-light);
}

a.wordmark {
  text-decoration: none;
  color: var(--forest);
}

/* ========================================
   SECTION COMMON
   ======================================== */

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.2;
  margin: 0 0 56px;
  max-width: 640px;
}

/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
  background: var(--bg);
}

.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.hero-shape-1 {
  width: 700px;
  height: 700px;
  background: var(--forest);
  top: -200px;
  right: -200px;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: var(--amber);
  bottom: -100px;
  left: -100px;
}

.hero-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--amber);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.08;
  margin: 0 0 28px;
  max-width: 680px;
  letter-spacing: -0.03em;
}

.hero-lede {
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 20px);
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 0 36px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--forest-light);
}

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}

.btn-secondary:hover {
  background: var(--forest);
  color: var(--white);
}

/* ========================================
   FOUNDER NOTE
   ======================================== */
.founder-note-section {
  background: var(--bg);
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.founder-note-wrap {
  max-width: 680px;
}

.founder-note-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 16px;
}

.founder-note-body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.75;
  margin: 0;
}

/* ========================================
   PROBLEM
   ======================================== */

.problem {
  background: var(--white);
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-text {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
  font-weight: 300;
  text-align: center;
}

/* ========================================
   HOW IT WORKS
   ======================================== */

.how-it-works {
  background: var(--white);
  padding: var(--section-py) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--forest);
  opacity: 0.15;
  margin: 0 0 16px;
  letter-spacing: -0.04em;
}

.step h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 10px;
}

.step p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

/* ========================================
   FEATURES
   ======================================== */

.features {
  background: var(--bg);
  padding: var(--section-py) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.feature-icon {
  color: var(--forest);
  margin-bottom: 16px;
}

.feature h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 10px;
}

.feature p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin: 0;
  font-weight: 300;
}

/* ========================================
   WHO IT'S FOR
   ======================================== */

.who-its-for {
  background: var(--forest);
  padding: var(--section-py) 0;
}

.who-its-for .section-eyebrow {
  color: #6EE7B7;
}

.who-its-for .section-title {
  color: var(--white);
  margin-bottom: 56px;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.profile-icon {
  color: #6EE7B7;
  margin-bottom: 20px;
}

.profile h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 12px;
}

.profile p {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0;
  font-weight: 300;
}

/* ========================================
   CLOSING
   ======================================== */

.closing {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  padding: 100px 0;
}

.closing-bg-shape {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--amber);
  border-radius: 50%;
  opacity: 0.06;
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.closing-inner {
  position: relative;
}

.closing-text {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  margin: 0 0 24px;
  max-width: 680px;
}

.closing-sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--fg-muted);
  margin: 0;
  font-weight: 300;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--fg);
  padding: 48px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: auto;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.footer-note {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover {
  color: rgba(255,255,255,0.9);
}

.footer-link-active {
  color: rgba(255,255,255,0.9) !important;
}

/* ========================================
   SCREENSHOTS SECTION
   ======================================== */

.screenshots-section {
  background: var(--white);
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}

.screen-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  background: #fafaf8;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.screen-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--fg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.browser-url {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 3px 10px;
}

.screen-body {
  height: 280px;
  overflow: hidden;
}

/* Intake screen */
.intake-screen {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.intake-progress {
  width: 100%;
  max-width: 320px;
  margin-bottom: 16px;
}

.intake-progress-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.intake-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.intake-progress-fill {
  height: 100%;
  background: var(--forest);
  border-radius: 99px;
}

.intake-card {
  background: var(--white);
  border-radius: 10px;
  padding: 20px 24px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.intake-step-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.intake-question {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 14px;
  line-height: 1.3;
}

.intake-input-wrap {
  margin-bottom: 14px;
}

.intake-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--fg);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
}

.intake-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.intake-btn-ghost, .intake-btn-primary {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: default;
}

.intake-btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1.5px solid var(--border);
}

.intake-btn-primary {
  background: var(--forest);
  color: var(--white);
}

/* Dashboard screen */
.dashboard-screen {
  background: #f4f4f9;
  padding: 16px 20px;
  overflow: hidden;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--fg);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  margin: -16px -20px 12px;
}

.dash-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #4ade80;
}

.dash-title span {
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

.dash-nav {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.dash-stat {
  background: var(--white);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.dash-stat-val {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}

.dash-stat-val.accent {
  color: #059669;
}

.dash-stat-lbl {
  font-family: var(--font-body);
  font-size: 9px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.dash-section {
  background: var(--white);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.dash-section-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th {
  font-family: var(--font-body);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #aaa;
  text-align: left;
  padding: 4px 6px;
  border-bottom: 1px solid #f0f0f5;
}

.dash-table td {
  font-family: var(--font-body);
  font-size: 10px;
  padding: 7px 6px;
  border-bottom: 1px solid #f5f5f8;
  color: #444;
}

.dash-client {
  font-weight: 600;
  color: var(--fg) !important;
}

.dash-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
}

.dash-badge.pub {
  background: #d1fae5;
  color: #065f46;
}

/* Portal screen */
.portal-screen {
  background: #0f1f3d;
  padding: 14px 16px;
  overflow: hidden;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.portal-logo {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  color: #4ade80;
}

.portal-user {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-align: right;
}

.portal-user span {
  display: block;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}

.portal-welcome {
  background: linear-gradient(135deg, #1a2f5f, #2d3a6a);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.portal-welcome-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.portal-welcome-sub {
  font-family: var(--font-body);
  font-size: 10px;
  color: #a0b4d0;
  margin-bottom: 10px;
}

.portal-adherence {
  display: flex;
  gap: 6px;
}

.portal-stat {
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
  flex: 1;
}

.portal-stat-val {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  color: #4ade80;
  line-height: 1;
}

.portal-stat-lbl {
  font-family: var(--font-body);
  font-size: 9px;
  color: #a0b4d0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

.portal-workouts {
  background: #1a2f5e;
  border-radius: 10px;
  padding: 10px 14px;
}

.portal-week-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #a0b4d0;
  margin-bottom: 8px;
}

.portal-workout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.portal-workout-row:last-child {
  border-bottom: none;
}

.pw-info { flex: 1; }

.pw-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.pw-meta {
  font-family: var(--font-body);
  font-size: 9px;
  color: #a0b4d0;
  margin-top: 1px;
}

.pw-btn {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  background: #d1fae5;
  color: #065f46;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  margin-left: 8px;
}

/* Screen captions */
.screen-caption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.caption-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--forest);
  opacity: 0.15;
  line-height: 1;
  flex-shrink: 0;
}

.caption-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.caption-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* Screenshots note */
.screenshots-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
  :root {
    --section-py: 64px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-py: 48px;
  }

  .header-inner,
  .hero-content,
  .section-inner,
  .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-headline {
    font-size: 40px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 36px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}