:root {
  --bg: #ffffff;
  --bg-alt: #f6f8f8;
  --card: #ffffff;
  --text: #0f1f1d;
  --muted: #5b6b69;
  --line: #dfe6e5;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #e6f4f2;
  --pos: #15803d;
  --neg: #b42318;
  --warn-bg: #fff7e6;
  --warn-ink: #8a5300;
  --err-bg: #fdecea;
  --ok-bg: #e9f7ef;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 31, 29, .06), 0 8px 24px rgba(15, 31, 29, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1413; --bg-alt: #111b1a; --card: #142120; --text: #e6efed; --muted: #9db0ad;
    --line: #263937; --accent: #2bb3a3; --accent-ink: #04201d; --accent-soft: #123532;
    --pos: #4ade80; --neg: #f87171; --warn-bg: #332709; --warn-ink: #f5c26b; --err-bg: #3a1513; --ok-bg: #11301f;
    --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: .3em 0 .4em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 .6em; }
h3 { font-size: 1.1rem; margin: 0 0 .4em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hl { color: var(--accent); }

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.badge { font-size: .78rem; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.pro { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 720px) { .nav { display: none; } .badge { margin-left: auto; } }

.hero { padding: 48px 0 32px; background: radial-gradient(1200px 400px at 50% -100px, var(--accent-soft), transparent); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.lead.small { font-size: 1rem; }

.dropzone { margin: 28px 0 12px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 18px; background: var(--card); padding: 36px 20px; text-align: center; cursor: pointer; transition: .15s; color: var(--accent); box-shadow: var(--shadow); }
.dropzone:hover, .dropzone.drag, .dropzone:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.dz-title { color: var(--text); font-size: 1.15rem; font-weight: 600; margin: 10px 0 2px; }
.dz-sub { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9rem; margin: 14px 0 0; }

.status { padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); margin: 8px 0; }
.status.error { background: var(--err-bg); color: var(--neg); }
.status.warn { background: var(--warn-bg); color: var(--warn-ink); }
.status.ok { background: var(--ok-bg); color: var(--pos); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: .12s; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; font-size: .88rem; }
.btn.block { width: 100%; }
.btn.locked { opacity: .75; }
.pro-tag { font-size: .7rem; background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 1px 6px; }

.review { padding: 24px 0 48px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.review-head h2 { margin-bottom: 0; }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
@media (max-width: 720px) { .summary { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat-label { display: block; color: var(--muted); font-size: .82rem; }
.stat-value { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.warnings { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--radius); padding: 10px 14px 10px 32px; margin: 0 0 16px; font-size: .92rem; }
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 960px) { .review-grid { grid-template-columns: 1fr; } .export-card { order: -1; position: static; } }
@media (max-width: 600px) { .in-concept { min-width: 170px; } .table-scroll { max-height: 60vh; } }
.table-card, .export-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.table-scroll { overflow: auto; max-height: 70vh; margin-bottom: 10px; }
table.tx { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.tx th { position: sticky; top: 0; background: var(--card); text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; padding: 6px; border-bottom: 1px solid var(--line); z-index: 1; }
.tx td { padding: 2px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tx tr.mismatch td { background: var(--err-bg); }
.tx tr.guess td { background: var(--warn-bg); }
.tx input, .tx select { width: 100%; border: 1px solid transparent; background: transparent; color: inherit; font: inherit; padding: 5px 6px; border-radius: 6px; }
.tx input:hover, .tx select:hover { border-color: var(--line); }
.tx input:focus, .tx select:focus { border-color: var(--accent); outline: none; background: var(--card); }
.in-date { min-width: 92px; } .in-concept { min-width: 240px; } .in-amount { text-align: right; min-width: 96px; font-weight: 600; }
.in-amount.neg { color: var(--neg); } .in-amount.pos { color: var(--pos); }
.in-comun { min-width: 70px; max-width: 120px; font-size: .8rem; }
.num { text-align: right; white-space: nowrap; } .center { text-align: center; }
.ok { color: var(--pos); font-weight: 700; } .bad { color: var(--neg); font-weight: 700; } .warn { color: var(--warn-ink); font-weight: 700; } .na { color: var(--muted); }
.actions { white-space: nowrap; }
.icon-btn { border: 0; background: transparent; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.icon-btn:hover { background: var(--bg-alt); color: var(--text); }
@media (max-width: 720px) { .col-comun { display: none; } }

.export-card { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; }
.export-card label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.export-card input, .export-card select, .license-form input { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.note { font-size: .82rem; color: var(--muted); margin: 0; }

.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 8px; }
.steps li strong { display: block; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature p { color: var(--muted); margin: 0; }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 20px; margin: 20px 0; }
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan ul { padding-left: 18px; margin: 4px 0 12px; color: var(--muted); flex: 1; }
.price { font-size: 2rem; font-weight: 700; margin: 0; }
.price span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.license-form { max-width: 460px; }
.license-form label { font-weight: 600; display: block; margin-bottom: 6px; }
.row-input { display: flex; gap: 8px; } .row-input input { flex: 1; min-width: 0; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; max-width: 820px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-inner nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); }

.dialog { border: 1px solid var(--line); border-radius: 16px; padding: 22px; max-width: 420px; width: calc(100% - 32px); background: var(--card); color: var(--text); }
.dialog::backdrop { background: rgba(0, 0, 0, .45); }
.dialog ul { color: var(--muted); padding-left: 18px; }
.dialog .btn { margin-top: 8px; }
.soon { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: .92rem; }
.soon p { margin: 0; }

/* Content pages */
.prose { max-width: 780px; padding: 40px 16px 64px; margin: 0 auto; }
.prose h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--text); }
.prose code, .prose pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; }
.prose pre { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.cta-box { background: var(--accent-soft); border-radius: 14px; padding: 18px 20px; margin: 28px 0; }
.cta-box p { margin: 0 0 10px; }
.pending { background: var(--warn-bg); color: var(--warn-ink); padding: 2px 6px; border-radius: 6px; }
.bank-list { columns: 2; padding-left: 18px; }
@media (max-width: 600px) { .bank-list { columns: 1; } }
