:root {
  --cream: #fbf6ea;
  --sand: #f4ecd9;
  --line: #e3dac4;
  --navy: #14284b;
  --navy-line: #2f4570;
  --amber: #f2c14e;
  --rust: #8a4a12;
  --body: #33415e;
  --muted: #4b5468;
  --paper: #fffdf7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--navy); }
a:hover { color: #0b1a33; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--amber); color: var(--navy); padding: 10px 16px; z-index: 10; font-weight: 700; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust); }
.eyebrow-amber { color: var(--amber); }

h2 { font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 6px;
  font: 700 15px 'Public Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer;
  border: none;
}
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-sm { font-size: 14px; padding: 0 14px; border-radius: 8px; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #f5cd6b; color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: #1d3763; color: var(--cream); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 0 22px; }
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid #5a6b8c; font-weight: 600; }
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); }

/* Header */
.site-header { background: var(--navy); color: var(--cream); }
.header-row { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--cream); text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.brand:hover { color: var(--cream); }
.brand-name { font-weight: 800; font-size: 19px; }
.brand-sub { font-size: 13px; color: #c9d3e6; }
.nav-wide { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.nav-wide > a:not(.btn) { color: var(--cream); text-decoration: none; font-size: 15px; }
.nav-wide > a:not(.btn):hover { text-decoration: underline; color: var(--cream); }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid #4b5f86; background: transparent; color: var(--cream); font: 600 15px 'Public Sans', sans-serif; cursor: pointer; }
.nav-mobile { padding: 0 16px 16px; display: flex; flex-direction: column; }
.nav-mobile[hidden] { display: none; }
.nav-mobile a { padding: 12px 0; border-top: 1px solid var(--navy-line); color: var(--cream); text-decoration: none; }

@media (max-width: 900px) {
  .nav-wide { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
}
@media (min-width: 901px) {
  .nav-mobile { display: none !important; }
}

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 32px; }
.hero-text { display: flex; flex-direction: column; gap: 18px; max-width: 920px; }
.hero h1 { font-weight: 800; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.1; letter-spacing: -0.015em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--body); max-width: 780px; }
.lede strong { color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .hero-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hero-cards { grid-template-columns: 1fr; } }
.hero-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.hero-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(20, 40, 75, .5); color: var(--navy); }
.hc-tag { font-size: 13px; font-weight: 700; color: var(--rust); }
.hc-title { font-weight: 700; font-size: 18px; line-height: 1.3; }
.hc-link { font-size: 15px; color: var(--muted); }
.hero-card-dark { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.hero-card-dark:hover { color: var(--cream); }
.hero-card-dark .hc-tag { color: var(--amber); }
.hero-card-dark .hc-link { color: #c9d3e6; }

/* Bands */
.band-navy { background: var(--navy); color: var(--cream); }
.band-sand { background: var(--sand); border-top: 1px solid var(--line); }

/* Report */
.report-row { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); align-items: center; }
.report-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.report-text p { color: #d6deec; }
.report-page { flex: 1 1 460px; min-width: 0; background: var(--paper); color: var(--navy); border-radius: 6px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
.rp-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill { padding: 3px 10px; border-radius: 999px; background: var(--navy); color: var(--cream); font-size: 12.5px; font-weight: 700; }
.rp-meta { font-size: 13px; color: var(--muted); }
.rp-title { font-size: 21px; font-weight: 800; line-height: 1.25; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 20px; }
.rp-block { display: flex; flex-direction: column; gap: 3px; }
.rp-label { font-size: 12.5px; font-weight: 700; color: var(--rust); text-transform: uppercase; letter-spacing: .06em; }
.rp-block p { font-size: 15px; color: var(--body); }
.rp-tags { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #ece4d1; padding-top: 12px; font-size: 13.5px; }
.rp-tags span { padding: 4px 10px; border-radius: 4px; background: var(--sand); }

/* Problems */
.problems { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.section-head p { color: var(--body); }
.problem { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.p-head { display: flex; flex-direction: column; gap: 6px; }
.p-tag { font-size: 13px; font-weight: 700; color: var(--rust); text-transform: uppercase; letter-spacing: .06em; }
.problem h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.2; }
.flow { display: flex; flex-direction: column; gap: 8px; }
.flow-label { font-size: 13px; font-weight: 700; color: var(--navy); }
.flow-label-before { color: var(--rust); }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.node { padding: 10px 14px; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.chain-before .node { background: #f6e9dc; color: #5e2f0b; }
.chain-before .node-risk { background: transparent; border: 2px dashed #b46a2c; }
.chain-after .node { background: #e3e9f4; color: var(--navy); }
.chain-after .node-person { background: var(--navy); color: var(--cream); }
.arrow { width: 20px; height: 20px; flex: 0 0 auto; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.chain-before .arrow { color: var(--rust); }
.chain-after .arrow { color: var(--navy); }
.flow-note { font-size: 13px; color: var(--muted); }
.p-bottom { display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid #ece4d1; padding-top: 18px; }
.p-steps { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.p-steps-title { font-weight: 700; }
.p-steps ul { margin: 0; padding-left: 20px; color: var(--body); display: flex; flex-direction: column; gap: 4px; }

/* Example workflow */
.example { flex: 1 1 400px; min-width: 0; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.ex-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--navy); color: var(--cream); }
.ex-title { display: flex; flex-direction: column; line-height: 1.3; }
.ex-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.ex-sub { font-size: 13.5px; color: #d6dcea; }
.ex-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.ex-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ex-caption { font-size: 14px; font-weight: 600; color: var(--navy); background: var(--sand); border-radius: 6px; padding: 8px 12px; white-space: pre-wrap; }
.ex-card { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; transition: opacity .25s ease, background-color .25s ease, border-color .25s ease; }
.ex-card.is-running { border: 2px solid var(--amber); padding: 11px 13px; background: #fffaf0; }
.ex-card.is-waiting { opacity: .45; }
.ex-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ex-tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--rust); }
.ex-status { font-size: 12px; font-weight: 700; color: var(--body); }
.ex-card-title { font-weight: 700; font-size: 16px; }
.ex-rows { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2px 14px; }
.ex-rows div { display: flex; gap: 8px; font-size: 14px; min-width: 0; }
.ex-rows dt { color: #6a7590; flex: 0 0 auto; }
.ex-rows dd { margin: 0; }
.ex-foot { font-size: 14px; border-top: 1px solid var(--line); padding-top: 8px; }

/* How it works */
.how { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); display: flex; flex-direction: column; gap: 28px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.step-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--cream); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.step-flag { font-size: 12.5px; font-weight: 700; color: var(--rust); }
.step-title { font-weight: 800; font-size: 18.5px; }
.steps p { color: var(--body); font-size: 16px; }
.outcomes { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; border: 2px solid var(--navy); border-radius: 12px; padding: clamp(18px, 2.5vw, 26px); background: var(--cream); }
.outcomes-title { flex: 1 1 240px; font-weight: 800; font-size: clamp(20px, 2vw, 24px); }
.outcomes p { flex: 2 1 420px; min-width: 0; color: var(--body); font-size: 16px; }

/* About */
.about { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 56px); }
.about img { flex: 0 0 auto; width: 200px; height: 240px; border-radius: 12px; object-fit: cover; object-position: center top; background: #efe6d2; }
.about-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; max-width: 700px; }
.about-text h2 { font-size: clamp(26px, 2.8vw, 36px); }
.about-text p { color: var(--body); }

/* Contact */
.contact { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.contact-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-lede { color: var(--body); font-size: 18px; }
.contact-line { font-size: 15px; color: var(--muted); }
.contact-line a { font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d3e6; }
.footer-row { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

@media (max-width: 520px) {
  .actions .btn { flex: 1 1 100%; }
  .chain .arrow { transform: rotate(90deg); }
  .chain { flex-direction: column; align-items: flex-start; }
}
