/* Bean Enterprise Solutions: corporate site. Tokens follow the product's "Shelf Label" system (brand/BRAND.md). */
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("../fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --shell: #123c32; --shell-raised: #1b4a3e; --shell-line: #2c5a4d; --shell-ink: #c9dcd3; --shell-muted: #9fbcb0;
  --signal: #65d6c0; --ground: #f3f5f2; --surface: #fff; --sunken: #f7f9f7;
  --ink: #14211c; --ink-muted: #5a6a63; --line: #dde5e0; --line-strong: #84948c; --label-border: #c3cfc8;
  --link: #167a5a; --focus: #268f76; --warn: #8a5a00; --warn-bg: #fbf1dc;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, Consolas, monospace;
  --wrap: 1180px; --r: 6px; --ease: cubic-bezier(0.2, 0, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--sans); font-feature-settings: "tnum"; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--r); z-index: 20; }
.skip:focus { top: 12px; }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink-muted); max-width: 60ch; }
.label { display: inline-block; font: 600 12px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-muted); }
.chip { display: inline-block; font: 500 13px/1 var(--mono); padding: 5px 7px; border: 1px solid var(--label-border); border-radius: 4px; background: var(--sunken); color: var(--ink); white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: #0f5a41; background: #e9f5ef; }
.status.dev { color: var(--warn); background: var(--warn-bg); }
.status.planned { color: var(--ink-muted); background: #e9efeb; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(243, 245, 242, 0.96); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; }
.brand small { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--ink-muted); text-transform: uppercase; margin-left: 2px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: 8px 12px; border-radius: 4px; text-decoration: none; color: var(--ink); font-size: 15px; }
.nav a:hover { background: #e9efeb; }
.nav a[aria-current="page"] { color: var(--shell); font-weight: 700; box-shadow: inset 0 -2px 0 var(--shell); border-radius: 0; }
.nav-toggle { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 4px; font: 650 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background 160ms var(--ease); }
.btn-primary { background: var(--shell); color: #fff; }
.btn-primary:hover { background: #1c5546; color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--sunken); color: var(--ink); }
.btn-on-dark { background: var(--signal); color: var(--shell); }
.btn-on-dark:hover { background: #8fe3d3; color: var(--shell); }
.nav .btn { display: inline-flex; padding: 0 16px; min-height: 40px; font-size: 15px; color: #fff; }
.nav .btn:hover { background: #1c5546; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 4px; font: 600 15px var(--sans); color: var(--ink); }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--ground); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open ul { display: flex; }
  .nav a { padding: 12px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--shell); }
  .nav .btn { margin-top: 8px; }
}

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.band { background: var(--shell); color: var(--shell-ink); }
.band h1, .band h2, .band h3 { color: #fff; }
.band .lede, .band p { color: var(--shell-ink); }
.band .label { color: var(--shell-muted); }
.band a:not(.btn) { color: var(--signal); }
.hero { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 0; overflow: hidden; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.hero .proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 48px; padding: 0; list-style: none; font: 500 14px var(--mono); color: var(--shell-muted); }
.hero .proof li::before { content: "✓ "; color: var(--signal); }
.shot { margin: 0; border-radius: 8px 8px 0 0; overflow: hidden; border: 1px solid var(--shell-line); border-bottom: 0; box-shadow: 0 -2px 0 rgba(255,255,255,0.04), 0 30px 80px rgba(0,0,0,0.35); background: #0d2a23; }
.shot.framed { border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(20,33,28,0.12); }
figcaption, .caption { font: 500 13px/1.5 var(--mono); color: var(--ink-muted); margin-top: 10px; }
.band figcaption { color: var(--shell-muted); }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.flip { grid-template-columns: 1.15fr 1fr; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* Ledger: the record-label list used instead of card grids */
.ledger { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ledger > li { display: grid; grid-template-columns: 220px 1fr auto; gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger h3 { margin: 0; font-size: 1.15rem; }
.ledger p { margin: 0; color: var(--ink-muted); }
.band .ledger, .band .ledger > li { border-color: var(--shell-line); }
.band .ledger p { color: var(--shell-ink); }
@media (max-width: 760px) { .ledger > li { grid-template-columns: 1fr; } }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 56px; border-left: 1px solid var(--line); margin-left: 16px; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: -17px; top: -2px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--label-border); border-radius: 4px; font: 600 13px var(--mono); color: var(--shell); }
.steps h3 { font-size: 1.08rem; margin-bottom: 4px; }
.steps p { color: var(--ink-muted); margin: 0; }

.note { border-left: 3px solid var(--shell); background: var(--surface); padding: 16px 20px; border-radius: 0 var(--r) var(--r) 0; color: var(--ink); }
.note.draft { border-color: var(--warn); background: var(--warn-bg); }
.scenario { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); margin-top: 28px; }
.scenario .label { color: var(--warn); }
.roadmap { width: 100%; border-collapse: collapse; margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.roadmap th, .roadmap td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.roadmap th { font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); background: var(--sunken); }
.table-scroll { overflow-x: auto; }

.cta-band { text-align: left; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { margin: 0; max-width: 22ch; }

/* Forms */
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--ink-muted); }
.field input, .field select, .field textarea { font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; padding: 10px 12px; min-height: 44px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #a12e35; box-shadow: 0 0 0 1px #a12e35; }
.field .error { color: #a12e35; font-size: 14px; font-weight: 600; min-height: 0; }
.field .error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--shell); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; }

/* Footer */
.site-footer { background: #0e2f27; color: var(--shell-ink); padding: 56px 0 32px; font-size: 15px; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--shell-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--shell-line); color: var(--shell-muted); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer p { color: var(--shell-muted); }

.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; max-width: 66ch; }
.prose li { margin-bottom: 0.4em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.tight-top { padding-top: 0; }
.page-head { padding-bottom: clamp(48px, 6vw, 80px); }
.shot.framed { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.shot.framed img { border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(20,33,28,0.12); }
.hero .shot-note { margin: 0 0 10px; font: 500 13px var(--mono); color: var(--shell-muted); }
@media (max-width: 640px) {
  .roadmap thead { display: none; }
  .roadmap, .roadmap tbody, .roadmap tr, .roadmap td { display: block; width: 100%; }
  .roadmap tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .roadmap td { border: 0; padding: 3px 0; }
  .roadmap td:first-child { font-weight: 700; }
}
