:root {
  color-scheme: light;
  --paper: #f7fafa;
  --ink: #17383d;
  --muted: #466362;
  --emerald: #087f5b;
  --deep: #075941;
  --turquoise: #2d9299;
  --aqua: #b4e3e7;
  --ruby: #b42346;
  --line: #bfcfc7;
  --line-field: #769287;
  --line-accent: #6c9b89;
  --radius-field: 8px;
  --radius-card: 16px;
  --shadow-card: 0 2px 8px #17383d0e;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-inner { min-height: 82px; }
.brand { display: block; width: 170px; flex: 0 1 170px; }
.actions { display: flex; align-items: center; gap: 24px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 14px; font-size: .875rem; }
.footer-inner small { font-size: inherit; }
.footer-version { display: inline-block; margin-inline-start: .5rem; font-weight: 600; }
.footer-inner a { color: var(--deep); text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions button { border: 0; }
.access-button, .launcher { min-height: 44px; border-radius: 10px; background: transparent; color: var(--deep); }
.access-button { display: inline-flex; align-items: center; padding-inline: 12px; font-weight: 700; text-decoration: none; }
.launcher { display: grid; place-items: center; width: 44px; }
.access-button:hover, .launcher:hover, .launcher[aria-expanded="true"] { background: #e1f2e9; }
.launcher-grid {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -7px -7px, 0 -7px, 7px -7px, -7px 0, 7px 0, -7px 7px, 0 7px, 7px 7px;
}
.site-menu {
  inset: 72px max(32px, calc((100% - 1200px) / 2)) auto auto;
  margin: 0;
  width: min(560px, calc(100% - 64px));
  max-height: calc(100dvh - 90px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  color: var(--ink);
  box-shadow: 0 20px 48px #17383d30;
}
.menu-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.menu-products { background: #edf7f2; border-radius: 12px; padding: 18px; }
.menu-products h2 { font-size: .875rem; color: var(--deep); margin-bottom: 16px; }
.product-preview { display: flex; align-items: flex-start; gap: 10px; }
.product-mark { flex: 0 0 34px; display: grid; place-items: center; height: 34px; background: var(--deep); color: white; border-radius: 9px; }
.product-preview h3 { font-size: 1rem; }
.product-preview p, .menu-options p { color: var(--muted); font-size: .875rem; line-height: 1.5; margin-top: 4px; }
.menu-options summary, .menu-link { display: block; width: 100%; padding: 9px 10px; border-radius: 8px; font-weight: 650; cursor: pointer; }
.menu-options summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.menu-options summary::-webkit-details-marker { display: none; }
.menu-options summary::after { content: "+"; color: var(--deep); }
.menu-options details[open] summary::after { content: "−"; }
.menu-link { text-decoration: none; }
.menu-options summary:hover, .menu-link:hover { background: #edf7f2; }
.menu-options p { padding: 0 10px 8px; }
.menu-secondary { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.support-contacts { display: grid; gap: 10px; margin: 4px 0 10px; padding: 4px 10px; list-style: none; font-size: .875rem; }
.support-contacts li { display: flex; align-items: flex-start; gap: 8px; }
.support-contacts svg { width: 18px; height: 18px; flex: none; color: var(--deep); }
.support-status { display: block; color: var(--muted); }
.support-contacts a { min-width: 0; color: var(--deep); overflow-wrap: anywhere; text-underline-offset: 3px; }
.support-legal { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 8px; }
.support-legal a { padding: 5px 8px; border: 1px solid var(--line); border-radius: var(--radius-field); background: var(--paper); color: var(--deep); font-size: .875rem; text-decoration: none; }
.support-legal a:hover { background: #edf7f2; text-decoration: underline; }
.account-page { display: flex; flex-direction: column; min-height: 100vh; }
.account-page .site-footer { margin-top: auto; }
.error-page { padding-block: clamp(48px, 12vh, 120px); }
.error-page h1 { font-size: clamp(2rem, 6vw, 3.75rem); line-height: 1.08; }
.error-page .lead { max-width: 36rem; }
.auth-main { display: grid; grid-template-columns: 1fr 1fr; max-width: 1010px; padding-block: clamp(24px, 5vw, 68px); }
.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(26px, 6vw, 68px);
  border-radius: 24px 0 0 24px;
  background: radial-gradient(ellipse at 0 100%, var(--aqua), transparent 68%), radial-gradient(#087f5b26 1px, transparent 1px) 0 0 / 16px 16px, #e4f4ec;
}
.auth-brand img { width: 185px; margin-left: -12px; }
.auth-tagline { font-size: clamp(2.8rem, 5.5vw, 5rem); font-weight: 760; letter-spacing: -.075em; line-height: .98; }
.auth-tagline em { color: var(--deep); font-style: normal; }
.auth-brand p:not(.auth-tagline) { max-width: 30ch; color: var(--muted); line-height: 1.55; }
.auth-brand a, .auth-switch a { color: var(--deep); font-weight: 650; text-underline-offset: 3px; }
.auth-sheet { width: min(100%, 330px); overflow: hidden; border: 1px solid var(--line-accent); border-radius: var(--radius-field); background: #f7fcf9; }
.auth-sheet table { width: 100%; border-spacing: 0; color: var(--ink); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.auth-sheet :is(th, td) { padding: 5px 6px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); white-space: nowrap; }
.auth-sheet thead td, .auth-sheet tbody th { background: #e6f3ed; color: var(--deep); text-align: center; font-weight: 650; }
.auth-sheet tbody tr:first-child td { font-weight: 700; background: #d7eee4; }
.auth-sheet tbody tr:not(:first-child) td:nth-child(n+3) { text-align: right; }
.auth-sheet :is(th, td):last-child { border-right: 0; }
.auth-sheet tbody tr:last-child > * { border-bottom: 0; }
.auth-sheet .sheet-selected { background: #e0f5e8; outline: 2px solid var(--emerald); outline-offset: -2px; }
.auth-card { background: white; border: 1px solid var(--line); border-radius: 0 24px 24px 0; padding: clamp(22px, 4vw, 48px); box-shadow: var(--shadow-card); }
.auth-card h1 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.055em; }
.auth-intro { margin-bottom: 20px; color: var(--muted); }
.auth-google { width: 100%; min-height: 46px; border: 1px solid var(--line-field); border-radius: var(--radius-field); background: white; color: var(--deep); font-weight: 700; }
.auth-google:hover { background: #edf7f2; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin-block: 16px; color: var(--muted); font-size: .875rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-divider[hidden] { display: none; }
.auth-card label { display: block; margin-block: 12px 5px; font-weight: 650; }
.auth-card input { width: 100%; min-height: 45px; border: 1px solid var(--line-field); border-radius: var(--radius-field); padding: 10px 12px; color: var(--ink); background: var(--paper); font: inherit; }
.auth-password { position: relative; }
.auth-password input { padding-right: 88px; }
.auth-password button { position: absolute; inset: 4px 4px 4px auto; border: 0; border-radius: 5px; padding-inline: 8px; background: transparent; color: var(--deep); font-size: .875rem; font-weight: 650; }
.auth-password button:hover { background: #e1f2e9; }
.auth-hint, .auth-status, .auth-switch { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.auth-hint { margin-top: 5px; }
.registration-legal { margin-top: 14px; }
.registration-legal a { color: var(--deep); font-weight: 650; text-underline-offset: 3px; }
.auth-submit { width: 100%; margin-top: 18px; border: 0; }
.auth-switch { margin-top: 15px; }
.auth-status { margin-top: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-field); background: #edf7f2; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: 14px 22px; min-height: 50px; border-radius: 10px; background: var(--emerald); color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--deep); }
.button-small { min-height: 42px; padding: 9px 18px; }
.hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(30px, 5vw, 76px); align-items: center; padding-block: 64px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--deep); font-size: .875rem; font-weight: 750; }
.eyebrow span { width: 21px; height: 2px; background: var(--turquoise); }
h1 { margin-block: 19px 23px; font-size: clamp(3.4rem, 6.3vw, 6.35rem); line-height: .98; letter-spacing: -.078em; font-weight: 760; }
h1 em { color: var(--emerald); font-style: normal; }
.lead { max-width: 39ch; color: var(--muted); font-size: 1.15rem; line-height: 1.65; }
.actions { flex-wrap: wrap; margin-top: 30px; }
.text-link { color: var(--deep); font-weight: 650; text-underline-offset: 4px; }
.auth-link-button { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; }
.auth-link-button:disabled { opacity: .6; cursor: default; }
.stage { border-radius: 26px; padding: clamp(18px, 3.3vw, 48px); background-color: #e0f2e9; background-image: radial-gradient(ellipse at 100% 0%, var(--aqua), transparent 75%), radial-gradient(#087f5b27 1px, transparent 1px); background-size: auto, 15px 15px; scroll-margin-top: 18px; }
.dashboard { padding: clamp(16px, 2.6vw, 30px); border: 1px solid var(--line-accent); border-radius: 20px; background: white; box-shadow: 0 20px 48px #17383d22; }
.dashboard-header, .balance, .budget-heading, .category > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dashboard-header { margin-bottom: 18px; }
.dashboard h2 { font-size: 1.85rem; letter-spacing: -.045em; }
.example { color: var(--muted); font-size: .82rem; }
.demo-preview-month { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--paper); font-weight: 600; }
.demo-page { max-width: 780px; padding-block: clamp(34px, 7vw, 76px) 42px; }
.demo-intro { text-align: center; margin-bottom: 26px; }
.demo-intro h1 { margin-top: 0; font-size: clamp(3rem, 7vw, 5.4rem); }
.demo-intro .lead { margin-inline: auto; max-width: 56ch; }
.demo-features { display: table; margin: 24px auto 0; text-align: center; }
.budget-demo { --spent-amber: #a65f08; max-width: 1200px; }
.demo-overview, .demo-panel { padding: clamp(16px, 2.6vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-card); background: white; box-shadow: var(--shadow-card); }
.demo-overview { background: var(--deep); border-color: var(--emerald); color: white; }
.demo-overview .example { color: #d5f0e6; }
.demo-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; }
.demo-section-heading h2 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); letter-spacing: -.03em; }
.demo-month { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.demo-totals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; }
.demo-totals div { min-width: 0; padding: 10px; border-radius: 9px; background: var(--metric-background, var(--paper)); color: var(--ink); }
.demo-totals .metric-fixed { --metric-background: #dff4e4; }
.demo-totals .metric-variable { --metric-background: #eee3fa; }
.demo-totals .metric-income { --metric-background: #deebfa; }
.demo-totals .metric-spent { --metric-background: #fce4d7; }
.demo-totals .metric-left { --metric-background: #fff1cb; }
.demo-totals .metric-balance { --metric-background: #d7f2f1; }
.demo-totals dt { color: var(--muted); font-size: .875rem; }
.demo-totals dd { margin: 4px 0 0; font-weight: 750; overflow-wrap: anywhere; }
.demo-totals .negative { color: var(--ruby); }
.demo-panels { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-block: 18px 32px; }
.demo-panel { min-width: 0; }
.demo-panel .demo-section-heading strong { color: var(--deep); font-size: 1.25rem; }
.demo-caption { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.chart-key { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 12px; color: var(--muted); font-size: .875rem; }
.chart-key span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; background: var(--turquoise); }
.chart-key .chart-key-spent::before { background: var(--spent-amber); }
.chart-key .chart-key-exceeded::before { background: var(--ruby); }
.projection { display: grid; gap: 13px; }
.projection-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: .875rem; }
.projection-name { overflow-wrap: anywhere; }
.projection-amounts { color: var(--muted); text-align: right; }
.projection-track { grid-column: 1 / -1; display: grid; gap: 4px; padding: 3px 0; background: #edf3f0; border-radius: 5px; }
.projection-track span { height: 9px; border-radius: 5px; background: var(--turquoise); }
.projection-track .projection-spent { background: var(--spent-amber); }
.projection-track .over-budget { background: var(--ruby); }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.budget-sheet { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow-card); }
.category-sheet { display: flex; flex-direction: column; min-width: 0; }
.category-sheet.is-dragging { opacity: .55; }
.category-sheet.is-drop-target { outline: 2px solid var(--emerald); outline-offset: 2px; }
.sheet-header { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 8px; background: #e4f3ed; }
.sheet-order-handle { flex: 0 0 28px; height: 32px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--deep); cursor: grab; }
.sheet-order-handle:hover, .sheet-order-handle[aria-expanded="true"] { background: #d6ece0; }
.sheet-order-handle:active { cursor: grabbing; }
.sheet-order-handle span { font-size: 1rem; font-weight: 750; letter-spacing: -.16em; }
.sheet-order-controls { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px 5px; border-bottom: 1px solid var(--line); }
.sheet-order-controls[hidden] { display: none; }
.sheet-order-controls .sheet-button { padding: 4px 7px; font-size: .8125rem; }
.sheet-order-controls .sheet-button:disabled { opacity: .5; cursor: default; }
.sheet-scroll { max-height: clamp(170px, 42svh, 320px); overflow: auto; scrollbar-width: thin; }
.sheet-scroll thead { position: sticky; top: 0; z-index: 1; }
.sheet-scroll tfoot { position: sticky; bottom: 0; z-index: 1; }
.sheet-scroll :is(thead, tfoot) > tr > * { background: #edf7f2; }
.sheet-actions { margin-top: auto; }
.budget-demo input, .income-type { width: 100%; min-width: 0; padding: 6px; border: 1px solid var(--line-field); border-radius: var(--radius-field); background: white; color: var(--ink); font: inherit; }
.budget-demo input:focus-visible, .income-type:focus-visible { outline-offset: -2px; }
.budget-demo .category-name { font-weight: 750; }
.sheet-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.sheet-table th, .sheet-table td { padding: 5px 3px; text-align: left; overflow-wrap: anywhere; }
.sheet-table th:first-child { width: 46%; }
.sheet-table th:last-child { width: 31px; }
.sheet-table :is(thead, tfoot) { background: #edf7f2; }
.sheet-table thead { border-bottom: 1px solid var(--line-accent); }
.sheet-table tfoot { border-top: 1px solid var(--line-accent); }
.sheet-table tbody tr + tr { border-top: 1px solid var(--line); }
.concept-editor { display: grid; }
.concept-editor::after { content: attr(data-value) " "; visibility: hidden; pointer-events: none; }
.concept-editor::after, .concept-editor textarea {
  grid-area: 1 / 1;
  min-width: 0;
  padding: 6px;
  border: 1px solid transparent;
  font: inherit;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.concept-editor textarea { width: 100%; align-self: stretch; resize: none; overflow: hidden; border-color: var(--line-field); border-radius: var(--radius-field); background: white; color: var(--ink); }
.concept-editor textarea:focus-visible { outline-offset: -2px; }
.sheet-button, .sheet-remove { border: 0; border-radius: 5px; background: transparent; font-weight: 650; }
.sheet-button { padding: 9px 10px; color: var(--deep); }
.sheet-button:hover { background: #e4f3ed; }
.sheet-remove { padding: 5px; color: var(--ruby); }
.sheet-remove:hover { background: #fbe9ed; }
.remove-category, .remove-debt { flex: none; display: grid; place-items: center; width: 32px; height: 32px; }
.remove-category svg, .remove-debt svg { width: 16px; height: 16px; }
.budget-sheet .sheet-button { margin: 4px; }
.budget-sheet .add-concept { padding: 5px 7px; font-size: .8125rem; }
.demo-categories #add-category { min-height: 34px; padding: 6px 10px; font-size: .875rem; }
.income-list { display: grid; gap: 8px; margin-block: 12px 4px; }
.income-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(76px, .75fr) minmax(62px, .65fr) auto; gap: 4px; align-items: center; font-size: .875rem; }
.income-row select { appearance: auto; }
.debt-panel { margin-top: 30px; }
.debt-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 8px; margin: 16px 0; }
.debt-totals div { padding: 10px 12px; border-radius: 8px; background: #edf7f2; }
.debt-totals dt, .debt-estimate dt { color: var(--muted); font-size: .875rem; }
.debt-totals dd { margin: 4px 0 0; font-weight: 750; overflow-wrap: anywhere; }
.debt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.debt-sheet { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px; container: debt-card / inline-size; }
.debt-sheet label { display: grid; gap: 4px; min-width: 0; font-size: .875rem; font-weight: 650; }
.debt-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr)); gap: 8px; }
.debt-sheet-heading { display: flex; align-items: flex-start; gap: 6px; }
.debt-sheet-heading label { flex: 1; min-width: 0; }
.debt-frequency { width: 100%; min-width: 0; padding: 6px; border: 1px solid var(--line-field); border-radius: var(--radius-field); background: white; appearance: auto; }
.debt-estimate dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); gap: 8px; margin: 4px 0; padding: 8px; background: #edf7f2; border-radius: 8px; }
.debt-estimate dd { margin: 2px 0 0; color: var(--deep); font-weight: 700; overflow-wrap: anywhere; }
.debt-payments-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 10px; }
.debt-payments-heading h3 { font-size: 1rem; }
.debt-payment-history { margin-top: 7px; border: 1px solid var(--line); border-radius: var(--radius-field); background: var(--paper); }
.debt-payment-history summary { padding: 7px 9px; color: var(--deep); font-size: .875rem; font-weight: 650; cursor: pointer; }
.debt-payment-count { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #e4f3ed; font-variant-numeric: tabular-nums; }
.debt-payment-list { display: grid; gap: 7px; max-height: clamp(170px, 43svh, 320px); padding: 0 7px 7px; overflow-y: auto; scrollbar-width: thin; }
.debt-payment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.debt-payment-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.debt-payment .payment-state { display: flex; align-items: center; gap: 6px; }
.budget-demo .payment-paid { width: auto; accent-color: var(--emerald); }
.remove-debt-payment { font-size: .8125rem; }
.payment-validation { grid-column: 1 / -1; color: var(--ruby); }
.payment-validation:empty { display: none; }
.add-debt-payment { padding: 5px 7px; font-size: .8125rem; }
.debt-delete-dialog { width: min(calc(100% - 32px), 360px); padding: 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: 0 12px 40px #17383d37; }
.debt-delete-dialog::backdrop { background: #17383d66; }
.debt-delete-dialog h2 { font-size: 1.2rem; }
.debt-delete-dialog p { margin: 8px 0 14px; line-height: 1.45; overflow-wrap: anywhere; }
.debt-delete-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.debt-delete-actions .button { min-height: 34px; border: 0; padding: 6px 10px; background: var(--ruby); }
.debt-delete-actions .button:hover { background: #951b39; }
.demo-registration-note { margin: 28px auto 0; max-width: 56ch; color: #526461; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.5; text-align: center; }
.demo-registration-note a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 1000px) {
  .demo-totals, .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .demo-panels, .category-grid, .debt-list { grid-template-columns: 1fr; }
  .demo-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container debt-card (min-width: 520px) {
  .debt-payment { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.month-picker { position: relative; }
.month-picker::after { content: ""; position: absolute; right: 13px; top: 15px; width: 6px; height: 6px; border: solid var(--deep); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
select { appearance: none; font: inherit; font-weight: 600; color: var(--ink); background: var(--paper); border: 1px solid var(--line-field); border-radius: var(--radius-field); padding: 8px 30px 8px 10px; cursor: pointer; }
:is(.auth-card input, .budget-demo input, .concept-editor textarea, select):hover:enabled { border-color: var(--emerald); }
:is(.auth-card input, .budget-demo input, .concept-editor textarea, select):focus-visible { border-color: var(--deep); }
.balance { padding: 16px 18px; background: var(--deep); color: white; border-radius: 13px; }
.balance p { color: #d3f1e5; font-size: .875rem; }
.balance strong { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.045em; }
.balance small { margin-left: 7px; color: #d3f1e5; }
.balance-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff65; border-radius: 50%; font-size: 1.2rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-block: 12px 20px; }
.metrics > div { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 9px; }
.metrics p, .budget-heading span { color: var(--muted); font-size: .875rem; }
.metrics strong { font-size: clamp(.95rem, 1.65vw, 1.22rem); }
.metrics > div:last-child strong { color: var(--emerald); }
.budget-heading h3 { font-size: 1rem; }
.category { margin-top: 10px; font-size: .875rem; }
.category span { font-weight: 650; }
progress { display: block; width: 100%; height: 6px; margin-top: 5px; border: 0; border-radius: 100px; overflow: hidden; background: #e5efec; accent-color: var(--turquoise); }
progress::-webkit-progress-bar { background: #e5efec; }
progress::-webkit-progress-value { background: var(--turquoise); border-radius: 100px; }
progress::-moz-progress-bar { background: var(--turquoise); border-radius: 100px; }
.category.exceeded span { color: var(--ruby); }
.category.exceeded progress::-webkit-progress-value { background: var(--ruby); }
.category.exceeded progress::-moz-progress-bar { background: var(--ruby); }
.guide { background: white; border-block: 1px solid var(--line); padding-block: 42px 50px; }
.guide h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.055em; margin-bottom: 24px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.features article { border-top: 1px solid var(--line); padding-top: 16px; }
.feature-icon { display: grid; place-items: center; width: 36px; height: 36px; background: #e1f2e9; color: var(--deep); border-radius: 10px; font-size: 1.35rem; margin-bottom: 12px; }
.features h3 { margin-bottom: 7px; }
.features p { color: var(--muted); line-height: 1.55; max-width: 35ch; }
.home-video { padding-block: clamp(32px, 6vw, 72px); background: radial-gradient(ellipse at top, #edf9f3, #d2ede0); }
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border: 1px solid #ffffff70;
  border-radius: clamp(12px, 2vw, 22px);
  background: linear-gradient(145deg, #17383d, #075941);
  box-shadow: 0 16px 40px #17383d26;
  color: white;
  font-weight: 650;
}
.video-placeholder-icon { display: grid; place-items: center; width: clamp(42px, 8vw, 62px); aspect-ratio: 1; border: 1px solid #ffffff75; border-radius: 50%; background: #ffffff16; }
.video-placeholder-icon::before { content: ""; width: 0; height: 0; margin-left: 3px; border-block: 8px solid transparent; border-left: 12px solid currentColor; }
.home-video-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.video-demo-link { border: 1px solid var(--line-field); background: white; color: var(--deep); }
.video-demo-link:hover { background: #edf7f2; }
.pricing { max-width: 940px; padding-block: clamp(40px, 7vw, 86px) 24px; }
.header-actions a { white-space: nowrap; }
.pricing-intro { max-width: 680px; margin: 0 auto 34px; text-align: center; }
.pricing-intro h1 { margin-top: 0; font-size: clamp(2.7rem, 6vw, 5.3rem); }
.pricing-intro p, .plan-description { color: var(--muted); line-height: 1.55; }
.pricing-intro p { max-width: 56ch; margin-inline: auto; font-size: 1.125rem; }
.billing {
  display: flex;
  width: fit-content;
  gap: 4px;
  margin: 0 auto 26px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #edf7f2;
}
.billing[hidden] { display: none; }
.billing span { display: block; padding: 9px 21px; border-radius: 999px; color: var(--deep); font-weight: 650; cursor: pointer; }
.billing input:checked + span { background: var(--deep); color: white; }
.billing input:focus-visible + span { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.pricing-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; padding: clamp(20px, 4vw, 36px); background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-card); }
.plan-premium { background: #edf7f2; border-color: var(--emerald); box-shadow: 0 12px 32px #07594112; }
.plan h2 { font-size: 1.4rem; }
.plan-price { margin-block: 8px 2px; }
.plan-price strong { font-size: 2.6rem; letter-spacing: -.06em; }
.plan-premium h2, .plan-premium .plan-price strong { color: var(--deep); }
.plan-annual { color: var(--deep); font-size: .875rem; }
.plan-description { margin-top: 14px; }
.plan ul { list-style: none; margin: 20px 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.plan li { display: grid; grid-template-columns: 1.25em 1fr; gap: 8px; line-height: 1.45; }
.plan li + li { margin-top: 10px; }
.plan li::before { content: "✓" / ""; color: var(--emerald); font-weight: 750; }
.plan-demo, .plan-status { margin-top: auto; }
.plan-status { padding: 14px; border: 1px solid var(--line-accent); border-radius: 10px; color: var(--deep); text-align: center; font-weight: 650; }
.plan-support { max-width: 650px; margin: 36px auto 0; padding: 24px 8px 12px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.plan-support-heart { display: block; font-size: 1.5rem; line-height: 1; margin-bottom: 12px; }
.plan-support h2 { max-width: 32ch; margin-inline: auto; font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.2; }
.plan-support p { margin: 12px auto; max-width: 61ch; line-height: 1.55; }
.guide-support { margin-top: 24px; padding: 14px 8px 0; font-size: .9375rem; }
.guide-support .plan-support-heart { margin-bottom: 6px; font-size: 1.15rem; }
.guide-support h3 { font-size: 1.1rem; }
.guide-support p { margin-block: 6px; }
.tools-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 84px); }
.tools-hero h1 { margin-top: 0; font-size: clamp(2.85rem, 5.5vw, 5.5rem); }
.tools-hero .button { margin-top: 24px; }
.tool-example table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.tool-example :is(th, td) { padding: 8px 5px; border-bottom: 1px solid var(--line); text-align: right; }
.tool-example th:first-child { text-align: left; }
.tool-example tfoot { background: #edf7f2; color: var(--deep); font-weight: 700; }
.tool-alert { margin-top: 14px; color: var(--ruby); font-size: .875rem; }
.tool-section { padding-block: 48px; background: white; border-block: 1px solid var(--line); }
.tool-section h2, .tools-security h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); letter-spacing: -.045em; }
.tools-copy { max-width: 68ch; margin-top: 10px; color: var(--muted); line-height: 1.6; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.tool-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(16px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.tool-card p { color: var(--muted); line-height: 1.55; }
.tool-export { margin-block: 20px 16px; }
.tools-security { padding-block: 48px; }
.security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 24px 16px; }
.security-grid .tool-card { background: white; border-top: 3px solid var(--emerald); }
@media (max-width: 860px) {
  .tools-hero { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pricing-cards, .tool-grid, .security-grid { grid-template-columns: 1fr; }
  .auth-main { grid-template-columns: 1fr; }
  .auth-brand { border-radius: 20px 20px 0 0; gap: 12px; }
  .auth-card { border-radius: 0 0 20px 20px; }
  .auth-brand img { width: 130px; margin-left: -8px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; max-width: 660px; gap: 32px; padding-block: 42px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 68px; }
  .brand { width: 132px; flex-basis: 132px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 4px; font-size: .875rem; }
  .header-actions .button-small, .access-button { padding-inline: 8px; }
  .header-actions .button-small { min-height: 44px; }
  .site-menu { inset: 61px 16px auto auto; width: calc(100% - 32px); max-height: calc(100dvh - 77px); }
  .menu-layout { grid-template-columns: 1fr; }
  .menu-products { padding: 14px; }
  h1 { font-size: clamp(3rem, 12vw, 4.8rem); }
  .features { grid-template-columns: 1fr; gap: 20px; }
  .stage { padding: 12px; }
}

.features-footer { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-block: 38px 46px; border-top: 1px solid var(--line); text-align: center; }
.features-footer .brand { width: 170px; flex: none; }
.features-footer p { max-width: 25ch; font-size: clamp(1.65rem, 4vw, 2.6rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.13; }
.legal-page { max-width: 1040px; padding-block: clamp(36px, 7vw, 72px) 36px; }
.legal-intro { max-width: 700px; margin: 0 auto 26px; text-align: center; }
.legal-intro h1 { margin-top: 0; font-size: clamp(2.35rem, 6vw, 5rem); }
.legal-intro p, .legal-card-copy, .legal-contact { color: var(--muted); line-height: 1.5; }
.legal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.legal-card { display: grid; align-content: start; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: white; box-shadow: var(--shadow-card); text-decoration: none; }
.legal-card:hover { border-color: var(--emerald); background: #f0f8f4; }
.legal-card strong { font-size: 1.12rem; }
.legal-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: #dbeee4; color: var(--deep); }
.legal-icon svg { width: 24px; height: 24px; }
.legal-card-privacidad .legal-icon { background: #dbf0f1; color: #19565c; }
.legal-card-terminos .legal-icon { background: #f5ead2; color: #6d5128; }
.legal-card-cookies .legal-icon { background: #eee5f2; color: #614473; }
.legal-contact { margin-top: 20px; text-align: center; }
.legal-document { max-width: 1120px; padding-block: 28px 50px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.legal-tabs a { padding: 7px 11px; border: 1px solid var(--line); border-radius: var(--radius-field); color: var(--deep); text-decoration: none; font-weight: 650; }
.legal-tabs a:hover, .legal-tabs a[aria-current="page"] { border-color: var(--line-accent); background: #edf7f2; }
.legal-document-heading { margin-block: 25px; }
.legal-document-heading h1 { margin: 0 0 12px; font-size: clamp(2.15rem, 5vw, 4.2rem); }
.legal-document-heading p { max-width: 66ch; color: var(--muted); line-height: 1.5; }
.legal-document-layout { display: grid; grid-template-columns: minmax(185px, 235px) minmax(0, 1fr); align-items: start; gap: 16px; }
.legal-index { position: sticky; top: 12px; max-height: calc(100svh - 24px); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-card); background: white; }
.legal-index h2 { font-size: 1rem; }
.legal-index ol { list-style: none; margin: 7px 0 0; padding: 0; }
.legal-index a { display: block; border-radius: 5px; padding: 4px; color: var(--deep); font-size: .875rem; text-decoration: none; }
.legal-index a:hover { background: #edf7f2; text-decoration: underline; }
.legal-document-body { min-width: 0; padding: clamp(16px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-card); background: white; box-shadow: var(--shadow-card); }
.legal-document-body section { scroll-margin-top: 16px; }
.legal-document-body section + section { padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--line); }
.legal-document-body h2 { font-size: clamp(1.14rem, 2.5vw, 1.45rem); margin-bottom: 8px; }
.legal-document-body :is(p, li) { color: var(--muted); line-height: 1.65; }
.legal-document-body p + p { margin-top: 8px; }
.legal-document-body a { color: var(--deep); text-underline-offset: 3px; }
.legal-note { padding: 10px 12px; margin-bottom: 16px; border: 1px solid var(--line-accent); border-radius: var(--radius-field); background: #edf7f2; }
.legal-table-scroll { overflow-x: auto; margin-block: 10px; border: 1px solid var(--line); border-radius: var(--radius-field); }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.legal-table :is(th, td) { padding: 9px; text-align: left; vertical-align: top; }
.legal-table thead { background: #e4f3ed; }
.legal-table tbody tr { border-top: 1px solid var(--line); }
.legal-table code { overflow-wrap: anywhere; }
.hero .home-mobile-register { display: none; }
@media (max-width: 760px) {
  .legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-document-layout { grid-template-columns: 1fr; }
  .legal-index { position: static; max-height: none; }
  .legal-index ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); }
}

@media (max-width: 640px) {
  .auth-main { width: min(100% - 28px, 450px); padding-block: 20px 26px; }
  .auth-brand { gap: 2px; padding: 14px 18px; border-radius: 16px 16px 0 0; }
  .auth-brand :is(img, .auth-sheet, p:not(.auth-tagline), br) { display: none; }
  .auth-tagline { font-size: clamp(1.25rem, 5.4vw, 1.7rem); letter-spacing: -.04em; }
  .auth-tagline em { margin-inline-start: .18em; }
  .auth-brand > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
  .auth-card { padding: 20px clamp(15px, 4vw, 22px); border-radius: 0 0 16px 16px; }
  .auth-card h1 { margin-bottom: 8px; font-size: clamp(1.85rem, 7vw, 2.4rem); }
  .auth-intro { margin-bottom: 12px; font-size: .93rem; line-height: 1.55; }
  .auth-card input { min-height: 50px; font-size: 16px; }
  .auth-password button { inset-block: 2px; min-height: 44px; }
  .auth-card .auth-submit { min-height: 50px; margin-top: 14px; }
  .auth-switch { margin-top: 8px; }
  .auth-switch :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 60px; }
  .header .brand { min-width: 72px; flex-basis: 108px; }
  .header-actions { gap: 3px; }
  .header-actions .launcher { display: grid; justify-items: center; align-content: center; gap: 7px; width: 46px; min-height: 44px; padding: 5px 2px 2px; }
  .launcher::after { content: "Menú"; font-size: .65rem; line-height: 1; font-weight: 700; }
  .launcher-grid { width: 3px; height: 3px; box-shadow: -5px -5px, 0 -5px, 5px -5px, -5px 0, 5px 0, -5px 5px, 0 5px, 5px 5px; }
  .site-menu { inset: auto 0 0; width: min(100%, 480px); max-height: min(83dvh, 660px); margin-inline: auto; padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; }
  .site-menu::backdrop { background: #10363f55; }
  .site-menu .menu-options { order: -1; }
  .site-menu :is(.menu-link, summary, .support-legal a) { min-height: 44px; }
  .site-menu :is(.menu-link, .support-legal a) { display: flex; align-items: center; }
  .site-menu .menu-link { margin-bottom: 3px; background: #f1f8f4; }
  .site-menu .menu-products h2 { margin-bottom: 7px; }
  .hero { gap: 19px; padding-block: 26px 28px; }
  .hero h1 { margin-block: 11px 13px; font-size: clamp(2.65rem, 11.5vw, 4.25rem); }
  .lead { font-size: 1rem; line-height: 1.55; }
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6px 10px; margin-top: 17px; }
  .hero .home-mobile-register { display: inline-flex; grid-column: 1 / -1; min-height: 48px; }
  .hero .actions a:not(.home-mobile-register) { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 2px; text-align: center; font-size: .9rem; }
  .hero .actions .button:not(.home-mobile-register) { background: #e8f5ee; color: var(--deep); border: 1px solid var(--line-accent); }
  .hero .dashboard { padding: 12px; border-radius: 14px; }
  .hero .dashboard-header { margin-bottom: 12px; }
  .hero .dashboard h2 { font-size: 1.4rem; }
  .hero .demo-preview-month { padding: 6px 8px; font-size: .8125rem; }
  .pricing, .tools-hero, .tool-section, .tools-security, .legal-page { padding-block: 26px 32px; }
  .tools-hero { grid-template-columns: minmax(0, 1fr); }
  .tool-example table { table-layout: fixed; }
  .tool-example :is(th, td) { overflow-wrap: anywhere; }
  .pricing h1, .tools-hero h1, .demo-intro h1 { font-size: clamp(2.35rem, 10vw, 3.4rem); }
  .billing span { min-height: 44px; display: grid; place-items: center; padding: 7px 10px; }
  .legal-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-tabs a, .legal-index a { display: flex; align-items: center; min-height: 44px; }
  .legal-document-body { overflow-wrap: anywhere; }
  .footer-inner { padding-block: 11px; font-size: .8125rem; }
  .footer-inner a { padding-block: 7px; }
}
