/* 80 Pounds Later — landing page
   Design tokens translated from src/components/ui/theme.ts */

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-muted: #757575;
  --border: #E8E8E4;
  --accent: #E8734A;
  --accent-light: #FFF0EB;
  --accent-text: #C2552E;
  --success: #4CAF50;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 960px;
}

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

html { scroll-behavior: smooth; }

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}
.nav__brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.nav__brand:hover { text-decoration: none; }
.nav__links {
  display: flex;
  gap: var(--space-lg);
  margin-left: auto;
}
.nav__links a { color: var(--text-secondary); font-weight: 500; font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
  text-decoration: none;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn--sm { padding: var(--space-sm) var(--space-md); font-size: 14px; }
.btn--lg { padding: var(--space-md) var(--space-xl); font-size: 18px; width: 100%; }
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--ghost { background: transparent; color: var(--accent-text); }
@media (min-width: 768px) { .btn--lg { width: auto; } }

.link { font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: var(--space-xxl) 0; }
.section--tint { background: var(--surface); }
.section h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}
.section__lead {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 60ch;
  margin-bottom: var(--space-xl);
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-xxl) 0;
  background: var(--accent-light);
}
.hero h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 20ch;
  margin-bottom: var(--space-lg);
}
.hero__sub {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 50ch;
  margin-bottom: var(--space-xl);
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}
@media (min-width: 768px) {
  .hero h1 { font-size: 48px; }
  .hero__cta { flex-direction: row; align-items: center; }
}

/* ---------- Stepper (story) ---------- */
.stepper {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.stepper li {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stepper__num { font-weight: 600; min-width: 140px; }
.stepper__cap { color: var(--text-muted); font-size: 14px; }
@media (min-width: 768px) {
  .stepper { flex-direction: row; flex-wrap: wrap; }
  .stepper li { flex-direction: column; flex: 1; min-width: 140px; align-items: center; text-align: center; }
  .stepper__num { min-width: 0; font-size: 18px; }
}

/* ---------- Loop (methodology) ---------- */
.loop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}
.loop__node {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: var(--space-sm) var(--space-lg);
  font-weight: 600;
  color: var(--accent-text);
}
.loop__arrow { color: var(--accent); font-weight: 700; font-size: 18px; }
@media (min-width: 768px) { .loop { gap: var(--space-md); } }

/* ---------- Cards (features) ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.card {
  background: var(--surface);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: var(--space-xs); }
.card p { color: var(--text-secondary); font-size: 14px; }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; } }

/* ---------- Steps (how it works) ---------- */
.steps { display: flex; flex-direction: column; gap: var(--space-lg); }
.step { display: flex; gap: var(--space-md); align-items: flex-start; }
.step__num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: var(--space-xs); }
.step p { color: var(--text-secondary); }
@media (min-width: 768px) { .steps { flex-direction: row; } .step { flex: 1; } }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: 22px; }
.cta .btn { margin-top: var(--space-lg); }

/* ---------- Footer ---------- */
.footer {
  padding: var(--space-xl) 0 var(--space-xxl);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: var(--space-md);
}
.footer__note { color: var(--text-muted); font-size: 12px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
