/* ==============================
   Pledgd Landing Site — Styles
   ============================== */

:root {
  --red: #C84B2F;
  --red-dark: #A33D27;
  --black: #1A1714;
  --surface: #FAF7F2;
  --gold: #C9A84C;
  --border: #E0D9CF;
  --text-secondary: #6B645B;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background: var(--surface);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---- Navigation ---- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--red);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

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

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

.nav-links a.active {
  color: var(--black);
}

/* ---- Hero ---- */

.hero {
  padding: 160px 24px 100px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 75, 47, 0.08);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--black);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

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

.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 75, 47, 0.3);
}

.btn-secondary {
  background: var(--black);
  color: #fff;
}

.btn-secondary:hover {
  background: #2a2520;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 23, 20, 0.2);
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* ---- Streak Demo ---- */

.streak-demo {
  padding: 40px 24px 80px;
  text-align: center;
}

.streak-card {
  max-width: 380px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow:
    0 1px 3px rgba(26, 23, 20, 0.04),
    0 8px 32px rgba(26, 23, 20, 0.06);
  border: 1px solid var(--border);
}

.streak-number {
  font-size: 72px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -3px;
  font-variant-numeric: tabular-nums;
}

.streak-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.streak-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.streak-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.streak-dot.done {
  background: var(--red);
}

.streak-dot.today {
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

.streak-dot.upcoming {
  background: var(--border);
  color: var(--text-secondary);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(201, 168, 76, 0); }
}

.streak-partners {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.partner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.partner-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.partner-avatar.a {
  background: var(--red);
}

.partner-avatar.b {
  background: var(--gold);
}

.partner .check {
  color: #3A7D5A;
  font-size: 16px;
}

/* ---- Features ---- */

.features {
  padding: 80px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

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

.features-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.features-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(200, 75, 47, 0.2);
  box-shadow: 0 4px 20px rgba(26, 23, 20, 0.05);
}

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

.feature-icon.red {
  background: rgba(200, 75, 47, 0.08);
}

.feature-icon.gold {
  background: rgba(201, 168, 76, 0.1);
}

.feature-icon.dark {
  background: rgba(26, 23, 20, 0.06);
}

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

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

/* ---- How It Works ---- */

.how-it-works {
  padding: 80px 24px;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner {
  max-width: 800px;
  margin: 0 auto;
}

.how-it-works h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 56px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- CTA Section ---- */

.cta-section {
  padding: 100px 24px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ---- Footer ---- */

footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 15px;
  color: var(--text-secondary);
}

.footer-brand strong {
  color: var(--black);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

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

/* ---- Page layouts (Privacy, Support) ---- */

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.page h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page .date {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 32px;
  display: block;
}

.page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}

.page h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
}

.page p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}

.page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.page li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 4px;
}

.page strong {
  color: var(--black);
}

.page a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Support Page ---- */

.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.support-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.support-card:hover {
  border-color: rgba(200, 75, 47, 0.2);
}

.support-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--black);
}

.support-card p {
  margin: 0;
}

.support-card a {
  text-decoration: none;
  font-weight: 500;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .nav-links {
    gap: 20px;
  }

  .hero {
    padding: 130px 20px 60px;
  }

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

  .streak-number {
    font-size: 56px;
  }

  .features {
    padding: 60px 20px;
  }

  .feature-card {
    padding: 24px 20px;
  }

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

  .step {
    gap: 16px;
  }

  .cta-section {
    padding: 60px 20px;
  }

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