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

:root {
  --bg:        #ffffff;
  --bg-2:      #f5f2eb;
  --bg-card:   #ffffff;
  --border:    #0a0a0a;
  --border-2:  #d4cfc4;
  --text:      #0a0a0a;
  --text-2:    #5c5848;
  --text-3:    #b0ab9e;
  --accent:    #7c3aed;
  --accent-2:  #5b21b6;
  --accent-3:  #ffd600;
  --mint:      #00c88a;
  --radius:    10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Dot grid texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none; z-index: 0; opacity: 1;
}

.grad {
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: var(--accent);
}

/* ── NAVBAR ─────────────────────────────────────────── */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px; height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--text);
  text-decoration: none; display: flex; align-items: center;
  gap: 8px; letter-spacing: -.5px;
}
.nav-logo em {
  color: var(--accent); font-style: normal;
  background: none; -webkit-text-fill-color: var(--accent);
}
.nav-logo-emoji { font-style: normal; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn-outline {
  padding: 8px 18px; border: 2px solid var(--border); border-radius: var(--radius);
  background: #fff; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all .12s;
  display: inline-flex; align-items: center;
  box-shadow: 3px 3px 0 var(--border);
}
.btn-outline:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--border); }

.btn-primary {
  padding: 8px 18px; border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--accent); color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: all .12s;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 3px 3px 0 var(--border);
}
.btn-primary:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--border); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 6px; }
.hamburger svg { display: block; }
.mobile-menu {
  display: none; position: fixed; top: 66px; left: 0; right: 0;
  background: var(--bg); border-bottom: 2px solid var(--border);
  padding: 20px 24px; flex-direction: column; gap: 12px; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { width: 100%; text-align: center; justify-content: center; }

/* ── HERO ────────────────────────────────────────────── */

#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 100px 24px 80px;
  position: relative; overflow: hidden; background: var(--bg);
}

.hero-glow { display: none; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-3); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 6px 16px;
  font-size: 12px; font-weight: 800; color: var(--text);
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 32px; position: relative; z-index: 1;
  box-shadow: 3px 3px 0 var(--border);
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900; line-height: 1.0; letter-spacing: -3px;
  color: var(--text); position: relative; z-index: 1; margin-bottom: 24px;
}
.hero-title .word-enfin {
  color: var(--accent);
  background: none; -webkit-text-fill-color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--text-2);
  max-width: 500px; line-height: 1.7;
  position: relative; z-index: 1; margin-bottom: 44px;
}

.hero-ctas {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  justify-content: center; position: relative; z-index: 1; margin-bottom: 72px;
}

.btn-hero { padding: 14px 30px; font-size: 16px; border-radius: var(--radius); }

.btn-ghost {
  padding: 14px 30px; border: 2px solid var(--border); border-radius: var(--radius);
  background: #fff; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all .12s;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 3px 3px 0 var(--border);
}
.btn-ghost:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--border); }

/* ── MOCKUP ───────────────────────────────────────────── */

.mockup-wrap {
  position: relative; z-index: 1; width: 100%; max-width: 800px; margin: 0 auto;
}
.mockup-glow { display: none; }

.mockup {
  background: var(--bg);
  border: 2px solid var(--border); border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
  padding: 12px;
}
.mockup-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ── MOCKUP APP PREVIEW (scoped, identique au vrai dashboard) ── */

.mockup-app-preview {
  width: 1160px;
  zoom: 0.65;
}

.mockup-app-preview .dashboard {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 20px;
  align-items: start;
}

.mockup-app-preview .sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mockup-app-preview .card {
  background: #ffffff;
  border: 2px solid #0a0a0a;
  border-radius: 12px;
  padding: 26px;
  box-shadow: 4px 4px 0 #0a0a0a;
}

.mockup-app-preview .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.mockup-app-preview .card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.1px;
  color: #0a0a0a;
}

.mockup-app-preview .card-meta {
  font-size: 12px;
  color: #5c5848;
}

.mockup-app-preview .donut-wrap {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  aspect-ratio: 1;
}

.mockup-app-preview .chart-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
  margin-top: 18px;
}

.mockup-app-preview .legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #5c5848;
}

.mockup-app-preview .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-app-preview .legend-pct {
  margin-left: auto;
  font-size: 11px;
  color: #0a0a0a;
  font-weight: 500;
}

.mockup-app-preview .expense-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-app-preview .expense-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-app-preview .expense-main-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #0a0a0a;
}

.mockup-app-preview .expense-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mockup-app-preview .expense-card {
  background: #ffffff;
  border: 2px solid #c8c3b8;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.mockup-app-preview .expense-card:hover {
  border-color: #0a0a0a;
  box-shadow: 3px 3px 0 #0a0a0a;
  transform: translate(-1px,-1px);
}

.mockup-app-preview .expense-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid #c8c3b8;
  background: #f0ede6;
}

.mockup-app-preview .expense-img-icon {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px;
  max-height: 22px;
  border-radius: 5px;
  object-fit: contain;
  display: block;
}

.mockup-app-preview .expense-info {
  flex: 1;
  min-width: 0;
}

.mockup-app-preview .expense-name {
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.mockup-app-preview .expense-monthly {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: #0a0a0a;
  line-height: 1.2;
  margin-top: 2px;
}

.mockup-app-preview .recurring-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 600;
  color: #7c3aed;
  background: rgba(124,58,237,0.08);
  border: 1.5px solid rgba(124,58,237,0.22);
  border-radius: 100px;
  padding: 1px 6px;
  margin-top: 4px;
  letter-spacing: .2px;
}

.mockup-app-preview .card-actions {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity .2s ease;
  border-radius: 8px;
}

.mockup-app-preview .expense-card:hover .card-actions {
  opacity: 1;
}

.mockup-app-preview .action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 7px;
  border: 2px solid #0a0a0a;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 2px 2px 0 #0a0a0a;
  background: #fff;
  color: #0a0a0a;
  transition: transform .15s, box-shadow .15s;
}

.mockup-app-preview .action-btn:hover {
  transform: translate(-1px,-1px);
  box-shadow: 3px 3px 0 #0a0a0a;
}

.mockup-app-preview .action-btn-edit {
  background: #7c3aed;
  color: #fff;
}

.mockup-app-preview .action-btn-del {
  background: #fff;
  color: #dc2626;
}

/* ── SOCIAL PROOF ───────────────────────────────────── */

#proof {
  border-top: 2px solid var(--border); border-bottom: 2px solid var(--border);
  padding: 28px 24px; text-align: center;
  background: var(--accent-3); position: relative; z-index: 1;
}
.proof-inner { max-width: 900px; margin: 0 auto; }
.proof-stars { color: var(--text); font-size: 20px; letter-spacing: 3px; margin-bottom: 10px; }
.proof-text { font-size: 15px; color: var(--text); font-weight: 500; margin-bottom: 18px; }
.proof-text strong { font-weight: 900; }
.proof-brands { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
.proof-brand { font-size: 12px; color: rgba(0,0,0,0.5); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* ── SECTIONS SHARED ────────────────────────────────── */

section { padding: 100px 24px; position: relative; z-index: 1; }
.section-inner { max-width: 1080px; margin: 0 auto; }

.section-tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  border: 2px solid var(--accent); border-radius: 6px; padding: 3px 10px;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(30px, 4vw, 52px); font-weight: 900;
  letter-spacing: -2px; line-height: 1.05; color: var(--text); margin-bottom: 18px;
}

.section-sub { font-size: 17px; color: var(--text-2); max-width: 540px; line-height: 1.65; }

/* ── FEATURES ───────────────────────────────────────── */

#features { background: var(--bg-2); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); }
.features-header { text-align: center; margin-bottom: 60px; }
.features-header .section-sub { margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card {
  background: #fff; border: 2px solid var(--border); border-radius: 14px; padding: 32px;
  position: relative; overflow: hidden;
  transition: transform .12s, box-shadow .12s;
  box-shadow: 4px 4px 0 var(--border);
}
.feature-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--border); }
.feature-card::before { display: none; }

.feature-icon {
  width: 52px; height: 52px; border-radius: 12px; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.fi-purple { background: #ede9fe; }
.fi-blue   { background: #dbeafe; }
.fi-green  { background: #d1fae5; }

.feature-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px; font-weight: 800;
  color: var(--text); margin-bottom: 10px; letter-spacing: -.3px;
}
.feature-desc { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ── SMART FEATURES ─────────────────────────────────── */

#smart-features {
  background: var(--bg);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: 96px 40px;
  position: relative;
}

.sf-header { text-align: center; margin-bottom: 64px; }
.sf-header .section-sub { margin: 0 auto; }

.sf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.sf-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 36px 36px 32px;
  box-shadow: 4px 4px 0 var(--border);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex; flex-direction: column; gap: 16px;
}
.sf-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--border); }

.sf-card-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(124,58,237,.08);
  border: 1.5px solid rgba(124,58,237,.18);
  border-radius: 100px; padding: 5px 12px;
  width: fit-content;
}

.sf-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px); font-weight: 900;
  line-height: 1.2; color: var(--text);
}

.sf-card-desc {
  font-size: 14.5px; color: var(--text-2); line-height: 1.7;
  flex: 1;
}

/* Pills */
.sf-card-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sf-pill {
  font-size: 11.5px; font-weight: 700; border-radius: 8px;
  padding: 6px 12px; border: 1.5px solid;
}
.sf-pill-red   { color: #9b1c1c; background: rgba(220,38,38,.07); border-color: rgba(220,38,38,.25); }
.sf-pill-green { color: #065f46; background: rgba(16,185,129,.07); border-color: rgba(16,185,129,.25); }

/* Mini bar chart demo */
.sf-visual-demo {
  display: flex; align-items: flex-end; gap: 7px;
  height: 64px; margin-top: 4px;
}
.sf-demo-bar {
  flex: 1; border-radius: 5px 5px 0 0;
  height: var(--h); background: var(--c); opacity: 0.6;
  transition: opacity 0.2s;
  border: 1.5px solid var(--border);
}
.sf-demo-bar-active { opacity: 1; }

/* Filter chip demo */
.sf-filter-demo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sf-filter-chip {
  font-size: 12px; font-weight: 600; padding: 6px 14px;
  border-radius: 100px; border: 2px solid var(--border);
  background: var(--bg-2); color: var(--text-2); cursor: default;
}
.sf-filter-active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

@media (max-width: 760px) {
  .sf-grid { grid-template-columns: 1fr; }
  #smart-features { padding: 64px 20px; }
  .sf-card { padding: 28px 24px 24px; }
}

/* ── HOW IT WORKS ───────────────────────────────────── */

#how { background: var(--bg); }

.how-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; margin-top: 60px;
}
.how-steps { display: flex; flex-direction: column; gap: 0; }
.how-step {
  display: flex; gap: 20px; padding: 28px 0; border-bottom: 2px solid var(--border);
}
.how-step:last-child { border-bottom: none; }

.how-num {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 900;
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; margin-top: 2px;
  background: var(--accent); border: 2px solid var(--border); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 var(--border);
}
.how-step-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 6px; letter-spacing: -.3px; }
.how-step-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; }

.how-visual {
  background: var(--bg-2); border: 2px solid var(--border); border-radius: 14px; padding: 28px;
  box-shadow: 5px 5px 0 var(--border);
}
.how-visual::after { display: none; }

.how-onb-step {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 8px; margin-bottom: 8px;
  background: #fff; border: 2px solid var(--border-2);
  font-size: 13px; color: var(--text); font-weight: 500;
}
.how-onb-step.done { border-color: var(--mint); background: #f0fdf7; }
.how-onb-step.done .step-check { color: var(--mint); font-weight: 800; }
.how-onb-step.active { border-color: var(--accent); background: #f3ecff; }
.how-onb-step .step-icon { font-size: 16px; }
.step-check { margin-left: auto; font-size: 14px; color: var(--text-3); }

/* ── PRICING ────────────────────────────────────────── */

#pricing { background: var(--bg-2); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); }
.pricing-header { text-align: center; margin-bottom: 56px; }
.pricing-header .section-sub { margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 700px; margin: 0 auto; }

.pricing-card {
  border-radius: 14px; padding: 36px;
  border: 2px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column;
}
.pc-free { background: #fff; box-shadow: 5px 5px 0 var(--border); }
.pc-pro  { background: var(--bg); opacity: .6; }
.pc-free::before { display: none; }

.pc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 20px; border: 2px solid var(--border);
}
.pc-badge-free { background: #d1fae5; color: #065f46; }
.pc-badge-pro  { background: var(--bg-2); color: var(--text-3); }

.pc-price {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 56px; font-weight: 900;
  letter-spacing: -2px; line-height: 1; margin-bottom: 4px;
}
.pc-free .pc-price { color: var(--accent); background: none; -webkit-text-fill-color: var(--accent); }
.pc-pro  .pc-price { color: var(--text-3); }
.pc-per { font-size: 13px; color: var(--text-2); margin-bottom: 24px; }
.pc-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pc-features li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); }
.pc-features li::before { content: '✓'; color: var(--mint); font-weight: 800; font-size: 13px; }
.pc-pro .pc-features li::before { color: var(--text-3); }

.pc-cta {
  display: block; width: 100%; padding: 12px; border-radius: 8px;
  text-align: center; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: all .12s;
  margin-top: auto;
}
.pc-cta-free {
  background: var(--accent); color: #fff; border: 2px solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
}
.pc-cta-free:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--border); }
.pc-cta-pro { background: transparent; color: var(--text-3); border: 2px solid var(--border-2); cursor: default; }

/* ── TESTIMONIALS ───────────────────────────────────── */

#testimonials { background: var(--bg); }
.testi-header { text-align: center; margin-bottom: 56px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.testi-card {
  background: #fff; border: 2px solid var(--border); border-radius: 14px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .12s, box-shadow .12s;
  box-shadow: 4px 4px 0 var(--border);
}
.testi-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--border); }
.testi-stars { color: #f59e0b; font-size: 14px; letter-spacing: 2px; }
.testi-text { font-size: 15px; color: var(--text-2); line-height: 1.65; font-style: italic; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; flex-shrink: 0;
}
.ta-1 { background: #ede9fe; color: #7c3aed; }
.ta-2 { background: #dbeafe; color: #2563eb; }
.ta-3 { background: #d1fae5; color: #059669; }
.testi-name { font-size: 14px; font-weight: 700; color: var(--text); }
.testi-role { font-size: 12px; color: var(--text-3); }

/* ── FINAL CTA ──────────────────────────────────────── */

#cta {
  background: var(--accent);
  text-align: center; padding: 100px 24px;
  border-top: 2px solid var(--border); border-bottom: 2px solid var(--border);
}
.cta-card {
  max-width: 640px; margin: 0 auto;
  background: #fff; border: 3px solid var(--border);
  border-radius: 18px; padding: 64px 48px;
  box-shadow: 10px 10px 0 var(--border);
}
.cta-card::before { display: none; }
.cta-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 4vw, 46px); font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.08; color: var(--text); margin-bottom: 16px;
}
.cta-sub { font-size: 16px; color: var(--text-2); line-height: 1.65; margin-bottom: 36px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────────── */

footer {
  border-top: 2px solid var(--border); padding: 40px 32px;
  background: var(--bg-2); position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-tagline { font-size: 13px; color: var(--text-3); }
.footer-love { font-size: 12px; color: var(--text-3); }
.footer-links { display: flex; align-items: center; gap: 4px; }
.footer-link {
  font-size: 13px; color: var(--text-2); text-decoration: none;
  padding: 6px 12px; border-radius: 6px; transition: background .12s, color .12s;
  font-weight: 500;
}
.footer-link:hover { background: rgba(0,0,0,.07); color: var(--text); }

/* ── SCROLL ANIMATIONS ──────────────────────────────── */

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ── HISTORY CHART ──────────────────────────────────── */

.mockup-history {
  margin-top: 24px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px 16px;
  box-shadow: 4px 4px 0 var(--border);
}
.mockup-history-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.mockup-history-title {
  font-size: 12px; font-weight: 800; color: var(--text-2);
  letter-spacing: .08em; text-transform: uppercase;
}
.mockup-history-hint { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.mockup-history-hint::before { content: '👆'; font-size: 12px; }
.chart-wrap { position: relative; height: 210px; }

/* ── CHART TOOLTIP ───────────────────────────────────── */

.landing-ctip {
  position: absolute; top: -8px; display: none; min-width: 185px;
  background: #fff; border: 2px solid var(--border);
  border-radius: 10px; padding: 11px 14px;
  pointer-events: none; z-index: 20; opacity: 0; transition: opacity .15s;
  box-shadow: 4px 4px 0 var(--border);
}
.landing-ctip.visible { opacity: 1; }
.landing-ctip-month {
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 3px;
}
.landing-ctip-total {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 18px;
  color: var(--text); margin-bottom: 8px;
}
.landing-ctip-pills { display: flex; flex-direction: column; gap: 5px; }
.landing-ctip-pill { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.landing-ctip-pill-icon {
  width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; background: var(--bg-2);
}
.landing-ctip-pill-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing-ctip-pill-amount { font-weight: 700; color: var(--accent); white-space: nowrap; }
.landing-ctip-hint { font-size: 10px; color: var(--text-3); margin-top: 8px; text-align: center; }

/* ── HISTORY MODAL ──────────────────────────────────── */

.hist-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.hist-overlay.open { display: flex; }
.hist-modal {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  width: 470px;
  max-width: calc(100vw - 36px);
  padding: 34px;
  box-shadow: 6px 6px 0 var(--border);
  transform: scale(0.88) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.hist-overlay.open .hist-modal { transform: scale(1) translateY(0); }
.hist-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.hist-modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
}
.hist-modal-close {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.hist-modal-close:hover { color: var(--text); }

.history-table {
  width: 100%;
  border-collapse: collapse;
}
.history-table th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 2px solid var(--border-2);
  padding: 0 10px 8px;
}
.history-table th:last-child,
.history-table td:last-child { text-align: right; }
.history-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border-2);
  font-size: 13px;
  color: var(--text);
}
.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td { background: var(--bg-card-hover); }
.history-table .td-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 1.5px solid var(--border-2);
  overflow: hidden;
}
.history-table .td-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}
.history-table .td-yearly {
  font-size: 11px;
  color: var(--text-2);
}
.history-table tfoot td {
  border-top: 2px solid var(--border-2);
  border-bottom: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}
.history-table tfoot td:last-child {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  color: var(--accent);
  font-weight: 900;
}

/* ── RESPONSIVE ─────────────────────────────────────── */

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .mockup-grid { grid-template-columns: 1fr; }
  .mock-expense-grid { grid-template-columns: 1fr; }
  .mock-donut-wrap { max-width: 330px; }
  .mock-donut-center-val { font-size: 46px; }
  .mockup-real-header { flex-wrap: wrap; justify-content: center; }
  .mockup-real-greet { display: none; }
}

@media (max-width: 640px) {
  nav { padding: 0 16px; }
  .nav-actions .btn-outline,
  .nav-actions .btn-primary { display: none; }
  .hamburger { display: block; }
  #hero { padding: 100px 16px 60px; }
  section { padding: 72px 16px; }
  .cta-card { padding: 36px 24px; }
  .hero-title { letter-spacing: -1.5px; }
  .testi-card:nth-child(2), .testi-card:nth-child(3) { display: none; }
  .chart-wrap { height: 170px; }
  .mock-repartition-card { padding: 13px 12px 12px; }
  .mock-donut-wrap { max-width: 290px; }
  .mock-donut::after { inset: 44px; }
  .mock-donut-center-val { font-size: 40px; }
  .mock-legend-item { font-size: 13px; }
  .mock-exp-card { min-height: 96px; padding: 10px 11px; }
  .mock-exp-card-name { font-size: 18px; }
  .mock-exp-card-amount { font-size: 19px; }
}
