:root {
  --bg: #176B41;
  --cream: #F4F7E8;
  --ink: #0F3D25;
  --muted: #3A5A47;
  --muted-2: #2F4D3B;
  --lime: #E8F26B;
  --pine: #0F4F2E;
  --mint: #CFE5D6;
  --track: #D5E3C8;
  --fill: #1F8F58;
  --amber: #FFE3C2;
  --amber-ink: #6B2A00;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.screen {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero {
  position: absolute; left: 0; top: 0; width: 100%; height: 390px;
  object-fit: cover; pointer-events: none;
}
.hero-fade {
  position: absolute; left: 0; top: 170px; width: 100%; height: 170px;
  background: linear-gradient(to bottom, rgba(23, 107, 65, 0), #176B41);
  pointer-events: none;
}

.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pill { padding: 8px 14px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 800; white-space: nowrap; }
.pill-lime { background: var(--lime); }
.pill-amber { background: var(--amber); color: var(--amber-ink); }

.back {
  display: flex; align-items: center; gap: 6px; min-height: 36px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 800;
}
.back svg { width: 18px; height: 18px; }

.badge { width: 56px; height: 56px; border-radius: 28px; background: var(--lime); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.badge svg { width: 28px; height: 28px; }

.title { margin: 4px 0 0; font-family: var(--display); font-size: 26px; line-height: 1.15; font-weight: 700; color: var(--cream); }
.title-narrow { width: 220px; }
.title-hero { position: relative; margin-top: 206px; }
.subtitle { margin-top: 10px; font-size: 15px; line-height: 1.4; font-weight: 500; }

.card { position: relative; padding: 22px 20px; border-radius: 28px; background: var(--cream); color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.card-below-hero { margin-top: 214px; }
.card-link { display: block; padding: 18px 20px; border-radius: 24px; margin-top: 16px; }
.label { font-size: 14px; font-weight: 700; color: var(--muted); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.label-strong { font-size: 13px; font-weight: 800; color: var(--ink); }
.big { font-family: var(--display); font-size: 60px; line-height: 1; font-weight: 700; color: var(--ink); }
.big-mid { font-family: var(--display); font-size: 44px; line-height: 1.05; font-weight: 700; color: var(--ink); }
.big-sm { font-family: var(--display); font-size: 34px; line-height: 1; font-weight: 700; }
.of { font-size: 18px; font-weight: 800; color: var(--muted); }
.row-baseline { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.text { font-size: 15px; line-height: 1.4; font-weight: 700; }
.text-soft { font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--muted-2); }

.bar { position: relative; height: 18px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar-thin { height: 12px; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--fill); width: 0; }
.bar-tick { position: absolute; top: 0; width: 3px; height: 100%; background: var(--cream); }
.scale { position: relative; height: 18px; font-size: 13px; font-weight: 800; color: var(--muted); }
.scale span { position: absolute; top: 0; }

.goal { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--lime); color: var(--ink); }
.goal-amount { font-family: var(--display); font-size: 22px; font-weight: 700; white-space: nowrap; }
.goal-text { font-size: 14px; line-height: 1.35; font-weight: 700; }

.list { position: relative; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.list-tight { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 14px 16px; border-radius: 18px; background: var(--pine); color: var(--cream); }
.row-grow { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-size: 15px; font-weight: 800; }
.row-title-lg { font-size: 16px; font-weight: 800; }
.row-hint { font-size: 13px; font-weight: 500; color: var(--mint); }
.row-amount { font-family: var(--display); font-size: 16px; font-weight: 600; white-space: nowrap; }
.row svg { width: 20px; height: 20px; flex-shrink: 0; }

.next { position: relative; margin-top: 14px; padding: 16px 18px; border-radius: 22px; background: var(--pine); color: var(--cream); display: flex; flex-direction: column; gap: 10px; }
.next .bar { background: #1B6B42; }
.next .bar-fill { background: var(--lime); }
.next-note { font-size: 13px; font-weight: 500; color: var(--mint); }

.steps { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 14px; padding: 16px; border-radius: 22px; background: var(--cream); color: var(--ink); }
.step-num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 20px; background: var(--lime); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 18px; font-weight: 700; }
.step-body { display: flex; flex-direction: column; gap: 4px; }
.step-title { font-size: 16px; font-weight: 800; }
.step-text { font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--muted-2); }

.info { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 22px; background: var(--cream); color: var(--ink); }
.info-note { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--pine); color: var(--cream); font-size: 13px; line-height: 1.45; font-weight: 500; }

.btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px; border-radius: 18px; background: var(--lime); color: var(--ink); font-size: 16px; font-weight: 800; text-align: center; }
.btn-dark { background: var(--pine); color: var(--cream); }
.actions { position: relative; margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }

.foot { position: relative; margin-top: auto; padding-top: 16px; font-size: 12px; line-height: 1.45; font-weight: 500; color: var(--mint); }
.foot + .foot { margin-top: 0; padding-top: 6px; }

.skeleton { position: relative; margin-top: 214px; height: 220px; border-radius: 28px; background: rgba(244, 247, 232, 0.16); }

@media (prefers-reduced-motion: no-preference) {
  .bar-fill { transition: width 0.5s ease; }
}

.search { width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--cream); color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; outline: none; }
.search::placeholder { color: var(--muted-2); font-weight: 500; }
.subtitle-gap { margin: 14px 0 10px; }
.results { display: flex; flex-direction: column; }
.row-button { width: 100%; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.city-name { margin-bottom: 6px; font-size: 30px; }
.skeleton-flat { margin-top: 24px; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(15, 61, 37, 0.14); }
.info .rate-row:first-of-type { margin-top: 6px; }
.info-note + .info-note { margin-top: 10px; }
.subtitle + .info, .subtitle + .search { margin-top: 16px; }
