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

:root {
  --bg: #faf8f4;
  --bg-alt: #f0ede6;
  --fg: #1a3a2a;
  --fg-muted: #4a6a52;
  --accent: #c8962b;
  --accent-light: #e8c06a;
  --card-bg: #ffffff;
  --border: #d4cfc5;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-style: italic;
  font-family: var(--font-serif);
}

/* === HERO === */
.hero {
  padding: 5rem 3rem 4rem;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* Budget Card Widget */
.budget-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 4px 24px rgba(26, 58, 42, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-month {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.card-balance {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
}

.card-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card-bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  align-items: center;
  gap: 0.75rem;
}

.bar-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.bar-track {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  animation: growBar 1.2s ease-out forwards;
}

.bar-housing { background: #1a3a2a; width: 90%; }
.bar-food   { background: #4a6a52; width: 40%; }
.bar-transport { background: #7a9a72; width: 20%; }
.bar-savings { background: #c8962b; width: 61%; }
.bar-fun    { background: #d4b87a; width: 13%; }

@keyframes growBar {
  from { width: 0; }
  to   { width: inherit; }
}

.bar-amount {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  text-align: right;
}

/* === FEATURES === */
.features {
  padding: 5rem 3rem;
  background: var(--card-bg);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature-item {
  padding: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  transition: box-shadow 0.2s ease;
}

.feature-item:hover {
  box-shadow: 0 4px 16px rgba(26, 58, 42, 0.07);
}

.feature-icon {
  margin-bottom: 1.2rem;
}

.feature-item h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.6rem;
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === HOW IT WORKS === */
.howitworks {
  padding: 5rem 3rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.howitworks-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.step {
  flex: 1;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.8rem;
  line-height: 1;
}

.step h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-top: 2.5rem;
  flex-shrink: 0;
  align-self: center;
}

/* === MANIFESTO === */
.manifesto {
  padding: 5rem 3rem;
  background: var(--fg);
}

.manifesto-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--accent-light);
  line-height: 1.4;
  margin-bottom: 2rem;
  font-style: italic;
}

.manifesto-body {
  font-size: 1rem;
  color: rgba(250, 248, 244, 0.75);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* === CLOSING === */
.closing {
  padding: 5rem 3rem 6rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.25;
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
}

.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* === FOOTER === */
.footer {
  padding: 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--fg-muted);
  font-family: var(--font-serif);
  margin-bottom: 0.6rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .hero { padding: 3rem 1.5rem 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .features { padding: 3rem 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .howitworks { padding: 3rem 1.5rem; }
  .steps-row { flex-direction: column; gap: 1rem; }
  .step-connector { width: 40px; height: 2px; margin: 0; transform: rotate(90deg); }
  .manifesto { padding: 3rem 1.5rem; }
  .closing { padding: 3rem 1.5rem 4rem; }
  .closing-headline br { display: none; }
}

@media (max-width: 480px) {
  .card-bar-row { grid-template-columns: 70px 1fr 55px; }
}