@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap");

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #F3F1EC;
  color: #141416;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.phone {
  width: 100%;
  max-width: 768px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 28px 28px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.chips { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #D9D5CE; background: #fff;
  font-size: 14px; font-weight: 600; color: #141416;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: inherit;
}
.chip.on { background: #141416; border-color: #141416; color: #F3F1EC; }
.chip.static { cursor: default; }
.chip.soft {
  background: #EEF6F1; border-color: #C9E0D4; color: #2F6B54;
  font-weight: 550; font-size: 13px;
}
.chip.soft.on { background: #2F6B54; border-color: #2F6B54; color: #F7FAF8; }
h1 {
  font-size: clamp(28px, 4.5vw, 36px); font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.1; margin-bottom: 6px;
}
.sub {
  font-size: 16px; font-weight: 500; color: #6E6E73;
  margin-bottom: 20px; line-height: 1.35;
}
.card {
  background: #fff;
  border: 1px solid #E4E0D8;
  border-radius: 22px;
  padding: 22px 24px 20px;
  box-shadow: 0 1px 2px rgba(20,20,22,0.04);
  margin-bottom: 14px;
}
.card.tap { cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.card.tap:active { transform: scale(0.985); }
.card.soft { background: #EBE8E2; border-color: transparent; box-shadow: none; }
.card.tip {
  background: #F7FAF8;
  border-color: #D5E6DC;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.tick { width: 36px; height: 5px; border-radius: 3px; margin-bottom: 12px; }
.tick.spend { background: #B86B3F; }
.tick.save { background: #4F7199; }
.tick.grow { background: #3F7A64; }
.jar-name {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #6E6E73; margin-bottom: 4px;
}
.amount {
  font-size: clamp(36px, 6vw, 42px); font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.05; margin-bottom: 8px;
}
.amount.lg { font-size: clamp(48px, 8vw, 56px); }
.amount.mid { font-size: clamp(28px, 5vw, 34px); margin-bottom: 6px; }
.amount-empty {
  font-size: clamp(26px, 4.5vw, 32px); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.15; color: #9A968E; margin-bottom: 8px;
}
.role {
  font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
  color: #141416; margin-bottom: 6px;
}
.counted-hint {
  font-size: 14px; font-weight: 500; color: #6E6E73; line-height: 1.35;
}
.counted-block { margin: -4px 0 14px; }
.jar-split {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #EEEAE3;
}
.piggy-card { padding-bottom: 16px; }
.piggy-label {
  display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.money-field {
  display: flex; align-items: center; gap: 8px;
  background: #F7F5F1; border: 1.5px solid #E4E0D8; border-radius: 18px;
  padding: 6px 16px; margin: 12px 0 14px; min-height: 76px;
}
.money-field:focus-within {
  border-color: #B86B3F; background: #fff;
  box-shadow: 0 0 0 4px rgba(184, 107, 63, 0.16);
}
.money-field span {
  font-size: 32px; font-weight: 700; color: #B86B3F; letter-spacing: -0.03em;
}
.money-field input {
  flex: 1; width: 100%; border: none; background: transparent;
  font: inherit; font-size: 36px; font-weight: 700; letter-spacing: -0.03em;
  color: #141416; min-height: 60px; padding: 0;
}
.money-field input:focus { outline: none; }
.money-field input::placeholder { color: #C4C0B8; font-weight: 600; }
.piggy-save {
  width: 100%; min-height: 60px; border: none; border-radius: 18px;
  background: #B86B3F; color: #fff; font: inherit; font-size: 18px; font-weight: 700;
  cursor: pointer; letter-spacing: -0.01em;
}
.piggy-save:focus-visible { outline: 3px solid #141416; outline-offset: 3px; }
.piggy-save:active { transform: scale(0.985); }
.piggy-error {
  font-size: 15px; font-weight: 600; color: #9A4030; line-height: 1.35;
  margin: -4px 0 12px;
}
.piggy-help { text-align: center; margin-top: 10px; }
.split-readout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 6px;
}
.split-side {
  background: #F7F5F1; border-radius: 16px; padding: 12px 14px 10px;
}
.split-amt {
  font-size: clamp(28px, 5vw, 36px); font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.05; margin-bottom: 2px;
}
.split-amt.spend { color: #B86B3F; }
.split-amt.save { color: #4F7199; }
.split-slider {
  --thumb: 48px;
  --split: 1;
  position: relative; height: 56px; display: flex; align-items: center; margin: 4px 0 0;
}
.split-gauge {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 22px; border-radius: 999px; overflow: hidden; display: flex; pointer-events: none;
}
.split-gauge-spend {
  flex: none; height: 100%; background: #B86B3F;
  width: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--split));
}
.split-gauge-save { flex: 1 1 auto; height: 100%; background: #4F7199; }
.split-knob {
  position: absolute; z-index: 2; pointer-events: none;
  width: var(--thumb); height: var(--thumb);
  left: calc((100% - var(--thumb)) * var(--split));
  top: 50%; transform: translateY(-50%);
  border-radius: 50%; background: #fff; border: 3px solid #141416;
  box-shadow: 0 2px 8px rgba(20, 20, 22, 0.18);
}
.split-range {
  -webkit-appearance: none; appearance: none;
  position: relative; z-index: 1;
  width: 100%; height: 56px; margin: 0; background: transparent;
  touch-action: none; cursor: pointer;
}
.split-range:focus { outline: none; }
.split-range:focus-visible { outline: 3px solid #141416; outline-offset: 4px; border-radius: 999px; }
.split-range::-webkit-slider-runnable-track {
  height: 22px; background: transparent; border: none;
}
.split-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 48px; height: 48px; margin-top: -13px; border-radius: 50%;
  background: transparent; border: none; box-shadow: none; cursor: grab;
}
.split-range::-moz-range-track {
  height: 22px; background: transparent; border: none;
}
.split-range::-moz-range-thumb {
  width: 48px; height: 48px; border-radius: 50%;
  background: transparent; border: none; box-shadow: none; cursor: grab;
}
.owed-ask { margin-top: 12px; }
.owed-field span { color: #6E6E73; }
.money-field.owed-field:focus-within {
  border-color: #8A8175; box-shadow: 0 0 0 4px rgba(138, 129, 117, 0.18);
}
.owed-save, .owed-clear {
  width: 100%; min-height: 56px; border-radius: 18px;
  font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; letter-spacing: -0.01em;
}
.owed-save {
  border: none; background: #141416; color: #F3F1EC;
}
.owed-clear {
  margin-top: 10px; border: 1.5px solid #D9D5CE; background: #fff; color: #141416;
}
.owed-save:focus-visible, .owed-clear:focus-visible { outline: 3px solid #141416; outline-offset: 3px; }
.owed-save:active, .owed-clear:active { transform: scale(0.985); }
.owed-ready { margin: 2px 0 8px; }
.owed-home {
  margin: 2px 0 8px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: #141416;
}
.split-ends {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 14px; font-weight: 600; color: #6E6E73; margin-top: 2px;
}
.split-ends span:first-child { color: #B86B3F; }
.split-ends span:last-child { color: #4F7199; }
.split-pair {
  font-size: 16px; font-weight: 700; letter-spacing: -0.02em;
  color: #141416; margin: 2px 0 8px;
}
.split-pair-live { text-align: center; font-size: 18px; margin: 12px 0 6px; }
.split-mood { text-align: center; margin-bottom: 4px; }
.intent-block { margin-top: 12px; }
.intent-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  background: #F4F7FA; border-radius: 14px; padding: 12px 14px;
}
.intent-label { font-size: 14px; font-weight: 700; color: #4F7199; }
.intent-amt { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: #141416; }
.intent-block .counted-hint { margin-top: 8px; }
.blurb { font-size: 15px; font-weight: 500; color: #6E6E73; line-height: 1.4; }
.tip-line {
  font-size: 14px; font-weight: 550; color: #2F6B54; line-height: 1.4;
}
.tip-line span { color: #6E6E73; font-weight: 500; }
.footer-note {
  margin-top: auto; background: #EBE8E2; border-radius: 18px;
  padding: 18px 20px; text-align: center;
}
.footer-note p {
  font-size: 14px; font-weight: 550; color: #6E6E73; line-height: 1.4;
}
.footer-note p + p { margin-top: 3px; }
.back {
  font-size: 15px; font-weight: 600; color: #6E6E73; margin-bottom: 20px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 8px 0; min-height: 44px; text-align: left;
}
.row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-top: 1px solid #EEEAE3;
  font-size: 16px; font-weight: 600;
}
.row:first-of-type { border-top: none; padding-top: 4px; }
.row .mute { color: #6E6E73; font-weight: 500; font-size: 14px; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #6E6E73; margin: 20px 0 10px;
}
.top-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.progress-track {
  height: 10px; border-radius: 999px; background: #E4E0D8; overflow: hidden; margin: 10px 0 6px;
}
.progress-fill {
  height: 100%; border-radius: 999px; background: #3F7A64;
}
.progress-fill.later { background: #5A9A82; }
.progress-fill.college { background: #3F7A64; }
.milestone-row {
  display: flex; gap: 10px; margin: 12px 0 4px;
}
.ring {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid #C9E0D4; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #3F7A64;
}
.ring.on { background: #3F7A64; border-color: #3F7A64; color: #fff; }
.ring.mid { border-color: #3F7A64; background: #EEF6F1; }
.progress-label {
  font-size: 14px; font-weight: 600; color: #141416; margin-top: 2px;
}
.progress-sub { font-size: 13px; font-weight: 500; color: #6E6E73; }
.grow-state {
  display: inline-flex; align-items: center; margin: 8px 0 6px;
  padding: 6px 12px; border-radius: 999px;
  background: #EEF6F1; color: #2F6B54;
  font-size: 14px; font-weight: 700;
}
.goal-bar {
  height: 8px; border-radius: 999px; background: #E4E0D8; overflow: hidden; margin-top: 10px;
}
.goal-fill { height: 100%; background: #4F7199; border-radius: 999px; }
.why {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 13px; font-weight: 600; color: #3F7A64;
}
.brand {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #9A968E; margin-bottom: 14px;
}
button.card {
  text-align: left; width: 100%; font-family: inherit; color: inherit;
}
