@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #faf7f0;
  --surface: #fffdf8;
  --band: #eee9dd;
  --soft: #f4f1ea;
  --ink: #1b2b4c;
  --muted: #4d5b69;
  --line: #cfc9bc;
  --accent: #77571d;
  --gold: #b79445;
  --gold-light: #ead095;
  --action: #203556;
  --action-ink: white;
  --action-hover: #354f71;
  --highlight: #f5e7c6;
  --teal: #34655b;
  --feature-start: #213854;
  --feature-end: #111e35;
  --feature-line: #384b62;
  --wash: #e8dec666;
  --shadow: 0 18px 46px -30px #13203866;
  --serif: Georgia, Cambria, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101c2d;
  --surface: #1a293c;
  --band: #142235;
  --soft: #203248;
  --ink: #f1f0eb;
  --muted: #bdc8d3;
  --line: #415165;
  --accent: #e7c780;
  --action: #e7c780;
  --action-ink: #192538;
  --action-hover: #f6dba3;
  --highlight: #3b3327;
  --teal: #9fc9bb;
  --feature-start: #263e55;
  --feature-end: #1a2a40;
  --feature-line: #4c6178;
  --wash: #38557642;
  --shadow: 0 18px 46px -28px #070e18;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; font: 1rem/1.65 var(--sans); color: var(--ink); background: var(--paper); }
main { background: radial-gradient(ellipse at 78% 15%, var(--wash), transparent 63%) top center / 100% 760px no-repeat; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font: 400 clamp(2.15rem, 3.9vw, 3.65rem)/1.09 var(--serif); letter-spacing: -.043em; }
h3 { font-size: 1.25rem; line-height: 1.35; }
p { color: var(--muted); }
em { color: var(--accent); font-weight: inherit; }
a { color: inherit; text-decoration: none; }
button, select { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.run-card :focus-visible { outline-color: var(--gold-light); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 50; background: var(--surface); padding: 10px 16px; }
.skip-link:focus { top: 6px; }
.container { width: min(1240px, calc(100% - 6rem)); margin-inline: auto; }
.section { padding-block: clamp(4.25rem, 7.5vw, 7rem); }
.eyebrow, .panel-toolbar, .scenario-tabs small { font-size: .75rem; font-weight: 650; letter-spacing: .09em; }
.eyebrow { margin-bottom: 1.25rem; color: var(--accent); }
.gold-line { display: inline-block; width: 24px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 8px; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: .9rem; font-weight: 600; }
.button { min-height: 46px; border-radius: 6px; padding: .8rem 1.25rem; background: var(--action); color: var(--action-ink); }
.button:hover { background: var(--action-hover); }
.text-link { font-size: .975rem; }
.text-link:hover, nav a:not(.button):hover, .footer a:not(.brand):hover { text-decoration: underline; text-underline-offset: .28em; }
.button span, .text-link span { font-size: 1.15em; }
.header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.nav-wrap { min-height: 94px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.brand { display: block; width: min(100%, 280px); }
.brand img { width: 100%; }
.brand .brand-dark, [data-theme="dark"] .brand .brand-light { display: none; }
[data-theme="dark"] .brand .brand-dark { display: block; }
.nav-wrap nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); font-size: .95rem; font-weight: 550; }
.button-small { padding: .6rem 1rem; }
.menu-toggle, .theme-choice { border: 1px solid var(--line); background: var(--soft); border-radius: 7px; min-height: 44px; }
.menu-toggle { display: none; }
.theme-choice { position: relative; display: inline-flex; align-items: center; }
.theme-choice:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-choice select { height: 44px; border: 0; background: transparent; padding: 0 .45rem 0 2rem; font-size: .9rem; outline: 0; }
.theme-choice option { color: var(--ink); background: var(--surface); }
.theme-icon { pointer-events: none; position: absolute; left: .65rem; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.hero { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(2.5rem, 6vw, 6.5rem); align-items: center; padding-block: clamp(3rem, 5.5vw, 6rem); }
.hero h1 { font-size: clamp(3.6rem, 6.05vw, 5.4rem); line-height: 1.03; }
.hero-description { margin-top: 1.5rem; max-width: 43ch; font-size: clamp(1.08rem, 1.45vw, 1.23rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.8rem; }
.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 3rem; margin-bottom: 2.5rem; }
.section-heading > p { max-width: 44ch; }
.explorer { display: grid; grid-template-columns: .85fr 1.35fr; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.explorer-copy, .scenario-panel { padding: clamp(1.25rem, 2.8vw, 2.4rem); min-width: 0; }
.explorer-copy { background: var(--band); border-right: 1px solid var(--line); }
.explorer-copy h3, .panel-title h3 { font: 400 1.65rem/1.2 var(--serif); letter-spacing: -.02em; }
.muted, .panel-title p, .explorer-foot, .capability-list p, .faq-list details p { margin-top: .6rem; }
.scenario-tabs { display: grid; gap: .4rem; margin-block: 1.5rem; }
.scenario-tabs button { display: flex; justify-content: space-between; align-items: center; gap: .6rem; text-align: left; border: 1px solid transparent; border-radius: 6px; padding: .85rem 1rem; background: transparent; font-weight: 550; }
.scenario-tabs button:hover { background: var(--soft); }
.scenario-tabs button[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: inset 3px 0 var(--gold); }
.scenario-tabs small { display: block; color: var(--accent); margin-bottom: .15rem; }
.explorer-foot { font-size: .9rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.panel-toolbar, .panel-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-block: .65rem; color: var(--muted); }
.panel-toolbar { border-bottom: 1px solid var(--line); }
.demo-label, .status { display: inline-block; font-size: .8rem; letter-spacing: 0; padding: .2rem .55rem; border-radius: 4px; }
.demo-label { border: 1px solid var(--line); }
.status { background: var(--highlight); color: var(--accent); font-weight: 600; }
.panel-title { margin-block: 1.4rem; }
.panel-title h3 { margin-top: .7rem; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .94rem; font-variant-numeric: tabular-nums; }
th, td { padding: .75rem .65rem; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-size: .84rem; color: var(--muted); }
th:last-child, td:last-child { text-align: right; }
.review-note { display: flex; gap: 1rem; margin-top: 1.25rem; border-left: 3px solid var(--gold); background: var(--soft); padding: .9rem; }
.review-note strong, .review-note p span { display: block; }
.review-note strong { color: var(--ink); }
.panel-bottom { font-size: .85rem; }
.check-circle { color: var(--teal); }
.capabilities, .assurance-inner, .faq-section { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 7vw, 7rem); }
.capabilities-intro > p:not(.eyebrow), .assurance-heading > p:not(.eyebrow) { max-width: 38ch; margin-top: 1.4rem; }
.capabilities-intro .text-link { margin-top: 1.25rem; }
.capability-list article, .trust-list article { display: flex; gap: 1.4rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.capability-list article:last-child, .trust-list article:last-child { border-bottom: 1px solid var(--line); }
.capability-number, .trust-list article > span { font: 1.25rem var(--serif); color: var(--accent); }
.assurance { background: var(--feature-end); color: #fffaf0; border-block: 1px solid var(--feature-line); }
.assurance-inner { padding-block: clamp(4rem, 7vw, 6rem); }
.assurance em, .assurance .eyebrow, .trust-list article > span { color: var(--gold-light); }
.assurance p:not(.eyebrow) { color: #c7d2dc; }
.assurance-symbol { width: 84px; margin-top: 1.4rem; }
.trust-list article, .trust-list article:last-child { border-color: #4c5b70; }
.trust-list p { margin-top: .5rem; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.15rem; cursor: pointer; font-weight: 550; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 1.35rem; color: var(--accent); }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 1.25rem; }
.demo-section { background: var(--band); border-block: 1px solid var(--line); }
.demo-inner, .footer-main, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.demo-inner { padding-block: clamp(3rem, 5vw, 5rem); }
.demo-inner > div > p:last-child { margin-top: .8rem; }
.demo-action { max-width: 36ch; }
.contact-pending { font-weight: 650; color: var(--ink); }
.footer { background: var(--surface); }
.footer-main { padding-block: 1.8rem; }
.footer-main .brand { width: min(100%, 220px); }
.footer-main p { margin-right: auto; }
.footer-bottom { padding-block: 1.2rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
@media (max-width: 1100px) {
  .container { width: calc(100% - 4rem); }
  .brand { max-width: 250px; }
}
@media (max-width: 920px) {
  .nav-wrap { gap: .75rem; min-height: 80px; }
  .theme-choice { grid-column: 2; grid-row: 1; }
  .menu-toggle { grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 0 .8rem; }
  .nav-wrap nav { display: none; position: absolute; inset: 100% 0 auto; padding: 1.25rem; background: var(--surface); border-block: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-wrap nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 2.5rem); }
  .hero, .section-heading, .capabilities, .assurance-inner, .faq-section, .explorer { grid-template-columns: 1fr; }
  .hero { gap: 2.2rem; }
  .hero h1 { font-size: clamp(3.15rem, 10.5vw, 4.8rem); }
  .section-heading { gap: 1rem; }
  .explorer-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .scenario-tabs { grid-template-columns: repeat(3, minmax(0,1fr)); gap: .4rem; }
  .scenario-tabs button { padding: .6rem; align-items: flex-start; }
  .scenario-tabs small { letter-spacing: .02em; }
  .scenario-tabs button > span:last-child, .assurance-symbol { display: none; }
  .demo-inner, .footer-main, .footer-bottom { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .nav-wrap { gap: .45rem; min-height: 74px; }
  .brand { max-width: 216px; }
  .theme-choice, .menu-toggle { width: 44px; height: 44px; }
  .theme-icon { left: calc(50% - 8px); }
  .theme-choice select { position: absolute; inset: 0; width: 100%; padding: 0; opacity: 0; }
  .menu-word { display: none; }
  .scenario-tabs { grid-template-columns: 1fr; }
  .scenario-tabs button { padding: .7rem .9rem; }
  .scenario-tabs button > span:last-child { display: inline; }
  .scenario-tabs small { font-size: .75rem; }
  th, td { padding: .65rem .3rem; }
  .footer-main, .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* The sample run and its four working papers share the site's navy and gold. */
.run-card {
  margin: 0;
  padding: clamp(24px, 3vw, 44px);
  color: white;
  background: linear-gradient(145deg, var(--feature-start), var(--feature-end));
  border: 1px solid var(--feature-line);
  box-shadow: var(--shadow);
  border-radius: 14px;
}
.run-caption, .run-evidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.run-caption {
  padding-bottom: 16px;
  border-bottom: 1px solid #43506a;
  font-size: .9rem;
  color: #ddc48b;
}
.run-card h2 {
  margin: 26px 0 12px;
  color: white;
  font-size: clamp(30px, 3vw, 44px);
}
.run-card > p { color: #c7d0dc; font-size: 1rem; }
.run-chart {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 5px;
  margin: 28px 0 18px;
}
.run-chart span {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #7fa99e;
}
.run-chart [data-kind="other"] { background: #667891; }
.run-chart [data-kind="flag"] { background: var(--gold-light); outline: 1px solid #fff2c8; }
.run-key { list-style: none; margin: 20px 0 26px; padding: 0; }
.run-key li { display: flex; align-items: center; gap: 8px; color: #e0e5ea; font-size: .95rem; }
.run-key strong { min-width: 1.5em; color: white; font-variant-numeric: tabular-nums; }
.run-key li::before { content: ''; width: 10px; height: 10px; background: #7fa99e; border-radius: 2px; }
.run-key [data-kind="other"]::before { background: #667891; }
.run-key [data-kind="flag"]::before { background: var(--gold-light); }
.run-evidence { border-top: 1px solid #43506a; padding-top: 16px; color: var(--gold-light); font-size: 1rem; }
.run-evidence:hover { text-decoration: underline; }
.case-workflow { background: var(--band); border-block: 1px solid var(--line); }
.case-intro { max-width: 680px; margin: 20px 0 32px; }
.case-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 32px 0 16px;
  scroll-margin-top: 8px;
}
.case-stages a {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px 8px;
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.case-stages a[aria-current] { color: var(--action-ink); background: var(--action); border-color: var(--action); }
.case-stages a:not(:last-child)::after {
  content: '→';
  position: absolute;
  left: calc(100% + 3px);
  width: 18px;
  color: var(--muted);
  pointer-events: none;
}
.case-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(22px, 3.8vw, 50px);
  min-height: 330px;
  scroll-margin-top: 170px;
}
.case-page + .case-page { margin-top: 12px; }
.case-label { color: var(--accent); font-size: .9rem; margin-bottom: 12px; }
.case-page h3 { font: 400 clamp(26px, 2.5vw, 38px)/1.12 var(--serif); color: var(--ink); margin-bottom: 14px; }
.case-page p { font-size: 1rem; }
.case-page .text-link, .case-alternative { margin-top: 18px; }
.case-sheet { background: var(--soft); padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.case-sheet h4 { margin: 0 0 14px; font-size: 1rem; color: var(--ink); }
.rule-trace { margin: 0; padding-left: 1.5em; font-size: .95rem; }
.rule-trace li { padding: 5px 0 5px 4px; }
.rule-trace li::marker { color: var(--accent); }
.case-result { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.case-fields { display: grid; grid-template-columns: auto 1fr; margin: 0; font-size: .95rem; }
.case-fields dt, .case-fields dd { margin: 0; padding: 6px 0; border-top: 1px solid var(--line); }
.case-fields dd { text-align: right; font-weight: 600; }
.blank-value { color: var(--accent); }
.case-alternative summary { cursor: pointer; font-size: .95rem; font-weight: 600; }
.case-alternative p { margin-top: 10px; }
.case-sheet .case-excerpt { font: 400 22px/1.5 var(--serif); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .case-page:not([hidden]) .case-sheet { animation: reveal-paper .3s ease-out both; }
  .run-chart [data-kind="flag"] { animation: highlight-row 1s ease-out 1; }
  @keyframes reveal-paper { from { opacity: .5; transform: translateY(6px); } }
  @keyframes highlight-row { 50% { box-shadow: 0 0 0 4px #dec47988; } }
}
@media (max-width: 800px) {
  .case-page { grid-template-columns: 1fr; gap: 20px; }
  .case-stages { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .case-stages a:not(:last-child)::after { content: none; }
  .case-stages a { font-size: .9rem; }
  .run-chart { max-width: 460px; }
}
