:root {
  --bg: #F3F1EB;
  --surface: #FFFFFF;
  --ink: #16181D;
  --ink-2: #3A3D44;
  --muted: #5A5E66;
  --line: #DDD9CF;
  --line-soft: #ECE9E1;
  --accent: #0B5C4F;
  --accent-dark: #08463C;
  --accent-tint: #E4EFEC;
  --warm-tint: #F7EEE3;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(38px, 5.5vw, 64px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3, .h3 { font-size: 23px; line-height: 1.2; }
p { margin: 0; }

.wrap { max-width: 1248px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.section-tight { padding-top: 48px; padding-bottom: 48px; }
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; color: var(--accent); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 760px; }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 8px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { color: var(--bg); background: #000; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { color: var(--ink); background: var(--surface); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 20px; }
.brand:hover { color: var(--ink); }
.accent-stroke { stroke: var(--accent); }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* home hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 80px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.terminal { background: var(--ink); border-radius: 16px; padding: 28px; font-family: var(--mono); font-size: 14px; line-height: 1.8; color: #C9CDD4; overflow-x: auto; }
.dots { display: flex; gap: 8px; margin-bottom: 18px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); }
.t-green { color: #7FD1BE; } .t-amber { color: #E0A36A; } .t-red { color: #E27D6A; }
.t-muted { color: #8B909A; } .t-bright { color: var(--bg); }
.t-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid #2C2F36; }
.stack-strip { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 15px; color: var(--muted); }
.stack-strip .strong { color: var(--ink); }

/* inner page hero */
.page-hero { display: flex; flex-direction: column; gap: 20px; padding-top: 80px; padding-bottom: 40px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* cards */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
.section-head p { max-width: 460px; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card p, .card ul { color: var(--ink-2); font-size: 16px; }
.card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); color: var(--ink) !important; }
.card-link { text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card-link:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }
.more { margin-top: auto; color: var(--accent); font-weight: 500; font-size: 15px; }

/* dark bands */
.dark { background: var(--ink); color: var(--bg); }
.dark .eyebrow { color: #7FD1BE; }
.dark h2 { margin-bottom: 8px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--ink-2); }
.step h3 { font-size: 21px; }
.step p { color: #B7BBC3; font-size: 16px; }

/* two columns */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col.top { align-items: start; gap: 32px; }
.two-col > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.mini span { color: var(--muted); }

/* services index */
.service-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.service-row h2 { font-size: 28px; margin-bottom: 6px; }
.service-row p { color: var(--ink-2); }
.service-row:hover { color: var(--ink); }
.service-row:hover h2 { color: var(--accent); }

/* service detail */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.panel-warm { background: var(--warm-tint); border-color: #EADCC8; }
.checks { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checks.light li { color: #D6D9DE; }
.checks.light li::before { border-color: #7FD1BE; }
.includes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 32px; }
.include { padding: 24px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.include h3 { font-size: 20px; }
.include p { color: var(--ink-2); font-size: 16px; }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.timeline li { padding-left: 20px; border-left: 2px solid #7FD1BE; }
.timeline p { color: #D6D9DE; }
.engagement { margin-top: 28px; padding: 18px 20px; border-radius: 10px; background: #22252B; color: #D6D9DE; font-size: 16px; }
.faqs { margin-top: 24px; border-top: 1px solid var(--line); }
.faqs details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faqs summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faqs details[open] summary::after { content: "−"; }
.faqs details p { margin-top: 12px; color: var(--ink-2); max-width: 820px; }
.other-services { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 12px; }
.other-services a { text-decoration: none; font-weight: 500; }

/* how we work */
.steps-light { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step-card h3 { font-size: 21px; }
.step-card p:last-child { color: var(--ink-2); font-size: 16px; }

/* about */
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.tags { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 13px; }
.tags li { padding: 6px 12px; border-radius: 6px; background: var(--accent-tint); color: #0B4A40; }
.tags.big { font-size: 15px; }
.tags.big li { padding: 10px 16px; }

.soon { justify-content: center; }

/* CTA band and footer */
.cta-band { background: var(--accent); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.cta-inner h2 { font-size: clamp(26px, 3vw, 36px); }
.cta-inner p { color: #D3E8E2; margin-top: 8px; }
.cta-band .btn-accent { background: #fff; color: var(--accent-dark); }
.cta-band .btn-accent:hover { background: var(--bg); color: var(--accent-dark); }
.site-footer { font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 18px; margin-bottom: 8px; }
.footer-head { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 14px; }

@media (max-width: 1000px) {
  .steps.four, .steps-light { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero, .two-col, .cards, .steps, .includes, .footer-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 56px; gap: 40px; }
  .page-hero { padding-top: 56px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .service-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  .steps.four, .steps-light { grid-template-columns: 1fr; }
}

/* ---------- mobile menu ---------- */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
.header-inner { position: relative; }

/* ---------- assessment band (home) ---------- */
.assess-band { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px; border-radius: 16px; background: var(--accent-tint); border: 1px solid #C9DED8; }
.assess-band > div { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.assess-band p { color: var(--ink-2); }

/* ---------- assessment page ---------- */
.assessment { display: flex; flex-direction: column; gap: 28px; }
.area { margin: 0; padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.area legend { padding: 0 8px; font-family: var(--display); font-weight: 600; font-size: 22px; }
.area legend .eyebrow { font-size: 13px; margin-right: 8px; }
.question { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.question:first-of-type { border-top: none; }
.question p { color: var(--ink-2); }
.question.missing p { color: #9A3412; }
.question.missing p::before { content: "Unanswered: "; font-weight: 600; }
.choices { display: flex; gap: 8px; flex-shrink: 0; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; background: var(--bg); color: var(--ink-2); transition: all .12s; }
.choices label:hover span { border-color: var(--ink-2); }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choices input[value="yes"]:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.choices input[value="unsure"]:checked + span { background: #8A5A1B; border-color: #8A5A1B; color: #fff; }
.choices input[value="no"]:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.assess-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.assess-submit .btn { border: none; font-size: 16px; font-family: inherit; cursor: pointer; }
.progress { color: var(--muted); font-size: 15px; }
.form-error { width: 100%; color: #9A3412; font-weight: 500; }

.results { display: flex; flex-direction: column; gap: 24px; outline: none; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.result-head h3 { font-size: 20px; }
.badge { font-family: var(--mono); font-size: 14px; padding: 4px 10px; border-radius: 6px; background: var(--bg); }
.meter { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .6s ease; }
.result.strong .meter span { background: var(--accent); }
.result.fair .meter span { background: #B7791F; }
.result.weak .meter span { background: #B4441F; }
.result.weak { border-color: #E4B9A6; }
.result-note { color: var(--ink-2); font-size: 15px; }
.result-link { margin-top: auto; font-weight: 500; text-decoration: none; }
.results .btn-outline { background: transparent; font-size: 16px; font-family: inherit; cursor: pointer; }

/* ---------- articles ---------- */
.narrow { max-width: 820px; }
.article-title { font-size: clamp(34px, 4.6vw, 52px); }
.meta { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.article-body { padding-bottom: 48px; font-size: 18px; line-height: 1.75; }
.article-body > * + * { margin-top: 20px; }
.article-body h2 { font-size: 30px; margin-top: 48px; }
.article-body p, .article-body li { color: var(--ink-2); }
.article-body strong { color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li + li { margin-top: 10px; }
.article-body code { font-family: var(--mono); font-size: 0.88em; background: var(--line-soft); padding: 2px 6px; border-radius: 4px; }
.diagram { margin: 32px 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.diagram svg { width: 100%; height: auto; display: block; color: var(--muted); }
.diagram figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.d-box rect { fill: var(--bg); stroke: var(--line); stroke-width: 1.2; }
.d-accent rect { fill: var(--accent-tint); stroke: var(--accent); }
.d-title { font-family: var(--display); font-weight: 600; font-size: 16px; fill: var(--ink); }
.d-sub { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.d-line path { fill: none; stroke: currentColor; stroke-width: 1.6; }
.table-wrap { overflow-x: auto; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.article-body th, .article-body td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.article-body th { font-weight: 600; color: var(--ink); }
.article-body td { color: var(--ink-2); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 16px; right: 16px; z-index: 20; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { display: block; padding: 12px 8px; border-bottom: none; }
  .nav .btn { justify-content: center; margin-top: 8px; }
  .assess-band { flex-direction: column; align-items: flex-start; padding: 32px; }
  .question { flex-direction: column; align-items: flex-start; gap: 12px; }
  .area { padding: 20px; }
}
