/* =============================================
   CompEx Official Website - Shared Stylesheet
   Aesthetic: Organic Vitality — premium wellness
   ============================================= */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  --green-deep:   #1a3d2b;
  --green-mid:    #2d6a4f;
  --green-light:  #52b788;
  --green-pale:   #d8f3dc;
  --gold:         #c9963f;
  --gold-light:   #f4d98e;
  --coral:        #e06b4b;
  --coral-light:  #fde8e2;
  --cream:        #faf8f5;
  --cream-dark:   #f0ebe3;
  --ink:          #1c2a23;
  --ink-mid:      #3d5449;
  --ink-light:    #6b8c7a;
  --white:        #ffffff;

  --font-display: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  28px;
  --radius-xl:  40px;

  --shadow-sm:  0 2px 8px rgba(26,61,43,.08);
  --shadow-md:  0 8px 32px rgba(26,61,43,.12);
  --shadow-lg:  0 20px 60px rgba(26,61,43,.16);

  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
.t-display {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.t-hero {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}
.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.2;
}
.t-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: var(--ink-mid);
  line-height: 1.75;
}
.t-caption {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--lg { padding: 110px 0; }
.section--sm { padding: 50px 0; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }
.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Color Utilities ── */
.bg-green-deep  { background: var(--green-deep); }
.bg-green-pale  { background: var(--green-pale); }
.bg-cream-dark  { background: var(--cream-dark); }
.bg-white       { background: var(--white); }
.text-white     { color: var(--white); }
.text-gold      { color: var(--gold); }
.text-coral     { color: var(--coral); }
.text-green     { color: var(--green-mid); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}
.btn-primary:hover {
  background: #c95e3f;
  border-color: #c95e3f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224,107,75,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.8);
}
.btn-outline-dark {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-mid);
}
.btn-outline-dark:hover {
  background: var(--green-pale);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: #b5842e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,150,63,.4);
}
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card--green {
  background: var(--green-deep);
  color: var(--white);
}
.card--pale {
  background: var(--green-pale);
}
.card--gold {
  background: linear-gradient(135deg, #c9963f, #e8b460);
  color: var(--white);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(250,248,245,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26,61,43,.08);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar.scrolled .navbar__logo { color: var(--green-deep); }
.navbar__logo-mark {
  width: 32px; height: 32px;
  background: var(--coral);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
}
.navbar.scrolled .navbar__link { color: var(--ink-mid); }
.navbar__link:hover { color: var(--coral); }
.navbar__cta {
  background: var(--coral);
  color: white;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition);
}
.navbar__cta:hover { background: #c95e3f; transform: translateY(-1px); }

/* Mobile nav toggle */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: transparent;
  border: none;
}
.navbar__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .navbar__hamburger span { background: var(--ink); }

/* ── Section Label ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-pale);
  color: var(--green-mid);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-label--gold {
  background: rgba(201,150,63,.15);
  color: var(--gold);
}
.section-label--coral {
  background: var(--coral-light);
  color: var(--coral);
}

/* ── Decorative Elements ── */
.dot-grid {
  background-image: radial-gradient(circle, rgba(82,183,136,.2) 1px, transparent 1px);
  background-size: 24px 24px;
}
.stripe-pattern {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(82,183,136,.06) 8px,
    rgba(82,183,136,.06) 16px
  );
}

/* ── Icon Badge ── */
.icon-badge {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.icon-badge--green { background: var(--green-pale); }
.icon-badge--gold  { background: rgba(201,150,63,.15); }
.icon-badge--coral { background: var(--coral-light); }

/* ── Step Connector ── */
.step-connector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-deep);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Tag ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
}
.tag-green { background: var(--green-pale); color: var(--green-mid); }
.tag-gold  { background: rgba(201,150,63,.18); color: var(--gold); }
.tag-coral { background: var(--coral-light); color: var(--coral); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(82,183,136,.3), transparent);
  margin: 0;
}

/* ── Quote Block ── */
.quote-block {
  position: relative;
  padding: 28px 28px 28px 40px;
  border-left: 4px solid var(--green-light);
  background: var(--white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.quote-block::before {
  content: '"';
  position: absolute;
  left: 12px; top: 12px;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--green-light);
  opacity: .5;
}

/* ── Footer ── */
.footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.7);
  padding: 60px 0 32px;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: white;
  margin-bottom: 12px;
}
.footer__tagline { font-size: 0.9rem; margin-bottom: 32px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__link {
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--green-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ── Pill badge ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
}
.pill--outline {
  border: 1.5px solid var(--green-light);
  color: var(--green-mid);
}

/* ── Phone Mockup ── */
.phone-mockup {
  width: 220px;
  border-radius: 36px;
  background: var(--ink);
  padding: 14px;
  box-shadow: 0 30px 80px rgba(26,61,43,.4), inset 0 0 0 1.5px rgba(255,255,255,.1);
  position: relative;
  flex-shrink: 0;
}
.phone-mockup__screen {
  border-radius: 26px;
  overflow: hidden;
  background: var(--cream);
}
.phone-mockup__notch {
  width: 70px; height: 20px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  margin: 0 auto 8px;
}

/* ── Accordion ── */
.accordion-item {
  border-bottom: 1px solid rgba(26,61,43,.1);
}
.accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-align: left;
  gap: 16px;
}
.accordion-icon {
  font-size: 1.2rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--green-mid);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding-bottom: 20px;
  color: var(--ink-mid);
  font-size: 0.95rem;
  line-height: 1.75;
}
.accordion-item.open .accordion-body { display: block; }

/* ── Role Tab ── */
.role-tabs {
  display: flex;
  gap: 8px;
  background: var(--cream-dark);
  padding: 6px;
  border-radius: 100px;
  margin-bottom: 40px;
}
.role-tab {
  flex: 1;
  padding: 10px 20px;
  border-radius: 100px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-light);
  transition: var(--transition);
  text-align: center;
}
.role-tab.active {
  background: var(--white);
  color: var(--green-deep);
  box-shadow: var(--shadow-sm);
}
.role-panel { display: none; }
.role-panel.active { display: block; }

/* ── Scroll animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Highlight text ── */
.highlight {
  position: relative;
  display: inline;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  height: 8px;
  background: var(--gold-light);
  z-index: -1;
  border-radius: 2px;
}
.highlight-coral::after { background: rgba(224,107,75,.2); }

/* ── Stat Counter ── */
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--green-deep);
  display: block;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.9rem; color: var(--ink-mid); }

/* ── Pricing Card ── */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 2px solid transparent;
  transition: var(--transition);
}
.pricing-card.featured {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-mid);
  color: white;
  padding: 4px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--ink);
  line-height: 1;
}
.price-unit { font-size: 1rem; color: var(--ink-light); }

/* ── Checklist ── */
.checklist { list-style: none; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--ink-mid);
}
.checklist li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--green-pale);
  color: var(--green-mid);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Back to top ── */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-mid);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition);
  border: none;
  z-index: 900;
}
.back-top.visible {
  opacity: 1;
  transform: none;
}

/* ── Download Buttons ── */
.download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: white;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1.5px solid rgba(255,255,255,.15);
}
.dl-btn:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.dl-btn__icon { font-size: 1.6rem; line-height: 1; }
.dl-btn__text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: .7;
  margin-bottom: 2px;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .hide-tablet { display: none !important; }
}

/* Mobile */
@media (max-width: 640px) {
  .section  { padding: 60px 0; }
  .section--lg { padding: 80px 0; }
  .container { padding: 0 20px; }

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

  .navbar__links { display: none; }
  .navbar__hamburger { display: flex; }

  .mobile-stack { flex-direction: column; }
  .mobile-center { text-align: center; align-items: center; }
  .hide-mobile { display: none !important; }

  .phone-mockup { width: 180px; }

  .dl-btn { flex: 1; min-width: 140px; justify-content: center; }

  .role-tabs { flex-direction: row; }
  .role-tab { font-size: 0.82rem; padding: 8px 10px; }

  .footer__bottom { flex-direction: column; text-align: center; }

  .pricing-card { padding: 28px 22px; }

  .btn-lg { padding: 14px 28px; font-size: 1rem; }
}

/* Very small phones */
@media (max-width: 375px) {
  .t-hero { font-size: 2.2rem; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .role-tab { font-size: 0.75rem; padding: 8px 8px; }
}

/* ── Misc ── */
::selection {
  background: var(--green-pale);
  color: var(--green-deep);
}
:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 3px;
}