@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --coral: #E8634A;
  --green: #27AE7A;
  --blue: #3B82F6;
  --bg: #F8F9FC;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}

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

a:hover {
  text-decoration: underline;
}

img { max-width: 100%; }

/* ── Layout ── */

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

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

section {
  padding: 80px 0;
}

/* ── Header ── */

header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  font-size: 28px;
  line-height: 1;
}

.logo-wordmark {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s;
}

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

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  transition: opacity 0.15s, transform 0.15s;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  text-decoration: none;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(39,174,122,0.35);
}

.btn--primary:hover {
  opacity: 0.92;
  box-shadow: 0 8px 24px rgba(39,174,122,0.4);
}

.btn--secondary {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--text-muted);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 18px;
}

/* ── Hero ── */

.hero {
  background: linear-gradient(160deg, #f0fdf8 0%, var(--bg) 60%);
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(39,174,122,0.1);
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--green);
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Split Visual (Hero) ── */

.split-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.split-source {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.split-source-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.split-source-amount {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--text);
  line-height: 1.1;
}

.split-source-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}

.split-svg {
  display: block;
  margin-top: -2px;
}

.split-connector-mobile {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  width: 100%;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.split-connector-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  width: 100%;
  /* stretch = all cards same height, filled by the grid row */
  align-items: stretch;
}

.split-card {
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}

.split-card--give {
  background: rgba(232,99,74,0.08);
  border: 1.5px solid rgba(232,99,74,0.25);
}

.split-card--save {
  background: rgba(39,174,122,0.1);
  border: 2px solid rgba(39,174,122,0.4);
  box-shadow: 0 4px 20px rgba(39,174,122,0.15);
}

.split-card--spend {
  background: rgba(59,130,246,0.08);
  border: 1.5px solid rgba(59,130,246,0.25);
}

.split-card-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
}

.split-card-name {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.split-card--give .split-card-name { color: var(--coral); }
.split-card--save .split-card-name { color: var(--green); }
.split-card--spend .split-card-name { color: var(--blue); }

.split-card-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.split-card-amount {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.split-card--give .split-card-amount { color: var(--coral); }
.split-card--save .split-card-amount { color: var(--green); }
.split-card--spend .split-card-amount { color: var(--blue); }

/* Invisible spacer in Give and Spend — reserves the same height as Save's growth section */
.split-card-ghost {
  visibility: hidden;
  width: 100%;
}

.split-card-divider {
  height: 1px;
  background: rgba(39,174,122,0.25);
  margin: 8px 0 6px;
  width: 100%;
}

.split-growth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.split-growth-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.sg-start {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
}

.sg-arrow {
  font-size: 13px;
  font-weight: 900;
  color: var(--green);
}

.sg-end {
  font-size: 18px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.5px;
}

.sg-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1px;
}

/* ── Why Section ── */

.section-why {
  background: var(--white);
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 12px;
}

.section-why h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  max-width: 600px;
}

.section-why p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 660px;
  margin-bottom: 16px;
}

.secondary-line {
  font-weight: 700;
  color: var(--text) !important;
  font-size: 17px !important;
  margin-bottom: 24px !important;
}

/* ── How It Works ── */

.section-how {
  background: var(--bg);
}

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

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

.how-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.how-step:nth-child(even) .how-step-visual {
  order: -1;
}

.how-step-content h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.how-step-content p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

.how-visual {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bucket visual */
.bucket-visual {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.bucket-jar {
  border-radius: var(--radius-sm);
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bucket-jar--give { background: rgba(232,99,74,0.1); }
.bucket-jar--save { background: rgba(39,174,122,0.1); }
.bucket-jar--spend { background: rgba(59,130,246,0.1); }

.bucket-jar-emoji { font-size: 28px; }

.bucket-jar-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bucket-jar--give .bucket-jar-name { color: var(--coral); }
.bucket-jar--save .bucket-jar-name { color: var(--green); }
.bucket-jar--spend .bucket-jar-name { color: var(--blue); }

.bucket-jar-pct {
  font-size: 22px;
  font-weight: 900;
}

.bucket-jar--give .bucket-jar-pct { color: var(--coral); }
.bucket-jar--save .bucket-jar-pct { color: var(--green); }
.bucket-jar--spend .bucket-jar-pct { color: var(--blue); }

/* Growth visual */
.growth-visual {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.growth-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
}

.growth-bar-track {
  flex: 1;
  height: 10px;
  background: rgba(39,174,122,0.12);
  border-radius: 50px;
  overflow: hidden;
}

.growth-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 50px;
}

.growth-label {
  color: var(--text-muted);
  min-width: 60px;
}

.growth-amount {
  color: var(--text);
  min-width: 56px;
  text-align: right;
}

.growth-badge {
  background: rgba(39,174,122,0.12);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}

/* Approval visual */
.approval-visual {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approval-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.approval-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.approval-icon {
  font-size: 22px;
}

.approval-title {
  font-size: 14px;
  font-weight: 700;
}

.approval-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.approval-btn {
  display: flex;
  gap: 8px;
}

.approval-btn span {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.approve { background: rgba(39,174,122,0.15); color: var(--green); }
.decline { background: rgba(232,99,74,0.1); color: var(--coral); }

/* ── Benefits ── */

.section-benefits {
  background: var(--white);
}

.section-benefits h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

.benefits-grid {
  display: grid;
  /* 6 phantom columns so 3 cards fill row 1 (each spans 2),
     and the 2 cards on row 2 sit centered (cols 2–3 and 4–5) */
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.benefit-card {
  grid-column: span 2;
}

/* Center the two orphan cards on the second row */
.benefit-card:nth-child(4) { grid-column: 2 / 4; }
.benefit-card:nth-child(5) { grid-column: 4 / 6; }

.benefit-card--fifth { /* no extra rules needed; kept for targeting if desired */ }

.benefit-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  border: 1.5px solid var(--border);
  transition: box-shadow 0.15s, transform 0.15s;
}

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

.benefit-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.benefit-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ── FAQ ── */

.section-faq {
  background: var(--bg);
}

.section-faq h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--bg);
}

.faq-chevron {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.faq-answer-inner a {
  color: var(--green);
}

/* ── Final CTA ── */

.section-cta {
  background: linear-gradient(135deg, #0f3d2e 0%, #1a5c44 100%);
  padding: 100px 0;
  text-align: center;
}

.section-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.2;
}

.section-cta .btn--primary {
  background: var(--white);
  color: #1a5c44;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.section-cta .btn--primary:hover {
  opacity: 0.95;
}

.cta-byline {
  margin-top: 18px;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
}

/* ── Footer ── */

footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-dot {
  color: rgba(255,255,255,0.3);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ── Inner page header ── */

.page-hero {
  background: linear-gradient(160deg, #f0fdf8 0%, var(--bg) 60%);
  padding: 72px 0 60px;
}

.page-hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 600px;
}

/* ── Why page ── */

.essay-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.essay-section:last-of-type {
  border-bottom: none;
}

.essay-section h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.essay-section p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.essay-section p:last-child {
  margin-bottom: 0;
}

.essay-kicker {
  background: rgba(232,99,74,0.07);
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 28px 32px;
  margin: 32px 0;
}

.essay-kicker h2 {
  color: var(--coral);
  margin-bottom: 14px;
}

.essay-cta {
  text-align: center;
  padding: 80px 0 64px;
}

.essay-cta h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}

/* ── Legal pages ── */

.legal-content {
  padding: 64px 0;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 36px 0 12px;
}

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

.legal-content p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-content ul li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--green);
}

.legal-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

/* ── Mobile ── */

@media (max-width: 768px) {
  section { padding: 60px 0; }

  .hamburger { display: flex; }

  nav {
    display: none;
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
    box-shadow: var(--shadow);
  }

  nav.open { display: flex; }

  nav a { font-size: 17px; }

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 17px; }

  /* Split visual: keep 3 columns on tablet, shrink text */
  .split-source-amount { font-size: 28px; }
  .split-card-amount { font-size: 18px; }
  .sg-end { font-size: 16px; }

  .how-step {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .how-step:nth-child(even) .how-step-visual {
    order: 0;
  }

  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card,
  .benefit-card:nth-child(4),
  .benefit-card:nth-child(5) { grid-column: span 1; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .essay-kicker { padding: 20px 20px 20px 24px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Split visual: vertical stack on small screens */
  .split-svg { display: none; }
  .split-connector-mobile { display: flex; }

  /* Stack cards vertically; equal-height not needed when stacked */
  .split-cards {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  /* Hide ghost spacers on mobile — equal height irrelevant when stacked */
  .split-card-ghost { display: none; }
}
