:root {
  --ink: #173437;
  --ink-soft: #486266;
  --paper: #f5f6f1;
  --white: #fff;
  --moss: #dce7cf;
  --mint: #bfe2c3;
  --teal: #1b6763;
  --teal-dark: #102a2c;
  --line: #d9e1db;
  --amber: #e4ad58;
  --rose: #c26a66;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', system-ui, sans-serif; line-height: 1.5; }
a { color: inherit; }
button { font: inherit; }
.shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 10; padding: 10px 14px; color: var(--white); background: var(--teal-dark); border-radius: 0 0 5px 5px; }
.skip-link:focus { top: 0; }

.site-header { background: var(--teal-dark); color: var(--white); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 600; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--teal-dark); background: var(--mint); border-radius: 50%; font-size: 18px; }
.header-meta, .prototype-note { display: flex; align-items: center; gap: 8px; color: #bfd1ca; font: 11px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(191, 226, 195, .15); }

.hero { padding: 86px 0 92px; color: var(--white); background: var(--teal-dark); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: end; gap: 90px; }
.eyebrow { margin: 0 0 22px; color: #c1d7c7; font: 11px 'DM Mono', monospace; letter-spacing: .13em; }
.eyebrow-dark { color: var(--teal); }
.eyebrow-line { display: inline-block; width: 34px; height: 1px; margin-left: 10px; vertical-align: middle; background: currentColor; opacity: .7; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.08; letter-spacing: -.04em; }
h1 { max-width: 680px; margin-bottom: 24px; font-size: clamp(45px, 7vw, 78px); font-weight: 600; }
.hero-lede { max-width: 590px; margin-bottom: 34px; color: #c7d8d0; font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 46px; padding: 0 18px; border-radius: 3px; text-decoration: none; font-size: 14px; font-weight: 600; }
.button-primary { color: var(--teal-dark); background: var(--mint); }
.button-primary:hover, .button-primary:focus-visible { background: #dcf0d4; }
.text-link { color: var(--white); text-decoration: none; font-size: 14px; border-bottom: 1px solid #698784; padding-bottom: 4px; }
.text-link:hover, .text-link:focus-visible { border-color: var(--mint); }
.hero-note { padding: 23px 24px 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(205, 225, 213, .22); border-radius: 4px; }
.note-topline { display: flex; justify-content: space-between; color: #9ebbb2; font: 10px 'DM Mono', monospace; letter-spacing: .12em; }
.hero-note h2 { margin: 38px 0 7px; color: var(--white); font-size: 27px; }
.hero-note p { margin-bottom: 28px; color: #bbcec6; font-size: 13px; }
.note-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 17px 0; border-top: 1px solid rgba(205, 225, 213, .2); border-bottom: 1px solid rgba(205, 225, 213, .2); }
.note-stats div { display: flex; flex-direction: column; gap: 2px; }
.note-stats strong { color: var(--mint); font: 22px 'Space Grotesk', sans-serif; }
.note-stats span { color: #9ebbb2; font: 10px 'DM Mono', monospace; text-transform: uppercase; }
.hero-note .note-foot { margin: 18px 0 0; color: #9ebbb2; font: 10px 'DM Mono', monospace; text-transform: uppercase; }
.note-foot strong { color: var(--white); font-weight: 400; }

.section-pad { padding: 94px 0; }
.workspace { background: var(--paper); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 42px; }
.section-heading h2, .method h2, .limitations h2 { max-width: 550px; margin-bottom: 0; font-size: clamp(31px, 4vw, 49px); }
.section-intro { max-width: 310px; margin-bottom: 3px; color: var(--ink-soft); font-size: 14px; }
.queue-layout { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.5fr); gap: 20px; }
.premise-list { display: flex; flex-direction: column; gap: 10px; }
.premise-card { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; width: 100%; padding: 18px 16px; color: var(--ink); text-align: left; background: transparent; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; transition: border .2s ease, background .2s ease, transform .2s ease; }
.premise-card:hover, .premise-card:focus-visible { border-color: #9eb8a5; background: var(--white); transform: translateX(3px); }
.premise-card.is-selected { border-color: var(--teal); background: var(--white); box-shadow: 0 8px 22px rgba(32, 64, 47, .06); }
.premise-number { align-self: start; padding-top: 2px; color: #8aa09a; font: 11px 'DM Mono', monospace; }
.premise-main { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.premise-main strong { font-size: 14px; }
.premise-main small { color: var(--ink-soft); font-size: 12px; }
.confidence { align-self: start; margin-top: 2px; padding: 4px 7px; border-radius: 2px; font: 9px 'DM Mono', monospace; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; }
.confidence.high { color: #367144; background: #e2f0de; }
.confidence.medium { color: #92621e; background: #f7eacc; }
.confidence.low { color: #8b4d4a; background: #f5e0dc; }
.card-arrow { color: var(--teal); font-size: 18px; }
.detail-panel { min-width: 0; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 9px 25px rgba(32, 64, 47, .04); }
.detail-header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.detail-kicker, .context-label, .recommendation-label { margin-bottom: 10px; color: var(--teal); font: 10px 'DM Mono', monospace; letter-spacing: .11em; }
.detail-header h3 { margin-bottom: 7px; font-size: 30px; }
.detail-subtitle { margin-bottom: 0; color: var(--ink-soft); font-size: 13px; }
.fit-badge { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--ink-soft); font: 10px 'DM Mono', monospace; line-height: 1.35; text-transform: uppercase; }
.fit-number { color: var(--teal); font: 42px 'Space Grotesk', sans-serif; letter-spacing: -.07em; }
.signal-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.signal { display: flex; align-items: center; gap: 9px; }
.signal-icon { display: grid; place-items: center; width: 25px; height: 25px; color: var(--teal); border-radius: 50%; background: var(--moss); font-weight: 700; }
.signal-icon.friction { color: #986b2c; background: #f7eacc; }
.signal span:last-child { display: flex; flex-direction: column; gap: 2px; }
.signal small { color: var(--ink-soft); font-size: 10px; }
.signal strong { font-size: 13px; }
.recommendation { margin: 22px 0 25px; padding: 19px; background: #eff5e9; border-left: 3px solid var(--teal); }
.recommendation-label { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.action-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.recommendation p { max-width: 690px; margin-bottom: 14px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.recommendation-meta { display: flex; gap: 20px; color: var(--ink-soft); font: 10px 'DM Mono', monospace; }
.detail-columns { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }
.subsection-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.subsection-title h4 { margin: 0; font-size: 16px; }
.source-count { color: var(--ink-soft); font: 10px 'DM Mono', monospace; }
.evidence-list { display: flex; flex-direction: column; gap: 12px; }
.evidence-item { display: grid; grid-template-columns: 21px 1fr; gap: 9px; }
.evidence-marker { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font: 13px 'DM Mono', monospace; }
.evidence-marker.positive { color: #367144; background: #e2f0de; }
.evidence-marker.caution { color: #92621e; background: #f7eacc; }
.evidence-item strong { display: block; margin-bottom: 2px; font-size: 12px; }
.evidence-item p { margin-bottom: 2px; color: var(--ink-soft); font-size: 11px; line-height: 1.35; }
.evidence-item small { color: #7b9090; font: 9px 'DM Mono', monospace; }
.context-stack { display: flex; flex-direction: column; gap: 10px; }
.context-card { padding: 15px; background: #f6f8f3; border: 1px solid #e2e9df; }
.context-label { display: block; margin-bottom: 8px; color: #769088; font-size: 9px; }
.context-card strong { display: block; margin-bottom: 5px; font-size: 12px; }
.context-card p { margin-bottom: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
.data-stamp { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 25px; padding-top: 14px; color: #819595; border-top: 1px solid var(--line); font: 9px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .04em; }
.inline-button { padding: 0; color: var(--teal); background: none; border: 0; border-bottom: 1px solid #9cb6aa; cursor: pointer; font: inherit; text-transform: uppercase; }
.inline-button:hover, .inline-button:focus-visible { border-color: var(--teal); }

.comparison { background: var(--white); border-top: 1px solid var(--line); }
.compact-heading { margin-bottom: 34px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; min-width: 750px; border-collapse: collapse; font-size: 12px; }
th, td { padding: 16px 17px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { color: #78908c; background: #f5f7f2; font: 9px 'DM Mono', monospace; letter-spacing: .09em; text-transform: uppercase; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcf9; }
tbody th { font-weight: 600; }
tbody th small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 10px; font-weight: 400; }
.table-score { display: inline-grid; place-items: center; width: 32px; height: 26px; border-radius: 2px; font: 12px 'DM Mono', monospace; }
.score-good { color: #367144; background: #e2f0de; }.score-mid { color: #92621e; background: #f7eacc; }.score-low { color: #8b4d4a; background: #f5e0dc; }

.method { color: var(--white); background: var(--teal); }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.method .eyebrow { color: #bfe2c3; }
.method h2 { margin-bottom: 20px; }
.method-lede { max-width: 450px; color: #c8d9d0; font-size: 17px; }
.method-cards { display: flex; flex-direction: column; gap: 10px; }
.method-card { display: grid; grid-template-columns: 34px 1fr; gap: 18px; padding: 19px 0; border-top: 1px solid rgba(203, 227, 211, .24); }
.method-card:last-child { border-bottom: 1px solid rgba(203, 227, 211, .24); }
.method-icon { color: var(--mint); font: 11px 'DM Mono', monospace; }
.method-card h3 { margin: 0 0 5px; font-size: 17px; }.method-card p { margin-bottom: 0; color: #c8d9d0; font-size: 12px; }

.limitations { background: var(--moss); }
.limitations-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; }
.limitations-copy > p:first-child { max-width: 590px; color: #3f5b55; font-size: 16px; }
.limitation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 29px 0; }
.limitation-grid div { padding-top: 12px; border-top: 1px solid #aec9b1; }.limitation-grid strong { display: block; margin-bottom: 5px; font: 10px 'DM Mono', monospace; text-transform: uppercase; }.limitation-grid span { display: block; color: #4f6b63; font-size: 11px; line-height: 1.4; }
.prototype-note { margin-bottom: 0; color: #557169; font-size: 9px; }
.prototype-note .status-dot { background: var(--teal); box-shadow: none; }
.site-footer { color: #9cb1ad; background: var(--teal-dark); }
.footer-inner { display: flex; justify-content: space-between; padding: 19px 0; font: 10px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 850px) {
  .hero-grid, .method-grid, .limitations-inner { grid-template-columns: 1fr; gap: 42px; }
  .hero-note { max-width: 500px; }
  .section-heading { display: block; }.section-intro { max-width: 500px; margin-top: 18px; }
  .method-grid { gap: 50px; }.limitations-inner { gap: 35px; }
}
@media (max-width: 660px) {
  .shell { width: min(var(--max), calc(100% - 32px)); }
  .header-inner { min-height: 62px; }.header-meta { font-size: 9px; }.hero { padding: 60px 0 65px; } h1 { font-size: 47px; }.hero-lede { font-size: 16px; }.hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .section-pad { padding: 64px 0; }.queue-layout { grid-template-columns: 1fr; }.premise-card { grid-template-columns: 25px minmax(0, 1fr) 18px; }.confidence { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 4px; }.card-arrow { grid-column: 3; grid-row: 1 / span 2; }.detail-panel { padding: 20px 16px; }.detail-header h3 { font-size: 25px; }.fit-number { font-size: 34px; }.signal-row { grid-template-columns: 1fr; gap: 12px; }.detail-columns { grid-template-columns: 1fr; gap: 25px; }.recommendation-meta { flex-direction: column; gap: 5px; }.data-stamp { align-items: flex-start; flex-direction: column; }
  .limitation-grid { grid-template-columns: 1fr; gap: 17px; }.footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
}

:focus-visible { outline: 3px solid #ecbd5d; outline-offset: 3px; }
