/* FitiWatch Tactical-Purity Precision Fitness CSS System */
:root {
  --bg-canvas: #f8fafc;
  --bg-dark: #0b132b;
  --bg-secondary-dark: #1c2541;
  --card-bg: #ffffff;
  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #e0f2fe;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-emerald-tint: rgba(16, 185, 129, 0.25);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.12);
  --radius-card: 10px;
  --radius-btn: 6px;
  --radius-badge: 4px;
  --max-width: 1140px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--bg-canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-cyan);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-weight: 700;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--text-dark);
}

/* Focus States */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--bg-secondary-dark);
  padding: 0.85rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-light);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo span.highlight {
  color: var(--accent-emerald);
}

.brand-pulse {
  width: 10px;
  height: 10px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-light-muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.header-cta {
  background-color: var(--accent-emerald);
  color: #ffffff;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: inline-block;
}

.header-cta:hover {
  background-color: var(--accent-emerald-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-secondary-dark) 100%);
  color: var(--text-light);
  padding: 3rem 0 3.5rem 0;
  border-bottom: 2px solid var(--accent-emerald);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.hero-title {
  order: 2;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.hero-intro {
  order: 3;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-light-muted);
  margin-bottom: 1.5rem;
}

.hero-mobile-visual {
  order: 4;
  display: none; /* Desktop default */
  margin-bottom: 1.5rem;
}

.hero-cta-wrapper {
  order: 5;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background-color: var(--accent-emerald);
  color: #ffffff;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-btn);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background-color: var(--accent-emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.proof-microcopy {
  order: 6;
  font-size: 0.825rem;
  color: var(--text-light-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.proof-item svg {
  color: var(--accent-emerald);
}

.hero-bullets {
  order: 7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-secondary-dark);
}

.hero-bullet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.bullet-icon {
  width: 18px;
  height: 18px;
  background-color: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-desktop-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-stage {
  position: relative;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  text-align: center;
}

.visual-stage img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 0 auto;
}

/* Substantive Section Base Styles */
.section-padding {
  padding: 4rem 0;
}

.section-alt-bg {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem auto;
}

.section-kicker {
  color: var(--accent-emerald);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Card & Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background-color: var(--accent-cyan-light);
  color: var(--accent-cyan);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Timeline Setup Layout */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.step-number {
  background-color: var(--bg-dark);
  color: var(--accent-emerald);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--accent-emerald);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.step-image {
  margin-top: auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.comparison-table th.col-highlight {
  color: var(--accent-emerald);
  background-color: var(--bg-secondary-dark);
  border-bottom: 2px solid var(--accent-emerald);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
  background-color: #f1f5f9;
}

.check-icon {
  color: var(--accent-emerald);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cross-icon {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.table-disclosure {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
  text-align: center;
}

/* Disclosure & Cautions Panel */
.disclosure-panel {
  background-color: rgba(11, 19, 43, 0.03);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.disclosure-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.disclosure-list {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.disclosure-list li {
  margin-bottom: 0.5rem;
}

/* Testimonials / Customer Stories */
.story-disclosure-banner {
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.story-disclosure-banner svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.story-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.story-quote {
  font-size: 0.975rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.author-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--bg-dark);
  color: var(--accent-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.author-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Accordion FAQ Section */
.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-sm);
}

.faq-button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-canvas);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background-color: var(--accent-emerald);
  color: #ffffff;
}

.faq-panel {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-panel {
  display: block;
  border-top-color: #f1f5f9;
}

.unknown-badge {
  display: inline-block;
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Commerce Summary Card */
.commerce-card {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-secondary-dark) 100%);
  color: var(--text-light);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--accent-emerald);
  box-shadow: var(--shadow-md);
}

.commerce-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.commerce-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.commerce-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.commerce-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  color: var(--text-light);
}

.commerce-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light-muted);
  border-top: 1px solid var(--bg-secondary-dark);
  padding: 3rem 0 2rem 0;
  margin-top: auto;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand-title {
  color: var(--text-light);
  font-weight: 800;
  font-size: 1.25rem;
}

.footer-links-title {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-list a {
  color: var(--text-light-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--text-light);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-secondary-dark);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light-muted);
  line-height: 1.5;
}

/* Order Page Fallback Styles */
.fallback-container {
  max-width: 600px;
  margin: 5rem auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.fallback-icon {
  width: 56px;
  height: 56px;
  background-color: var(--accent-cyan-light);
  color: var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 1.5rem;
  font-weight: 800;
}

.fallback-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.fallback-text {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.return-link {
  display: inline-block;
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.return-link:hover {
  background-color: var(--bg-secondary-dark);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .grid-2, .commerce-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-3, .timeline-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Strict Mobile Binding at <=768px / 390px */
@media (max-width: 768px) {
  .hero-desktop-visual {
    display: none; /* Hide desktop visual */
  }

  .hero-mobile-visual {
    display: block; /* Show mobile visual */
  }

  .hero-content {
    display: flex;
    flex-direction: column;
  }

  .hero-eyebrow { order: 1; margin-bottom: 0.6rem; }
  .hero-title { order: 2; font-size: 1.55rem; line-height: 1.14; margin-bottom: 0.65rem; }
  .hero-intro { order: 3; font-size: 0.875rem; line-height: 1.45; margin-bottom: 0.75rem; }
  .hero-mobile-visual { order: 4; margin-bottom: 0.7rem; } /* VIS-HERO-STAGE image before CTA */
  .hero-mobile-visual .visual-stage { max-width: 270px; margin: 0 auto; padding: 0.75rem; }
  .hero-cta-wrapper { order: 5; margin-bottom: 1rem; } /* Primary CTA */
  .proof-microcopy { order: 6; }
  .hero-bullets { order: 7; grid-template-columns: 1fr; }

  .nav-links {
    display: none; /* Keep header clean on mobile */
  }

  .grid-3, .grid-4, .timeline-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .commerce-card {
    padding: 1.5rem;
  }

  .comparison-table-wrapper {
    overflow-x: visible;
  }

  .comparison-table {
    table-layout: fixed;
    width: 100%;
    font-size: 0.69rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.65rem 0.35rem;
    overflow-wrap: anywhere;
    word-break: normal;
    vertical-align: top;
  }

  .comparison-table th {
    font-size: 0.66rem;
    letter-spacing: 0;
  }

  .comparison-table th:first-child,
  .comparison-table td:first-child {
    width: 30%;
  }

  .check-icon,
  .cross-icon {
    display: block;
    width: auto;
    gap: 0;
  }
}
