/* ==========================================================================
   ExactMark · Accountants & tax advisers
   Light mode · ledger green · Manrope headings / Inter body
   ========================================================================== */

/* 1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #f3f8f4;
  --surface: #ffffff;
  --text: #12211a;
  --muted: #5c6b62;
  --line: #d6e2da;
  --accent: #1f7a4d;
  --accent-deep: #175f3b;
  --accent-soft: rgba(31, 122, 77, .12);
  --ink-2: #24303a;
  --fig: #cdd9d1;
  --fig-strong: #a4b9ad;
  --radius: 6px;
  --wrap: 1120px;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow: 0 24px 48px -28px rgba(18, 33, 26, .35);
}

/* 2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--text);
  letter-spacing: -.015em;
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
}
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* 3. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 248, 244, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.brand img { width: 26px; height: 26px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--accent); }

/* 4. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.text-link { font-weight: 600; color: var(--accent); }

/* 5. Hero (split: copy left, visual right)
   -------------------------------------------------------------------------- */
.hero { padding: 76px 0 72px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 28px 0 18px; }
.trust-line { display: flex; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin: 0; }
.trust-line span + span::before { content: "·"; margin: 0 10px; color: var(--accent); }

/* 6. Hero visual: ledger, recipient chips, match card
   -------------------------------------------------------------------------- */
.hero-visual { position: relative; padding-bottom: 176px; }
.ledger-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 22px 24px 20px;
  overflow: hidden;
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--text);
}
.ledger-title { font-family: var(--font-head); font-weight: 700; font-size: .98rem; }
.ledger-tag { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ledger { margin-top: 4px; font-size: .86rem; font-variant-numeric: tabular-nums; }
.ledger-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr .7fr;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row span { color: var(--ink-2); }
.ledger-cols { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 6px; }
.ledger-cols span { color: var(--muted); }
.ledger-cols span:not(:first-child) { text-align: right; }
.fig { display: block; height: 9px; border-radius: 2px; background: var(--fig); justify-self: end; }
.fig.w-l { width: 74%; }
.fig.w-m { width: 56%; }
.fig.w-s { width: 42%; }
.ledger-sub .fig, .ledger-total .fig { background: var(--fig-strong); }
.ledger-sub span, .ledger-total span { font-weight: 600; }
.ledger-total { border-bottom: 3px double var(--text); }
.ledger-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(31, 122, 77, 0), rgba(31, 122, 77, .14), rgba(31, 122, 77, 0));
  animation: scan 7s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { transform: translateY(48px); }
  50% { transform: translateY(300px); }
}
.copies { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
}
.copy-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fig-strong); }
.copy-chip.is-match { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.copy-chip.is-match::before { background: var(--accent); }
.match-card {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: min(300px, 88%);
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  font-size: .85rem;
  animation: rise .8s ease-out .4s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.match-label {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  font-weight: 700;
}
.match-card strong { display: block; font-family: var(--font-head); font-size: 1rem; margin: 4px 0 2px; }
.match-source { display: block; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.match-ranked { margin-top: 12px; display: grid; gap: 7px; }
.match-ranked li {
  display: grid;
  grid-template-columns: 52px 1fr 36px;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.match-ranked i { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.match-ranked i::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: var(--accent); }
.match-ranked .r1 i::after { width: 91%; }
.match-ranked .r2 i::after { width: 6%; background: var(--fig-strong); }
.match-ranked .r3 i::after { width: 4%; background: var(--fig-strong); }
.match-ranked b { text-align: right; font-weight: 600; color: var(--ink-2); }

/* 7. Value strip
   -------------------------------------------------------------------------- */
.value-strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value-grid article { padding: 30px 24px; border-left: 1px solid var(--line); }
.value-grid article:first-child { border-left: 0; padding-left: 0; }
.value-grid article:last-child { padding-right: 0; }
.value-grid h3 { font-size: 1rem; margin-bottom: 6px; }
.value-grid p { font-size: .92rem; color: var(--muted); margin: 0; }

/* 8. Sections (alternating tinted / white)
   -------------------------------------------------------------------------- */
.section { padding: 92px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 44px; }

/* Problem → solution */
.problem-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.problem-copy p { color: var(--ink-2); }
.leak-list { margin-top: 24px; border-top: 1px solid var(--line); }
.leak-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  color: var(--ink-2);
}
.leak-list li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
.solution-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.solution-card p { color: var(--ink-2); font-size: .98rem; }
.solution-card p:last-child { margin-bottom: 0; }

/* How it works: vertical numbered list with a ledger line */
.steps { position: relative; max-width: 780px; }
.steps::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--line);
}
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding-bottom: 40px; }
.step:last-child { padding-bottom: 0; }
.step-num {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 10px; }
.step p { color: var(--ink-2); margin: 0; }
.how-aside {
  max-width: 780px;
  margin-top: 44px;
  padding: 22px 26px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.how-aside p { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* Capabilities: 2 × 3 with thin top rules */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; }
.cap-grid article { border-top: 2px solid var(--text); padding-top: 18px; }
.cap-kicker { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.cap-grid h3 { margin: 8px 0; }
.cap-grid p { color: var(--muted); font-size: .96rem; margin: 0; }

/* FAQ: details / summary */
.faq-list { max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: 0 0 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 500;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 22px; color: var(--ink-2); max-width: 44em; }

/* 9. Final CTA band
   -------------------------------------------------------------------------- */
.cta-band { padding: 96px 0; background: var(--accent-soft); border-top: 1px solid var(--line); }
.cta-inner { text-align: center; max-width: 660px; }
.cta-inner p { color: var(--ink-2); font-size: 1.08rem; }
.cta-actions { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 28px; }

/* 10. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand .brand { font-size: 1rem; }
.footer-brand .brand img { width: 22px; height: 22px; }
.tagline { color: var(--muted); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }

/* 11. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 560px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid article { border-left: 0; padding: 22px 0; border-top: 1px solid var(--line); }
  .value-grid article:nth-child(-n+2) { border-top: 0; }
  .problem-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 48px 0 40px; }
  .section, .cta-band { padding: 60px 0; }
  .value-grid { grid-template-columns: 1fr; }
  .value-grid article:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .value-grid article:first-child { border-top: 0; }
  .cap-grid { grid-template-columns: 1fr; gap: 32px; }
  .ledger-row { grid-template-columns: 1.4fr 1fr .8fr; }
  .ledger-row > :nth-child(4) { display: none; }
  .hero-visual { padding-bottom: 0; }
  .match-card { position: static; width: auto; margin-top: 16px; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .btn { width: 100%; }
  .step { grid-template-columns: 40px 1fr; gap: 16px; }
  .step-num { width: 40px; height: 40px; }
  .steps::before { left: 19px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* 12. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
