/* AIAgenticBuilder.ca: monday.com automations for field firms.
   Hand-written for this site only. "Board" look: cool light paper, white rounded cards,
   colourful tinted status chips with a dot, vermilion actions, deep plum call-to-action bands.
   Colours are our own and deliberately avoid monday.com's palette. */

:root {
  --paper: #f3f6fb;
  --paper-2: #e7ecf5;
  --surface: #ffffff;
  --ink: #142033;
  --ink-2: #3d4659;
  --ink-3: #5c6478;
  --line: #dde3ee;
  --line-2: #c5cddb;
  --brand: #c8391d;
  --brand-ink: #a32c13;
  --brand-tint: #fce8e2;
  --plum: #262038;
  --plum-2: #362d4f;
  --peach: #ffbfae;
  --ok-bg: #daf1e2;   --ok-fg: #14572f;   --ok-dot: #22a05a;   --ok-soft: #edf8f1;
  --wait-bg: #fdf0c4; --wait-fg: #614500; --wait-dot: #d9a400; --wait-soft: #fef8e3;
  --dev-bg: #d9eff5;  --dev-fg: #0d4f5f;  --dev-dot: #1795b3;  --dev-soft: #ebf6fa;
  --fail-bg: #fbe0db; --fail-fg: #8a1c10; --fail-dot: #d8432f; --fail-soft: #fdf1ee;
  --own-bg: #ece8f6;  --own-fg: #3b2e6b;  --own-dot: #7a62c9;  --own-soft: #f5f2fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 32, 51, .06), 0 10px 28px -14px rgba(20, 32, 51, .22);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2rem, 6.2vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.25rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

code, .mono { font-family: var(--mono); font-size: .9em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Navigation (light) ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 12px; min-height: 66px; }
/* Phones: only the logo and the menu button sit in the bar. The desktop links and
   button are hidden here; .site-nav scoping beats the later .btn display rule. */
.nav-inner > nav { display: none; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em;
  font-size: 1.05rem; min-height: 44px; margin-right: auto;
}
.brand svg { width: 32px; height: 32px; flex: none; }
.brand-tld { font-family: var(--mono); font-weight: 500; font-size: .8em; color: var(--ink-3); }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links li { margin: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 8px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--paper); }
.site-nav .nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff;
  color: var(--ink); font: 700 .9rem var(--font); cursor: pointer;
}
.nav-toggle .bars { display: grid; gap: 4px; }
.nav-toggle .bars span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-panel { display: none; border-top: 1px solid var(--line); background: #fff; }
.nav-panel.is-open { display: block; }
.nav-panel ul { list-style: none; margin: 0; padding: 8px 18px 18px; }
.nav-panel li { margin: 0; border-bottom: 1px solid var(--line); }
.nav-panel li:last-child { border-bottom: 0; padding-top: 12px; }
.nav-panel a:not(.btn) {
  display: flex; align-items: center; min-height: 48px; color: var(--ink);
  text-decoration: none; font-weight: 600;
}
.nav-panel .btn { width: 100%; }

@media (max-width: 359px) {
  .nav-toggle > span:last-child { display: none; }
  .brand { font-size: .98rem; }
}

@media (min-width: 900px) {
  .nav-inner { gap: 16px; }
  .nav-inner > nav { display: block; }
  .nav-links { display: flex; }
  .site-nav .nav-cta { display: inline-flex; }
  .nav-toggle, .nav-panel, .nav-panel.is-open { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 22px; border-radius: 999px;
  font: 700 1rem/1.2 var(--font); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: .92rem; }
.btn-light { background: #fff; color: var(--plum); }
.btn-light:hover { background: var(--peach); color: var(--plum); }
.btn:disabled { opacity: .7; cursor: wait; }
.text-link { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 11px 3px 9px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; line-height: 1.45; white-space: nowrap;
  background: var(--paper-2); color: var(--ink-2);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.chip-live { background: var(--ok-bg); color: var(--ok-fg); }
.chip-live::before { background: var(--ok-dot); }
.chip-proto, .chip-wait { background: var(--wait-bg); color: var(--wait-fg); }
.chip-proto::before, .chip-wait::before { background: var(--wait-dot); }
.chip-dev { background: var(--dev-bg); color: var(--dev-fg); }
.chip-dev::before { background: var(--dev-dot); }
.chip-fail { background: var(--fail-bg); color: var(--fail-fg); }
.chip-fail::before { background: var(--fail-dot); }
.chip-own { background: var(--own-bg); color: var(--own-fg); }
.chip-own::before { background: var(--own-fg); border-radius: 2px; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: .75rem; font-weight: 500;
  color: var(--ink-2); background: var(--paper); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 6px;
}

/* ---------- Kicker (section label) ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2);
}
.kicker::before { content: ""; width: 22px; height: 8px; border-radius: 4px; background: var(--brand); flex: none; }
.kicker-light { color: #e9e4f5; }
.kicker-light::before { background: var(--peach); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 740px; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
@media (min-width: 900px) { .section { padding: 88px 0; } }

/* ---------- Home hero ---------- */
.hero {
  padding: 26px 0 52px;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 55px, rgba(20, 32, 51, .045) 55px 56px);
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
/* Phones: show the board right after the call to action; the plain fact line follows it. */
@media (max-width: 479px) {
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .hero-grid .hero-for { justify-self: start; }
  .hero-grid .board { order: 1; margin-top: 6px; }
  .hero-grid .hero-fact { order: 2; margin-top: 22px; }
}
.hero-for {
  display: inline-block; margin: 0 0 14px; padding: 6px 12px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ok-dot); border-radius: 10px;
  font-size: .85rem; line-height: 1.5; font-weight: 600; color: var(--ink-2);
}
.hero h1 { max-width: 15ch; }
.hero h1 .mark { color: var(--brand); }
.hero-lead { font-size: 1.05rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 22px 0 10px; }
.hero-terms { font-size: .9rem; color: var(--ink-3); margin: 0 0 18px; }
.hero-fact {
  font-size: .92rem; color: var(--ink-2); border-left: 3px solid var(--brand);
  padding: 2px 0 2px 12px; max-width: 38em; margin: 0;
}
@media (min-width: 980px) {
  .hero { padding: 64px 0 80px; }
  .hero-for { font-size: .9rem; }
  .hero-lead { font-size: 1.15rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
}

/* ---------- Board card (illustrations) ---------- */
.board {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin: 0;
}
.board-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.board-name { font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.board-name svg { width: 18px; height: 18px; }
.board-run { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); }
.board-cols, .board-row {
  display: grid; gap: 4px 12px; padding: 12px 16px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "job po" "status po";
}
.board-cols {
  font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-3); background: #f7f9fd; border-bottom: 1px solid var(--line);
  grid-template-areas: "job po";
}
.board-cols .c-status { display: none; }
.board-row + .board-row { border-top: 1px solid var(--line); }
.c-job { grid-area: job; font-weight: 700; font-size: .95rem; min-width: 0; }
.c-status { grid-area: status; min-width: 0; }
.c-po { grid-area: po; font-family: var(--mono); font-size: .88rem; min-width: 0; }
.po-value {
  display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom;
  width: 9ch; letter-spacing: .08em; color: var(--ink);
  animation: po-type 1.1s steps(8, end) .9s both;
}
.po-by {
  display: block; margin-top: 2px; font-size: .72rem; color: var(--ok-fg); font-weight: 500;
  animation: po-fade .4s ease 2.1s both;
}
.po-empty { color: var(--ink-3); font-size: .78rem; }
.board-row.is-filled { animation: row-flash 1.6s ease 1.9s forwards; }
.board-foot {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 12px 16px; border-top: 1px solid var(--line); background: #f7f9fd;
}
.board-foot .label { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); margin-right: 4px; }
.board-caption { font-size: .8rem; color: var(--ink-3); padding: 10px 16px 14px; margin: 0; border-top: 1px solid var(--line); }
@media (min-width: 560px) {
  .board-cols, .board-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas: "job status po";
  }
  .board-cols .c-status { display: block; }
}
@keyframes po-type { from { width: 0; } to { width: 9ch; } }
@keyframes po-fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes row-flash { 0% { background: #fff6d8; } 100% { background: transparent; } }

/* ---------- Problem section ---------- */
.problem-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .problem-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; } }
.chores { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin: 0; }
.chores-title { font-weight: 800; font-size: 1rem; margin: 0 0 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.chores ol { list-style: none; padding: 0; margin: 0 0 12px; counter-reset: chore; }
.chores li {
  counter-increment: chore; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px;
  padding: 10px 0; border-top: 1px dashed var(--line-2); margin: 0; font-size: .95rem;
}
.chores li::before {
  content: counter(chore); display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--line-2);
  font-family: var(--mono); font-size: .75rem; color: var(--ink-3);
}
.chores li:last-child { color: var(--fail-fg); font-weight: 600; }
.chores figcaption { font-size: .82rem; color: var(--ink-3); }
.cost-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.cost-list li {
  margin: 0; padding: 12px 14px; background: var(--fail-soft); border: 1px solid var(--fail-bg);
  border-radius: var(--radius-sm); display: flex; gap: 10px; align-items: flex-start;
}
.cost-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.philosophy { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; margin-top: 22px; }

/* ---------- Examples board ---------- */
.builds { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.builds-head {
  display: none; font-family: var(--mono); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-3); background: #f7f9fd; border-bottom: 1px solid var(--line);
}
.build { display: grid; gap: 10px; padding: 22px 18px; }
.build + .build { border-top: 1px solid var(--line); }
.build h3 { margin: 0; font-size: 1.12rem; }
.build h3 a { color: var(--ink); text-decoration: none; }
.build h3 a:hover { color: var(--brand-ink); text-decoration: underline; }
.build p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.build-who { font-size: .82rem; color: var(--ink-3); margin-top: 4px; }
.build-facts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 2px 0 0; }
.build-facts li { margin: 0; }
.build-status { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.build-more { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) {
  .builds-head, .build {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .55fr);
    gap: 20px; align-items: start; padding: 22px 24px;
  }
  .builds-head { padding: 12px 24px; }
  .build-status { flex-direction: column; }
}

/* ---------- Plan (lanes) ---------- */
.lanes { display: grid; gap: 16px; }
@media (min-width: 900px) { .lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.lane { background: var(--dev-soft); border: 1px solid var(--dev-bg); border-radius: var(--radius); padding: 14px; }
.lane:nth-child(2) { background: var(--wait-soft); border-color: var(--wait-bg); }
.lane:nth-child(3) { background: var(--ok-soft); border-color: var(--ok-bg); }
.lane-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px;
  font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2);
}
.lane-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; box-shadow: 0 1px 2px rgba(20, 32, 51, .06); }
.lane-card h3 { margin-bottom: .4em; }
.lane-card p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.promises { margin-top: 28px; display: grid; gap: 10px; list-style: none; padding: 0; }
@media (min-width: 700px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.promises li { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.promises svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }

/* ---------- Guide ---------- */
.guide { display: grid; gap: 28px; align-items: start; }
@media (min-width: 820px) { .guide { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; } }
.guide-photo { margin: 0; }
.guide-photo img {
  width: 100%; max-width: 240px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.guide-photo figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 8px; }
.guide-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.guide-points li { margin: 0; padding: 10px 14px; background: var(--dev-soft); border-radius: var(--radius-sm); border: 1px solid var(--line); border-left: 4px solid var(--dev-dot); font-size: .95rem; }
.guide-points li:nth-child(2) { background: var(--own-soft); border-left-color: var(--own-dot); }
.guide-points li:nth-child(3) { background: var(--ok-soft); border-left-color: var(--ok-dot); }
.guide-points li:nth-child(4) { background: var(--wait-soft); border-left-color: var(--wait-dot); }
.guide-points li:nth-child(5) { background: var(--fail-soft); border-left-color: var(--fail-dot); }

/* ---------- Prices ---------- */
.prices { display: grid; gap: 16px; }
@media (min-width: 760px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .prices-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.price h3 { margin: 0; }
.price-amount { font-family: var(--mono); font-size: 1.7rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.price-amount small { font-size: .85rem; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.price p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.price ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: .94rem; }
.price-feature { border: 2px solid var(--ink); }
.prices .price { border-top: 6px solid var(--dev-dot); }
.prices .price:nth-child(2) { border-top-color: var(--own-dot); }
.prices .price:nth-child(3) { border-top-color: var(--brand); }
.prices .price:nth-child(4) { border-top-color: var(--ok-dot); }
.free-strip {
  margin-top: 20px; display: grid; gap: 14px; align-items: center;
  background: var(--brand-tint); border: 1px solid #f3c7b9; border-radius: var(--radius); padding: 22px;
}
.free-strip h3 { margin: 0 0 .3em; }
.free-strip p { margin: 0; color: var(--ink); }
@media (min-width: 900px) { .free-strip { grid-template-columns: minmax(0, 1fr) auto; padding: 26px 28px; } }
.fine { font-size: .92rem; color: var(--ink-2); }

/* ---------- Before / after ---------- */
.ba { display: grid; gap: 16px; }
@media (min-width: 820px) { .ba { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.ba-col { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.ba-before { background: var(--fail-soft); border-color: var(--fail-bg); }
.ba-after { background: var(--surface); box-shadow: var(--shadow); border-top: 5px solid var(--ok-dot); }
.ba-col h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ba-col ul { list-style: none; padding: 0; margin: 0; }
.ba-col li { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.ba-before li { color: var(--ink-2); }
.identity { font-size: 1.15rem; font-weight: 700; margin-top: 26px; max-width: 46em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 52px 14px 18px; min-height: 48px;
  font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.3rem; color: var(--brand-ink);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 18px 16px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Call-to-action band ---------- */
.cta-band { background: var(--plum); color: #fff; padding: 64px 0; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #e9e4f5; max-width: 40em; font-size: 1.05rem; }
.cta-band a:not(.btn) { color: var(--peach); }
.cta-band :focus-visible { outline-color: var(--peach); }
.cta-inner { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }
.site-footer h2 { font-size: .8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.site-footer li a:hover { color: var(--ink); text-decoration: underline; }
.footer-about { color: var(--ink-2); max-width: 34em; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-3); }
.footer-legal p { margin: 0 0 .5em; }
.footer-legal a { color: var(--ink-2); }

/* ---------- Inner pages ---------- */
.page-hero { padding: 28px 0 44px; background: var(--paper); }
.crumbs { font-size: .85rem; color: var(--ink-3); margin: 0 0 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { color: var(--ink-2); display: inline-flex; min-height: 44px; align-items: center; }
.page-hero h1 { font-size: clamp(1.85rem, 5.4vw, 2.9rem); max-width: 22ch; }
.page-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 44em; }
.page-hero .hero-fact { margin: 0 0 4px; }
.status-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.page-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 980px) { .page-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; } }

.glance dl { margin: 0; }
.glance .kv { display: grid; gap: 2px 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.glance .kv:first-child { border-top: 0; }
.glance dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.glance dd { margin: 0; font-size: .95rem; }
@media (min-width: 560px) { .glance .kv { grid-template-columns: 8.5em minmax(0, 1fr); align-items: baseline; } }

.prose { max-width: 760px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose h3 { margin-top: 1.6em; }

/* Run log: step-by-step as an activity feed */
.runlog { list-style: none; padding: 0; margin: 0; max-width: 860px; }
.runlog li { position: relative; margin: 0; padding: 0 0 22px 66px; }
.runlog li::before {
  content: ""; position: absolute; left: 25px; top: 32px; bottom: 4px; width: 2px; background: var(--line-2);
}
.runlog li:last-child::before { display: none; }
.runlog .when {
  position: absolute; left: 0; top: 0; width: 52px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  background: var(--plum); color: #fff;
}
.runlog h3 { font-size: 1.02rem; margin: 2px 0 .3em; }
.runlog p { margin: 0; color: var(--ink-2); font-size: .97rem; }

.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 11px 14px; border-top: 1px solid var(--line); }
table.data thead th {
  border-top: 0; font-family: var(--mono); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-3); font-weight: 500; background: #f7f9fd;
}
table.data td { color: var(--ink-2); overflow-wrap: anywhere; }
table.data .chip { white-space: normal; }
table.data td:first-child { color: var(--ink); font-weight: 600; }

.split { display: grid; gap: 16px; }
@media (min-width: 820px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card ul { padding-left: 1.1em; margin-bottom: 0; }
.card li { color: var(--ink-2); }
.card p { color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }

.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 18px; margin: 24px 0; max-width: 860px;
}
.callout p { margin: 0 0 .6em; color: var(--ink-2); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

.emoji { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }

.next-builds { display: grid; gap: 14px; }
@media (min-width: 760px) { .next-builds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.next-build {
  display: flex; flex-direction: column; gap: 8px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
}
.next-build:hover { border-color: var(--ink); color: var(--ink); }
.next-build strong { font-size: 1rem; line-height: 1.35; }
.next-build .go { color: var(--brand-ink); font-weight: 700; font-size: .92rem; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 44px; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
@media (min-width: 640px) { .form-card { padding: 30px; } }
.form-card h2 { font-size: 1.4rem; }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-group { margin-bottom: 16px; min-width: 0; }
.form-group label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 6px; }
.form-group .hint { display: block; font-weight: 400; color: var(--ink-3); font-size: .85rem; }
.req { color: var(--brand-ink); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; font: 400 1rem var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
}
.form-group textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--ink); outline: 3px solid rgba(200, 57, 29, .3); outline-offset: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-btn { width: 100%; }
@media (min-width: 640px) { .submit-btn { width: auto; } }
.form-note { font-size: .9rem; color: var(--ink-3); margin: 12px 0 0; }
.form-note.is-error { color: var(--fail-fg); font-weight: 600; }
.aside-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.aside-list li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.aside-list h3 { font-size: 1rem; margin-bottom: .25em; }
.aside-list p { margin: 0; color: var(--ink-2); font-size: .94rem; }

/* ---------- Small pages ---------- */
.simple { padding: 56px 0 80px; }
.simple h1 { max-width: 20ch; }
.link-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; max-width: 640px; }
.link-list li { margin: 0; }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px;
  padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.link-list a:hover { border-color: var(--ink); }
.link-list a::after { content: "\2192"; color: var(--brand-ink); flex: none; }

.tracker-px { position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
