/* BuildWitness website. Canonical identity: ../brand/GUIDELINES.md. */
@font-face { font-family: Lato; src: url('fonts/Lato-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Lato; src: url('fonts/Lato-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Lato; src: url('fonts/Lato-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }
:root {
 --bg: #F4F1EA; --surface: #FFFFFF; --sunk: #E3EAE1; --ink: #182724; --muted: #586B65; --line: #CBD3CB;
 --accent: #143D38; --accent-soft: #E3EAE1; --signal: #F46B45;
 --done: #23674D; --done-soft: #E3EAE1; --behind: #A83D36; --warn: #875800; --warn-soft: #F5E6CC;
 --f-display: Lato, Arial, sans-serif; --f-body: Lato, Arial, sans-serif; --f-mono: Lato, Arial, sans-serif;
 --radius: 12px; --max: 1180px;
}
@media (prefers-color-scheme: dark) {
 :root { --bg: #102C28; --surface: #143D38; --sunk: #193731; --ink: #F4F1EA; --muted: #BDCFC6; --line: #42615B;
 --accent: #F4F1EA; --accent-soft: #274F43; --done: #A5D3B4; --done-soft: #274F43; --behind: #FFAC99; --warn: #EDC581; --warn-soft: #483B25; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; max-width: 20ch; }
h3 { font-size: 23px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 24px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { font: 500 12.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.muted { color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 24px/1 var(--f-display); color: var(--ink); text-decoration: none; }
.brand.small { font-size: 18px; gap: 8px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav a:not(.btn):hover { color: var(--accent); }

/* buttons */
.btn { display: inline-block; background: var(--signal); color: #182724; text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: 9px; border: 1px solid var(--signal); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.small { padding: 8px 14px; font-size: 14.5px; color: #182724 !important; }

/* hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.facts { display: flex; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.facts div { flex: 1; padding: 14px 18px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font: 500 11.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 600; }
.hero-shots { position: relative; min-height: 460px; }
.frame { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 18px 48px -18px rgb(20 40 30 / .28); }
.frame.office { width: 100%; }
.frame.phone { border-radius: 26px; border: 6px solid #1c2220; }
.hero-shots .phone { position: absolute; width: 34%; right: -2%; bottom: -60px; }
.frame.paper { background: #fff; }

/* problem */
.problem .wrap { padding-top: 72px; padding-bottom: 72px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }
.cols3 p { color: var(--muted); }
.cols3.tight { margin-top: 48px; row-gap: 12px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; font-size: 16px; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 15px/1 var(--f-mono); margin-bottom: 16px; }

/* features */
.feature { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; margin-top: 64px; }
.feature.flip .feature-copy { order: 2; }
.feature-copy p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 26px; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--done); border-bottom: 2.5px solid var(--done); transform: rotate(-45deg); }

/* phones */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 40px; max-width: 900px; margin-inline: auto; }
.phones figure { align-self: start; }
.phones figcaption { padding: 12px 14px; font-size: 14.5px; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }
.phones img { aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }

/* quality + AI */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split p { color: var(--muted); }
.flag-card { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; padding: 16px 18px; border: 1px solid var(--warn); background: var(--warn-soft); border-radius: var(--radius); }
.flag-head { color: var(--warn); font-weight: 600; }

/* rules */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rules div { background: var(--surface); padding: 24px; }
.rules p { margin: 0; color: var(--muted); }
.rules b { color: var(--ink); }
.rule-n { display: block; font: 500 13px/1 var(--f-mono); color: var(--accent); margin-bottom: 12px; }

/* pilot */
.pilot-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.pilot-steps li { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sunk); color: var(--muted); }
.pilot-steps b { display: block; font: 500 12.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--done); margin-bottom: 8px; }
.contact { margin-top: 40px; font-weight: 600; }

.foot { padding: 32px 0 48px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14.5px; }

/* responsive */
@media (max-width: 980px) {
  .hero-grid, .feature, .split { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cols3, .rules { grid-template-columns: repeat(2, 1fr); }
  .hero-shots { min-height: 0; }
  .hero-shots .phone { width: 30%; right: 3%; bottom: -40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 60px 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 40px 0 72px; }
  .lead { font-size: 18px; }
  .facts { flex-direction: column; }
  .facts div { border-left: 0; border-top: 1px solid var(--line); }
  .facts div:first-child { border-top: 0; }
  .steps, .cols3, .rules { grid-template-columns: 1fr; }
  .phones { grid-template-columns: 1fr 1fr; gap: 16px; }
  .phones figure:last-child { display: none; }
  .hero-shots .phone { width: 38%; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

/* guides */
.article { padding-top: 40px; padding-bottom: 80px; }
.article h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 22ch; }
.crumbs { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; margin-top: 40px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14.5px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.prose { max-width: 720px; }
.prose h2 { font-size: 32px; margin-top: 1.6em; max-width: none; scroll-margin-top: 84px; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose code { font-family: var(--f-mono); font-size: .9em; background: var(--sunk); padding: 1px 5px; border-radius: 4px; }
.table { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table th { text-align: left; font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--sunk); }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.cta-box { margin: 48px 0 8px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--accent-soft); }
.cta-box h2 { margin-top: 0; font-size: 28px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.guide-card:hover { border-color: var(--accent); }
.guide-card h2 { font-size: 24px; margin: 0; max-width: none; }
.guide-card p { color: var(--muted); margin: 0; font-size: 15.5px; flex: 1; }
.guide-card .more { color: var(--accent); font-weight: 600; font-size: 15px; }
.guides-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 980px) {
  .article-grid { grid-template-columns: 1fr; gap: 8px; }
  .toc { position: static; display: none; }
  .guide-grid, .guides-teaser { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .guide-grid, .guides-teaser { grid-template-columns: 1fr; }
}
.article-grid > * { min-width: 0; } .prose { overflow-wrap: anywhere; }

/* Logo proportions and keyboard focus are shared across landing and guide pages. */
.brand picture { display: block; }
.brand .wordmark { width: 210px; height: auto; }
.brand.small .wordmark { width: 180px; }
a:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
@media (max-width: 640px) { .brand .wordmark { width: 180px; } .nav { gap: 12px; } }
