/* BoringFirm website — tokens come from the "BoringFirm — Logo & Website" brand canvas (identity v1). */

:root {
  /* Colour */
  --ink: #16181B;          /* Ledger Ink — text, primary */
  --signal: #F5C518;       /* Signal Yellow — accent only */
  --paper: #F3F1EC;        /* Paper — background */
  --steel: #4A4E55;        /* Steel — secondary text */
  --bone: #E9E6DE;         /* alternate section ground */
  --white: #FFFFFF;
  --line: #D6D2C8;         /* rules on paper */
  --line-strong: #C9C4B8;
  --ink-line: #33373D;     /* rules on ink */
  --ink-border: #3A3E45;
  --ink-muted: #A9ADB4;    /* secondary text on ink */
  --ink-body: #C9CCD1;

  /* Type */
  --font-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  /* Shape & layout */
  --radius-sm: 4px;
  --radius: 6px;
  --container: 1200px;
  --gutter: 32px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--ink); }
a:hover { color: #3A3E45; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.bg-signal :focus-visible { outline-color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--paper); }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel);
}
.on-ink .eyebrow { color: var(--ink-muted); }
.display {
  font-size: clamp(44px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800;
}
.display .light, .statement .light { font-weight: 400; }
.h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
.lead { font-size: 20px; color: var(--steel); max-width: 560px; }
.muted { color: var(--steel); }
.on-ink .muted { color: var(--ink-muted); }
.mono { font-family: var(--font-mono); }
.statement { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 400; max-width: 980px; }
.statement strong { font-weight: 800; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark svg { width: 30px; height: 30px; flex-shrink: 0; }
.wordmark-text { font-size: 24px; letter-spacing: -0.04em; line-height: 1; }
.wordmark-text b { font-weight: 800; }
.wordmark-text span { font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 24px; border-radius: var(--radius-sm);
  font: 600 16px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-signal { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.btn-signal:hover { background: #E3B50C; border-color: #E3B50C; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: #2A2D32; border-color: #2A2D32; color: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-lg { min-height: 52px; padding: 16px 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 241, 236, 0.94); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.nav-links { display: flex; align-items: center; gap: 8px 28px; list-style: none; padding: 0; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; padding: 10px 0; display: inline-block; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }
.nav-links .btn { padding: 12px 20px; min-height: 44px; font-size: 15px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); color: var(--ink); cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links li:last-child { border-top: 0; padding-top: 12px; }
  .nav-links a { padding: 14px 0; display: block; }
  .nav-links .btn { display: flex; width: 100%; }
  .nav-links a[aria-current="page"] { box-shadow: none; font-weight: 700; }
}

/* ---------- Sections ---------- */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-tight { padding-top: 72px; padding-bottom: 72px; }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink a { color: var(--paper); }
.bg-bone { background: var(--bone); }
.bg-signal { background: var(--signal); color: var(--ink); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 40px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.equation {
  flex: 1 1 380px; min-width: 0; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: 32px; list-style: none; margin: 0;
}
.equation .eyebrow { margin-bottom: 20px; font-size: 12px; }
.equation li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--ink-line); font-size: 19px; }
.equation li .op { font-family: var(--font-mono); color: var(--ink-muted); width: 16px; flex-shrink: 0; }
.equation li:first-of-type span:last-child { font-weight: 600; }
.equation li.result {
  margin-top: 8px; padding: 18px 16px; background: var(--signal); color: var(--ink);
  border-radius: var(--radius-sm); border-top: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.01em;
}
.equation li.result .op { color: var(--ink); font-weight: 500; }
.equation.process { background: transparent; padding: 0; }
.equation.process li { padding: 22px 0; font-size: 20px; }
.equation.process li .op { width: 40px; color: var(--signal); font-size: 15px; padding-top: 4px; }
.equation.process li strong { font-weight: 700; }
.equation.process li:first-of-type span:last-child { font-weight: 400; }

/* Split section */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > :first-child { flex: 1 1 340px; min-width: 0; }
.split > :last-child { flex: 1 1 520px; min-width: 0; }

/* Check cards */
.check-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.check-grid li { background: var(--white); border-radius: var(--radius); padding: 24px; display: flex; gap: 14px; align-items: flex-start; }
.check-grid svg { flex-shrink: 0; margin-top: 3px; }
.check-grid strong { font-weight: 600; display: block; }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--ink); list-style: none; padding: 0; }
.steps li { padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { border-right: 0; padding-right: 0; }
.steps .num { font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.steps p:last-child { color: var(--steel); font-size: 16px; }
@media (max-width: 1060px) {
  .steps li, .steps li:first-child, .steps li:last-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--paper); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card.on-white { background: var(--white); }
.card p { color: var(--steel); font-size: 16px; }
.card-ink { border: 1px solid var(--ink-border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card-ink p:last-child { color: var(--ink-body); font-size: 16px; }
.card-ink .eyebrow { font-size: 12px; }
.card-ink.is-current { border: 2px solid var(--signal); padding: 27px; }
.card-ink.is-current .eyebrow { color: var(--signal); }

/* Comparison table */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 17px; }
.compare th {
  text-align: left; padding: 16px 20px; font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); border-bottom: 2px solid var(--ink); width: 50%;
}
.compare th.us { background: var(--signal); color: var(--ink); }
.compare td { padding: 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare td:first-child { color: var(--steel); }
.compare td:last-child { background: var(--white); font-weight: 500; }

/* CTA band */
.cta { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.cta > div:first-child { flex: 1 1 520px; min-width: 0; }
.cta h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; }
.cta > div:first-child p { font-size: 19px; max-width: 560px; }

/* Page hero (inner pages) */
.page-hero { padding-top: 88px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; max-width: 900px; }


/* Contact: email card */
.email-card {
  flex: 1 1 420px; min-width: 0; max-width: 520px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.email-card .eyebrow { color: var(--ink-muted); font-size: 12px; }
.email-link {
  color: var(--paper); font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; text-decoration: none; overflow-wrap: anywhere;
}
.email-link:hover { color: var(--signal); text-decoration: underline; text-underline-offset: 6px; }
.email-card :focus-visible { outline-color: var(--signal); }
.btn-outline-light { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }
.copy-status { min-height: 1.4em; font-size: 14px; color: var(--ink-muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.footer-brand .wordmark svg { width: 24px; height: 24px; }
.footer-brand .wordmark-text { font-size: 20px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-cols ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.footer-cols a { text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-cols a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--steel);
}
.tagline { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.06em; color: var(--ink); }

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero { padding-top: 64px; padding-bottom: 64px; gap: 40px; }
  .equation { padding: 24px; }
  .page-hero { padding-top: 64px; padding-bottom: 48px; }
}
