/* Mirrors the website's legal.css palette and typography. Manrope is optional;
   the standalone preview uses system fonts rather than loading assets. */
:root {
  --ink: #131414;
  --paper: #e8e7e3;
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --surface: color-mix(in srgb, var(--paper) 88%, white);
  --subtle: color-mix(in srgb, var(--ink) 76%, var(--paper));
  --warning: #823306;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e7e3;
    --paper: #131414;
    --surface: color-mix(in srgb, var(--paper) 95%, white);
    --warning: #ffc28f;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 Manrope, system-ui, sans-serif; }
main { max-width: 64rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 1.5rem) 4rem; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
[hidden] { display: none !important; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.wordmark { font-size: 1.25rem; font-weight: 800; letter-spacing: -.055em; text-decoration: none; }
.wordmark:hover { text-decoration: underline; }
.intro { max-width: 42rem; margin: 2rem 0; }
h1 { margin: .4rem 0 .5rem; font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.1; letter-spacing: -.06em; }
h2 { margin: 0 0 .625rem; font-size: 1.15rem; line-height: 1.3; }
h3 { margin: 0; font-size: 1rem; line-height: 1.4; }
p { margin: 0; }
.lede { font-size: 1.05rem; }
.disclaimer { margin-top: .65rem; color: var(--subtle); font-size: .875rem; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .12rem .625rem; font-size: .75rem; font-weight: 700; }
.eyebrow { color: var(--subtle); font: 700 .75rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .07em; text-transform: uppercase; }
.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem; align-items: stretch; }
.panel { min-width: 0; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.panel-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .5rem; }
.panel-heading h2 { margin: 0; }
.identity { margin: 0 0 1rem; color: var(--subtle); font-size: .875rem; }
.identity strong { color: var(--ink); }
.action-copy { margin-top: .35rem; min-height: 3.25em; }
.controls { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin: .875rem 0 1.25rem; }
button { min-height: 44px; padding: .55rem .9rem; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: var(--paper); font: inherit; font-size: .9rem; font-weight: 750; cursor: pointer; }
button:not(:disabled):hover { background: var(--subtle); border-color: var(--subtle); }
button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
button.secondary:not(:disabled):hover { background: var(--paper); border-color: var(--ink); }
button:disabled { opacity: .55; cursor: default; }
.steps { display: grid; gap: .35rem; margin: 0; padding-left: 1.5rem; font-size: .875rem; color: var(--subtle); }
.steps li::marker { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8em; }
.steps [aria-current="step"] { color: var(--ink); font-weight: 750; }
.step-state { margin-left: .35rem; font-size: .75rem; }
.deal-placeholder { margin-top: 1rem; padding: .75rem; border: 1px dashed var(--line); border-radius: 6px; color: var(--subtle); font-size: .9rem; }
.deal-data { margin: .75rem 0; }
.deal-data div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.deal-data dt { min-width: 0; color: var(--subtle); }
.deal-data dd { margin: 0; min-width: 0; font-weight: 700; text-align: right; }
.result { border: 1px solid var(--line); border-radius: 6px; margin-top: 1rem; padding: .75rem; font-size: .9rem; }
.result h3 { margin-bottom: .3rem; }
.result.is-flagged { color: var(--warning); border-color: currentColor; }
.result.is-flagged p { color: var(--ink); }
.log-heading { margin-top: 1.25rem; }
.log-list { margin: .375rem 0 0; padding-left: 1.3rem; font-size: .85rem; }
.log-list li { margin-bottom: .3rem; }
.empty-log { color: var(--subtle); margin-top: .375rem; font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 45rem) {
  .desk { grid-template-columns: minmax(0, 1fr); }
  .action-copy { min-height: auto; }
}
