@font-face {
  font-family: "DM Sans";
  src: url(../dm-sans.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --background: #f5f7fa;
  --surface: #fff;
  --ink: #142843;
  --muted: #485970;
  --line: #d3dce8;
  --blue: #0049dd;
  --blue-hover: #0037ab;
  --track: #dceaff;
  --success: #0b543c;
  --success-bg: #d4eee0;
  --warning: #82500d;
  --warning-bg: #ffeed0;
  --danger: #9f2739;
  font: 16px/1.45 "DM Sans", system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: #eeeae0; padding-block: 20px 28px; }
body.embed { background: transparent; padding: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .52; }
button, a, input, select { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px;
}
[hidden] { display: none !important; }
p, h1, h2, h3, dl, dd { margin: 0; }
p + p { margin-top: 8px; }
small, .small { font-size: 14px; line-height: 1.4; }
.muted { color: var(--muted); }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.demo-modes {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  margin: 0 auto 14px; padding-inline: 10px;
}
.demo-modes a { color: #142843; text-underline-offset: 3px; font-size: 14px; padding: 4px; }
.demo-modes a[aria-current] { font-weight: 800; }
.embed .demo-modes { display: none; }

.device {
  width: 422px; height: 894px; zoom: var(--scale,1); margin: 0 auto; position: relative;
  padding: 10px; border-radius: 60px; background: #191a1f;
  box-shadow: inset 0 0 0 2px #6c6d73, inset 0 0 0 5px #303036;
}
.device::before, .device::after {
  content: ""; position: absolute; width: 3px; background: #52535a;
}
.device::before { left: 1px; height: 66px; top: 173px; border-radius: 3px; }
.device::after { right: 1px; height: 83px; top: 196px; border-radius: 3px; }
.phone {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  width: 402px; height: 874px; border-radius: 50px; background: var(--background);
}
.statusbar {
  flex: 0 0 57px; position: relative; display: flex; justify-content: space-between; align-items: center;
  padding: 0 34px 0 55px; color: #0a0a0a; font-weight: 750; line-height: 1;
}
.island {
  position: absolute; border-radius: 24px; background: #040405; height: 36px; width: 96px;
  top: 12px; left: 50%; transform: translateX(-50%);
}
.signals { display: flex; align-items: center; gap: 5px; }
.app-header {
  position: relative; flex: 0 0 51px; display: flex; gap: 11px; align-items: center;
  padding-inline: 13px 24px; color: #111317; font-size: 15px; font-weight: 750;
}
.app-header.centered { justify-content: center; padding-inline: 59px; font-size: 17px; }
.app-header.centered .back { position: absolute; left: 13px; }
.back {
  display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid #d9dfe6; background: linear-gradient(#eaeef0,#fff);
  box-shadow: 0 4px 8px #172d4308; padding: 0;
}
.back svg { width: 22px; height: 22px; }
.app-view {
  flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: 17px 24px 20px; scrollbar-width: thin;
}
.app-view:focus { outline: none; }
.app-actions { flex: 0 0 auto; display: grid; gap: 6px; padding: 2px 24px 10px; }
.app-actions:empty { display: none; }
.home-indicator { position: relative; height: 22px; flex: 0 0 22px; }
.home-indicator::after {
  content: ""; position: absolute; bottom: 8px; left: 50%; width: 145px; height: 5px;
  border-radius: 100px; background: #08090b; transform: translateX(-50%);
}
h1 { font-size: 36px; letter-spacing: -.045em; line-height: 1.1; margin-bottom: 18px; font-weight: 800; }
h2 { font-size: 22px; line-height: 1.22; letter-spacing: -.038em; font-weight: 800; }
h3 { font-size: 18px; line-height: 1.25; letter-spacing: -.02em; }
.eyebrow { font-size: 12px; color: var(--muted); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.section-title { margin: 30px 0 8px; }

.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px;
  border-radius: 100px; border: 1px solid var(--blue); font-weight: 750; padding: 7px 15px;
  background: var(--blue); color: white; line-height: 1.2; text-decoration: none;
}
.btn:not(:disabled):hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn.secondary, .btn.text { color: var(--blue); background: transparent; }
.btn.text { border-color: transparent; }
.btn.secondary:not(:disabled):hover, .btn.text:not(:disabled):hover { color: var(--blue-hover); background: #edf4ff; }
.app-actions > .btn { width: 100%; }
.link-button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0;
  border: 0; background: transparent; color: var(--blue); text-align: left; font-weight: 750;
}
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon { flex: 0 0 auto; vertical-align: middle; }
.icon-tile {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px;
  border-radius: 9px; background: var(--track); color: #003997;
  box-shadow: inset 0 3px 4px #102e5522;
}
.icon-tile.amber { background: var(--warning-bg); color: #65400e; }
.icon-tile.green { background: var(--success-bg); color: var(--success); }

.gradient-card {
  color: #fff; border-radius: 16px; padding: 16px;
  background: radial-gradient(ellipse at right top,#0289ce 0%,#1265c2 24%,#121e70 62%,#060d2d 108%);
}
.gradient-card.hero-card { box-shadow: 0 6px 17px #122c693b; }
.gradient-card .muted, .gradient-card .eyebrow { color: #e1ecff; }
.amount { display: block; font-size: 48px; line-height: 1.08; letter-spacing: -.05em; font-weight: 800; }
.hero-labels, .hero-totals { display: flex; justify-content: space-between; align-items: flex-start; gap: 9px; }
.hero-labels { align-items: center; margin-bottom: 7px; }
.hero-labels strong { font-size: 20px; line-height: 1.2; }
.hero-card .estimate { margin-top: 7px; }
.hero-totals { margin-top: 16px; padding-top: 15px; border-top: 1px solid #a8b8ed80; }
.hero-totals > div:last-child { text-align: right; border-left: 1px solid #a8b8ed80; padding-left: 10px; }
.hero-totals strong { display: block; font-size: 20px; }
.hero-card .link-button { color: white; margin-top: 7px; min-height: 28px; }
.mini-card { margin: 8px 0 13px; padding: 12px 15px; }
.mini-card strong { font-size: 20px; }
.mini-card .amount { font-size: 44px; }
.purchase-card { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.purchase-card .amount { font-size: 44px; }
.panel { background: white; border-radius: 14px; padding: 16px; border: 1px solid var(--line); }
.panel .amount { margin: 4px 0 9px; }
.panel + .list { margin-top: 18px; }
.flow-heading { margin-top: 2px; }

.list { margin: 0; padding: 0; list-style: none; }
.list-row {
  width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center;
  gap: 11px; min-height: 57px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; text-align: left; font-size: 16px; line-height: 1.22;
}
.list-row:hover { background: #e9f0fb; }
.list-row .trail { text-align: right; font-size: 15px; }
.list-row small { display: block; margin-top: 3px; }
.category-row { min-height: 76px; }
.category-row .trail:empty { display: none; }
.category-row small { margin-bottom: 5px; }
.day { margin: 15px 0 1px; }
.filters { display: flex; justify-content: space-between; margin: -11px 0 0; }
.filters .link-button { color: var(--ink); }
.status-tag {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 2px 7px; border-radius: 100px; font-size: 12px; line-height: 1.35;
  white-space: nowrap; background: var(--warning-bg); color: var(--warning);
}
.status-tag.success { color: var(--success); background: var(--success-bg); }
.status-tag.receipt-tag { padding: 8px 13px; font-size: 16px; font-weight: 750; }
.progress {
  width: 100%; height: 8px; border: 0; border-radius: 6px; overflow: hidden; display: block;
  appearance: none; background: var(--track); color: var(--bar-color,var(--blue));
}
.progress::-webkit-progress-bar { background: var(--track); border-radius: 6px; }
.progress::-webkit-progress-value { background: var(--bar-color,var(--blue)); border-radius: 6px; }
.progress::-moz-progress-bar { background: var(--bar-color,var(--blue)); border-radius: 6px; }
.progress.warning { --bar-color: var(--warning); }
.progress.over { --bar-color: var(--danger); }
.legend { margin: 11px 0 7px; color: var(--muted); font-size: 13px; }
.legend span { color: var(--blue); }
.legend span + span { margin-left: 10px; color: #6593da; }
.budget-detail { margin: 0 0 16px; }
.budget-detail p { margin-bottom: 8px; }
.budget-detail small { display: block; text-align: right; margin-top: 4px; }
.field-row {
  display: flex; gap: 10px; align-items: center; justify-content: space-between; padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.field-row:first-child { border-top: 1px solid var(--line); }
.field-row > :last-child { text-align: right; }
.field-row strong { font-weight: 750; }
.field-row .link-button { min-height: 32px; }
.applied {
  display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 11px 13px;
  color: var(--success); background: #e6f5ec; border-radius: 12px;
}
.applied .link-button { min-height: 28px; }

.form-stack { display: grid; gap: 17px; }
.field { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.field input {
  width: 100%; min-height: 45px; padding: 8px 12px; border: 1px solid #bfc9d6;
  border-radius: 8px; background: var(--surface); font-size: 17px; color: var(--ink);
}
.counter { text-align: right; }
.option-list { border: 0; margin: 8px 0; padding: 0; min-inline-size: 0; }
.radio-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; min-height: 56px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.radio-row .choice-label { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.radio-row:has(input:checked) { background: var(--track); border-radius: 9px; }
.radio-row input, .filter-list input { accent-color: var(--blue); width: 17px; height: 17px; flex: none; }
.category-options legend { padding: 0 0 7px; }
.icon-picker, .quote-options { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.option-tile {
  flex: 1 1 0; position: relative; cursor: pointer; display: grid; place-items: center; min-width: 43px;
  min-height: 44px; border: 1px solid #8295b2; border-radius: 9px; font-weight: 800;
}
.option-tile:has(input:checked) { border-color: var(--blue); background: var(--track); }
.option-tile:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.switch-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.switch-line small { display: block; margin-top: 3px; }
.switch-line input {
  appearance: none; margin: 0; width: 44px; height: 25px; border-radius: 30px; flex: none;
  padding: 3px; background: #8693a8; cursor: pointer;
}
.switch-line input::before { content: ""; display: block; width: 19px; height: 19px; background: white; border-radius: 50%; }
.switch-line input:checked { background: var(--blue); }
.switch-line input:checked::before { margin-left: 19px; }
.quote-options { margin: 9px 0 20px; gap: 10px; }
.quote-options .option-tile { flex: 0 1 55px; min-height: 53px; font-size: 22px; }
.merchant-line { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 23px; }
.comparison { background: #e2e8f3; border-radius: 15px; padding: 15px; margin-block: 11px; }
.comparison p { margin-top: 11px; }
.comparison table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.2; margin-top: 12px; }
.comparison th, .comparison td { padding-block: 9px; text-align: left; border-bottom: 1px solid #b9c7db; }
.comparison th { font-weight: 700; }
.comparison td:last-child { font-weight: 800; }

.chat-form {
  display: flex; align-items: center; gap: 9px; background: white; border: 1px solid #899ab1;
  border-radius: 100px; min-height: 54px; padding: 6px 10px 6px 14px;
}
.chat-form input { flex: 1 1 0; min-width: 0; border: 0; padding: 3px 2px; background: transparent; }
.chat-form:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.chat-form input:focus-visible { outline: none; }
.chat-form input::placeholder { color: var(--muted); opacity: 1; }
.send {
  display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--blue); color: white; padding: 0;
}
.send:hover { background: var(--blue-hover); }
.chat-stack { display: flex; flex-direction: column; gap: 21px; }
.message { max-width: 83%; align-self: flex-start; }
.message.user { align-self: flex-end; }
.message-head { display: flex; gap: 12px; justify-content: space-between; margin-bottom: 5px; color: var(--muted); font-size: 13px; }
.bubble { padding: 12px 15px; background: #e3e4e7; border-radius: 0 13px 13px; overflow-wrap: anywhere; }
.user .bubble { background: var(--blue); color: white; border-radius: 13px 0 13px 13px; }
.chat-stack > .link-button { align-self: flex-start; }
.chat-note { margin: 4px 0 13px; }

.phone.locked {
  background: #171c2a url(../assets/prototipo/wallpaper.webp) center / cover;
  color: #fff;
}
.locked .statusbar { color: white; }
.locked .home-indicator::after { background: white; }
.locked .app-view { display: flex; flex-direction: column; align-items: center; padding: 13px 15px; }
.lock-date { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.lock-time { font-size: 91px; line-height: 1; letter-spacing: -.075em; font-weight: 800; }
.notification {
  width: 100%; display: flex; align-items: center; gap: 11px; margin-top: auto;
  margin-bottom: 112px; padding: 14px 12px; color: white; border: 1px solid #ffffff55;
  border-radius: 19px; background: #242833d9; text-align: left;
}
.notification img { width: 35px; height: 35px; border-radius: 8px; }
.notification small, .notification strong { display: block; }
.notification:hover { background: #242833; }

.receipt { text-align: center; padding-block: 22px; box-shadow: 0 7px 16px #14284316; }
.receipt > .small { margin-top: 13px; }
.receipt .amount { margin-top: 7px; }
.receipt .field-row { text-align: left; font-size: 14px; }
.receipt .field-row:last-child { border-bottom: 0; }
.receipt dl { margin-top: 13px; }
dialog {
  position: absolute; z-index: 2; inset: 50% auto auto 50%; margin: 0;
  transform: translate(-50%,-50%); width: min(342px, calc(100% - 36px)); max-width: none;
  max-height: calc(100% - 110px); overflow: auto;
  border: 0; border-radius: 16px; background: var(--background); color: var(--ink); padding: 24px;
}
dialog p { margin-block: 9px 12px; }
dialog .amount { font-size: 38px; margin-block: 5px 8px; }
dialog .btn { width: 100%; margin-top: 6px; }
dialog .field-row:last-of-type { margin-bottom: 9px; }
.dialog-feedback { text-align: center; }
.dialog-feedback h2 { margin-top: 11px; }
.dialog-feedback .amount { font-size: 31px; }
.dialog-filter { display: grid; gap: 11px; margin: 15px 0; }
.dialog-filter label { display: flex; gap: 8px; align-items: center; }

.dialog-scrim { position: absolute; inset: 0; z-index: 1; background: #151b26a8; }
dialog:focus { outline: none; }
.receipt-title { font-size: 24px; }
.month-panel { margin-top: 15px; }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: dialog-in 160ms ease-out both; }
  @keyframes dialog-in { from { opacity: 0; transform: translate(-50%,-48%); } }
}
