/* Contractor Institute — design system.
   Hand-authored. No build step: edit this file, re-run build.py, done.

   Direction: an engineered document, not a brochure. The palette is the brief's
   (trust navy + gold standard + slate). The freedom is spent on one thing — the
   Ledger, an itemised invoice that makes "no hidden fees" a physical artifact.
   Everything around it stays quiet so the Ledger is what gets remembered.

   Barlow Condensed carries the display voice because it was drawn for signage:
   the same vernacular as equipment decals, road signs and license plates. IBM Plex
   Mono sets every number, because numbers on this site are evidence. */

/* ------------------------------------------------------------------ tokens */
:root {
  /* Trust navy */
  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;

  /* Gold standard */
  --gold-600: #D97706;
  --gold-500: #F59E0B;

  /* Neutrals */
  --paper:    #F8FAFC;
  --white:    #FFFFFF;
  --ink:      #0F172A;
  --body:     #334155;
  --muted:    #64748B;
  --rule:     #E2E8F0;
  --rule-dk:  rgba(245, 158, 11, 0.22);

  --ok:       #15803D;
  --no:       #B91C1C;

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body:    Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell:  1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 4px;   /* near-square: this is a document, not an app */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-900); text-decoration-color: var(--gold-500); text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold-500); color: var(--navy-900);
  padding: .75rem 1.25rem; font-weight: 700;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------------ type */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 8.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
h3 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); }
h4 { font-size: 1.1875rem; letter-spacing: 0; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* Eyebrow — a stamped label. Used to say what a section IS, never for decoration. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 1.25rem;
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 2px; background: var(--gold-500); flex: none;
}
.eyebrow--onnavy { color: var(--gold-500); }

.lede { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--body); max-width: 60ch; }
.lede--onnavy { color: #CBD5E1; }

/* ------------------------------------------------------------------ header */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid var(--rule-dk);
}
.masthead__bar {
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px;
}
.wordmark {
  display: flex; align-items: center; gap: .7rem;
  color: var(--white); text-decoration: none; margin-right: auto;
}
.wordmark:hover { color: var(--white); }
.wordmark img { width: 40px; height: auto; flex: none; }
.wordmark__text {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .02em;
  line-height: 1;
}
.wordmark__text span { display: block; font-size: .58rem; letter-spacing: .28em; color: var(--gold-500); font-family: var(--font-mono); margin-top: 3px; }

/* Below 900px the nav drops to its own wrapping row rather than disappearing. This
   audience reads on a phone in a truck; hiding every link but the CTA behind nothing at
   all — no burger, no menu — left the whole site unreachable from the header on mobile. */
.nav { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.nav a {
  color: #CBD5E1; text-decoration: none;
  font-size: .9375rem; font-weight: 500;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold-500); }

@media (max-width: 899px) {
  .masthead__bar { flex-wrap: wrap; padding-bottom: .65rem; }
  .wordmark { margin-right: auto; }
  .nav {
    order: 3; width: 100%;
    gap: 1rem 1.15rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(148, 163, 184, .18);
  }
  .nav a { font-size: .875rem; }
}
@media (min-width: 900px) { .nav { gap: 1.6rem; margin-right: 1.5rem; } }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display);
  text-transform: uppercase; font-weight: 700; letter-spacing: .03em;
  font-size: 1.0625rem; line-height: 1;
  padding: .95rem 1.6rem;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-600); color: var(--navy-900); }
.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-800); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--navy-900); background: transparent; }
.btn--ghost-light { border-color: rgba(255,255,255,.35); color: var(--white); background: transparent; }
.btn--ghost-light:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn--sm { font-size: .9375rem; padding: .6rem 1.1rem; }
.btn--block { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* ------------------------------------------------------------------ sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--navy { background: var(--navy-900); color: #CBD5E1; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--white { background: var(--white); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ------------------------------------------------------------------ hero */
.hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--gold-600); }
.hero__lede { font-size: clamp(1.125rem, 2.4vw, 1.4rem); color: var(--navy-700); max-width: 48ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__note {
  margin-top: 1.5rem; font-family: var(--font-mono); font-size: .8125rem;
  color: var(--muted); letter-spacing: .01em;
}

/* ------------------------------------------------------------------ refusals
   The homepage thesis. A cross, not a tick: these are bindings we accept, not
   features we sell. */
.refusals { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 760px) { .refusals { grid-template-columns: 1fr 1fr; } }

.refusal { background: var(--white); padding: clamp(1.5rem, 3vw, 2.25rem); }
/* Glyph only. The label used to read "WE NEVER" directly above a heading that also began
   "We never…", so every card said it twice. The crossed circle carries the meaning; the
   sr-only text carries it for anyone not seeing the glyph. */
.refusal__mark {
  color: var(--no); display: inline-flex; align-items: center;
  margin-bottom: .75rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.refusal__mark::before {
  content: "\00D7"; font-size: 1.15rem; line-height: 1;
  width: 1.35rem; height: 1.35rem; border: 1.5px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
}
.refusal h3 { font-size: 1.3125rem; margin-bottom: .6rem; letter-spacing: 0; }
.refusal p { color: var(--body); font-size: .9688rem; margin: 0; }

/* ------------------------------------------------------------------ THE LEDGER
   Signature element. An itemised invoice: gold hairlines, tabular numerals,
   a running list of what we do not charge for. */
.ledger { display: grid; gap: 1.5rem; }
@media (min-width: 980px) { .ledger { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.tier {
  background: var(--navy-800);
  border: 1px solid var(--rule-dk);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
}
.tier--featured { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500); }

.tier__flag {
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy-900); background: var(--gold-500);
  align-self: flex-start; padding: .3rem .6rem; border-radius: 2px;
  margin-bottom: .9rem;
}
.tier__flag--ghost { visibility: hidden; }
.tier__name { font-size: 1.625rem; color: var(--white); margin-bottom: .4rem; }
.tier__summary { font-size: .9375rem; color: #94A3B8; margin-bottom: 1.4rem; }

.tier__price { display: flex; align-items: baseline; gap: .35rem; margin-bottom: .15rem; }
.tier__amount {
  font-family: var(--font-mono); font-size: 2.25rem; font-weight: 600;
  color: var(--gold-500); font-variant-numeric: tabular-nums; line-height: 1;
}
.tier__per { font-family: var(--font-mono); font-size: .8125rem; color: #94A3B8; }
.tier__setup {
  font-family: var(--font-mono); font-size: .75rem; color: #94A3B8;
  padding-bottom: 1.25rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule-dk);
}
.tier__setup b { color: var(--ok); font-weight: 600; }

.tier__lines { list-style: none; margin: 0 0 1.75rem; padding: 0; flex: 1; }
.tier__line {
  display: grid; gap: .15rem;
  padding: .7rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, .22);
}
.tier__line:last-child { border-bottom: 0; }
.tier__label {
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-500);
}
.tier__value { font-size: .9375rem; color: #E2E8F0; line-height: 1.45; }

/* Print-in: the one place motion is spent. Rows arrive like lines on a receipt. */
.tier__line { opacity: 0; transform: translateY(8px); }
.is-in .tier__line { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
.is-in .tier__line:nth-child(1) { transition-delay: .04s; }
.is-in .tier__line:nth-child(2) { transition-delay: .10s; }
.is-in .tier__line:nth-child(3) { transition-delay: .16s; }
.is-in .tier__line:nth-child(4) { transition-delay: .22s; }
.is-in .tier__line:nth-child(5) { transition-delay: .28s; }
.is-in .tier__line:nth-child(6) { transition-delay: .34s; }
.is-in .tier__line:nth-child(7) { transition-delay: .40s; }

/* Terms and Ownership are identical in all three columns and lead the list. Marking them
   as the shared floor stops them reading as a feature the cheapest tier is missing. */
.tier__line:nth-child(1) .tier__label,
.tier__line:nth-child(2) .tier__label { color: #E2E8F0; }
.tier__line:nth-child(2) { border-bottom-style: solid; border-bottom-color: var(--rule-dk); }

@media (prefers-reduced-motion: reduce) {
  .tier__line { opacity: 1; transform: none; }
  .is-in .tier__line { transition: none; }
}
/* No JS? Never leave the price list invisible. */
.no-js .tier__line { opacity: 1; transform: none; }

/* --- routing strip: sends the wrong-fit visitor somewhere better than a bounce --- */
.routing {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding: .95rem 1.25rem;
  border: 1px solid var(--rule-dk); border-left: 3px solid var(--gold-500);
  border-radius: var(--radius);
  background: rgba(245, 158, 11, .06);
  text-decoration: none; color: #E2E8F0;
  transition: background-color .15s ease, border-color .15s ease;
}
.routing:hover { background: rgba(245, 158, 11, .12); border-color: var(--gold-500); color: var(--white); }
.routing__label {
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--gold-500);
  flex: none;
}
.routing__text { font-size: .9375rem; flex: 1 1 18rem; }
.routing__arrow { color: var(--gold-500); font-size: 1.15rem; flex: none; }

/* --- ad spend: a differentiator, so a band and not fine print --- */
.adspend {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  padding: clamp(1.15rem, 2.5vw, 1.6rem) clamp(1.25rem, 3vw, 1.85rem);
  background: var(--white); color: var(--navy-900);
  border-radius: var(--radius); border-left: 4px solid var(--gold-500);
  font-size: clamp(1rem, 1.6vw, 1.0625rem); line-height: 1.55; font-weight: 500;
}
.adspend__tag {
  display: block;
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--gold-600);
  margin-bottom: .5rem;
}

.microdisclaimer {
  margin: 1rem 0 0; font-size: .8125rem; line-height: 1.55; color: #94A3B8;
  max-width: 78ch;
}

/* --- what we never charge for --- */
.zeroes {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--rule-dk);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(15, 23, 42, .55);
}
.zeroes h3 { font-size: 1.375rem; margin-bottom: 1.25rem; }
.zeroes__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 720px) { .zeroes__list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.zeroes__row {
  display: flex; align-items: baseline; gap: .75rem;
  padding: .6rem 0; border-bottom: 1px dashed rgba(148, 163, 184, .22);
  font-size: .9375rem; color: #E2E8F0;
}
.zeroes__row span { flex: 1; }
.zeroes__amt {
  font-family: var(--font-mono); font-weight: 600; font-size: .9375rem;
  color: var(--ok); font-variant-numeric: tabular-nums;
  background: rgba(21, 128, 61, .14); padding: .1rem .45rem; border-radius: 2px;
}

/* ------------------------------------------------------------------ cards */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .cards--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--rule);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
}
.card h3 { font-size: 1.25rem; letter-spacing: 0; margin-bottom: .55rem; }
.card p { font-size: .9375rem; margin: 0; }
.card__soon {
  display: inline-block; margin-top: .9rem;
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* ------------------------------------------------------------------ prose */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.5rem; margin-bottom: .9rem; }
.prose h3 { margin-top: 1.9rem; margin-bottom: .6rem; letter-spacing: 0; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.3rem; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--ink); font-weight: 650; }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 1.1rem; }
.form--panel {
  background: var(--white); border: 1px solid var(--rule);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem);
}
.field { display: grid; gap: .4rem; }
.field > label {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; color: var(--navy-700);
}
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .85rem;
  border: 1px solid #CBD5E1; border-radius: var(--radius);
  background: var(--white); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-500); }
.field textarea { min-height: 118px; resize: vertical; }
.field__hint { font-size: .8125rem; color: var(--muted); }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .8125rem; color: var(--muted); line-height: 1.55; }
.consent input { margin-top: .2rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--gold-600); }

/* Honeypot: off-screen, never displayed, not announced to a screen reader. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { font-size: .9375rem; font-weight: 600; }
.form__status[data-state="ok"]  { color: var(--ok); }
.form__status[data-state="err"] { color: var(--no); }

/* ------------------------------------------------------------------ split */
.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .split--wide-left { grid-template-columns: 1.15fr .85fr; } }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--navy-900); color: #94A3B8; padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; font-size: .9375rem; }
.footer a { color: #CBD5E1; text-decoration: none; }
.footer a:hover { color: var(--gold-500); text-decoration: underline; }
.footer h4 { color: var(--white); font-size: .8125rem; font-family: var(--font-mono); letter-spacing: .14em; margin-bottom: .9rem; font-weight: 600; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 780px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-dk);
  /* #64748B on navy is ~4.0:1 and fails AA for this size. The "we are not a school /
     not a law firm" disclaimer is the one paragraph that must stay legible. */
  font-size: .8125rem; color: #94A3B8; display: grid; gap: .75rem;
}
.footer__legal p { max-width: 90ch; }

/* ------------------------------------------------------------------ misc */
.notice {
  border-left: 3px solid var(--gold-500); background: #FFFBEB;
  padding: 1rem 1.25rem; font-size: .9375rem; color: var(--navy-700);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
