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

:root {
  --primary: #4E583A;
  --primary-dark: #3A4229;
  --primary-light: #6B7A4F;
  --terracotta: #B76D61;
  --terracotta-dark: #9A5548;
  --terracotta-light: #D4918A;
  --bg-cream: #F9F5EA;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-muted: #9E9E9E;
  --border: #E8E2D6;
  --success: #5A8A5E;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

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

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--terracotta);
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 2px solid var(--border);
}

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

.store-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s, opacity 0.2s;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badge img {
  display: block;
  height: auto;
}

.store-badge img[alt*="App Store"] {
  width: 140px;
}

.store-badge img[alt*="Google Play"] {
  width: 157px;
}

/* ── Sections ── */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-white);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.section-alt .feature-card {
  background: var(--bg-cream);
  border-color: var(--border);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.feature-icon-primary {
  background: rgba(78, 88, 58, 0.1);
  color: var(--primary);
}

.feature-icon-terracotta {
  background: rgba(183, 109, 97, 0.1);
  color: var(--terracotta);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── How it works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Roles ── */
.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.role-card {
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.role-card-distributor {
  background: var(--primary);
  color: white;
}

.role-card-client {
  background: var(--terracotta);
  color: white;
}

.role-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.role-card > p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 24px;
  line-height: 1.5;
}

.role-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.role-list li::before {
  content: "\2713";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pricing-card-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 8px 32px rgba(78, 88, 58, 0.15);
  transform: scale(1.04);
  padding-top: 48px;
}

.pricing-card-featured:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 12px 36px rgba(78, 88, 58, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 0 0 10px 10px;
  letter-spacing: 0.02em;
}

.pricing-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dark);
}

.pricing-features li::before {
  content: "\2713";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(78, 88, 58, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.pricing-features li.pricing-saving {
  color: var(--success);
  font-weight: 600;
}

.pricing-features li.pricing-saving::before {
  background: rgba(90, 138, 94, 0.1);
  color: var(--success);
}

.pricing-btn {
  width: 100%;
  justify-content: center;
}

/* ── CTA ── */
.cta {
  text-align: center;
  padding: 80px 0;
  background: var(--primary);
  color: white;
}

.cta h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta p {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  background: var(--terracotta);
}

/* ── Footer ── */
.footer {
  background: var(--primary-dark);
  color: white;
  padding: 48px 0 24px;
}

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

.footer-brand h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  opacity: 0.7;
  line-height: 1.6;
}

.footer h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  opacity: 0.9;
}

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

.footer-links a {
  font-size: 13px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.6;
}

/* ── Legal Pages ── */
.legal-page {
  padding: 120px 0 80px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 16px;
  padding: 48px;
  border: 1px solid var(--border);
}

.legal-content h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.legal-content .legal-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 6px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

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

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

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card-featured {
    transform: none;
  }

  .pricing-card-featured:hover {
    transform: translateY(-4px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .legal-content {
    padding: 28px 20px;
  }

  .legal-content h1 {
    font-size: 22px;
  }
}
