/* DebitCredit: Ink on Paper. Fonts are hosted on this site (see fonts/README.txt). */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/newsreader-latin.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/outfit-latin.woff2) format('woff2'); }

:root {
  --paper: #f8f7f3;
  --card: #ffffff;
  --ink: #16202a;
  --slate: #44505c;
  --teal: #1b6b60;
  --teal-deep: #14554c;
  --teal-tint: #e3efec;
  --teal-light: #8fd3c4;
  --line: #e2e0d9;
  --red: #b3402f;
  --amber: #d49a1a;
  /* legacy names used by the tools and older rules */
  --navy: var(--ink);
  --navy-2: #3a4856;
  --accent: var(--teal);
  --accent-dark: var(--teal-deep);
  --bg: var(--paper);
  --bg-alt: #f1efe9;
  --text: var(--slate);
  --muted: #5f6a75;
  --border: var(--line);
  --radius: 14px;
  --serif: 'Newsreader', 'Sitka Heading', Georgia, 'Times New Roman', serif;
  --logo: 'Outfit', 'Century Gothic', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
a { color: var(--teal); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; color: var(--ink); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--teal); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

/* brand: live-text version of the logo */
.brand { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; font-size: 1.45rem; line-height: 1; color: var(--ink); }
.brand-mark, .brand-name { font-family: var(--logo); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.brand-mark { display: inline-flex; align-items: center; }
.brand-mark i { display: inline-block; width: .09em; height: .95em; background: var(--teal); margin: 0 .22em; border-radius: .03em; }
.brand-name em { font-style: normal; color: var(--teal); }
.brand-tag { font: 600 .68rem/1 "Segoe UI", Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); border-left: 1px solid var(--line); padding-left: .9em; margin-left: .35em; }
.on-dark.brand .brand-mark, .on-dark.brand .brand-name, .on-dark .brand-mark, .on-dark .brand-name { color: #fff; }
.on-dark .brand-name em { color: var(--teal-light); }
.on-dark .brand-mark i { background: var(--teal-light); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { color: var(--slate); text-decoration: none; font-weight: 500; font-size: .95rem; }
nav a:hover { color: var(--teal); }
nav a.btn, nav a.btn:hover { color: #fff; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* buttons: ink is the main button, teal outline is secondary */
.btn { display: inline-block; background: var(--ink); color: #fff !important; padding: 12px 22px; border-radius: 10px; border: 0; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--teal-deep); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-ghost { background: #fff; color: var(--teal) !important; border: 1.5px solid var(--teal); padding: 10.5px 20.5px; }
.btn-ghost:hover { background: var(--teal-tint); color: var(--teal-deep) !important; }

/* hero */
.hero { background: var(--paper); color: var(--text); padding: 72px 0 80px; border-bottom: 1px solid var(--line); }
.hero h1 { color: var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; color: var(--teal); font-weight: 700; margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); flex: none; }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--slate); max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--slate); font-size: .92rem; }
.trust li::before { content: "\2713\00a0"; color: var(--teal); font-weight: 700; }

.ledger { background: var(--card); color: var(--text); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px -28px rgba(22,32,42,.22); }
.ledger-title { font-weight: 600; color: var(--ink); margin-bottom: 10px; font-size: .92rem; }
.ledger table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { padding: 9px 6px; text-align: right; border-bottom: 1px solid #efede7; font-size: .95rem; }
.ledger th:first-child, .ledger td:first-child { text-align: left; }
.ledger th { color: #7b8691; font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; border-bottom-color: var(--line); }
.ledger .indent { padding-left: 22px; }
.ledger tfoot td { font-weight: 700; color: var(--ink); border-top: 2px solid var(--ink); border-bottom: 0; }
.balanced { display: inline-block; margin-top: 14px; background: var(--teal-tint); color: var(--teal); font-weight: 700; font-size: .8rem; padding: 5px 12px; border-radius: 999px; }

/* sections */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-sub { color: var(--muted); max-width: 62ch; margin: 0 0 32px; font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabs button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 1rem; cursor: pointer; color: var(--slate); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { padding-left: 26px; position: relative; margin: 8px 0; }
.check li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.note { color: var(--muted); font-size: .9rem; margin-top: 18px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { counter-increment: s; border-top: 3px solid var(--teal); padding-top: 14px; }
.steps li::before { content: "0" counter(s); font-family: var(--serif); font-size: 1.7rem; font-weight: 650; color: var(--teal); font-variant-numeric: lining-nums; }
.steps p { color: var(--muted); margin: 0; }

.currency { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
select, input, textarea { font: inherit; padding: 10px 12px; border: 1px solid #cfccc3; border-radius: 10px; width: 100%; background: #fff; color: var(--ink); }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.currency select { width: auto; }
.price .amount { font-family: var(--serif); font-size: 2.3rem; font-weight: 650; color: var(--ink); margin: 8px 0 16px; }
.price .amount small { font-family: "Segoe UI", Arial, sans-serif; font-size: 1rem; font-weight: 400; color: var(--muted); }
.price .btn { margin-top: 18px; }
.price.featured { border: 2px solid var(--teal); }
.badge { position: absolute; top: -12px; right: 20px; background: var(--teal); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }
summary:hover { color: var(--teal); }
details p { color: var(--muted); margin: 10px 0 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 14px; font-size: .92rem; }
form label > * { margin-top: 6px; font-weight: 400; }
.form-status { margin: 12px 0 0; font-weight: 600; color: var(--teal); }

.site-footer { background: var(--ink); color: #c9d3dd; padding: 36px 0; text-align: center; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--teal-light); }
.site-footer .brand { margin-bottom: 14px; font-size: 1.3rem; }
.small { font-size: .85rem; }

@media (max-width: 820px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .menu-btn { display: block; }
  nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 16px; border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  .brand { font-size: 1.25rem; }
}

.region { display:block; text-decoration:none; color:inherit; transition:border-color .15s, transform .15s; }
.region:hover { border-color: var(--teal); transform: translateY(-2px); }
.region .more { display:inline-block; margin-top:14px; color:var(--teal); font-weight:600; }
.hero-sm { padding: 56px 0; }
.hero-sm .hero-grid { grid-template-columns: 1fr; }
.check.cols { columns: 2; column-gap: 40px; }
@media (max-width: 820px) { .check.cols { columns: 1; } }

.dash-grid { display:grid; grid-template-columns: 1fr 1fr; gap:48px; align-items:center; }
.dash { background:#fff; border:1px solid var(--line); border-top:4px solid var(--teal); border-radius:20px; padding:20px; box-shadow:0 30px 60px -28px rgba(22,32,42,.2); }
.dash-head { display:flex; justify-content:space-between; color:var(--ink); margin-bottom:14px; }
.dash-head span { color:var(--muted); font-size:.8rem; }
.kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; }
.kpi { background:var(--bg-alt); border-radius:10px; padding:10px; }
.kpi small { display:block; color:var(--muted); font-size:.75rem; }
.kpi b { display:block; font-family:var(--serif); font-size:1.3rem; color:var(--ink); }
.kpi em { font-style:normal; font-size:.78rem; font-weight:600; }
.kpi .up { color:var(--teal); } .kpi .down { color:var(--red); }
.bars { display:flex; align-items:flex-end; gap:12px; height:130px; border-bottom:1px solid var(--line); padding:0 6px; }
.bars span { flex:1; background:var(--teal); border-radius:4px 4px 0 0; }
.bar-labels { display:flex; gap:12px; padding:6px 6px 0; color:var(--muted); font-size:.75rem; }
.bar-labels span { flex:1; text-align:center; }
@media (max-width:820px){ .dash-grid { grid-template-columns:1fr; } }

.compare { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.compare .col { border-radius:var(--radius); padding:24px; border:1px solid var(--line); }
.compare .col ul { margin:0; padding-left:20px; }
.compare .col li { margin:8px 0; }
.compare .old { background:var(--bg-alt); color:var(--muted); }
.compare .new { background:#fff; border:2px solid var(--teal); }
.compare .new li::marker { color:var(--teal); }
@media (max-width:820px){ .compare { grid-template-columns:1fr; } }

.case { margin-top:18px; border:1px dashed #cfccc3; border-radius:var(--radius); padding:14px 16px; color:var(--muted); font-size:.92rem; }

/* Free tool */
.trust-line { color:var(--slate); margin:12px 0 0; }
.tool-drop { border:2px dashed #cfccc3; border-radius:var(--radius); padding:28px; text-align:center; background:var(--bg-alt); margin-bottom:16px; }
.tool-drop.over { border-color:var(--teal); background:var(--teal-tint); }
.tool-drop input { margin-bottom:10px; background:#fff; }
.tool-error { background:#fdecea; color:#8a2b1e; border:1px solid #f3b9b0; border-radius:10px; padding:10px 14px; font-weight:600; }
.mapping { margin-top:16px; }
.mapping label { display:block; margin:10px 0; font-weight:600; font-size:.92rem; }
.grid4 { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin:18px 0; }
.grid4 .kpi { background:#fff; border:1px solid var(--line); padding:14px; }
.grid4 .kpi b { font-size:1.4rem; }
.result-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; margin-bottom:20px; }
.result-grid > * { min-width:0; }
.card { min-width:0; }
.card .mini { display:block; overflow-x:auto; }
.hbar { display:grid; grid-template-columns:90px 1fr 80px; gap:8px; align-items:center; margin:8px 0; font-size:.88rem; }
.hbar-track { background:var(--bg-alt); border-radius:4px; height:12px; overflow:hidden; }
.hbar-fill { background:var(--teal); height:100%; }
.hbar-fill.bad { background:var(--red); }
.hbar-val { text-align:right; font-variant-numeric:tabular-nums; }
.findings { list-style:none; padding:0; margin:0; }
.findings li { padding:10px 12px; border-left:4px solid var(--line); background:var(--bg-alt); border-radius:0 10px 10px 0; margin:8px 0; }
.findings li b, .findings li span { display:block; }
.findings li span { color:var(--muted); font-size:.9rem; }
.findings .sev-high { border-left-color:var(--red); }
.findings .sev-medium { border-left-color:var(--amber); }
.findings .sev-low { border-left-color:var(--navy-2); }
.findings .sev-info { border-left-color:var(--muted); }
.cust { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--line); font-size:.92rem; }
.check-row { display:flex; gap:10px; align-items:flex-start; font-weight:400 !important; }
.check-row input { width:auto; margin-top:4px; }
.card .bars { height:140px; }
@media (max-width:820px){ .result-grid { grid-template-columns:minmax(0,1fr); } }
.agree { background:var(--bg-alt); border:1px solid var(--line); border-radius:var(--radius); padding:14px; margin-bottom:14px; }
.tool-drop.disabled { opacity:.55; }

/* Tools hub, checklist, runway */
.card.soon { opacity:.65; }
.card.soon .more { display:inline-block; margin-top:14px; color:var(--muted); font-weight:600; }
.cl-top { display:grid; gap:14px; margin-bottom:20px; }
.cl-top label { font-weight:600; font-size:.92rem; }
.progress-wrap { display:flex; align-items:center; gap:12px; }
.progress { flex:1; height:12px; background:var(--bg-alt); border-radius:999px; overflow:hidden; border:1px solid var(--line); }
.progress div { height:100%; width:0; background:var(--teal); transition:width .2s; }
.cl-actions { display:flex; gap:10px; }
.cl-group { margin-bottom:22px; }
.cl-group h3 { border-bottom:2px solid var(--teal); padding-bottom:6px; }
.cl-item { padding:6px 0; }
.rw-headline { font-family:var(--serif); font-size:1.5rem; font-weight:650; color:var(--ink); margin:0 0 6px; }
.card label { display:block; font-weight:600; font-size:.92rem; margin-bottom:12px; }
.card label > * { margin-top:6px; font-weight:400; }
@media print { .site-header, .site-footer, .hero, .cl-actions, .section.alt, #cl-country, .cl-top label { display:none !important; } .section { padding:0; } }

.mini { width:100%; border-collapse:collapse; font-size:.9rem; margin-top:4px; }
.mini th, .mini td { text-align:left; padding:7px 6px; border-bottom:1px solid var(--line); }
.mini th { color:var(--muted); font-size:.78rem; text-transform:uppercase; }
.mini td:not(:first-child), .mini th:not(:first-child) { text-align:right; }

/* Odoo page: fixed three-column card grid */
.cards.cols3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .cards.cols3 { grid-template-columns: 1fr; } }

/* ---- home hero: ledger background and live example feed ---- */
.hero-home { position: relative; overflow: hidden; }
.hero-home > .container { position: relative; z-index: 2; }
.hero-home .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-home .hb-rules { position: absolute; left: 0; right: 0; top: -88px; bottom: -88px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='44'%3E%3Cline x1='0' y1='43.5' x2='88' y2='43.5' stroke='%23E2E0D9' stroke-width='1'/%3E%3C/svg%3E"); background-repeat: repeat; opacity: .75; animation: hb-drift 16s linear infinite; }
@keyframes hb-drift { from { transform: translateY(0); } to { transform: translateY(-44px); } }
.hero-home .hb-margin { position: absolute; top: 0; bottom: 0; left: calc(50% - 560px); width: 1px; background: #E2E0D9; opacity: .8; }
.hero-home .hb-margin::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: #E2E0D9; opacity: .7; }
.hero-home .hb-fig { position: absolute; font-family: "Outfit", "Segoe UI", Arial, sans-serif; font-weight: 500; color: var(--teal); opacity: 0; white-space: nowrap; animation: hb-float 20s ease-in-out infinite; }
@keyframes hb-float { 0% { opacity: 0; transform: translateY(60px); } 12% { opacity: .15; } 50% { opacity: .15; } 88% { opacity: .15; } 100% { opacity: 0; transform: translateY(-90px); } }
.hero-home .hb1 { left: 6%; top: 62%; font-size: .95rem; }
.hero-home .hb2 { left: 30%; top: 80%; font-size: .85rem; animation-delay: -4s; animation-duration: 24s; }
.hero-home .hb3 { left: 44%; top: 18%; font-size: 1.05rem; animation-delay: -9s; animation-duration: 22s; }
.hero-home .hb4 { left: 58%; top: 70%; font-size: .9rem; animation-delay: -13s; }
.hero-home .hb5 { left: 78%; top: 14%; font-size: .95rem; animation-delay: -6s; animation-duration: 26s; }
.hero-home .hb6 { left: 90%; top: 56%; font-size: .85rem; animation-delay: -16s; animation-duration: 21s; }
.card-feed { padding-bottom: 18px; }
.card-feed .fd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-feed .working { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: var(--teal-deep, #14554c); white-space: nowrap; }
.card-feed .working i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; animation: fd-pulse 1.4s ease-in-out infinite; }
.card-feed .working.still i { animation: none; }
@keyframes fd-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .45; } }
.card-feed .feed-cols, .card-feed .feed-row { display: grid; grid-template-columns: 1.35fr .8fr 1.35fr; gap: 10px; align-items: center; }
.card-feed .feed-cols { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #6a7480; padding: 12px 4px 8px; border-bottom: 1px solid var(--line); }
.card-feed .feed-cols span:nth-child(2), .card-feed .f-amt { text-align: right; }
.card-feed .feed-cols span:nth-child(3), .card-feed .f-state { text-align: right; }
.card-feed .feed { min-height: 176px; margin: 0; }
.card-feed .feed-row { padding: 10px 4px; border-bottom: 1px solid #efede6; font-size: .92rem; }
.card-feed .feed-row.enter { animation: fd-in .5s ease both; }
@keyframes fd-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.card-feed .feed-row:nth-child(4) { opacity: .55; }
.card-feed .f-name { color: var(--ink); }
.card-feed .f-amt { font-variant-numeric: tabular-nums; color: var(--slate, #44505c); }
.card-feed .pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .76rem; font-weight: 600; white-space: nowrap; transition: background .3s, color .3s; }
.card-feed .pill-wait { background: #ecebe6; color: #44505c; }
.card-feed .pill-wait::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: fd-dots 1.2s steps(4, end) infinite; }
@keyframes fd-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } 100% { content: ""; } }
.card-feed .pill-auto { background: var(--teal-tint, #e3efec); color: #14554c; }
.card-feed .pill-review { background: #f6e7bd; color: #7a5a0c; }
.card-feed .counts { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: .8rem; color: #44505c; }
.card-feed .counts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.card-feed .ex-note { margin: 6px 0 0; font-size: .8rem; color: #44505c; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .hero-home .hb-rules, .hero-home .hb-fig, .card-feed .feed-row.enter, .card-feed .working i, .card-feed .pill-wait::after { animation: none !important; }
  .hero-home .hb-fig { opacity: .12; }
}
@media (max-width: 760px) {
  .hero-home .hb-margin, .hero-home .hb2, .hero-home .hb5 { display: none; }
  .card-feed .feed-cols, .card-feed .feed-row { grid-template-columns: 1.2fr .75fr 1.4fr; gap: 6px; }
  .card-feed .feed-row { font-size: .85rem; }
}