:root {
  --paper: #FBFAF7;        /* near-white, slightly warm so the photo doesn't look pasted on */
  --ink: #1C2333;          /* deep slate */
  --ink-soft: #4B5568;
  --green: #0F766E;        /* teal: actions, positive numbers, card shadows */
  --green-deep: #0B5C56;
  --brick: #0F766E;        /* buttons */
  --brick-deep: #0B5C56;   /* button hover */
  --amber: #C9A227;        /* gold: chat button only */
  --rule: #D5D8DE;
  --rule-soft: #E8EAEE;
  --white: #FFFFFF;
  --display: "Bricolage Grotesque", "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.hp { position: absolute; left: -9999px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: .7rem 1.15rem; border-radius: 8px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap;
}
.btn-solid { background: var(--brick); color: var(--white); border-color: var(--brick); }
.btn-solid:hover { background: var(--brick-deep); border-color: var(--brick-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1.0625rem; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.menu { display: flex; gap: 1.4rem; margin-left: auto; }
.menu a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.menu a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 1rem; }
.lang { color: var(--ink-soft); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--rule); }
@media (max-width: 860px) { .menu { display: none; } .top { gap: 1rem; } .top-actions { margin-left: auto; } .brand span { display: none; } }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter) 3rem;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } .portrait { max-width: 340px; } }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--green); }
.portrait figcaption { display: flex; flex-direction: column; margin-top: 1.1rem; padding-left: .9rem; border-left: 3px solid var(--green); line-height: 1.4; }
.portrait figcaption strong { font-family: var(--display); font-size: 1.05rem; }
.portrait figcaption span { color: var(--ink-soft); font-size: .95rem; }
.kicker { color: var(--green-deep); font-weight: 600; margin-bottom: 1rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; margin: 1.5rem 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* The ledger card: the one memorable element */
.ledger {
  background: var(--white); border: 1.5px solid var(--ink); border-radius: 12px;
  box-shadow: 6px 6px 0 var(--green);
  font-size: .97rem; overflow: hidden;
}
.ledger-head { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1.1rem; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 600; }
.ledger-date { color: var(--ink-soft); font-weight: 500; font-size: .85rem; }
.ledger-body { padding: 1.1rem; display: grid; gap: .9rem; }
.ledger-body .q { font-weight: 600; padding-left: .9rem; border-left: 3px solid var(--ink); }
.ledger-body .a { color: var(--ink-soft); line-height: 1.55; }
.ledger-rows { display: grid; gap: .3rem; padding-top: .5rem; font-variant-numeric: tabular-nums; }
.ledger-rows > div { display: flex; justify-content: space-between; padding: .25rem 0; border-bottom: 1px dotted var(--rule); color: var(--ink-soft); }
.ledger-rows b { color: var(--ink); font-weight: 600; }
.ledger-rows .total { border-bottom: 3px double var(--ink); border-top: 1px solid var(--ink); margin-top: .25rem; color: var(--ink); font-weight: 600; }
.ledger-rows .total b { color: var(--green-deep); }
.ledger-ask { display: flex; gap: .5rem; padding: .9rem 1.1rem; border-top: 1px solid var(--rule); background: var(--paper); }
.ledger-ask input { flex: 1; min-width: 0; font: inherit; padding: .6rem .75rem; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--white); }
.ledger-ask input:focus { border-color: var(--ink); outline: none; }
.ledger-note { padding: 0 1.1rem .8rem; background: var(--paper); font-size: .8rem; color: var(--ink-soft); }

/* Proof strip */
.proof {
  list-style: none; margin: 0 auto; padding: 1.25rem var(--gutter);
  max-width: var(--max); display: flex; flex-wrap: wrap; gap: .6rem 2.5rem;
  border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink);
  color: var(--ink-soft); font-weight: 500; font-size: .95rem;
}
.proof li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: .6rem; vertical-align: 1px; }

/* Sections */
.block { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.block + .block { border-top: 1px solid var(--rule-soft); }
.block-head { max-width: 40em; margin-bottom: 2.5rem; }
.intro { font-size: 1.15rem; color: var(--ink-soft); margin-top: 1rem; }

/* Product: ledger card leads, features beside it */
.product-grid { display: grid; grid-template-columns: minmax(300px, .9fr) 1.1fr; gap: 3rem 4rem; align-items: start; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.product-grid .ledger { position: sticky; top: 5.5rem; }
.features { display: grid; grid-template-columns: 1fr; gap: 1.75rem; margin: 0; }
.features dt { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin-bottom: .5rem; }
.features dd { margin: 0; color: var(--ink-soft); }

/* Services: the lead one is larger, the others sit beside it */
.services { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0; border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
.service { padding: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.service + .service { border-left: 1px solid var(--rule); }
@media (max-width: 900px) { .service + .service { border-left: 0; border-top: 1px solid var(--rule); } }
.service .tag { color: var(--green-deep); font-weight: 600; font-size: .9rem; }
.service h3 { font-size: 1.5rem; }
.service p { color: var(--ink-soft); flex: 1; }
.service a { font-weight: 600; }
.service.service-lead { background: var(--ink); color: var(--white); }
.service.service-lead .tag { color: #7FD6CC; }
.service.service-lead h3 { color: var(--white); }
.service.service-lead p { color: #C7CDD8; }
.service.service-lead a { color: #7FD6CC; }

/* Use cases */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
@media (max-width: 900px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cases { grid-template-columns: 1fr; } }
.case h3 { margin-bottom: .4rem; padding-top: .8rem; border-top: 2px solid var(--ink); }
.case p { color: var(--ink-soft); }
.other { margin-top: 4rem; display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem 4rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
@media (max-width: 800px) { .other { grid-template-columns: 1fr; } }
.other h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.other > div > p { color: var(--ink-soft); }
.other ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
@media (max-width: 560px) { .other ul { columns: 1; } }
.other li { break-inside: avoid; padding: .5rem 0; border-bottom: 1px dotted var(--rule); }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 2px solid var(--ink); position: relative; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--green); line-height: 1; display: block; margin-bottom: .6rem; }
.steps p { color: var(--ink-soft); margin-top: .4rem; }

/* About */
.about-body { max-width: 44em; font-size: 1.2rem; line-height: 1.6; }
.about-meta { margin-top: 1rem; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 48em; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 3px double var(--ink); }
.faq summary { cursor: pointer; padding: 1rem 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-weight: 500; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.2rem; color: var(--ink-soft); max-width: 40em; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }
.contact-copy p { color: var(--ink-soft); margin: 1rem 0 1.5rem; font-size: 1.15rem; }
.contact-alt { font-size: 1rem !important; margin-top: 2rem !important; }
.contact-form { display: grid; gap: 1rem; background: var(--white); border: 1.5px solid var(--ink); border-radius: 12px; padding: 1.5rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.contact-form input, .contact-form textarea { font: inherit; padding: .65rem .75rem; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--paper); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); outline: none; background: var(--white); }
.form-status { min-height: 1.4em; font-size: .95rem; color: var(--ink-soft); }
.form-status.ok { color: var(--green-deep); }
.form-status.err { color: #B4443A; }

/* Footer */
.foot { border-top: 1px solid var(--ink); }
.foot { max-width: var(--max); margin: 0 auto; padding: 2.5rem var(--gutter) 3rem; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; color: var(--ink-soft); font-size: .95rem; }
.foot strong { color: var(--ink); font-family: var(--display); }
.foot-right { text-align: right; }
@media (max-width: 560px) { .foot-right { text-align: left; } }

/* Chat widget */
.chat-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--amber); color: var(--ink); border: 0; border-radius: 999px;
  padding: .8rem 1.2rem; font: 600 1rem var(--body); cursor: pointer;
  box-shadow: 0 6px 20px rgba(28, 35, 51, .25);
}
.chat-fab:hover { background: #D9B23A; }
.chat {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 31;
  width: min(400px, calc(100vw - 2.5rem)); height: min(560px, calc(100vh - 2.5rem));
  display: flex; flex-direction: column;
  background: var(--white); border: 1.5px solid var(--ink); border-radius: 14px;
  box-shadow: 6px 6px 0 var(--green); overflow: hidden;
}
.chat[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 600; }
.chat-head button { background: none; border: 0; color: var(--paper); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 .25rem; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; font-size: .95rem; }
.msg { max-width: 88%; padding: .6rem .8rem; border-radius: 10px; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { background: var(--paper); border: 1px solid var(--rule-soft); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg.user { background: var(--ink); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 3px; }
.msg.typing { color: var(--ink-soft); font-style: italic; }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--rule); }
.chat-form input { flex: 1; min-width: 0; font: inherit; padding: .6rem .75rem; border: 1.5px solid var(--rule); border-radius: 8px; }
.chat-form input:focus { border-color: var(--ink); outline: none; }
.chat-note { padding: 0 .9rem .6rem; font-size: .78rem; color: var(--ink-soft); }

/* ---------- Additions: plans, packages, credentials, form select, chat chips ---------- */
.hero-fine { margin-top: 1rem; color: var(--ink-soft); font-size: .95rem; }
.block-head .kicker { margin-bottom: .6rem; }

/* Accounting plans */
.plans-head { max-width: 40em; margin: 4rem 0 1.75rem; }
.plans-head h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.plans-head p { color: var(--ink-soft); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--white); border: 1.5px solid var(--ink); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.plan h4 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin: 0; }
.plan .price { font-family: var(--display); font-size: 1.05rem; color: var(--ink-soft); padding-bottom: .75rem; border-bottom: 3px double var(--ink); }
.plan .price span { font-size: 1.6rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: .25rem; }
.plan .fit { color: var(--ink-soft); font-size: .95rem; }
.plan ul { margin: .25rem 0 0; padding: 0; list-style: none; display: grid; gap: .4rem; font-size: .95rem; }
.plan li { padding-left: 1.2rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.plan-lead { box-shadow: 6px 6px 0 var(--green); }
.plan-lead .price span { color: var(--green-deep); }
.plans-note { margin-top: 1.25rem; color: var(--ink-soft); font-size: .95rem; max-width: 52em; }

/* Packaged builds */
.packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 800px) { .packages { grid-template-columns: 1fr; } }
.pkg { border: 1.5px solid var(--ink); border-radius: 12px; padding: 1.5rem; background: var(--white); display: flex; flex-direction: column; gap: .6rem; }
.pkg .tag { color: var(--green-deep); font-weight: 600; font-size: .9rem; }
.pkg h3 { font-size: 1.4rem; }
.pkg-body { color: var(--ink-soft); flex: 1; }
.pkg-meta { margin: .5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); padding: .75rem 0; }
.pkg-meta dt { font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.pkg-meta dd { margin: .1rem 0 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pkg-ask { align-self: flex-start; margin-top: .25rem; background: none; border: 0; padding: 0; color: var(--green-deep); font: 600 1rem var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pkg-ask:hover { color: var(--green); }
.pkg-custom { margin-top: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding: 1.5rem; background: var(--ink); color: var(--paper); border-radius: 12px; }
.pkg-custom h3 { color: var(--white); font-size: 1.35rem; margin-bottom: .35rem; }
.pkg-custom p { color: #C7CDD8; max-width: 40em; }
.pkg-custom .btn-solid { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.pkg-custom .btn-solid:hover { background: #D9B23A; border-color: #D9B23A; color: var(--ink); }
.pkg-note { margin-top: 1.25rem; color: var(--ink-soft); font-size: .95rem; max-width: 52em; }

/* About: credentials beside the paragraph */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4rem; align-items: start; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.creds { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.creds li { padding: .7rem 0; border-bottom: 1px dotted var(--rule); font-size: .98rem; }

/* Contact form select */
.contact-form select { font: inherit; padding: .65rem .75rem; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); }
.contact-form select:focus { border-color: var(--ink); outline: none; background: var(--white); }

/* Chat starters */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .7rem; font: 500 .85rem var(--body); color: var(--ink); cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--ink); }

/* Small screens: let long buttons wrap instead of widening the layout */
.hero-copy { min-width: 0; }
@media (max-width: 800px) { .hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; }
  .cta-row .btn, .contact-copy .btn { width: 100%; }
  .pkg-meta { grid-template-columns: 1fr 1fr; }
  .pkg-custom { padding: 1.25rem; }
  .pkg-custom .btn { width: 100%; }
  .chat-fab { right: .75rem; bottom: .75rem; padding: .7rem 1rem; font-size: .95rem; }
}

/* Plan tiers */
.plan .price span { font-size: 1.4rem; }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; border-bottom: 1px solid var(--rule); padding-bottom: .75rem; }
.tiers li { display: flex; justify-content: space-between; font-size: .95rem; color: var(--ink-soft); }
.tiers li b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tier-help { margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; font-size: .95rem; color: var(--ink-soft); display: grid; gap: .5rem; }
.tier-help b { color: var(--ink); }
.tiers li { padding-left: 0; }
.tiers li::before { display: none; }
