@import url("report-tokens.css");

:root {
  color-scheme: dark;
  --paper: #f5f2eb;
  --paper-ink: #18191e;
  --paper-muted: #54514f;
  --paper-line: #d3ccc1;
  --rust-ink: #a8431f;
  --wrap: min(1180px, calc(100% - 64px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0f1014; color: #f1eee6; font: 16px/1.6 var(--font-sans, system-ui); }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #e8805d; outline-offset: 5px; }
.light :focus-visible { outline-color: var(--rust-ink); }
.skip { position: absolute; top: -90px; left: 20px; padding: 10px 16px; background: #f1eee6; color: #0f1014; z-index: 2; }
.skip:focus { top: 10px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.site-header { border-bottom: 1px solid #303138; }
.nav-row, .footer-row { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.nav-row { min-height: 76px; }
.brand { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; text-decoration: none; font-weight: 740; letter-spacing: -.035em; font-size: 21px; }
.brand img { display: block; width: 59px; }
.nav-links, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 26px; }
.nav-links a { font-size: 14px; color: #c3c0bb; text-decoration: none; }
.nav-links a:hover, .nav-links [aria-current] { color: #f1eee6; text-decoration: underline; text-decoration-color: #e8805d; }
.nav-links .github { border: 1px solid #4c4a50; color: #f1eee6; padding: 7px 13px; }
.hero { padding-block: clamp(60px, 7.8vw, 112px); }
.hero-grid, .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(32px, 6vw, 94px); align-items: center; }
.eyebrow { color: #e8805d; font: 600 .77rem/1.5 var(--font-mono, monospace); letter-spacing: .12em; text-transform: uppercase; display: block; margin: 0 0 16px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 650; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 6.25vw, 5.75rem); margin-bottom: 25px; }
h2 { font-size: clamp(2.2rem, 4.1vw, 4rem); margin-bottom: 22px; }
h3 { font-size: 1.2rem; line-height: 1.35; letter-spacing: -.01em; margin-bottom: 10px; }
h1 em { color: #e8805d; font-style: normal; }
.lead { font-size: clamp(1.04rem, 1.45vw, 1.2rem); max-width: 56ch; color: #c3c0bb; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 17px; border: 1px solid #e8805d; background: #e8805d; color: #191312; font-weight: 690; font-size: .925rem; line-height: 1.4; text-decoration: none; }
.btn:hover { background: #f0916f; }
.btn.outline { background: transparent; border-color: #65636a; color: #f1eee6; }
.btn.outline:hover { background: #23242b; }
.light .btn.outline { color: var(--paper-ink); border-color: #7a726a; }
.light .btn.outline:hover { background: #e9e3d9; }
.hero-meta { margin-top: 19px; color: #b7b5b7; font: .8rem/1.5 var(--font-mono, monospace); }
.evidence-card { min-width: 0; border: 1px solid #3b3a44; border-top: 3px solid #e8805d; background: #16171b; }
.evidence-top, .evidence-foot, .score { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 15px; align-items: center; padding: 13px 18px; border-bottom: 1px solid #35343c; }
.evidence-top, .evidence-foot { font: .8rem/1.6 var(--font-mono, monospace); color: #c3c0bb; }
.evidence-top strong { color: #f1eee6; }
.evidence-foot { border-bottom: 0; border-top: 1px solid #35343c; overflow-wrap: anywhere; }
.score { font-size: .88rem; justify-content: flex-start; }
.status { display: inline-block; padding: 3px 8px; border: 1px solid currentColor; color: #6fd3df; font: 700 .79rem/1.35 var(--font-mono, monospace); }
.status.fail { color: #ff8b93; }
.status.unknown { color: #f2c765; }
.code { margin: 0; padding: 17px 18px; background: #18191f; color: #f1eee6; font: .875rem/1.65 var(--font-mono, monospace); white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
.code code, .code pre { font: inherit; }
.diff-add { color: #f39a7c; }
.section { padding-block: clamp(58px, 7vw, 99px); }
.light { color-scheme: light; background: var(--paper); color: var(--paper-ink); }
.light .eyebrow { color: var(--rust-ink); }
.light .lead, .light .muted { color: var(--paper-muted); }
.dark { background: #16171b; border-top: 1px solid #33343a; }
.section-head { max-width: 790px; margin-bottom: 34px; }
.benefits, .steps, .verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 54px); }
.benefits article, .steps article, .verdicts article { padding-top: 18px; border-top: 1px solid var(--paper-line); }
.benefits p, .steps p, .verdicts p { margin-bottom: 0; }
.dark .steps article, .verdicts article { border-color: #53525b; }
.dark .steps p, .verdicts p, .muted { color: #c3c0bb; }
.text-link { font-weight: 650; }
figure { margin: 0; min-width: 0; }
.product-image { padding: 8px; background: #24252a; border: 1px solid #42434a; }
.product-image img { width: 100%; height: auto; display: block; }
figcaption, .micro { font-size: .875rem; margin-top: 10px; color: #c3c0bb; }
.light figcaption, .light .micro { color: var(--paper-muted); }
.rule-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.code-panel { background: #16171b; color: #f1eee6; border: 1px solid #42434a; min-width: 0; }
.code-panel h3 { font-size: .875rem; font-family: var(--font-mono,monospace); border-bottom: 1px solid #3a3b43; margin: 0; padding: 12px 18px; }
.callout { border-left: 3px solid #e8805d; padding: 12px 18px; background: #212126; margin-block: 20px; }
.light .callout { border-color: var(--rust-ink); background: #ebe5dc; }
.callout p:last-child { margin-bottom: 0; }
.verdicts .status { margin-bottom: 13px; }
.site-footer { border-top: 1px solid #34343a; padding-block: 34px; }
.footer-links a { color: #c3c0bb; font-size: .875rem; }
.article header { padding-block: clamp(44px, 6vw, 75px) 22px; }
.article header h1 { font-size: clamp(2.35rem, 5vw, 4.25rem); max-width: 25ch; }
.article-content { width: min(840px,100%); padding-bottom: 72px; }
.article-content h2 { font-size: clamp(1.6rem,3.2vw,2.35rem); line-height: 1.2; letter-spacing: -.02em; margin: 38px 0 14px; }
.article-content h3 { margin-top: 24px; }
.article-content p, .article-content li { max-width: 74ch; }
.article-content .code { border: 1px solid #44454c; }
.article-content code:not(pre code) { overflow-wrap: anywhere; font-family: var(--font-mono, monospace); font-size: .93em; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #41424a; padding: 12px 14px 12px 0; text-align: left; vertical-align: top; }
.light th, .light td { border-color: var(--paper-line); }
details { border-top: 1px solid #41424a; padding: 13px 0; }
summary { cursor: pointer; font-weight: 650; min-height: 34px; }
details p { margin-bottom: 5px; }
@media (max-width: 940px) {
  :root { --wrap: min(1180px,calc(100% - 46px)); }
  .nav-row { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 15px; }
  .hero-grid, .split { gap: 26px; }
  h1 { font-size: clamp(2.9rem,6.5vw,4.2rem); }
}
@media (max-width: 690px) {
  :root { --wrap: calc(100% - 32px); }
  .hero-grid, .split, .rule-grid, .benefits, .steps, .verdicts { grid-template-columns: minmax(0,1fr); }
  .hero { padding-block: 52px; }
  .nav-links { gap: 8px 16px; }
  .nav-links a { padding-block: 5px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .evidence-top, .evidence-foot, .score, .code { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.hero-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 68px); }
.hero h1 { font-size: clamp(3rem, 5.05vw, 4.85rem); line-height: 1.08; text-wrap: normal; }
.demo-page header { padding-block: clamp(35px,4.5vw,56px) 12px; }
.demo-page header h1 { max-width: none; font-size: clamp(2.25rem,4.8vw,3.4rem); margin-bottom: 16px; text-wrap: normal; }
.demo-page .lead { max-width: 66ch; }
.native-demo { scroll-margin-top: 18px; }
.demo-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; margin-bottom: 14px; }
.demo-intro h2 { font-size: clamp(1.35rem,2.2vw,1.85rem); margin-bottom: 9px; }
.demo-intro p { margin: 0; max-width: 67ch; color: #c3c0bb; }
.demo-intro .actions { margin-top: 4px; }
.report-frame { display: block; width: 100%; height: clamp(480px,71vh,700px); border: 1px solid #4a4648; color-scheme: dark; background: #0f1014; }
.frame-links { margin-top: 12px; color: #c3c0bb; }
.explorer-views { margin: 0; border-top: 1px solid var(--paper-line); }
.explorer-views div { display: grid; grid-template-columns: minmax(6ch,1fr) 3fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--paper-line); }
.explorer-views dt { font-weight: 700; }
.explorer-views dd { margin: 0; color: var(--paper-muted); }
.light .evidence-card { color-scheme: dark; color: #f1eee6; }
.anchor-alias { display: block; position: absolute; }
.loop { margin: 26px 0; padding: 0; list-style-position: inside; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.loop li { background: #1a1b21; padding: 16px 14px; border: 1px solid #4a4648; font-size: .94rem; overflow-wrap: anywhere; }
.loop li::marker { color: #e8805d; font-family: var(--font-mono, monospace); font-weight: 700; }
.loop strong { display: inline; }
.loop span { display: block; margin-top: 8px; color: #c3c0bb; }
.article-content .loop { grid-template-columns: minmax(0,1fr); gap: 0; }
.article-content .loop li { max-width: none; border: 0; border-top: 1px solid #4a4648; padding: 13px 0; background: none; }
.article-content .loop li:last-child { border-bottom: 1px solid #4a4648; }
.article-content .loop span { margin: 3px 0 0 2ch; }
.light details { border-color: var(--paper-line); }
.product-views { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: start; }
.product-views img { display: block; }
@media (max-width: 940px) {
  .loop { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 690px) {
  .hero-grid, .loop, .article-content .loop, .product-views { grid-template-columns: minmax(0,1fr); }
  .hero h1 { font-size: clamp(2.45rem, 9.8vw, 3.55rem); }
  .report-frame { height: clamp(485px,76vh,640px); }
}

/* Homepage: architectural lines, restrained typography and a real product view. */
.home-page { --paper: #eff1f1; --paper-ink: #171b1d; --paper-muted: #505b5e; --paper-line: #bfc9c9; background: #101416; }
.home-page .site-header { background: #101416; border-color: #394244; }
.home-page .nav-row { min-height: 82px; }
.home-page .brand { letter-spacing: -.025em; }
.home-page .nav-links a { font-size: .9rem; }
.home-page .hero { padding: clamp(60px,8vw,112px) 0 42px; overflow: hidden; background: #101416; }
.hero-intro { display: grid; grid-template-columns: minmax(0, 3fr) minmax(180px, 1fr); align-items: end; gap: clamp(35px,8vw,120px); }
.home-page .hero h1 { max-width: 17ch; font-size: clamp(3.2rem,6.1vw,5.75rem); letter-spacing: -.052em; line-height: .99; margin-bottom: 30px; }
.home-page .hero h1 em { color: #e8805d; }
.home-page .hero .lead { max-width: 58ch; font-size: clamp(1.05rem,1.35vw,1.23rem); }
.home-page .actions { margin-top: 30px; }
.home-page .btn { min-height: 50px; padding-inline: 21px; }
.home-page .hero-meta { margin: 28px 0 0; font-size: .76rem; letter-spacing: .06em; color: #b2b9b8; }
.home-page .hero-meta span { margin-inline: 9px; color: #e8805d; }
.hero-aside { border-left: 1px solid #6f7776; padding: 3px 0 4px 23px; margin-bottom: 3px; }
.hero-aside span, .product-top { color: #c9aaa0; font: 600 .76rem/1.5 var(--font-mono,monospace); letter-spacing: .08em; }
.hero-aside p { margin: 14px 0; font-size: 1.15rem; line-height: 1.45; color: #e7e9e5; }
.hero-aside a { font-size: .9rem; font-weight: 650; color: #eaa088; }
.hero-product { margin-top: clamp(48px,7vw,100px); border: 1px solid #4d5858; box-shadow: 20px 20px 0 #1d2727; background: #181d1e; }
.product-top, .product-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 18px; }
.product-top { border-bottom: 1px solid #4d5858; }
.hero-product a { display: block; }
.hero-product img { display: block; width: 100%; max-height: 590px; object-fit: cover; object-position: top; }
.product-bottom { border-top: 1px solid #4d5858; color: #c5cbca; font-size: .9rem; }
.product-bottom a { color: #f0a489; font-weight: 650; }
.hero-caption { margin: 32px 0 0; color: #abb3b2; font-size: .875rem; }
.home-page .section { padding-block: clamp(70px,8vw,120px); }
.home-page .section-head { max-width: 800px; }
.home-page h2 { letter-spacing: -.04em; }
.home-page .benefits, .home-page .verdicts { gap: clamp(28px,5vw,70px); }
.home-page .benefits article { border-width: 2px; }
.home-page .proof-section { background: #202827; border-block: 1px solid #47514f; }
.proof-layout { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); align-items: center; gap: clamp(34px,6vw,90px); }
.proof-layout > div:first-child > a { display: inline-block; color: #f0a489; margin-top: 12px; }
.home-page .proof-layout .evidence-card { box-shadow: 12px 12px 0 #111716; }
.home-page .loop li { background: transparent; border: 0; border-top: 2px solid #e8805d; padding: 17px 12px 0 0; }
.home-page .site-footer { background: #101416; }
@media (max-width: 760px) {
  .hero-intro, .proof-layout { grid-template-columns: minmax(0,1fr); }
  .hero-aside { max-width: 400px; }
  .home-page .hero h1 { font-size: clamp(3rem,11vw,5rem); }
  .hero-product { box-shadow: 9px 9px 0 #1d2727; }
  .hero-product img { max-height: none; }
  .product-top, .product-bottom { align-items: start; flex-wrap: wrap; }
  .home-page .proof-layout .evidence-card { box-shadow: 6px 6px 0 #111716; }
}

/* The process flow describes responsibilities, not a second architecture graph. */
.four-verdicts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.status.conditional { color: #b7c8fa; }
.architecture-flow { list-style: none; margin: 28px 0; padding: 0; border-top: 1px solid #59615f; }
.architecture-flow li { display: grid; grid-template-columns: minmax(170px, .7fr) minmax(0, 1.3fr); gap: 20px; padding: 15px 0; border-bottom: 1px solid #59615f; }
.architecture-flow li strong { color: #f0a489; }
.architecture-flow li span { color: #e1e3df; }
@media (max-width: 760px) {
  .four-verdicts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .architecture-flow li { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}
@media (max-width: 440px) { .four-verdicts { grid-template-columns: minmax(0, 1fr); } }
.door-window { border-top: 1px solid #59615f; margin: 24px 0; }
.door-window div { display: grid; grid-template-columns: minmax(110px,.55fr) minmax(140px,1fr) minmax(0,1.8fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid #59615f; }
.door-window strong { color: #eaa088; font: 700 .8rem/1.6 var(--font-mono,monospace); letter-spacing: .04em; }
.door-window code { color: #f1eee6; overflow-wrap: anywhere; }
.door-window span { color: #c3c0bb; }
@media (max-width: 690px) { .door-window div { grid-template-columns: minmax(0,1fr); gap: 6px; } }
@media (max-width: 690px) {
  .table-scroll::before { content: 'Scroll horizontally to view the full table'; display: block; color: #c3c0bb; font-size: .875rem; padding: 0 0 10px; }
}
