/**
 * Gym Profit Guard - Marketing Site Styles
 * 
 * Purpose: Marketing-specific styles for customer-facing pages
 * Scope: Landing, Demo, How It Works, Pricing pages
 * Design: Clean, operator-first, low cognitive load
 */

/* ========================================
   FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   BASE MARKETING PAGE
   ======================================== */
.marketing-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gpg-bg-light);
  color: var(--gpg-text-light);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.marketing-page * {
  box-sizing: border-box;
}

.marketing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.marketing-section {
  padding: 60px 0;
}

.marketing-section + .marketing-section {
  border-top: 1px solid var(--border);
}

/* ========================================
   MARKETING NAVIGATION
   ======================================== */
.marketing-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px var(--shadow-sm);
}

.marketing-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.marketing-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marketing-header-logo {
  height: 32px;
  width: 32px;
  flex-shrink: 0;
}

.marketing-header-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.marketing-header-name:hover {
  color: var(--gpg-primary);
}

.marketing-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.marketing-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.marketing-nav-link--login {
  color: var(--gpg-primary);
  font-weight: 600;
}

.marketing-nav-link--login:hover {
  color: var(--gpg-primary-hover);
}

.marketing-nav-cta {
  padding: 10px 20px;
  font-size: 15px;
  white-space: nowrap;
}

/* Mobile hamburger menu */
.marketing-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
}

.marketing-nav-toggle:hover {
  color: var(--text);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--panel-2) 0%, var(--panel-2) 100%);
}

.hero-headline {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: var(--gpg-text-light);
}

.hero-subhead {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 32px 0;
  color: var(--text-muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-visual {
  margin-top: 48px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   CTA BUTTONS
   ======================================== */
.cta-primary {
  display: inline-block;
  background: var(--gpg-primary);
  color: var(--text-on-primary);
  font-size: 18px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.cta-primary:hover {
  background: var(--gpg-primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.cta-primary:active {
  transform: translateY(0);
}

.cta-primary-nav {
  padding: 10px 20px;
  font-size: 15px;
}

.cta-secondary {
  display: inline-block;
  background: var(--surface);
  color: var(--gpg-primary);
  font-size: 18px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid var(--gpg-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cta-secondary:hover {
  background: var(--gpg-primary);
  color: var(--text-on-primary);
}

/* ========================================
   ACTION CARDS (for demo/weekly review)
   ======================================== */
.action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--text-muted);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.action-card:hover {
  box-shadow: 0 4px 12px var(--shadow);
  transform: translateY(-2px);
}

.action-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.action-card-severity {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-card-impact {
  font-size: 18px;
  font-weight: 700;
  color: var(--gpg-text-light);
}

.action-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--gpg-text-light);
}

.action-card-description {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Action card severity variants */
.action-card--critical {
  border-left-color: var(--gpg-critical);
}

.action-card--critical .action-card-severity {
  background: var(--danger-soft);
  color: var(--danger-text);
}

.action-card--high {
  border-left-color: var(--gpg-high);
}

.action-card--high .action-card-severity {
  background: var(--warning-soft);
  color: var(--warning-text);
}

.action-card--medium {
  border-left-color: var(--gpg-medium);
}

.action-card--medium .action-card-severity {
  background: var(--success-soft);
  color: var(--success-text);
}

.action-card--low {
  border-left-color: var(--gpg-low);
}

.action-card--low .action-card-severity {
  background: var(--surface-2);
  color: var(--text);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.marketing-h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: var(--gpg-text-light);
}

.marketing-h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px 0;
  color: var(--gpg-text-light);
}

.marketing-h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 16px 0;
  color: var(--gpg-text-light);
}

.marketing-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.marketing-body-large {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

.marketing-small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ========================================
   GRID & LAYOUT
   ======================================== */
.marketing-grid {
  display: grid;
  gap: 32px;
}

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

.marketing-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.marketing-flex {
  display: flex;
  gap: 24px;
}

.marketing-flex--center {
  align-items: center;
  justify-content: center;
}

.marketing-flex--between {
  justify-content: space-between;
}

/* ========================================
   FEATURE BOX
   ======================================== */
.feature-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.feature-box-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--gpg-text-light);
}

.feature-box-description {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

/* ========================================
   PRICING TABLE
   ======================================== */
.pricing-card {
  background: var(--surface);
  border: 2px solid var(--gpg-primary);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.pricing-price {
  font-size: 48px;
  font-weight: 700;
  color: var(--gpg-text-light);
  margin: 0 0 8px 0;
}

.pricing-price-unit {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--text);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ========================================
   FOOTER
   ======================================== */
.marketing-footer {
  background: var(--bg);
  padding: 48px 0;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.marketing-footer-cta {
  margin-bottom: 32px;
}

.marketing-footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.marketing-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.marketing-footer-links a:hover {
  color: var(--gpg-primary);
}

.marketing-footer-copy {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   MODAL (for demo interactions)
   ======================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--gpg-text-light);
  flex: 1;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--panel-2);
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0 0 12px 0;
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.modal-actions button {
  flex: 1;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.modal-action-primary {
  background: var(--gpg-primary);
  color: var(--text-on-primary);
}

.modal-action-primary:hover {
  background: var(--gpg-primary-hover);
}

.modal-action-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border) !important;
}

.modal-action-secondary:hover {
  background: var(--bg);
}

/* CTA Banner (shown after 3 interactions) */
.demo-cta-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gpg-primary);
  color: var(--text-on-primary);
  padding: 20px;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
  animation: slideUpBanner 0.3s ease;
}

.demo-cta-banner.active {
  display: block;
}

.demo-cta-banner h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
}

.demo-cta-banner p {
  margin: 0 0 16px 0;
  font-size: 16px;
  opacity: 0.95;
}

.demo-cta-banner .cta-primary {
  background: var(--surface);
  color: var(--gpg-primary);
}

.demo-cta-banner .cta-primary:hover {
  background: var(--bg);
  color: var(--gpg-primary-hover);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpBanner {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  /* Navigation mobile styles */
  .marketing-header-inner {
    padding: 12px 16px;
  }

  .marketing-header-logo {
    height: 28px;
    width: 28px;
  }

  .marketing-header-name {
    font-size: 18px;
  }

  .marketing-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 4px 6px var(--shadow);
  }

  .marketing-nav.active {
    display: flex;
  }

  .marketing-nav-link {
    padding: 12px 20px;
    border-bottom: 1px solid var(--panel-2);
  }

  .marketing-nav-link:last-child {
    border-bottom: none;
  }

  .marketing-nav-cta {
    margin: 8px 16px;
    text-align: center;
  }

  .marketing-nav-toggle {
    display: block;
  }

  /* Hero mobile styles */
  .hero {
    padding: 48px 0;
  }

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

  .hero-subhead {
    font-size: 18px;
  }

  .marketing-h1 {
    font-size: 32px;
  }

  .marketing-h2 {
    font-size: 28px;
  }

  .marketing-h3 {
    font-size: 20px;
  }

  .marketing-grid--2col,
  .marketing-grid--3col {
    grid-template-columns: 1fr;
  }

  .marketing-flex {
    flex-direction: column;
  }

  .marketing-section {
    padding: 40px 0;
  }

  .cta-primary,
  .cta-secondary {
    font-size: 16px;
    padding: 14px 24px;
  }

  .action-card {
    padding: 16px;
  }

  .action-card-header {
    flex-direction: column;
    gap: 8px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-price {
    font-size: 40px;
  }

  .marketing-footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .modal-content {
    max-width: 100%;
    margin: 0 10px;
  }

  .modal-header {
    padding: 20px 16px 12px;
  }

  .modal-body {
    padding: 20px 16px;
  }

  .modal-actions {
    flex-direction: column;
    padding: 16px;
  }

  .demo-cta-banner h3 {
    font-size: 18px;
  }

  .demo-cta-banner p {
    font-size: 14px;
  }
}
