/* Accounting Service · homepage
   Archivo (variable: wght 100–900, wdth 62–125%), self-hosted. */
@font-face {
  font-family: "Archivo";
  src: url("archivo-e3a28eade2.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Ink: the navy of the brand, also the base of every neutral. */
  --ink: oklch(0.255 0.05 255);
  --ink-deep: oklch(0.2 0.045 255);
  --ink-2: oklch(0.41 0.035 255);
  --ink-3: oklch(0.49 0.03 255);
  --paper: oklch(0.985 0.005 250);
  --sheet: oklch(0.997 0.002 250);
  --tint: oklch(0.962 0.012 250);
  --rule: oklch(0.91 0.013 250);
  --rule-strong: oklch(0.84 0.02 250);

  --blue: oklch(0.53 0.16 255);
  --blue-strong: oklch(0.46 0.15 255);
  --blue-soft: oklch(0.945 0.03 255);
  --blue-on-ink: oklch(0.82 0.085 245);

  --on-ink: oklch(0.975 0.006 250);
  --on-ink-2: oklch(0.84 0.028 250);

  --wa: oklch(0.49 0.12 152);
  --wa-strong: oklch(0.43 0.11 152);
  --ok: oklch(0.47 0.11 155);
  --flag-bg: oklch(0.945 0.06 85);
  --flag-row: oklch(0.985 0.022 85);
  --flag-ink: oklch(0.44 0.1 60);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --lift: 0 1px 2px oklch(0.2 0.05 255 / 0.1), 0 14px 32px -16px oklch(0.2 0.05 255 / 0.28);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: oklch(0.78 0.03 250) var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
p, ul, ol, dl { margin: 0; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

::selection { background: oklch(0.86 0.08 250); color: var(--ink-deep); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.site-header :focus-visible,
.hero-copy :focus-visible,
.hero .actions :focus-visible,
.plan-featured :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible { outline-color: var(--blue-on-ink); }

section[id] { scroll-margin-top: 1rem; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -5rem; z-index: 100;
  padding: 0.75rem 1rem; border-radius: 10px;
  background: var(--on-ink); color: var(--ink); font-weight: 650; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.375rem;
  border: 1px solid transparent; border-radius: 10px;
  font: inherit; font-size: 1rem; font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 150ms ease,
              border-color 150ms ease, color 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; fill: currentColor; }
.btn-sm { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn-lg { min-height: 3.5rem; padding: 0.875rem 1.625rem; font-size: 1.0625rem; }
.btn-primary { background: var(--blue); color: var(--on-ink); }
.btn-secondary { background: var(--sheet); color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost { color: var(--on-ink); border-color: oklch(1 0 0 / 0.3); }
.btn-wa { background: var(--wa); color: var(--on-ink); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-strong); }
  .btn-secondary:hover { border-color: var(--ink-3); }
  .btn-ghost:hover { border-color: oklch(1 0 0 / 0.6); background: oklch(1 0 0 / 0.06); }
  .btn-wa:hover { background: var(--wa-strong); }
}

/* ----------------------------------------------------------------- header */
.site-header { background: var(--ink); color: var(--on-ink); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4.75rem;
}
.wordmark { display: grid; gap: 0.3rem; text-decoration: none; line-height: 1; }
.wm-name {
  font-stretch: 125%; font-weight: 800; font-size: 1.25rem; line-height: 1;
  letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap;
}
.wm-name b { font-weight: 800; color: var(--blue-on-ink); }
.wm-tag {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-ink-2);
}
.nav-links { display: flex; gap: 0.25rem; list-style: none; padding: 0; }
.nav-links a {
  display: block; padding: 0.625rem 0.75rem; border-radius: 8px;
  font-size: 0.9375rem; font-weight: 550; text-decoration: none; color: var(--on-ink-2);
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--on-ink); background: oklch(1 0 0 / 0.07); }
}

/* ------------------------------------------------------------------- hero */
.hero {
  --sheet-overhang: clamp(5rem, 12vw, 9rem);
  background: linear-gradient(var(--ink) 0 calc(100% - var(--sheet-overhang)), var(--paper) 0);
  color: var(--on-ink);
  padding-top: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 {
  font-stretch: 112%;
  font-weight: 760;
  font-size: clamp(2.375rem, 1.1rem + 4.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 span { color: var(--blue-on-ink); }
.hero-sub {
  display: grid;
  grid-template-columns: minmax(0, 38rem) auto;
  justify-content: space-between;
  align-items: end;
  gap: 1.75rem 3rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--on-ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.micro { margin-top: 0.875rem; font-size: 0.9375rem; color: var(--on-ink-2); }

/* The statement: the product doing its job. */
.sheet {
  margin: clamp(2.75rem, 6vw, 4.5rem) 0 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--sheet);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 1px 2px oklch(0.2 0.05 255 / 0.14),
              0 30px 60px -24px oklch(0.2 0.05 255 / 0.45);
}
.sheet-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 2px solid var(--ink);
}
.sheet-co { font-stretch: 112%; font-weight: 720; font-size: 1.125rem; line-height: 1.3; }
.sheet-meta { margin-top: 0.125rem; font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.sheet-tag {
  flex: none; padding: 0.2rem 0.7rem; border: 1px solid var(--rule-strong); border-radius: 999px;
  font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap;
}

.ledger {
  width: 100%; border-collapse: collapse;
  font-size: 0.9375rem; font-variant-numeric: tabular-nums lining-nums;
}
.ledger th {
  padding: 0.875rem 0.75rem 0.5rem; text-align: left;
  font-size: 0.75rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-3);
}
.ledger td { padding: 0.6875rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.ledger :is(th, td):first-child { padding-left: 0; }
.ledger :is(th, td):last-child { padding-right: 0; }
.ledger .num { text-align: right; white-space: nowrap; }
.ledger td.money { font-weight: 550; }
.ledger .in { color: var(--ok); }
.ledger td.date { color: var(--ink-3); white-space: nowrap; width: 5.5rem; }
.ledger td.c { width: 1%; white-space: nowrap; }
.ledger th:last-child { padding-left: 1.5rem; }
.ledger td.c { padding-left: 1.5rem; }
.ledger tr.flag td { background: var(--flag-row); }

.cat {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.65rem; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-strong);
  font-size: 0.8125rem; font-weight: 600; line-height: 1.35; white-space: nowrap;
}
.cat-flag { background: var(--flag-bg); color: var(--flag-ink); }
.cat-flag::before {
  content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor;
}

.sheet-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; margin-top: 1.25rem;
}
.recon { display: flex; flex-wrap: wrap; gap: 0.5rem 2.25rem; }
.recon div { display: grid; gap: 0.125rem; }
.recon dt { font-size: 0.8125rem; color: var(--ink-3); }
.recon dd { margin: 0; font-weight: 680; font-variant-numeric: tabular-nums; }
.stamp {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border: 2px solid var(--ok); border-radius: 8px; color: var(--ok);
  font-stretch: 112%; font-weight: 760; font-size: 0.875rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  transform: rotate(-2deg);
}
.stamp svg { width: 1.125rem; height: 1.125rem; }

/* One authored moment: categories file in, then the stamp lands. */
@media (prefers-reduced-motion: no-preference) {
  .ledger tbody .cat {
    animation: file-in 520ms var(--ease-out) both;
    animation-delay: calc(420ms + var(--i, 0) * 70ms);
  }
  .ledger tbody tr:nth-child(2) .cat { --i: 1; }
  .ledger tbody tr:nth-child(3) .cat { --i: 2; }
  .ledger tbody tr:nth-child(4) .cat { --i: 3; }
  .ledger tbody tr:nth-child(5) .cat { --i: 4; }
  .ledger tbody tr:nth-child(6) .cat { --i: 5; }
  .ledger tbody tr:nth-child(7) .cat { --i: 6; }
  .stamp { animation: stamp-in 240ms var(--ease-out) 1.08s both; }
}
@media (prefers-reduced-motion: reduce) {
  .ledger tbody .cat, .stamp { animation: fade-in 200ms ease both; }
}
@keyframes file-in {
  from { opacity: 0; clip-path: inset(0 100% 0 0 round 999px); transform: translateX(-0.375rem); }
  to   { opacity: 1; clip-path: inset(0 0 0 0 round 999px); transform: none; }
}
@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-2deg) scale(1.1); }
  to   { opacity: 1; transform: rotate(-2deg) scale(1); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------- sections */
.band { padding-block: clamp(4rem, 9vw, 7rem); }
.band-top { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.band-tint { background: var(--tint); }

.section-head { max-width: 42rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head h2, .about h2, .cta h2 {
  font-stretch: 110%; font-weight: 720;
  font-size: clamp(1.875rem, 1.25rem + 2.4vw, 2.75rem);
  line-height: 1.08; letter-spacing: -0.022em;
}
.section-head p { margin-top: 1rem; font-size: 1.125rem; color: var(--ink-2); }

/* How it works */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 2.5rem;
  list-style: none; padding: 0;
}
.steps li { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.step-n {
  display: block; margin-bottom: 1.125rem;
  font-stretch: 125%; font-weight: 800; font-size: 2.25rem; line-height: 1;
  color: var(--blue); font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: 0.5rem; font-size: 1.1875rem; font-weight: 680; line-height: 1.25; }
.steps p { font-size: 1rem; color: var(--ink-2); }

/* What you get */
.report {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center; gap: 1.5rem 4.5rem;
  padding-block: 2.25rem; border-top: 1px solid var(--rule-strong);
}
.report:last-child { border-bottom: 1px solid var(--rule-strong); }
.report h3 { margin-bottom: 0.5rem; font-stretch: 108%; font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.report p { max-width: 30rem; color: var(--ink-2); }
.doc {
  padding: 1.25rem 1.5rem 1rem; border-radius: 14px;
  background: var(--sheet); box-shadow: var(--lift);
  font-variant-numeric: tabular-nums lining-nums;
}
.doc-title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: 0.75rem; border-bottom: 2px solid var(--ink);
  font-stretch: 110%; font-weight: 720;
}
.doc-title span { font-stretch: 100%; font-weight: 500; font-size: 0.875rem; color: var(--ink-3); }
.doc-lines div, .doc-tx li {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 0.6rem; border-bottom: 1px solid var(--rule);
}
.doc-lines dt { color: var(--ink-2); }
.doc-lines dd { margin: 0; font-weight: 620; }
.doc-lines div:last-child, .doc-tx li:last-child { border-bottom: 0; }
.doc-lines .total { margin-top: 0.25rem; padding-bottom: 0.45rem; border-bottom: 3px double var(--ink) !important; }
.doc-lines .total dt, .doc-lines .total dd { color: var(--ink); font-weight: 760; }
.doc-tx { list-style: none; padding: 0; }
.fineprint { margin-top: 1.5rem; font-size: 0.875rem; color: var(--ink-3); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.plan {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 2rem; border: 1px solid var(--rule-strong); border-radius: 16px;
  background: var(--sheet);
}
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.plan h3 { font-stretch: 110%; font-size: 1.25rem; font-weight: 720; }
.price { display: flex; align-items: baseline; gap: 0.25rem; margin-top: 0.75rem; }
.amt {
  font-stretch: 116%; font-weight: 780; font-size: 3rem; line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.per { color: var(--ink-3); }
.limit { margin-bottom: 1.75rem; color: var(--ink-2); }
.plan .btn { margin-top: auto; }
.plan-featured {
  background: var(--ink); color: var(--on-ink); border-color: var(--ink);
  box-shadow: 0 24px 44px -20px oklch(0.2 0.05 255 / 0.6);
}
.plan-featured .per, .plan-featured .limit { color: var(--on-ink-2); }
.badge {
  padding: 0.25rem 0.7rem; border-radius: 999px;
  background: oklch(0.38 0.08 255); color: var(--on-ink);
  font-size: 0.8125rem; font-weight: 650; white-space: nowrap;
}
.included {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 1rem 3rem;
  margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--rule-strong);
}
.included h3 { font-size: 1.0625rem; font-weight: 720; white-space: nowrap; }
.checks { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; list-style: none; padding: 0; }
.checks li { display: flex; align-items: center; gap: 0.5rem; }
.checks svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--blue); }
.price-note { max-width: 46rem; margin-top: 1.75rem; font-size: 0.9375rem; color: var(--ink-3); }

/* About */
.about {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center; gap: 2.5rem 5rem;
}
.about p { max-width: 36rem; margin-top: 1rem; color: var(--ink-2); }
.about .btn { margin-top: 2rem; }
.note-panel {
  padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: 16px;
  background: var(--sheet); box-shadow: var(--lift);
}
.note-panel h3 { margin-bottom: 0.75rem; font-stretch: 108%; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.note-panel p { color: var(--ink-2); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3.5rem; }
.qa { padding-block: 1.5rem 1.75rem; border-top: 1px solid var(--rule-strong); }
.qa h3 { margin-bottom: 0.5rem; font-size: 1.125rem; font-weight: 680; line-height: 1.3; }
.qa p { color: var(--ink-2); }

/* Closing call to action */
.cta { padding-block: clamp(4rem, 9vw, 6.5rem); background: var(--ink); color: var(--on-ink); }
.cta .wrap { display: grid; justify-items: start; gap: 1.25rem; }
.cta h2 { max-width: 18ch; font-size: clamp(2rem, 1.25rem + 3vw, 3.25rem); }
.cta p { max-width: 36rem; font-size: 1.125rem; color: var(--on-ink-2); }
.cta .btn { margin-top: 0.75rem; }

/* Footer */
.site-footer { padding-block: 2.75rem 3.25rem; background: var(--ink-deep); color: var(--on-ink-2); }
.site-footer .wm-name { color: var(--on-ink); font-size: 1.0625rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.5rem 3rem; }
.fine { margin-top: 0.5rem; font-size: 0.875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; padding: 0; }
.footer-links a { display: inline-block; padding-block: 0.5rem; font-size: 0.9375rem; text-decoration: none; color: var(--on-ink-2); }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--on-ink); text-decoration: underline; }
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; z-index: 50;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--wa); color: var(--on-ink);
  box-shadow: 0 2px 4px oklch(0.2 0.05 255 / 0.2), 0 12px 24px -8px oklch(0.2 0.05 255 / 0.5);
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.wa-float:active { transform: scale(0.95); }
.wa-float svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { background: var(--wa-strong); }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 60rem) {
  .nav-links { display: none; }
  .hero-sub { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report, .about { grid-template-columns: minmax(0, 1fr); }
  .report { gap: 1.25rem; }
}
@media (max-width: 52rem) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 30rem; }
  .included { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .nav { min-height: 4rem; }
  .wm-name { font-size: 1.0625rem; }
  .wm-tag { font-size: 0.625rem; }
  .btn-sm .wa-label { display: none; }
  .btn-sm { width: 2.75rem; padding: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }

  /* The statement reflows: one transaction per row, two lines each. */
  .sheet-head { flex-wrap: wrap; }
  .ledger, .ledger tbody { display: block; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "desc amt" "date cat";
    gap: 0.3rem 0.75rem; padding-block: 0.75rem; border-bottom: 1px solid var(--rule);
  }
  .ledger td { display: block; padding: 0 !important; border: 0; width: auto !important; }
  .ledger td.desc { grid-area: desc; font-weight: 550; }
  .ledger td.money { grid-area: amt; }
  .ledger td.date { grid-area: date; align-self: center; font-size: 0.8125rem; }
  .ledger td.c { grid-area: cat; justify-self: end; }
  .ledger tr.flag { margin-inline: -0.75rem; padding-inline: 0.75rem; background: var(--flag-row); }
  .ledger tr.flag td { background: none; }
  .recon { gap: 0.5rem 1.5rem; }

  .plan { padding: 1.5rem; }
  .site-footer { padding-bottom: 6.5rem; }
}

/* 404 */
.notfound { min-height: calc(100svh - 4.75rem); display: grid; align-content: center; }
.notfound h1 {
  max-width: 16ch; font-stretch: 112%; font-weight: 760; line-height: 1.05; letter-spacing: -0.025em;
  font-size: clamp(2.25rem, 1.4rem + 3.5vw, 3.75rem);
}
