:root {
  color-scheme: light;
  --paper: #f5f4f0;
  --sheet: #fffefa;
  --wash: #efeee8;
  --ink: #23261f;
  --muted: #5f665c;
  --rule: #d9dbd1;
  --blue: #2548b9;
  --blue-dark: #1c3791;
  --blue-wash: #e8eeff;
  --green: #235d3b;
  --green-wash: #e9f3e9;
  --red: #8d312e;
  --red-wash: #f8ebe8;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  scrollbar-color: #a4ab9f var(--paper);
  scrollbar-gutter: stable;
  scroll-padding-block-start: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.wrap { width: min(100% - 64px, 1140px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--sheet); padding: 12px; transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--rule); }
.navigation { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-size: 1.18rem; font-weight: 740; letter-spacing: -.045em; text-decoration: none; min-height: 44px; }
.wordmark img { flex: none; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3.5vw, 32px); }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; gap: 4px; color: var(--muted); font-size: .87rem; font-weight: 650; text-decoration: none; }
.nav-links a:hover, .site-footer a:hover, .text-button:hover { color: var(--blue-dark); text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(34px, 6vw, 88px); padding-block: clamp(52px, 7vw, 94px); }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 18ch; margin-bottom: 18px; font-size: clamp(2.55rem, 4.65vw, 4.15rem); font-weight: 720; line-height: 1.06; letter-spacing: -.058em; text-wrap: balance; }
.lede { max-width: 45ch; font-size: clamp(1rem, 1.5vw, 1.13rem); line-height: 1.65; color: var(--muted); }
.hero .button { margin-top: 23px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; text-align: center; font-weight: 670; font-size: .92rem; text-decoration: none; line-height: 1.35; }
.primary { color: #fff; background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.primary:disabled { background: var(--wash); color: var(--muted); border-color: var(--rule); }

.proof { min-width: 0; background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--blue); border-radius: 7px; padding: clamp(17px, 3vw, 30px); }
.proof-header { padding-bottom: 15px; font-size: .88rem; font-weight: 650; }
.proof-line { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 13px; padding-block: 15px; border-top: 1px solid var(--rule); }
.proof-line:last-child { padding-bottom: 0; }
.proof-line > span { padding-top: 3px; color: var(--muted); font: 600 .74rem/1.4 var(--mono); }
.proof-line p { max-width: 39ch; font-size: clamp(1rem, 1.52vw, 1.17rem); line-height: 1.6; }
del, ins, mark { color: inherit; padding-inline: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
del { color: var(--red); background: var(--red-wash); text-decoration-thickness: 1.3px; }
ins { color: var(--green); background: var(--green-wash); text-underline-offset: .16em; }
mark { color: var(--blue-dark); background: var(--blue-wash); text-decoration: underline; text-underline-offset: .16em; }
.workflow { padding-block: 27px 32px; border-block: 1px solid var(--rule); background: var(--sheet); }
.workflow h2 { font-size: 1.22rem; letter-spacing: -.035em; margin-bottom: 17px; }
.workflow-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.workflow-steps li { display: flex; align-items: start; gap: 14px; padding: 0 25px; }
.workflow-steps li:first-child { padding-left: 0; }
.workflow-steps li:last-child { padding-right: 0; }
.workflow-steps li + li { border-left: 1px solid var(--rule); }
.step { color: var(--blue-dark); font: 620 .77rem/1.7 var(--mono); }
.workflow-steps h3 { font-size: 1rem; letter-spacing: -.025em; }
.workflow-steps p { color: var(--muted); margin-top: 5px; font-size: .91rem; line-height: 1.55; }

.demo { padding-block: clamp(49px, 6vw, 77px); }
.demo-intro { margin-bottom: 24px; }
.demo-intro h2 { font-size: clamp(1.92rem, 3.5vw, 2.9rem); font-weight: 720; line-height: 1.14; letter-spacing: -.05em; }
.demo-intro > p { margin-top: 9px; max-width: 64ch; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.workbench { display: grid; grid-template-columns: minmax(225px, 275px) minmax(0, 1fr); gap: 16px; align-items: start; }
.fact-panel, .draft-panel { min-width: 0; padding: clamp(16px, 2.4vw, 25px); border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); }
.panel-heading, .draft-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-heading h3, .draft-heading h3 { font-size: 1.19rem; font-weight: 720; letter-spacing: -.044em; }
.panel-heading > span { color: var(--muted); font-size: .79rem; }
.saved-detail { margin-block: 17px; padding-inline-start: 10px; border-inline-start: 2px solid var(--blue); }
.saved-detail dt { font: 500 .69rem/1.5 var(--mono); color: var(--blue-dark); }
.saved-detail dd { margin-top: 3px; font-size: 1.04rem; font-weight: 700; }
#venue-form { display: grid; gap: 8px; }
#venue-form label { font-size: .88rem; font-weight: 660; }
#venue-form input { min-width: 0; width: 100%; min-height: 44px; padding: 8px 10px; background: #fff; color: var(--ink); border: 1px solid #afb5a7; border-radius: 5px; }
#venue-form input[aria-invalid=true] { border-color: var(--red); }
#venue-form .button { width: 100%; justify-content: space-between; }
.field-hint, .draft-note, .review-actions p { color: var(--muted); font-size: .83rem; line-height: 1.5; }
.form-error { font-size: .86rem; line-height: 1.45; color: var(--red); }
.review-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; border-top: 1px solid var(--rule); padding-top: 13px; margin-top: 14px; }
.text-button { padding: 0; margin-top: 4px; min-height: 44px; background: transparent; border: 0; color: var(--muted); font-size: .85rem; font-weight: 620; }
.draft-note { margin-top: 5px; }
.draft-list { list-style: none; margin: 15px 0 0; padding: 0; }
.draft { min-width: 0; border-top: 1px solid var(--rule); padding-block: 10px 13px; }
.draft:last-child { padding-bottom: 0; }
.draft-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; min-height: 29px; }
.draft-title { font-size: .92rem; font-weight: 650; }
.draft-title small { color: var(--muted); font: 500 .76rem/1.4 var(--mono); margin-right: 8px; }
.draft-copy { margin-top: 4px; font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.include { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .8rem; font-weight: 620; cursor: pointer; }
.include input { width: 17px; height: 17px; accent-color: var(--blue); }
.receipt { color: var(--muted); font: 500 .68rem/1.4 var(--mono); }
.receipt.applied { color: var(--green); }
.result { margin-top: 13px; padding: 9px 12px; border-left: 3px solid var(--green); background: var(--green-wash); color: var(--green); font-size: .87rem; line-height: 1.45; }

.site-footer { background: var(--wash); border-top: 1px solid var(--rule); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 26px; align-items: center; padding-block: 28px; }
.footer-title { font-weight: 740; letter-spacing: -.04em; color: var(--ink); }
.footer-content p + p { margin-top: 4px; }
.footer-content p + p, .site-footer a { font-size: .86rem; line-height: 1.5; color: var(--muted); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 640; gap: 5px; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 22px; }

.privacy-page { max-width: 700px; padding-block: clamp(36px, 6vw, 72px); }
.privacy-page h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; letter-spacing: -.05em; margin-bottom: 10px; }
.privacy-page h2 { font-size: 1.24rem; line-height: 1.3; margin-block: 28px 8px; }
.privacy-page p, .privacy-page li { color: var(--muted); line-height: 1.65; }
.privacy-page p + p { margin-top: 12px; }
.privacy-page ul { padding-inline-start: 1.3rem; }
.privacy-page a { color: var(--blue-dark); }

@media (max-width: 790px) {
  .wrap { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; gap: 29px; padding-block: 42px 48px; }
  .hero h1 { font-size: clamp(2.55rem, 7.6vw, 3.85rem); }
  .proof { max-width: 570px; }
  .proof-line p { font-size: 1.08rem; }
  .workflow-steps li { padding-inline: 15px; gap: 9px; }
}

@media (max-width: 620px) {
  .workflow-steps, .workbench { grid-template-columns: 1fr; }
  .workflow-steps li, .workflow-steps li:first-child, .workflow-steps li:last-child { padding: 12px 0; }
  .workflow-steps li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .workflow h2 { margin-bottom: 5px; }
}

@media (max-width: 370px) {
  .wrap { width: calc(100% - 32px); }
  .nav-links { gap: 11px; }
  .nav-links a { font-size: .77rem; }
  .hero h1 { font-size: 2.42rem; }
  .proof-line { grid-template-columns: 1fr; gap: 3px; }
}

@media (forced-colors: active) {
  :root { scrollbar-color: auto; }
  .proof, .saved-detail { border: 1px solid CanvasText; }
  mark, ins { text-decoration: underline; }
}
