:root {
  --paper: #f3efe6;
  --ink: #1a2744;
  --navy: #152038;
  --rust: #c45c26;
  --rust-dark: #a34b1e;
  --line: #d9d1c3;
  --muted: #5c6578;
  --white: #faf8f3;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--rust); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; }
.wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.wordmark { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.02em; text-decoration: none; font-weight: 600; }
.nav { display: flex; gap: 18px; flex: 1; font-size: 0.92rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a[aria-current] { color: var(--ink); font-weight: 600; }
.btn { display: inline-block; padding: 0.55rem 1rem; border-radius: 2px; text-decoration: none; border: 1px solid transparent; font: inherit; cursor: pointer; }
.btn-rust { background: var(--rust); color: #fff; }
.btn-rust:hover { background: var(--rust-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { border-color: var(--ink); background: transparent; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.85rem; }
.hero { padding: 4.5rem 0 3rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--muted); margin: 0 0 0.75rem; }
.hero h1, .page-prose h1 { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.15; font-weight: 600; margin: 0 0 1rem; }
.subhead, .lede { font-size: 1.15rem; max-width: 42rem; color: var(--navy); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.5rem 0 0.75rem; }
.under-cta { color: var(--muted); font-size: 0.95rem; }
.surfaces { padding: 0 0 4rem; }
.surface-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.surface-card { background: var(--white); border: 1px solid var(--line); padding: 1.4rem; }
.surface-card h2 { font-family: var(--serif); margin-top: 0; }
.mock { margin-top: 1rem; border: 1px solid var(--line); background: #efe9dc; font-size: 0.78rem; }
.mock-top { display: flex; justify-content: space-between; padding: 8px 10px; background: var(--navy); color: #f3efe6; }
.mock-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; }
.mock-tree, .mock-backlog { margin: 0; padding: 10px 12px; }
.mock-tree { list-style: none; border-right: 1px solid var(--line); }
.mock-tree .hi { color: var(--rust); font-weight: 600; }
.mock-backlog { list-style: none; }
.mock-tech { display: flex; justify-content: center; background: var(--paper); padding: 16px; }
.mock-phone { width: 200px; background: var(--navy); color: #f3efe6; padding: 16px; min-height: 220px; }
.mock-wo { font-weight: 700; margin: 0; }
.mock-asset { color: #c9c3b5; margin: 0 0 8px; }
.mock-phone ul { padding-left: 1.1rem; }
.mock-cta { margin-top: 12px; background: var(--rust); text-align: center; padding: 8px; }
.band { background: var(--navy); color: #f3efe6; padding: 3rem 0; }
.band a { color: #f3efe6; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.plain-list { list-style: none; padding: 0; }
.plain-list li { margin: 0.6rem 0; }
.page-prose { padding: 2.5rem 0 4rem; }
.page-prose h2 { font-family: var(--serif); }
.feature { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.steps { list-style: none; padding: 0; counter-reset: none; }
.steps li { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 2rem 0; }
.role-tag { color: var(--rust); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hint { color: var(--muted); font-size: 0.9em; }
.todo-note { border-left: 3px solid var(--rust); padding: 0.6rem 1rem; background: #efe6db; }
.tier-placeholders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.5rem 0; }
.tier { border: 1px solid var(--line); background: var(--white); padding: 1rem; }
.estimate-result { border: 1px solid var(--ink); padding: 1rem 1.2rem; background: var(--white); margin: 1rem 0; }
.stack-form { display: grid; gap: 0.85rem; max-width: 40rem; }
.stack-form label, .stack-form fieldset { display: grid; gap: 0.3rem; font-size: 0.92rem; }
.stack-form input, .stack-form select, .stack-form textarea {
  font: inherit; padding: 0.45rem 0.55rem; border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: flex; gap: 8px; align-items: center; margin: 0.25rem 0; }
.hp { position: absolute; left: -9999px; }
.fineprint { color: var(--muted); font-size: 0.85rem; }
.flash { padding: 0.7rem 1rem; margin: 1rem 0; border: 1px solid var(--line); }
.flash-success { border-color: #2f5d50; }
.flash-error { border-color: #9b2c2c; background: #f8ece8; }
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: 0.9rem; background: var(--white); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.resource-list { list-style: none; padding: 0; }
.resource-list li { border-top: 1px solid var(--line); padding: 1rem 0; display: grid; gap: 0.2rem; }
.sheet { padding: 2.5rem 0 4rem; max-width: 720px; }
.sheet h1 { font-family: var(--serif); }
.sheet-kicker { letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; color: var(--muted); }
.sheet-steps { padding-left: 1.2rem; }
.sheet-foot { color: var(--muted); }
.print-actions { margin-top: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.guide-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  background: var(--navy); color: #f3efe6; border: 0; padding: 0.7rem 1rem; cursor: pointer; font: inherit;
}
.guide { }
.guide-panel {
  position: fixed; right: 20px; bottom: 72px; width: min(380px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--ink); z-index: 41; display: none;
  max-height: min(70vh, 520px); flex-direction: column;
}
.guide.is-open .guide-panel { display: flex; }
.guide-panel header { padding: 12px 14px; border-bottom: 1px solid var(--line); position: relative; }
.guide-panel h2 { margin: 0; font-family: var(--serif); font-size: 1.1rem; }
.guide-panel header p { margin: 4px 0 0; color: var(--muted); font-size: 0.82rem; }
.guide-close { position: absolute; right: 8px; top: 8px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; }
.guide-body { padding: 10px 14px; overflow: auto; flex: 1; font-size: 0.92rem; }
.guide-item { border-bottom: 1px solid var(--line); padding: 8px 0; }
.guide-item button { background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; font-weight: 600; }
.guide-search, .guide-lead { padding: 10px 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.guide-search input, .guide-lead input { font: inherit; padding: 0.4rem; border: 1px solid var(--line); }

@media (max-width: 800px) {
  .header-inner, .surface-grid, .split, .two-col, .tier-placeholders, .form-row, .footer-inner { grid-template-columns: 1fr; display: grid; }
  .nav { display: none; }
}
@media print {
  .site-header, .site-footer, .guide, .print-actions, .btn { display: none !important; }
  body { background: #fff; }
}
