:root {
  color-scheme: light;
  --ink: #1c332d;
  --deep: #14352f;
  --deep-2: #1e4940;
  --teal: #428b78;
  --mint: #d8eee6;
  --mint-pale: #eef7f2;
  --paper: #f8f8f4;
  --white: #fff;
  --line: #e5e9e3;
  --muted: #77817b;
  --soft: #aeb8b1;
  --gold: #dbb66c;
  --red: #a9504e;
  --green: #398568;
  --shadow: 0 24px 80px rgba(31, 57, 47, .09);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(66, 139, 120, .36); outline-offset: 3px; }
[hidden] { display: none !important; }

.prototype-banner { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 34px; padding: 7px 18px; color: #f4f8f2; background: var(--deep); font-size: 11px; letter-spacing: .045em; text-align: center; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #e7c46d; box-shadow: 0 0 0 3px rgba(231,196,109,.15); }
.topbar { height: 76px; max-width: 1320px; margin: auto; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9ebe6; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px 12px 12px 4px; background: var(--deep); color: #dff1e7; font: 800 15px 'Manrope', sans-serif; letter-spacing: -.08em; }
.brand-name { display: flex; flex-direction: column; font: 800 14px/1.05 'Manrope', sans-serif; letter-spacing: -.04em; }
.brand-name span { margin-top: 3px; color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.topbar-right { display: flex; align-items: center; gap: 28px; }
.secure-note { display: flex; align-items: center; gap: 8px; color: #727d75; font-size: 12px; }
.secure-note span { color: var(--teal); font-size: 16px; }
.text-button { border: 0; padding: 8px 0; color: var(--deep); background: transparent; font-size: 12px; font-weight: 700; transition: color .18s ease; }
.text-button:hover { color: var(--teal); }
.text-button span { margin-left: 5px; }

.onboarding-layout { max-width: 1236px; min-height: calc(100vh - 150px); margin: 0 auto; padding: 72px 42px 64px; display: grid; grid-template-columns: 1fr minmax(400px, 480px); gap: clamp(48px, 8vw, 120px); align-items: center; }
.intro-copy { max-width: 500px; padding-bottom: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.eyebrow-line { display: inline-block; width: 22px; height: 1px; background: var(--teal); }
.intro-copy h1, .welcome-row h1 { margin: 22px 0 18px; color: var(--deep); font: 600 clamp(36px, 4.2vw, 56px)/1.13 'Manrope', sans-serif; letter-spacing: -.065em; }
.intro-copy h1 em, .welcome-row h1 em { color: var(--teal); font-weight: 500; }
.intro-copy > p { max-width: 395px; margin: 0; color: #69756d; font-size: 15px; line-height: 1.8; }
.trust-points { display: grid; gap: 15px; margin-top: 35px; color: #45564c; font-size: 13px; }
.trust-points div { display: flex; align-items: center; gap: 11px; }
.check-icon { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #e1f0e8; color: var(--teal); font-size: 11px; font-weight: 700; }
.quiet-note { display: flex; align-items: center; gap: 10px; margin-top: 58px; color: #879088; font-size: 11px; }
.sparkle { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: #eee9d9; color: #a98d51; font-size: 15px; }

.setup-card { position: relative; padding: 34px 34px 22px; border: 1px solid #e8ebe4; border-radius: 19px; background: var(--white); box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.step-kicker { color: #849087; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.card-head h2 { max-width: 330px; margin: 10px 0 0; color: var(--deep); font: 700 22px/1.25 'Manrope', sans-serif; letter-spacing: -.04em; }
.step-illustration { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; border-radius: 13px; color: #947c43; background: #f6f1e3; font-size: 20px; }
.progress-track { height: 4px; margin: 24px 0 25px; overflow: hidden; border-radius: 9px; background: #eef0eb; }
.progress-track span { display: block; width: 50%; height: 100%; border-radius: inherit; background: var(--teal); transition: width .25s ease; }

.field-label { display: block; margin: 0 0 9px; color: #34463c; font-size: 12px; font-weight: 700; }
.field-help { margin: 0 0 15px; color: #889189; font-size: 11px; line-height: 1.55; }
.text-field { display: block; width: 100%; height: 47px; padding: 0 14px; border: 1px solid #dfe5df; border-radius: 9px; color: var(--ink); background: #fbfcfa; font-size: 13px; transition: border-color .16s ease, box-shadow .16s ease; }
.text-field::placeholder { color: #a3aca5; }
.text-field:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(66, 139, 120, .1); outline: none; }
.field-error { min-height: 17px; margin: 6px 0 0; color: var(--red); font-size: 11px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 47px; width: 100%; margin-top: 15px; padding: 12px 18px; border: 0; border-radius: 9px; color: white; background: var(--deep); font-size: 12px; font-weight: 700; transition: background .18s ease, transform .18s ease; }
.primary-button:hover { background: var(--deep-2); transform: translateY(-1px); }
.primary-button .button-arrow { font-size: 16px; font-weight: 400; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-button { min-height: 74px; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e3e8e2; border-radius: 10px; background: #fff; color: #46564c; text-align: left; font-size: 11px; font-weight: 600; transition: .16s ease; }
.choice-button:hover, .choice-button.selected { border-color: var(--teal); background: var(--mint-pale); }
.choice-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; background: #f0f4ef; color: var(--teal); font-size: 15px; }
.choice-button.selected .choice-icon { background: #d9ece2; }
.card-foot { min-height: 40px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #eff1ed; display: flex; justify-content: space-between; align-items: center; }
.privacy-caption { color: #929b94; font-size: 9px; }
.privacy-caption span { margin-right: 5px; color: var(--teal); }
.back-button { border: 0; padding: 4px 0; color: #6d7c72; background: transparent; font-size: 11px; font-weight: 700; }
.back-button:hover { color: var(--deep); }

.site-footer { max-width: 1320px; margin: auto; padding: 14px 42px 22px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #e9ebe6; color: #98a098; font-size: 10px; }

.dashboard-layout { min-height: calc(100vh - 150px); }
body.dashboard-active .topbar { display: none; }
body.dashboard-active .sidebar { top: 34px; }
.sidebar { position: fixed; top: 110px; bottom: 42px; left: max(0px, calc((100vw - 1320px) / 2)); width: 238px; padding: 24px 18px 18px; display: flex; flex-direction: column; background: #f4f5ef; border-right: 1px solid #e8ebe4; }
.sidebar-brand { padding: 0 8px 24px; }
.demo-user { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border: 1px solid #e4e8e0; border-radius: 11px; background: white; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; border: 0; color: #f5f8f4; background: var(--teal); font: 700 12px 'Manrope', sans-serif; }
.demo-user div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.demo-user strong { overflow: hidden; color: var(--deep); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.demo-user small { color: #89938b; font-size: 9px; }
.chevron { margin-left: auto; color: #88958c; }
.nav-label { margin: 28px 10px 11px; color: #9aa39b; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.side-nav { display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border: 0; border-radius: 8px; color: #647168; background: transparent; text-align: left; font-size: 11px; font-weight: 600; transition: .16s ease; }
.nav-item:hover { color: var(--deep); background: #e9eee8; }
.nav-item.active { color: var(--deep); background: #e1eee6; }
.nav-icon { display: inline-grid; place-items: center; width: 19px; color: var(--teal); font-size: 16px; }
.mobile-menu-toggle { display: none; }
.mobile-settings-item { display: none; }
.sidebar-bottom { margin-top: auto; }
.help-card { margin: 0 2px 17px; padding: 14px; border-radius: 12px; background: #e8efe7; }
.help-icon { display: block; margin-bottom: 8px; color: #a4884a; font-size: 17px; }
.help-card strong { color: var(--deep); font: 700 11px 'Manrope', sans-serif; }
.help-card p { margin: 6px 0 0; color: #77837a; font-size: 10px; line-height: 1.5; }

.dashboard-main { margin-left: max(238px, calc((100vw - 1320px) / 2 + 238px)); }
.dashboard-topline { height: 58px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9ebe6; background: rgba(255,255,255,.45); }
.breadcrumb { color: #8a958c; font-size: 10px; }
.breadcrumb span { margin: 0 7px; color: #b2bbb3; }
.top-actions { display: flex; align-items: center; gap: 13px; }
.icon-button { width: 32px; height: 32px; border: 1px solid #e4e8e1; border-radius: 50%; color: #647168; background: white; }
.small-avatar { width: 30px; height: 30px; font-size: 10px; }
.dashboard-content { max-width: 1140px; margin: 0 auto; padding: 38px 38px 26px; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.welcome-row h1 { margin: 12px 0 8px; font-size: clamp(26px, 3vw, 36px); }
.welcome-row p { margin: 0; color: #7b867e; font-size: 12px; line-height: 1.6; }
.primary-button.compact { width: auto; min-height: 40px; margin: 0 0 3px; padding: 0 15px; font-size: 11px; }
.summary-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; }
.summary-card { position: relative; min-height: 132px; overflow: hidden; padding: 19px 19px 15px; border: 1px solid #e7ebe4; border-radius: 12px; background: white; }
.summary-card.featured { border-color: var(--deep); color: white; background: var(--deep); }
.summary-label { color: #929c94; font-size: 9px; font-weight: 700; letter-spacing: .11em; }
.featured .summary-label { color: #c3d4c9; }
.info-dot { display: inline-grid; place-items: center; width: 13px; height: 13px; margin-left: 4px; border: 1px solid currentColor; border-radius: 50%; font: 700 8px serif; }
.summary-amount { margin-top: 14px; color: var(--deep); font: 700 25px 'Manrope', sans-serif; letter-spacing: -.05em; }
.featured .summary-amount { position: relative; z-index: 1; color: white; }
.summary-caption { margin-top: 8px; color: #8a958c; font-size: 10px; }
.featured .summary-caption { position: relative; z-index: 1; color: #c3d4c9; }
.trend { margin-right: 3px; color: #a5dfbf; }
.summary-caption.muted { color: #a4ada5; }
.sparkline { position: absolute; right: -3px; bottom: -2px; width: 100px; height: 35px; display: flex; align-items: flex-end; gap: 5px; opacity: .55; transform: skewY(-14deg); }
.sparkline span { width: 4px; border-radius: 3px 3px 0 0; background: #83c2a1; }
.sparkline span:nth-child(1) { height: 12px; }.sparkline span:nth-child(2) { height: 16px; }.sparkline span:nth-child(3) { height: 11px; }.sparkline span:nth-child(4) { height: 19px; }.sparkline span:nth-child(5) { height: 15px; }.sparkline span:nth-child(6) { height: 25px; }.sparkline span:nth-child(7) { height: 18px; }.sparkline span:nth-child(8) { height: 23px; }.sparkline span:nth-child(9) { height: 17px; }.sparkline span:nth-child(10) { height: 30px; }.sparkline span:nth-child(11) { height: 25px; }.sparkline span:nth-child(12) { height: 34px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr); gap: 14px; margin-top: 15px; }
.panel { min-width: 0; padding: 21px; border: 1px solid #e7ebe4; border-radius: 12px; background: white; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-heading h2 { margin: 7px 0 0; color: var(--deep); font: 700 17px 'Manrope', sans-serif; letter-spacing: -.04em; }
.panel-heading .eyebrow { font-size: 8px; }
.small-link { color: var(--teal); font-size: 10px; }
.transaction-list { margin-top: 14px; }
.transaction { min-height: 57px; display: flex; align-items: center; gap: 11px; border-top: 1px solid #eff1ed; }
.category-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 auto; border-radius: 10px; font-size: 15px; }
.category-icon.food { color: #927846; background: #f5efdf; }
.category-icon.home { color: #627fa4; background: #eaf0f6; }
.category-icon.income { color: #41836c; background: #e6f2ea; transform: rotate(180deg); }
.transaction-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.transaction-info strong { overflow: hidden; color: #384a3f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.transaction-info small { color: #919a92; font-size: 9px; }
.transaction-value { margin-left: auto; white-space: nowrap; font-size: 10px; font-weight: 700; }
.transaction-value.negative { color: #795c5a; }.transaction-value.positive { color: var(--green); }
.demo-disclaimer { padding-top: 10px; color: #a0a8a1; font-size: 9px; }
.goal-symbol { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: #a4884a; background: #f6f1e4; }
.goal-name { margin: 24px 0 11px; color: #43564a; font-size: 12px; font-weight: 700; }
.goal-progress-label { display: flex; justify-content: space-between; gap: 10px; color: #77837a; font-size: 9px; }
.goal-progress-label span:last-child { color: var(--teal); font-weight: 700; }
.goal-track { height: 7px; margin: 9px 0; overflow: hidden; border-radius: 9px; background: #e9eee8; }
.goal-track span { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--teal); }
.goal-target { margin: 0 0 19px; color: #9ba39c; font-size: 9px; }
.outline-button { min-height: 36px; width: 100%; border: 1px solid #dce5dc; border-radius: 8px; color: var(--deep); background: white; font-size: 10px; font-weight: 700; }
.outline-button:hover { background: var(--mint-pale); border-color: #a8cabb; }
.next-step-card { display: flex; align-items: center; gap: 14px; margin-top: 15px; padding: 15px 18px; border: 1px solid #e5ebe2; border-radius: 12px; background: #eef4eb; }
.next-step-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; color: #a4884a; background: #f7f0dc; }
.next-step-card strong { color: #3c5144; font: 700 11px 'Manrope', sans-serif; }
.next-step-card p { margin: 4px 0 0; color: #849086; font-size: 9px; }
.next-step-card > .text-button { margin-left: auto; white-space: nowrap; font-size: 10px; }
.dashboard-disclaimer { display: flex; gap: 7px; align-items: center; margin: 16px 0 0; color: #929c94; font-size: 9px; }
.dashboard-disclaimer span { color: #a4884a; font-size: 13px; }
.toast { position: fixed; right: 22px; bottom: 20px; z-index: 10; max-width: min(370px, calc(100vw - 44px)); padding: 12px 16px; border-radius: 10px; color: white; background: var(--deep); box-shadow: 0 8px 24px rgba(20,53,47,.2); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .onboarding-layout { gap: 42px; grid-template-columns: 1fr minmax(360px, 450px); padding-left: 30px; padding-right: 30px; }
  .sidebar { width: 205px; padding-left: 13px; padding-right: 13px; }
  .dashboard-main { margin-left: 205px; }
  .dashboard-content { padding: 30px 24px; }
  .dashboard-topline { padding: 0 24px; }
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { height: 65px; padding: 0 20px; }
  .secure-note { display: none; }
  .onboarding-layout { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding: 42px 20px 45px; }
  .intro-copy { max-width: 600px; }
  .intro-copy h1 { margin: 15px 0 12px; font-size: clamp(34px, 9vw, 48px); }
  .intro-copy > p { font-size: 13px; }
  .trust-points { grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 20px; font-size: 10px; }
  .quiet-note { margin-top: 20px; }
  .setup-card { padding: 25px 22px 18px; }
  .sidebar { position: sticky; z-index: 3; top: 0; bottom: auto; width: 100%; height: auto; padding: 11px 18px; gap: 10px; flex-wrap: wrap; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid #e8ebe4; }
  .sidebar-brand { padding: 0; }
  .demo-user, .nav-label, .sidebar-bottom { display: none; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 86px; min-height: 42px; margin-left: auto; padding: 0 12px; border: 1px solid #dfe7df; border-radius: 9px; color: var(--deep); background: white; font-size: 11px; font-weight: 700; }
  .mobile-menu-toggle:hover, .mobile-menu-toggle[aria-expanded="true"] { background: var(--mint-pale); border-color: #a8cabb; }
  .mobile-menu-icon { color: var(--teal); font-size: 17px; line-height: 1; }
  .side-nav { display: none; flex: 1 0 100%; width: 100%; max-width: none; grid-template-columns: 1fr; gap: 4px; margin: 0; padding: 8px; border: 1px solid #e5e9e3; border-radius: 11px; background: white; box-shadow: 0 12px 30px rgba(31, 57, 47, .1); }
  .side-nav.is-open { display: grid; }
  .nav-item { width: 100%; min-height: 44px; gap: 10px; padding: 0 12px; font-size: 11px; text-align: left; }
  .nav-icon { width: 20px; font-size: 15px; }
  .mobile-settings-item { display: flex; }
  .dashboard-main { margin-left: 0; }
  .dashboard-topline { display: none; }
  .dashboard-content { padding: 27px 18px 20px; }
  .welcome-row { align-items: flex-start; flex-direction: column; gap: 16px; }
  .welcome-row h1 { max-width: 480px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card:first-child { grid-column: 1 / -1; }
  .content-grid { grid-template-columns: 1fr; }
  .next-step-card { align-items: flex-start; flex-wrap: wrap; }
  .next-step-card > .text-button { margin: 0 0 0 47px; }
  .site-footer { padding: 13px 20px 18px; }
}
@media (max-width: 430px) {
  .prototype-banner { min-height: 30px; padding: 6px 10px; font-size: 9px; }
  body.dashboard-active .sidebar { top: 30px; }
  .topbar { padding: 0 15px; }
  .topbar-right { gap: 10px; }
  .topbar-right .text-button { font-size: 10px; }
  .onboarding-layout { padding: 32px 15px 36px; }
  .trust-points { grid-template-columns: 1fr; }
  .setup-card { padding: 21px 17px 16px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-button { min-height: 57px; }
  .card-foot { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .privacy-caption { margin-left: auto; }
  .sidebar { padding: 10px 12px; gap: 8px; }
  .sidebar-brand .brand-name { display: none; }
  .mobile-menu-toggle { min-width: 82px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card:first-child { grid-column: auto; }
  .summary-card { min-height: 112px; }
  .transaction-value { font-size: 9px; }
  .panel { padding: 17px 15px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
