@font-face { font-family: "Manrope"; src: url("../assets/fonts/Manrope.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("../assets/fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --paper: #f4f1e9; --surface: #fcfaf5; --white: #fff; --ink: #19201e; --muted: #5d645f; --line: #e3e0d6; --field: #b9bdb5;
  --blue: #246bff; --blue-text: #1755d5; --copper: #d49b6c;
  --mint: #e1e9df; --mint-ink: #24512f; --butter: #eadba7; --butter-ink: #5c4d12; --rose-bg: #f3e6ee; --rose-ink: #7d2c4f;
  --shadow: 0 30px 60px -36px rgba(25,32,30,.28), 0 2px 6px rgba(25,32,30,.04);
  --radius: 18px; color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.55 "Manrope", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; z-index: 10; }
.skip:focus { top: 10px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h1 em, .accent { font-family: "Instrument", Georgia, serif; font-style: italic; font-weight: 400; color: var(--blue-text); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.1rem; letter-spacing: -.015em; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.dots { width: 18px; height: 6px; background: radial-gradient(circle at 3px 3px, var(--blue) 2.6px, transparent 3px), radial-gradient(circle at 14px 3px, var(--copper) 2.2px, transparent 2.6px); display: inline-block; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin-top: 16px; }
.lede.small { font-size: 1rem; margin-top: 10px; }
.hint { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; padding: 11px 18px; border-radius: 999px; transition: transform .2s, background .2s, color .2s; white-space: nowrap; }
.btn i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 12px; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover:not(:disabled) { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn-light { background: var(--white); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-light i { background: var(--blue); color: #fff; }

.top { padding: 14px 0; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand em { color: var(--blue); font-style: normal; }
.links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.links a:hover { background: var(--white); color: var(--ink); }

.hero { padding: 40px 0 26px; }
.note { margin-top: 18px; max-width: 70ch; padding: 14px 18px; border-radius: 14px; background: var(--mint); color: var(--mint-ink); font-size: 14.5px; }

.tabs { display: flex; gap: 8px; margin: 8px 0 18px; flex-wrap: wrap; }
.tab { padding: 11px 20px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); font-weight: 600; font-size: 15px; min-height: 44px; }
.tab.is-active { background: var(--ink); color: var(--paper); }

.stage { margin-bottom: 70px; }
.biz { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-text); font-weight: 700; margin-bottom: 6px; }
.steps { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 18px; }
.steps li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); font-size: 12px; }
.steps li.is-current { color: var(--ink); border-color: var(--ink); }
.steps li.is-done span { background: var(--blue); color: #fff; }

.grid { display: grid; gap: 16px; grid-template-columns: 290px 340px minmax(0, 1fr); align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }

.rules { list-style: none; display: grid; gap: 16px; margin-top: 16px; }
.rule { display: grid; gap: 8px; }
.rule label { display: grid; gap: 2px; }
.rule-label { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.rule small { color: var(--muted); font-size: 12.5px; }
.mode { width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--field); background: var(--surface); font-size: 14px; }

.pile { list-style: none; display: grid; gap: 8px; }
.item { width: 100%; text-align: left; display: grid; gap: 5px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.item:hover { border-color: var(--field); }
.item.is-selected { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(36,107,255,.18); }
.item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-snip { color: var(--muted); font-size: 13px; line-height: 1.4; }
.item-approved { font-size: 12.5px; font-weight: 700; color: var(--mint-ink); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip-wait { background: var(--paper); color: var(--muted); }
.chip-meets { background: var(--mint); color: var(--mint-ink); }
.chip-check { background: var(--butter); color: var(--butter-ink); }
.chip-no { background: var(--rose-bg); color: var(--rose-ink); }

.empty { color: var(--muted); padding: 12px 4px; }
.empty.small { padding: 4px 0; font-size: 14px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-grid h3 { margin-bottom: 8px; }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.quote { padding: 14px 16px; border-radius: 14px; background: var(--paper); font-size: 15px; }
.verdict { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin-bottom: 12px; }
.verdict-meets { background: var(--mint); color: var(--mint-ink); }
.verdict-check { background: var(--butter); color: var(--butter-ink); }
.verdict-no { background: var(--rose-bg); color: var(--rose-ink); }
.findings { list-style: none; display: grid; gap: 10px; }
.finding { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.f-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 700; background: var(--paper); }
.s-yes .f-icon { background: var(--mint); color: var(--mint-ink); }
.s-partly .f-icon, .s-unknown .f-icon { background: var(--butter); color: var(--butter-ink); }
.s-no .f-icon { background: var(--rose-bg); color: var(--rose-ink); }
.f-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 14.5px; }
.tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.f-word { font-size: 13px; font-weight: 700; margin-left: auto; }
.f-evidence { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.f-evidence.none { font-style: italic; }
.ignored { margin-top: 12px; font-size: 13px; color: var(--muted); }

.reply { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.reply label { font-weight: 700; display: block; }
.reply textarea { width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--field); background: var(--surface); line-height: 1.5; resize: vertical; min-height: 190px; font-size: 15px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.approved-note { font-weight: 700; color: var(--mint-ink); background: var(--mint); padding: 9px 14px; border-radius: 999px; font-size: 14px; }

.board-wrap { margin-top: 28px; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.col { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-height: 96px; }
.col h3 { font-size: 14px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.count { background: var(--paper); border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.col ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.mini { padding: 7px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 600; min-height: 36px; }
.mini:hover { border-color: var(--ink); }

.story { margin-bottom: 70px; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 22px 0; counter-reset: none; }
.flow li { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.flow .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }
.flow p { color: var(--muted); font-size: 14px; }
.example { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.example header { margin-bottom: 12px; }
.ex-rows { display: grid; gap: 12px; }
.ex-rows > div { display: grid; grid-template-columns: 200px 1fr; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ex-rows dt { font-weight: 700; font-size: 14.5px; }
.ex-rows dd { color: var(--ink); font-size: 14.5px; }
.ok { color: var(--mint-ink); font-weight: 700; margin-right: 4px; }
.flag { color: var(--butter-ink); font-weight: 700; margin-right: 4px; }
.stages { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.stages li { padding: 7px 14px; border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 600; color: var(--muted); }
.stages li.on { background: var(--butter); color: var(--butter-ink); }

.cta { background: var(--mint); border-radius: 24px; padding: 34px; margin-bottom: 40px; display: grid; gap: 12px; justify-items: start; }
.cta p { color: var(--mint-ink); max-width: 60ch; }
.foot { padding: 10px 0 50px; color: var(--muted); font-size: 13.5px; max-width: 80ch; }

@media (max-width: 1180px) { .grid { grid-template-columns: 290px minmax(0, 1fr); } .detail-panel { grid-column: 1 / -1; } .flow { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .ex-rows > div { grid-template-columns: 1fr; gap: 4px; }
  .cta { padding: 24px; }
  .hero { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .item { transition: none; } }
