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

:root {
  --primary: #E17055;
  --primary-dark: #C95D46;
  --primary-light: #FDEAE6;
  --navy: #1E293B;
  --navy-light: #334155;
  --text: #1E293B;
  --text-light: #64748B;
  --text-lighter: #94A3B8;
  --bg: #FFFFFF;
  --bg-light: #FDF8F7;
  --bg-alt: #FAF0EE;
  --border: #E8DDD9;
  --success: #10B981;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.3;
}

/* ===== Layout ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--text-light);
  font-size: 0.938rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--navy);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.1s;
}

.nav__cta:hover {
  background: var(--primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #F09040 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(225, 112, 85, 0.3);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 112, 85, 0.4);
}

.btn--secondary {
  background: var(--bg);
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--bg-light);
  border-color: var(--text-lighter);
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

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

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: var(--primary-light);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.938rem;
  line-height: 1.6;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

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

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.step p {
  color: var(--text-light);
  font-size: 0.938rem;
  line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-box {
  padding: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, #334155 100%);
  color: #fff;
}

.cta-box h2 {
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-lighter);
  font-size: 1.125rem;
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-box .btn--primary {
  font-size: 1.125rem;
  padding: 16px 32px;
}

/* ===== Footer ===== */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.footer__logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--text-light);
  font-size: 0.875rem;
}

.footer__links a:hover {
  color: var(--navy);
}

.footer__copy {
  width: 100%;
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-lighter);
  font-size: 0.813rem;
}

/* ===== Legal Pages ===== */
.legal-hero {
  padding: 56px 0 40px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-hero .last-updated {
  color: var(--text-light);
  font-size: 0.938rem;
}

.legal-content {
  padding: 48px 0 80px;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--text);
}

.legal-content strong {
  color: var(--navy);
}

.legal-content a {
  text-decoration: underline;
}

.legal-highlight {
  padding: 20px 24px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.legal-highlight p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--navy);
}

/* ===== Opt-In Page ===== */
.optin-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}

.optin-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.optin-hero p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto;
}

.optin-form-section {
  padding: 0 0 100px;
}

.optin-card {
  max-width: 520px;
  margin: -20px auto 0;
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.optin-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.optin-card .optin-subtitle {
  color: var(--text-light);
  font-size: 0.938rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  transition: border-color 0.2s;
  background: var(--bg);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 112, 85, 0.15);
}

.form-group input::placeholder {
  color: var(--text-lighter);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
  cursor: pointer;
}

.checkbox-group label a {
  text-decoration: underline;
}

.optin-disclaimers {
  margin: 20px 0 24px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}

.optin-disclaimers p {
  font-size: 0.813rem;
  color: var(--text-light);
  margin-bottom: 4px;
  line-height: 1.6;
}

.optin-disclaimers p:last-child {
  margin-bottom: 0;
}

.btn--full {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.063rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

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

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.125rem;
  }

  .features {
    padding: 60px 0;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .how-it-works {
    padding: 60px 0;
  }

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

  .section-header h2 {
    font-size: 1.75rem;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .cta-box h2 {
    font-size: 1.75rem;
  }

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

  .footer__links {
    justify-content: center;
  }

  .legal-hero h1 {
    font-size: 1.75rem;
  }

  .optin-card {
    margin: -20px 16px 0;
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

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