:root {
  --paper: #f2eee3;
  --paper-high: #fbf8ef;
  --paper-deep: #ded7c8;
  --ink: #171918;
  --ink-soft: #343735;
  --muted: #686a64;
  --line: #c7c0b1;
  --line-dark: #424642;
  --accent: #e4522d;
  --accent-dark: #b93419;
  --green: #176b53;
  --amber: #a26208;
  --red: #ae382f;
  --violet: #6d558e;
  --display: "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: "Avenir Next", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
  --page: min(1440px, calc(100vw - 64px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .42;
  background-image: linear-gradient(rgba(23,25,24,.035) 1px, transparent 1px);
  background-size: 100% 28px;
}
::selection { color: var(--paper-high); background: var(--accent); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #315a9e; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; color: var(--paper); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(240px,1fr) auto minmax(240px,1fr);
  align-items: center;
  gap: 24px;
  padding: 12px max(32px, calc((100vw - 1440px)/2));
  border-bottom: 1px solid var(--line);
  background: rgba(242,238,227,.94);
  backdrop-filter: blur(14px);
}
.topbar nav { display: flex; gap: 28px; }
.topbar nav a, .site-footer a { color: var(--ink-soft); font-size: .86rem; text-decoration: none; }
.topbar nav a:hover, .site-footer a:hover { color: var(--accent); }
.wordmark { display: inline-flex; align-items: baseline; gap: 9px; width: max-content; text-decoration: none; }
.wordmark span { font-size: 1.02rem; font-weight: 600; letter-spacing: .11em; }
.wordmark i { color: var(--accent); font-style: normal; font-weight: 600; }
.wordmark small { color: var(--muted); font-family: var(--mono); font-size: .63rem; letter-spacing: .09em; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: .91rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .58; transform: none; }
.button-small { justify-self: end; min-height: 40px; padding: 0 16px; font-size: .8rem; }
.button-dark { color: var(--paper-high); background: var(--ink); border-color: var(--ink); }
.button-dark:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.button-accent { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 7px 7px 0 var(--ink); }
.button-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: 4px 4px 0 var(--ink); }
.button-paper { color: var(--ink); background: var(--paper-high); border-color: var(--paper-high); }
.button-paper:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.plain-link { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-soft); font-size: .88rem; font-weight: 500; text-underline-offset: 5px; }
.plain-link:hover { color: var(--accent); }
.as-button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.kicker, .signal, .term-label { margin: 0; font-family: var(--mono); font-size: .71rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.kicker { color: var(--muted); }
.kicker.light { color: #aaa99f; }
.signal { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); }
.signal span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(23,107,83,.13); }

/* Homepage */
.home-hero {
  width: var(--page);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .75fr;
  align-items: center;
  gap: clamp(48px, 8vw, 130px);
  padding: clamp(74px, 8vw, 124px) 0;
}
.hero-copy h1 { max-width: 900px; margin: 24px 0 26px; font-family: var(--display); font-size: clamp(4rem, 7vw, 7rem); font-weight: 500; line-height: .9; letter-spacing: -.055em; }
.hero-lede { max-width: 700px; margin: 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.34rem); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 40px; }
.proof-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; max-width: 700px; margin: 58px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.proof-strip li { display: flex; flex-direction: column; padding-right: 18px; }
.proof-strip strong { font-family: var(--mono); font-size: .92rem; }
.proof-strip span { color: var(--muted); font-size: .75rem; }
.live-receipt { position: relative; transform: rotate(1.1deg); }
.live-receipt::before { position: absolute; top: 25px; right: -19px; bottom: -19px; left: 19px; z-index: -1; content: ""; border: 1px solid #8f887c; background: var(--paper-deep); }
.receipt-tab { width: max-content; margin-left: 22px; padding: 7px 13px; color: var(--paper-high); background: var(--ink); font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; }
.receipt-sheet { padding: clamp(25px,3vw,44px); border: 1px solid #8f887c; background: var(--paper-high); box-shadow: 0 24px 55px rgba(23,25,24,.14); }
.receipt-sheet header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.receipt-sheet header div { display: flex; flex-direction: column; }
.receipt-sheet small { color: var(--muted); font-family: var(--mono); font-size: .62rem; letter-spacing: .09em; }
.receipt-sheet header strong { font-family: var(--display); font-size: 2rem; }
.stamp { padding: 7px 9px 5px; border: 2px solid currentColor; font-family: var(--mono); font-size: .72rem; font-weight: 500; transform: rotate(-4deg); }
.stamp-partial { color: var(--amber); }
.receipt-job { padding: 23px 0 19px; border-bottom: 1px dashed var(--line); }
.receipt-job p { margin: 4px 0 0; font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
.receipt-sheet dl { margin: 0; padding: 15px 0; }
.receipt-sheet dl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e1dccf; }
.receipt-sheet dt { color: var(--muted); font-size: .78rem; }
.receipt-sheet dd { margin: 0; font-family: var(--mono); font-size: .76rem; }
.receipt-sheet dd.pass { color: var(--green); }
.receipt-recommendation { margin: 17px 0 21px; padding: 18px; color: var(--paper-high); background: var(--ink); }
.receipt-recommendation strong { display: block; margin: 5px 0 0; font-family: var(--display); font-size: 1.7rem; }
.receipt-recommendation p { margin: 3px 0 0; color: #b7b6ad; font-size: .7rem; }
.receipt-sheet footer { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .67rem; }
.receipt-caption { margin: 27px 0 0 22px; color: var(--muted); font-size: .76rem; }
.ticker { display: flex; justify-content: center; gap: clamp(18px,4vw,65px); padding: 16px 32px; color: var(--paper-high); background: var(--ink); font-family: var(--mono); font-size: .69rem; letter-spacing: .09em; white-space: nowrap; overflow: hidden; }
.ticker i { color: var(--accent); font-style: normal; }
.home-section { width: var(--page); margin: 0 auto; padding: clamp(90px,10vw,150px) 0; }
.section-heading { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 36px; align-items: start; margin-bottom: 65px; }
.section-heading h2 { margin: -8px 0 0; font-family: var(--display); font-size: clamp(2.7rem,4.6vw,4.8rem); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: .91rem; }
.section-heading.compact { grid-template-columns: 1fr 3fr; }
.flow-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); list-style: none; }
.flow-grid li { min-height: 330px; display: flex; flex-direction: column; padding: 25px; border-right: 1px solid var(--line); }
.flow-grid li:last-child { border-right: 0; }
.flow-grid li > span { color: var(--accent); font-family: var(--mono); font-size: .75rem; }
.flow-grid h3 { margin: 52px 0 10px; font-family: var(--display); font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.flow-grid p { margin: 0; color: var(--muted); font-size: .86rem; }
.flow-grid code { margin-top: auto; padding-top: 20px; color: var(--ink-soft); border-top: 1px dashed var(--line); font-size: .67rem; }
.fit-section { width: 100%; display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; padding: 0; color: var(--paper-high); background: var(--ink); }
.fit-callout { padding: clamp(60px,8vw,135px) max(32px,calc((100vw - 1440px)/2)); padding-right: clamp(45px,7vw,110px); }
.fit-callout h2 { margin: 23px 0 24px; font-family: var(--display); font-size: clamp(3rem,5vw,5rem); font-weight: 500; line-height: .95; }
.fit-callout > p:not(.kicker) { max-width: 600px; margin: 0 0 36px; color: #bbb9af; }
.fit-ledger { display: flex; flex-direction: column; justify-content: center; padding: 70px max(32px,calc((100vw - 1440px)/2)) 70px clamp(35px,5vw,80px); border-left: 1px solid var(--line-dark); }
.fit-ledger div { display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--line-dark); }
.fit-ledger div:first-child { border-top: 1px solid var(--line-dark); }
.fit-ledger span, .fit-ledger strong { font-family: var(--mono); font-size: .65rem; letter-spacing: .06em; }
.fit-ledger span { color: var(--green); }
.fit-ledger p { margin: 0; font-family: var(--display); font-size: 1.35rem; }
.fit-ledger strong { color: #a5a69e; }
.fit-ledger .muted-row { opacity: .48; }
.fit-ledger .muted-row span { color: var(--red); }
.limits-section { padding-bottom: 170px; }
.limit-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.limit-grid article { min-height: 250px; padding: 24px; border: 1px solid var(--line); background: rgba(251,248,239,.45); }
.limit-grid article > span { display: inline-flex; padding: 4px 7px; color: var(--red); border: 1px solid currentColor; font-family: var(--mono); font-size: .64rem; }
.limit-grid article.yes { color: var(--paper-high); background: var(--green); border-color: var(--green); }
.limit-grid article.yes > span { color: #fff; }
.limit-grid h3 { margin: 62px 0 8px; font-family: var(--display); font-size: 1.65rem; font-weight: 500; }
.limit-grid p { margin: 0; color: var(--muted); font-size: .83rem; }
.limit-grid .yes p { color: #d8e7e1; }
.final-cta { display: flex; flex-direction: column; align-items: center; padding: clamp(90px,11vw,170px) 32px; color: var(--paper-high); text-align: center; background: var(--ink); }
.final-cta h2 { max-width: 1000px; margin: 23px 0 40px; font-family: var(--display); font-size: clamp(3rem,6vw,6.6rem); font-weight: 500; line-height: .92; letter-spacing: -.04em; }
.final-cta small { margin-top: 28px; color: #a6a69f; }
.site-footer { min-height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 28px max(32px,calc((100vw - 1440px)/2)); border-top: 1px solid var(--line); }
.site-footer p { color: var(--muted); font-size: .78rem; }
.site-footer div { justify-self: end; display: flex; gap: 22px; }

/* Builder */
.workbench-body { background: var(--paper-deep); }
.workbench-body::before { opacity: .2; }
.workbench-topbar { position: relative; background: var(--paper-high); }
.step-rail { display: flex; gap: 22px; color: #99988f; font-family: var(--mono); font-size: .62rem; letter-spacing: .07em; }
.step-rail .active { color: var(--accent); }
.compact-link { justify-self: end; font-size: .76rem; }
.builder-shell { width: var(--page); display: grid; grid-template-columns: minmax(270px,.58fr) minmax(0,1.42fr); gap: clamp(35px,6vw,90px); align-items: start; margin: 0 auto; padding: 70px 0 120px; }
.builder-intro { position: sticky; top: 36px; padding-top: 14px; }
.builder-intro h1 { margin: 22px 0 20px; font-family: var(--display); font-size: clamp(3rem,4.8vw,5.2rem); font-weight: 500; line-height: .92; letter-spacing: -.04em; }
.builder-intro > p:not(.signal) { max-width: 480px; color: var(--ink-soft); }
.side-note { max-width: 400px; margin-top: 50px; padding: 22px; color: var(--paper-high); background: var(--ink); }
.side-note > span, .privacy-note strong { font-family: var(--mono); font-size: .67rem; letter-spacing: .09em; }
.side-note ul { margin: 16px 0 0; padding-left: 18px; color: #c8c6bd; font-size: .8rem; }
.side-note li { margin: 5px 0; }
.privacy-note { max-width: 400px; margin-top: 20px; padding: 17px 0; border-top: 1px solid #b3ac9e; }
.privacy-note strong { color: var(--accent-dark); }
.privacy-note p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; }
.builder-panel { border: 1px solid #9b9486; background: var(--paper-high); box-shadow: 12px 12px 0 rgba(23,25,24,.11); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 30px 34px; border-bottom: 2px solid var(--ink); }
.panel-head h2 { margin: 4px 0 0; font-family: var(--display); font-size: 2.2rem; font-weight: 500; }
.preview-pill { padding: 6px 8px; color: var(--green); border: 1px solid currentColor; font-family: var(--mono); font-size: .62rem; }
.builder-panel fieldset { margin: 0; padding: 35px 34px 42px; border: 0; border-bottom: 1px solid var(--line); }
.builder-panel legend { width: 100%; display: flex; gap: 13px; align-items: center; padding: 0; font-family: var(--display); font-size: 1.48rem; }
.builder-panel legend span { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; color: var(--paper-high); border-radius: 50%; background: var(--ink); font-family: var(--mono); font-size: .63rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px 18px; margin-top: 27px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span, .link-stack label > span { color: var(--ink-soft); font-size: .76rem; font-weight: 600; }
.field em { color: var(--muted); font-size: .68rem; font-style: normal; font-weight: 400; }
.field input, .field textarea, .field select, .schema-row input, .schema-row select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid #aaa294;
  border-radius: 2px;
  background: #fffdf8;
}
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover, .schema-row input:hover, .schema-row select:hover { border-color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus, .schema-row input:focus, .schema-row select:focus { outline: 2px solid rgba(228,82,45,.22); border-color: var(--accent); }
.field small, .field-error, .rule-control i { min-height: 15px; color: var(--red); font-size: .69rem; font-style: normal; }
.input-pair { display: grid; grid-template-columns: 90px 1fr; }
.input-pair select { border-radius: 2px 0 0 2px; border-right: 0; }
.input-pair input { border-radius: 0 2px 2px 0; }
.field-help { margin: 7px 0 22px; color: var(--muted); font-size: .78rem; }
.schema-table { border-top: 1px solid var(--ink); }
.schema-head, .schema-row { display: grid; grid-template-columns: 1fr 170px 38px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.schema-head { color: var(--muted); font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.schema-row input, .schema-row select { min-height: 40px; }
.schema-row button { width: 34px; height: 34px; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.schema-row button:hover { color: var(--red); }
.schema-row.is-locked button { visibility: hidden; }
.add-field { margin-top: 14px; padding: 0; color: var(--accent-dark); border: 0; background: transparent; font-size: .76rem; font-weight: 600; cursor: pointer; }
.standalone { display: block; }
.schema-options { margin-top: 30px; }
.rule-controls { display: grid; gap: 25px; margin-top: 27px; }
.rule-control { display: grid; grid-template-columns: minmax(210px,.8fr) 1fr; gap: 6px 25px; align-items: center; }
.rule-control > span { display: flex; justify-content: space-between; gap: 20px; }
.rule-control strong { font-size: .78rem; }
.rule-control output { color: var(--accent-dark); font-family: var(--mono); font-size: .78rem; }
.rule-control input { accent-color: var(--accent); }
.rule-control small { grid-column: 1; color: var(--muted); font-size: .68rem; }
.rule-control i { grid-column: 2; }
.late-policy { max-width: 470px; margin-top: 28px; }
.builder-submit { padding: 32px 34px 38px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .77rem; cursor: pointer; }
.check-line input { margin-top: 3px; accent-color: var(--accent); }
.submit-button { width: 100%; justify-content: space-between; margin-top: 16px; }
.builder-submit > p { margin: 12px 0 0; color: var(--muted); font-size: .67rem; text-align: center; }
.form-status { display: none; margin-top: 15px; padding: 11px 13px; font-size: .75rem; }
.form-status.is-visible { display: block; }
.form-status.is-error { color: #7c231e; border: 1px solid #d49f98; background: #f8e6e1; }
.form-status.is-success { color: #0f513f; border: 1px solid #86b5a5; background: #e2f0ea; }
.created-panel { padding: clamp(36px,5vw,65px); }
.created-stamp { width: max-content; padding: 6px 9px; color: var(--green); border: 2px solid currentColor; font-family: var(--mono); font-size: .7rem; transform: rotate(-2deg); }
.created-panel h2 { margin: 18px 0 10px; font-family: var(--display); font-size: 3.2rem; font-weight: 500; line-height: 1; }
.created-panel > p:not(.kicker) { color: var(--muted); }
.hash-card { margin: 28px 0; padding: 16px; color: var(--paper-high); background: var(--ink); }
.hash-card span { display: block; color: #aaa99f; font-family: var(--mono); font-size: .62rem; }
.hash-card code { display: block; margin-top: 7px; font-size: .68rem; overflow-wrap: anywhere; }
.link-stack { display: grid; gap: 19px; }
.link-stack label { display: grid; gap: 6px; }
.link-stack label > div { display: grid; grid-template-columns: 1fr 74px; }
.link-stack input { min-width: 0; padding: 11px; border: 1px solid #aaa294; background: #fffdf8; font-family: var(--mono); font-size: .67rem; }
.link-stack button { color: var(--paper-high); border: 0; background: var(--ink); font-size: .71rem; cursor: pointer; }
.link-stack button:hover { background: var(--accent); }
.link-stack small { color: var(--muted); font-size: .67rem; }
.created-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 35px; }

/* Receipt / Job */
.receipt-body { min-height: 100vh; color: var(--paper-high); background: var(--ink); }
.receipt-body::before { z-index: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px); }
.receipt-topbar { color: var(--paper-high); border-color: var(--line-dark); background: rgba(23,25,24,.94); }
.light-wordmark small { color: #aaa99f; }
.receipt-security { color: #aaa99f; font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.receipt-security span { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(23,107,83,.2); }
.receipt-shell { position: relative; z-index: 1; width: var(--page); min-height: calc(100vh - 72px); margin: 0 auto; padding: 70px 0 120px; }
.loading-card, .fatal-card { max-width: 660px; margin: 100px auto; padding: 50px; text-align: center; border: 1px solid var(--line-dark); }
.loading-mark { display: block; width: 26px; height: 26px; margin: 0 auto 18px; border: 2px solid var(--line-dark); border-top-color: var(--accent); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-card p { color: #aaa99f; font-family: var(--mono); font-size: .7rem; }
.fatal-card h1 { font-family: var(--display); font-size: 3rem; font-weight: 500; }
.fatal-card > p:not(.kicker) { color: #aaa99f; }
.signal-light { color: #bbb9af; }
.job-masthead { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 45px; }
.job-masthead h1 { max-width: 950px; margin: 19px 0 5px; font-family: var(--display); font-size: clamp(3.3rem,6vw,6.5rem); font-weight: 500; line-height: .9; letter-spacing: -.04em; }
.job-id { margin: 0; color: #8e8f88; font-family: var(--mono); font-size: .68rem; }
.job-state-card { min-width: 170px; padding: 18px; border: 1px solid var(--line-dark); }
.job-state-card small { display: block; color: #979890; font-family: var(--mono); font-size: .6rem; }
.job-state-card strong { display: block; margin-top: 6px; color: var(--accent); font-family: var(--display); font-size: 1.8rem; }
.job-state-card span { color: #979890; font-size: .7rem; }
.inspection-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(310px,.7fr); gap: 26px; align-items: start; }
.deal-paper { color: var(--ink); border: 1px solid #8f897e; background: var(--paper-high); box-shadow: 10px 10px 0 #303330; }
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 30px; border-bottom: 2px solid var(--ink); }
.paper-head h2 { margin: 5px 0 0; font-family: var(--display); font-size: 2.3rem; font-weight: 500; }
.paper-head > span { padding: 5px 7px; border: 1px solid var(--ink); font-family: var(--mono); font-size: .6rem; }
.deal-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 30px; margin: 0; padding: 15px 30px; border-bottom: 1px solid var(--line); }
.deal-summary div { min-width: 0; display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px dashed #ddd7ca; }
.deal-summary div:nth-last-child(2) { border-bottom: 0; }
.deal-summary div.wide { grid-column: 1 / -1; border-top: 1px dashed #ddd7ca; border-bottom: 0; }
.deal-summary dt { color: var(--muted); font-size: .72rem; }
.deal-summary dd { min-width: 0; margin: 0; font-family: var(--mono); font-size: .72rem; text-align: right; overflow-wrap: anywhere; }
.term-block { padding: 24px 30px; border-bottom: 1px solid var(--line); }
.term-label { margin-bottom: 13px; color: var(--muted); font-size: .61rem; }
.field-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field-chips code, .term-block code { padding: 5px 7px; color: var(--ink-soft); border: 1px solid var(--line); background: var(--paper); font-size: .66rem; }
.term-grid { display: grid; grid-template-columns: 1fr 1fr; }
.term-grid .term-block:first-child { border-right: 1px solid var(--line); }
.term-grid .term-block div { display: flex; flex-wrap: wrap; gap: 7px; font-family: var(--mono); font-size: .68rem; }
.threshold-ruler { position: relative; height: 44px; display: flex; margin: 35px 30px 0; border: 1px solid var(--line); }
.threshold-ruler > div { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .58rem; overflow: hidden; }
.refund-zone { width: 50%; color: #fff; background: var(--red); }
.partial-zone { width: 40%; color: #fff; background: var(--amber); }
.accept-zone { width: 10%; color: #fff; background: var(--green); }
.threshold-ruler i { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink); }
.threshold-labels { position: relative; min-height: 28px; display: flex; justify-content: space-between; margin: 4px 30px 0; color: var(--muted); font-family: var(--mono); font-size: .58rem; }
.rule-list { display: grid; grid-template-columns: 1fr 1fr; margin: 0 30px 25px; border-top: 1px dashed var(--line); }
.rule-list div { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; }
.rule-list div:first-child { padding-right: 20px; border-right: 1px dashed var(--line); }
.rule-list div:last-child { padding-left: 20px; }
.rule-list dt { color: var(--muted); font-size: .69rem; }
.rule-list dd { margin: 0; font-family: var(--mono); font-size: .65rem; text-align: right; }
.hash-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 18px 30px; color: #aaa99f; background: var(--ink); }
.hash-footer span { font-family: var(--mono); font-size: .58rem; }
.hash-footer code { min-width: 0; font-size: .6rem; overflow: hidden; text-overflow: ellipsis; }
.hash-footer button { padding: 5px 7px; color: var(--paper-high); border: 1px solid var(--line-dark); background: transparent; font-size: .62rem; cursor: pointer; }
.hash-footer button:hover { border-color: var(--accent); }
.action-rail { display: grid; gap: 18px; }
.delivery-box, .waiting-box, .owner-box { padding: 27px; border: 1px solid var(--line-dark); background: #1d201e; }
.delivery-box h2, .waiting-box h2, .owner-box h2 { margin: 12px 0; font-family: var(--display); font-size: 2rem; font-weight: 500; line-height: 1; }
.delivery-box > p:not(.kicker), .waiting-box > p:not(.kicker), .owner-box > p:not(.kicker) { color: #aeadad; font-size: .77rem; }
.drop-zone { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 22px; padding: 20px; border: 1px dashed #6e716d; text-align: center; cursor: pointer; transition: border-color 150ms ease, background 150ms ease; }
.drop-zone:hover, .drop-zone.is-over { border-color: var(--accent); background: rgba(228,82,45,.06); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { color: var(--accent); font-family: var(--mono); font-size: 1.5rem; }
.drop-zone strong { margin-top: 8px; font-size: .78rem; }
.drop-zone small { color: #8f918b; font-size: .66rem; }
.file-readout { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 9px; color: var(--ink); background: var(--paper); font-size: .68rem; }
.paste-toggle { display: grid; gap: 7px; margin-top: 16px; }
.paste-toggle span { color: #aeadad; font-size: .68rem; }
.paste-toggle textarea { width: 100%; padding: 10px; color: #e0dfd8; border: 1px solid var(--line-dark); background: #131513; resize: vertical; font-family: var(--mono); font-size: .64rem; }
.dark-status.is-error { color: #ffd4ce; border-color: #78433d; background: #351f1c; }
.full-button { width: 100%; justify-content: space-between; margin-top: 14px; box-shadow: none; }
.waiting-glyph { display: block; color: var(--accent); font-size: 2.5rem; }
.danger-button { width: 100%; min-height: 42px; margin-top: 15px; color: #ffc9c4; border: 1px solid #77413c; background: transparent; cursor: pointer; }
.danger-button:hover { color: #fff; background: var(--red); border-color: var(--red); }
.report-section { margin-top: 65px; padding-top: 45px; border-top: 1px solid var(--line-dark); }
.report-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 30px; }
.report-heading h2 { margin: 10px 0 0; font-family: var(--display); font-size: 3.5rem; font-weight: 500; line-height: 1; }
.report-stamp { padding: 10px 12px 7px; color: var(--green); border: 2px solid currentColor; font-family: var(--mono); font-size: .86rem; transform: rotate(-3deg); }
.report-stamp.is-partial { color: #d89227; }
.report-stamp.is-rejected { color: #e26c63; }
.report-stamp.is-manual { color: #a78bcf; }
.report-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 12px; }
.decision-card, .metric-card { min-height: 185px; padding: 24px; color: var(--ink); background: var(--paper-high); }
.decision-card { color: #fff; background: var(--accent); }
.decision-card small, .metric-card span { font-family: var(--mono); font-size: .61rem; letter-spacing: .07em; }
.decision-card strong { display: block; margin-top: 30px; font-family: var(--display); font-size: 2.2rem; font-weight: 500; line-height: 1; }
.decision-card p { margin: 7px 0; font-size: .75rem; }
.decision-card > span { opacity: .7; font-size: .66rem; }
.metric-card strong { display: block; margin-top: 42px; font-family: var(--display); font-size: 2.2rem; font-weight: 500; }
.metric-card small { display: block; color: var(--muted); font-size: .66rem; }
.report-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.report-details div { min-width: 0; padding: 16px 20px; border: 1px solid var(--line-dark); }
.report-details span { display: block; color: #898b85; font-family: var(--mono); font-size: .58rem; }
.report-details code { display: block; margin-top: 6px; color: #c5c4bd; font-size: .62rem; overflow-wrap: anywhere; }
.invalid-details { margin-top: 12px; border: 1px solid var(--line-dark); }
.invalid-details summary { padding: 16px 20px; cursor: pointer; font-size: .76rem; }
.invalid-details summary b { color: var(--accent); }
.invalid-details > div { max-height: 430px; overflow: auto; padding: 0 20px 20px; }
.invalid-details > pre { max-height: 430px; overflow: auto; margin: 0; padding: 0 20px 20px; white-space: pre-wrap; overflow-wrap: anywhere; font: .68rem/1.6 var(--mono); }
.invalid-row { display: grid; grid-template-columns: 70px 1fr; gap: 15px; padding: 9px 0; border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: .62rem; }
.invalid-row span { color: #aaa99f; }
.invalid-row code { color: #e0a39c; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .home-hero { grid-template-columns: 1fr .7fr; gap: 45px; }
  .hero-copy h1 { font-size: clamp(3.7rem,7vw,5.6rem); }
  .section-heading { grid-template-columns: 1fr 2.3fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .flow-grid { grid-template-columns: repeat(2,1fr); }
  .flow-grid li:nth-child(2) { border-right: 0; }
  .flow-grid li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .limit-grid { grid-template-columns: repeat(2,1fr); }
  .builder-shell { grid-template-columns: 280px 1fr; gap: 35px; }
  .inspection-grid { grid-template-columns: 1fr; }
  .action-rail { grid-template-columns: repeat(2,1fr); }
  .delivery-box { grid-column: 1 / -1; }
  .report-grid { grid-template-columns: repeat(3,1fr); }
  .decision-card { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  :root { --page: calc(100vw - 32px); }
  .topbar { min-height: 64px; padding: 10px 16px; }
  .wordmark small { display: none; }
  .home-hero { min-height: 0; grid-template-columns: 1fr; padding: 72px 0 85px; }
  .hero-copy h1 { font-size: clamp(3.7rem,17vw,5.8rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .proof-strip { grid-template-columns: 1fr; gap: 14px; }
  .live-receipt { width: calc(100% - 16px); max-width: 520px; margin: 35px 16px 0 0; transform: none; }
  .live-receipt::before { right: -8px; left: 8px; }
  .ticker { justify-content: flex-start; }
  .section-heading, .section-heading.compact { grid-template-columns: 1fr; }
  .section-heading > p:last-child { grid-column: auto; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-grid li, .flow-grid li:nth-child(2) { min-height: 275px; border-right: 0; border-bottom: 1px solid var(--line); }
  .fit-section { grid-template-columns: 1fr; }
  .fit-ledger { padding: 45px 24px; border-top: 1px solid var(--line-dark); border-left: 0; }
  .fit-ledger div { grid-template-columns: 74px 1fr; }
  .fit-ledger strong { display: none; }
  .limit-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer div { justify-self: start; }
  .step-rail { display: none; }
  .builder-shell { grid-template-columns: 1fr; padding-top: 45px; }
  .builder-intro { position: relative; top: auto; }
  .side-note, .privacy-note { max-width: none; }
  .panel-head, .builder-panel fieldset, .builder-submit { padding-left: 20px; padding-right: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .schema-head, .schema-row { grid-template-columns: 1fr 120px 34px; }
  .rule-control { grid-template-columns: 1fr; }
  .rule-control small, .rule-control i { grid-column: 1; }
  .created-panel { padding: 35px 20px; }
  .created-actions { align-items: flex-start; flex-direction: column; }
  .receipt-security { display: none; }
  .receipt-shell { padding-top: 45px; }
  .job-masthead { align-items: flex-start; flex-direction: column; }
  .job-state-card { width: 100%; }
  .deal-summary, .term-grid, .rule-list { grid-template-columns: 1fr; }
  .deal-summary div:nth-last-child(2) { border-bottom: 1px dashed #ddd7ca; }
  .term-grid .term-block:first-child { border-right: 0; }
  .rule-list div:first-child { padding-right: 0; border-right: 0; }
  .rule-list div:last-child { padding-left: 0; }
  .hash-footer { grid-template-columns: 1fr auto; }
  .hash-footer span { grid-column: 1 / -1; }
  .action-rail { grid-template-columns: 1fr; }
  .delivery-box { grid-column: auto; }
  .report-heading { align-items: flex-start; flex-direction: column; }
  .report-grid { grid-template-columns: 1fr; }
  .decision-card { grid-column: auto; }
  .report-details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
