/* ===== Design System Tokens ===== */
:root {
  --bg: #FAF8F5;
  --text: #1C1917;
  --secondary: #78716C;
  --tertiary: #A8A29E;
  --border: #E7E5E4;
  --accent: #92400E;
  --accent-hover: #78350F;
  --surface: #FFFFFF;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'DM Sans', system-ui, sans-serif;

  --max-w: 640px;
}

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

/* ===== Base ===== */
html { scroll-behavior: auto; /* No smooth scroll. Permanent things don't glide. */ }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ===== Layout ===== */
.hero,
.trust,
.preview,
.how-it-works,
.bottom-cta,
.footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  background: var(--text);
  color: var(--bg);
  padding: 14px 40px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: #292524;
  color: var(--bg);
}

.price-note {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--tertiary);
  margin-top: 16px;
}

/* ===== Trust Section ===== */
.trust {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--border);
}

.trust h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

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

.trust-item h3 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--secondary);
}

/* ===== Memorial Preview ===== */
.preview {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--border);
}

.preview h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.memorial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px 40px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-name {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 4px;
}

.card-dates {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 20px;
}

.card-tribute {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
}

.card-funded {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--tertiary);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ===== How It Works ===== */
.how-it-works {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--border);
}

.how-it-works h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 420px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--tertiary);
  flex-shrink: 0;
  width: 28px;
  text-align: right;
}

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

/* ===== Bottom CTA ===== */
.bottom-cta {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--border);
}

.bottom-cta h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cta-sub {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--secondary);
  margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--border);
}

.footer p {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--tertiary);
  margin-bottom: 4px;
}

.footer a {
  color: var(--tertiary);
}

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

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 56px;
  }

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

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

  .trust-item {
    text-align: center;
  }

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

  .bottom-cta h2 {
    font-size: 28px;
  }
}

/* ===== Touch targets ===== */
.btn-primary {
  min-height: 44px;
}
