/* ==========================================================================
   Mantios — AML/CTF Compliance for Accountants & Real Estate
   One shared stylesheet. No external requests: system font stacks only,
   no @import, no remote assets.

   Palette is the ratified navy/gold set. Three tokens are added on top of
   it, each for a measured contrast reason (see notes beside them) — the
   ratified values themselves are unchanged.
   ========================================================================== */

:root {
  /* ratified */
  --color-primary:      #1E3A8A;   /* authority navy   — 9.97:1 on background */
  --color-on-primary:   #FFFFFF;   /* 10.44:1 on primary */
  --color-secondary:    #1E40AF;
  --color-accent:       #B45309;   /* trust gold — CTA fills, 5.02:1 with white */
  --color-background:   #F8FAFC;
  --color-foreground:   #0F172A;   /* headings — 17.2:1 on background */
  --color-muted:        #E9EEF5;   /* tinted bands */
  --color-border:       #CBD5E1;   /* DECORATIVE hairlines only — 1.42:1, never a control edge */
  --color-ring:         #1E3A8A;

  /* added, for contrast reasons only */
  --color-accent-deep:  #8F4207;   /* accent as *text*: 6.80:1 on bg, 6.11:1 on muted (plain --color-accent is 4.31:1 on muted and would fail) */
  --color-control:      #64748B;   /* control edges — 4.55:1 on bg, clears WCAG 1.4.11's 3:1 */
  --color-body:         #1E293B;   /* body copy — 13.97:1 on bg */
  --color-meta:         #475569;   /* meta / small print — 7.24:1 on bg, 6.50:1 on muted */
  --paper:              #FFFFFF;   /* cards, inputs */

  /* ONE typeface for the whole site. Hierarchy comes from weight, size, colour
     and spacing — never from a second family. The old --serif token is gone: it
     led with a face that is not installed everywhere, so the generic fallback
     decided the page and no two visitors saw the same thing. The old --mono
     token is gone because nothing that wore it was code — prices, ABNs, phone
     numbers and eyebrows are prose. Do not reintroduce either. */
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--color-background);
  color: var(--color-body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--color-foreground);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.025em; max-width: 20ch; }
h2 { font-size: clamp(1.4375rem, 2.6vw, 1.9375rem); letter-spacing: -0.02em; max-width: 26ch; }
h3 { font-size: 1.125rem; letter-spacing: -0.008em; line-height: 1.3; }
p, li { max-width: 68ch; text-wrap: pretty; }
a { color: var(--color-accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--color-primary); }
strong { color: var(--color-foreground); font-weight: 600; }

.wrap { max-width: 66rem; margin-inline: auto; padding-inline: clamp(1.125rem, 4vw, 2.5rem); }
:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 3px; border-radius: 2px; }

/* Eyebrows, kickers and labels: same family as everything else. What used to be
   carried by the mono face is now carried by weight + tracking + caps. */
.eyebrow {
  display: block; margin-bottom: .8rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .085em; line-height: 1.4;
  text-transform: uppercase; color: var(--color-meta);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--color-foreground); color: #fff; padding: .75rem 1rem; text-decoration: none;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.5rem;
  font-family: inherit; font-weight: 600; font-size: 1.0625rem;
  border: 1px solid transparent; border-radius: 3px; cursor: pointer; text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn-primary { background: var(--color-accent); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-accent-deep); color: var(--color-on-primary); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-control); }
.btn-outline:hover { border-color: var(--color-primary); background: var(--color-muted); color: var(--color-primary); }
.btn-sm { min-height: 44px; padding: .5rem 1.1rem; font-size: .9375rem; }

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

/* ---------- site header ---------- */
header.site { background: var(--paper); border-bottom: 1px solid var(--color-border); }
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 2rem; padding-block: .75rem;
}
.lockup {
  font-size: 1.25rem; color: var(--color-foreground);
  text-decoration: none; display: block; padding-block: .3rem;
}
.lockup b { font-weight: 700; letter-spacing: -0.015em; }
.lockup .descriptor {
  display: block; font-size: .75rem; font-weight: 500; line-height: 1.4;
  color: var(--color-meta); margin-top: .15rem;
}
nav.site { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
nav.site a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .96875rem; color: var(--color-primary); text-decoration: none;
  border-bottom: 2px solid transparent;
}
nav.site a:not(.btn):hover { border-bottom-color: var(--color-accent); }
nav.site a[aria-current="page"] { color: var(--color-foreground); border-bottom-color: var(--color-accent); }

/* ---------- sections ---------- */
section { padding-block: clamp(2.5rem, 6vw, 4rem); }
section.band { background: var(--color-muted); border-block: 1px solid var(--color-border); }
/* Light, not navy. It used to be --color-primary, which put it directly above a
   navy footer with no boundary — the page ended in one unbroken slab of dark
   blue and the footer stopped reading as a footer. Navy now appears exactly
   once on the page, and that once is the footer. */
section.panel { background: var(--color-muted); border-top: 3px solid var(--color-accent); border-bottom: 1px solid var(--color-border); }
section + section:not(.band):not(.panel) { border-top: 1px solid var(--color-border); }
.lede { margin-top: 1rem; font-size: 1.0625rem; }
p + p, .lede + p, p + ul, ul + p { margin-top: .85rem; }
p + h3 { margin-top: 1.75rem; margin-bottom: .35rem; }   /* subheading inside a prose section */

.hero { padding-block: clamp(3rem, 7vw, 4.75rem) clamp(2.5rem, 5vw, 3.25rem); }
.hero .deck {
  color: var(--color-accent-deep); font-weight: 600;
  font-size: clamp(1.1875rem, 2.4vw, 1.5rem); line-height: 1.25; letter-spacing: -0.015em;
  margin-top: .6rem; max-width: 32ch;
}
.hero .sub { margin-top: 1.5rem; font-size: 1.0625rem; max-width: 58ch; }
/* The price. Prose, not a code sample — it reads at body weight in the body
   face, and earns its emphasis from colour and a rule, not from a terminal font. */
.price-line {
  display: block; margin-top: 1.1rem; padding-left: .9rem;
  border-left: 2px solid var(--color-control);
  font-size: 1rem; font-weight: 500; color: var(--color-foreground);
  line-height: 1.6; max-width: 52ch;
}
.ctas { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.ctas .aside { font-size: .96875rem; color: var(--color-meta); }
.ctas .aside a { white-space: nowrap; }

.pull {
  margin-top: 2rem; max-width: 44rem;
  border-left: 3px solid var(--color-accent); padding: .2rem 0 .2rem 1.25rem;
  color: var(--color-foreground);
}
.trust-row {
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border);
  list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.5rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .05em; line-height: 1.5;
  text-transform: uppercase; color: var(--color-meta);
}
.trust-row li { max-width: none; }

/* ---------- ledger ---------- */
.rows { margin-top: 2rem; border-top: 1px solid var(--color-control); }
.row { display: grid; gap: .4rem 2.5rem; padding-block: 1.4rem; border-bottom: 1px solid var(--color-border); }
@media (min-width: 48rem) { .row { grid-template-columns: 12.5rem 1fr; gap: 0 2.5rem; } }
.row .when {
  font-size: .8125rem; font-weight: 600; line-height: 1.5;
  letter-spacing: .04em; text-transform: uppercase; color: var(--color-meta);
  font-variant-numeric: tabular-nums;
}
.row .when b { display: block; color: var(--color-foreground); font-weight: 700; letter-spacing: .01em; font-size: .875rem; }
.row .when .tag { display: block; margin-top: .4rem; color: var(--color-accent-deep); }
.row h3 { margin-bottom: .3rem; }
.row p { font-size: 1rem; }
.quote { border-left: 2px solid var(--color-control); padding-left: .875rem; color: var(--color-meta); font-size: .96875rem; }
.foot-note { margin-top: 1.5rem; font-size: .96875rem; color: var(--color-meta); max-width: 62ch; }

/* ---------- card grids ---------- */
.grid { margin-top: 2rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--color-border); border-radius: 3px;
  padding: 1.35rem 1.375rem; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .35rem; }
.card p { font-size: 1rem; }
.card .more {
  margin-top: auto; padding-top: .9rem; font-size: .9375rem; font-weight: 600;
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  border-bottom: 1px solid transparent; align-self: flex-start;
}
.card .more:hover { border-bottom-color: var(--color-accent); }
.card .more svg { margin-left: .4rem; }

/* Numbered list — the pack contents and the delivery timeline both use it.
   (The old .steps/.step blocks it replaced are gone: same job, less markup.) */
.docs { margin-top: 1.5rem; list-style: none; counter-reset: doc; border-top: 1px solid var(--color-border); max-width: 50rem; }
.docs li {
  counter-increment: doc; display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem;
  padding-block: .9rem; border-bottom: 1px solid var(--color-border); font-size: 1rem; max-width: none;
}
.docs li::before {
  content: "0" counter(doc); font-size: .8125rem; font-weight: 700; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--color-meta); padding-top: .3rem;
}
.docs b { color: var(--color-foreground); }

/* ---------- pricing ---------- */
.price-grid { margin-top: 2rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; max-width: 52rem; }
@media (min-width: 46rem) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card {
  background: var(--paper); border: 1px solid var(--color-border); border-radius: 3px;
  padding: 1.6rem 1.5rem; display: flex; flex-direction: column;
}
.price-card.lead { border-color: var(--color-control); box-shadow: inset 0 3px 0 0 var(--color-accent); }
.price-card .plan { font-size: .8125rem; font-weight: 700; letter-spacing: .085em; text-transform: uppercase; color: var(--color-meta); }
.price-card .amount {
  font-size: clamp(1.625rem, 3.2vw, 1.9375rem); font-weight: 700; letter-spacing: -0.025em;
  color: var(--color-foreground); margin-top: .5rem; line-height: 1.15;
}
.price-card .amount small { font-size: .875rem; color: var(--color-meta); font-weight: 500; letter-spacing: 0; }
.price-card ul { margin: 1.1rem 0 1.4rem; padding-left: 1.1rem; font-size: .96875rem; display: grid; gap: .5rem; }
.price-card ul li { max-width: none; }

/* ---------- trust panel (light) ---------- */
section.panel p { margin-top: 1.1rem; max-width: 62ch; line-height: 1.75; }
section.panel .fine { font-size: .9375rem; color: var(--color-meta); }

/* ---------- form ---------- */
.intake-layout { display: grid; gap: 2.25rem; grid-template-columns: 1fr; align-items: start; margin-top: 2rem; }
@media (min-width: 56rem) { .intake-layout { grid-template-columns: minmax(0, 1fr) 18rem; gap: 3.5rem; } }
form { display: grid; gap: 1.4rem; }
.field label, fieldset legend { display: block; font-weight: 600; color: var(--color-foreground); font-size: .96875rem; margin-bottom: .4rem; }
.hint { display: block; font-weight: 400; color: var(--color-meta); font-size: .875rem; margin-top: .2rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--color-foreground); background: var(--paper);
  border: 1px solid var(--color-control); border-radius: 3px; padding: .65rem .75rem; min-height: 48px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 1px; border-color: var(--color-primary); }
textarea { min-height: 6.5rem; resize: vertical; }
fieldset { border: none; }
.checks { display: grid; gap: .5rem; margin-top: .5rem; }   /* 8px between 44px-tall label targets */
.checks label {
  display: flex; gap: .75rem; align-items: flex-start; min-height: 44px; padding-block: .5rem;
  font-weight: 400; font-size: .96875rem; color: var(--color-body); cursor: pointer; margin-bottom: 0;
}
.checks input { width: 1.15rem; height: 1.15rem; margin-top: .35rem; flex: none; accent-color: var(--color-primary); }
.two-col { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 34rem) { .two-col { grid-template-columns: 1fr 1fr; } }

.notice {
  background: var(--paper); border: 1px solid var(--color-control); border-left: 3px solid var(--color-accent);
  border-radius: 3px; padding: 1rem 1.125rem; color: var(--color-foreground); font-size: .96875rem;
}
/* Success reuses the navy rather than introducing a green — no new token, no new
   contrast pair to verify, and it reads as confirmation not celebration. */
.notice-ok { border-left-color: var(--color-primary); }

/* Honeypot. Off-screen rather than display:none — costs nothing and catches the
   bots that skip hidden fields. Paired with aria-hidden + tabindex="-1" so it is
   invisible to assistive tech too. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

[hidden] { display: none !important; }

.direct { background: var(--paper); border: 1px solid var(--color-border); border-top: 3px solid var(--color-primary); padding: 1.4rem 1.375rem; }
.direct h2 { font-size: 1.1875rem; margin-bottom: .5rem; max-width: none; }
.direct p { font-size: .9375rem; }
.direct ul { list-style: none; margin-top: 1rem; display: grid; gap: .5rem; }
.direct ul a {
  display: flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 600;
  text-decoration: none; border-bottom: 1px solid var(--color-control);
}
.direct ul a:hover { border-bottom-color: var(--color-accent); }
.direct .who { margin-top: .9rem; font-size: .8125rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--color-meta); }

/* ---------- footer ---------- */
/* The only navy on the page. Given room to breathe now that it is not competing
   with a dark section directly above it. */
footer.site { background: var(--color-primary); color: var(--color-border); padding-block: clamp(3rem, 6vw, 4.5rem); font-size: .9375rem; line-height: 1.7; }
/* Identity left, links right, no dead gap between them: the old 2fr/1fr grid
   forced a narrow column to hold four short links and left the space in the
   middle empty. Flex lets each side take what it needs and the gap collapses. */
footer.site .cols { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.25rem 3rem; }
footer.site .lockup { color: var(--color-on-primary); }
footer.site .lockup .descriptor { color: var(--color-border); }
footer.site a { color: var(--color-on-primary); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }
footer.site a:hover { color: var(--color-on-primary); border-bottom-color: var(--color-on-primary); }
footer.site .ident { margin-top: .75rem; font-size: .875rem; line-height: 1.9; color: var(--color-on-primary); }
footer.site ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
footer.site ul li { max-width: none; }
footer.site ul a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; border-bottom: none; }
footer.site ul a:hover { border-bottom: none; text-decoration: underline; }
/* Fine print, and it should look like fine print — clearly subordinate to the
   identity block above it. #B0BED4 on navy is 5.50:1, so it stays comfortably
   above the 4.5:1 floor for small text while reading as secondary. */
footer.site .legal { border-top: 1px solid rgba(255, 255, 255, .2); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .8125rem; line-height: 1.65; color: #B0BED4; }
footer.site .legal p { max-width: 76ch; }
footer.site .legal p + p { margin-top: .45rem; }
footer.site .legal strong { color: var(--color-on-primary); }
