/* ============================================================
   SCOAR Promo Site — styles.css
   Design Philosophy: Calm, spiritual, modern product page.
   Teal + gold accents on soft neutrals. Scalable via variables.
   ============================================================ */

/* ── 1. Design Tokens (CSS Variables) ─────────────────────── */
:root {
  /* Brand colours */
  --color-teal-dark:    #004F52;
  --color-teal:         #006B70;
  --color-teal-mid:     #008B8F;
  --color-teal-light:   #E8F5F5;
  --color-gold:         #F4B400;

  /* Neutrals */
  --color-white:        #ffffff;
  --color-off-white:    #f9f9f9;
  --color-border:       #e0e0e0;
  --color-text:         #333333;
  --color-text-muted:   #666666;
  --color-text-faint:   rgba(255,255,255,0.7);
  --color-text-soft:    rgba(255,255,255,0.8);

  /* Typography */
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
               Ubuntu, Cantarell, sans-serif;
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  32px;
  --text-3xl:  36px;
  --text-4xl:  40px;
  --text-5xl:  52px;
  --lh-tight:  1.2;
  --lh-base:   1.6;
  --lh-loose:  1.8;

  /* Spacing scale */
  --space-xs:  12px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  32px;
  --space-xl:  40px;
  --space-2xl: 60px;
  --space-3xl: 80px;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  8px;
  --radius-xl:  12px;

  /* Shadows */
  --shadow-card:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,107,112,0.15);

  /* Gradients */
  --gradient-teal: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-mid) 100%);

  /* Transitions */
  --transition: 0.3s ease;

  /* Layout */
  --padding-section: var(--space-3xl);
  --padding-section-x: var(--space-3xl); /* 80px */
}


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

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-white);
}

.app-wrapper {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}


/* ── 3. Utility Classes ────────────────────────────────────── */
.text-gold {
  color: var(--color-gold);
}

.underline-gold {
  border-bottom: 3px solid var(--color-gold);
  padding-bottom: 4px;
}

.bg-gold {
  background-color: var(--color-gold);
  color: var(--color-teal);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.section-title {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-2xl);
  color: var(--color-text);
}


/* ── 4. Buttons ────────────────────────────────────────────── */
.btn-primary {
  background-color: var(--color-white);
  color: var(--color-teal);
  border: none;
  padding: 14px var(--space-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
  transition: all var(--transition);
}

.btn-primary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  padding: 12px 30px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
}


/* ── 5. Header ─────────────────────────────────────────────── */
header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--padding-section-x);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-image {
  height: 44px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  gap: var(--space-xl);
  flex: 1;
  margin-left: var(--space-2xl);
  font-size: var(--text-sm);
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  transition: color var(--transition);
}

nav a:hover {
  color: var(--color-teal);
}

.header-cta {
  background-color: var(--color-teal);
  color: var(--color-white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background-color var(--transition);
}

.header-cta:hover {
  background-color: var(--color-teal-dark);
}


/* ── 6. Hero Section ───────────────────────────────────────── */
.hero {
  background: var(--gradient-teal);
  color: var(--color-white);
  padding:10px var(--padding-section);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: var(--lh-tight);
}

.hero p {
  font-size: var(--text-md);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-base);
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero-logo {
  width: 400px;
  height: auto;
  object-fit: contain;
  display: block;
}


/* ── 7. Value Proposition ──────────────────────────────────── */
.value-section {
  background-color: var(--color-teal-light);
  padding: var(--padding-section);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.card {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

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

.card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-teal);
  margin-bottom: var(--space-sm);
}

.card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--lh-base);
}


/* ── 8. How It Works ───────────────────────────────────────── */
.how-it-works {
  background: var(--color-white);
  padding: var(--padding-section);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.step-card {
  text-align: center;
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
  background: var(--gradient-teal);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-2xl);
  font-weight: 700;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-base);
}


/* ── 9. Feature Highlights ─────────────────────────────────── */
.feature-block {
  padding: var(--padding-section);
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.feature-block.alternate {
  flex-direction: row-reverse;
}

.feature-block:nth-child(even) {
  background: var(--color-off-white);
}

.feature-content {
  flex: 1;
}

.feature-content h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.feature-content p {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-lg);
}

.feature-visual {
  flex: 1;
  min-height: 300px;
  background: var(--gradient-teal);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-xl);
  font-weight: 600;
}


/* ── 10. App Download ──────────────────────────────────────── */
.app-download {
  background: var(--gradient-teal);
  color: var(--color-white);
  padding: var(--space-2xl) var(--padding-section-x);
  text-align: center;
}

.app-download h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-xl);
}

.app-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.app-btn {
  background: var(--color-white);
  color: var(--color-teal);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: all var(--transition);
}

.app-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.app-icon {
  font-size: var(--text-xl);
}


/* ── 11. Testimonials ──────────────────────────────────────── */
.testimonials-section {
  background-color: var(--color-teal-light);
  padding: var(--padding-section);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-teal);
  box-shadow: var(--shadow-card);
}

.testimonial-card p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--lh-loose);
  font-style: italic;
}

.testimonial-author {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-teal);
  font-weight: 600;
  font-style: normal;
}


/* ── 12. CTA Section ───────────────────────────────────────── */
.cta-section {
  background: var(--gradient-teal);
  color: var(--color-white);
  padding: var(--padding-section);
  text-align: center;
}

.cta-section h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-xl);
}

.cta-section .btn-primary {
  background-color: var(--color-white);
  color: var(--color-teal);
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--text-base);
}


/* ── 13. Footer ────────────────────────────────────────────── */
footer {
  background-color: var(--color-teal-dark);
  color: var(--color-white);
  padding: var(--space-2xl) var(--padding-section-x);
  display: grid;
  grid-template-columns: 1fr 2fr 1.5fr;
  gap: var(--space-3xl);
}

.footer-logo {
  display: flex;
  align-items: flex-start;
}

.footer-logo-image {
  height: 300px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-social {
  text-align: right;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}


/* ── 14. Responsive — Tablet (≤1024px) ────────────────────── */
@media (max-width: 1024px) {
  .value-section {
    padding-top: 20px;
    margin-top: 0;
  }
}


/* ── 15. Responsive — Mobile (≤768px) ─────────────────────── */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 0 var(--space-xl);
    flex-wrap: wrap;
    height: auto;
    gap: 20px;
  }

  nav {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
    margin-left: 0;
    gap: var(--space-sm);
    font-size: var(--text-xs);
  }

  /* Hero */
  .hero {
    padding: var(--space-xl);
    flex-direction: column;
    gap: var(--space-xl);
    padding-bottom: 20px;
    margin-bottom: 0;
  }

  .hero h1 {
    font-size: var(--text-2xl);
  }

  /* Grids → single column */
  .cards-grid,
  .steps-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Feature blocks → stack */
  .feature-block,
  .feature-block.alternate {
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-xl);
  }

  /* Sections — tighter padding */
  .value-section,
  .how-it-works,
  .app-download,
  .testimonials-section,
  .cta-section {
    padding: var(--space-xl) 20px;
  }

  /* Footer → single column */
  footer {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-social {
    text-align: left;
  }
}