:root {
  color-scheme: light;
  --paper: #f2f3ef;
  --white: #fff;
  --ink: #18201f;
  --muted: #515e5b;
  --line: #d8ddda;
  --dark: #142220;
  --accent: #e1f06a;
  --green: #263e31;
  --warn: #723b07;
  --warn-bg: #fff0d5;
  --okay: #22543b;
  --okay-bg: #dfefe3;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.52;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #477b55; outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; z-index: 3; padding: 12px; background: var(--white); color: var(--ink); }
.top { background: var(--dark); color: var(--white); border-bottom: 1px solid #52635b; }
.top-row, .top nav, .footer > div { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.top-row { min-height: 68px; }
.top a { color: #e1e9e2; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; }
.top a:hover { color: var(--accent); }
.top a:focus-visible { outline-color: var(--accent); }
.brand { font-weight: 720; letter-spacing: .015em; }
.brand span { width: 15px; height: 15px; display: inline-block; border: 2px solid var(--accent); transform: skew(-11deg); box-shadow: 4px 3px 0 -2px var(--accent); }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -.033em; }
h2 { font-size: clamp(1.8rem, 4.5vw, 3.6rem); }
h3, h4 { font-size: 1.25rem; }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.28rem); max-width: 39ch; margin-top: 22px; }
.proposal, .intake-routing { font-size: .875rem; line-height: 1.42; }
.proposal .hero { border-bottom: 1px solid var(--line); }
.proposal .hero .lede { margin-top: 6px; max-width: none; font-size: 1rem; font-weight: 650; }
.proposal-intro { max-width: 82ch; margin-top: 6px; color: var(--muted); }
.proposal-context { margin-top: 5px; color: var(--muted); }
.proposal .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.proposal h2 { line-height: 1.18; }
.proposal h3 { line-height: 1.25; letter-spacing: -.015em; }
.benefit-list, .idea-list { display: grid; gap: 12px; margin-top: 12px; }
.benefit-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.idea-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.website-ideas { grid-column: 1 / -1; }
.proposal .panel p { margin-top: 6px; }
.proposal .starting-point { background: #e8f0e3; border-left: 3px solid #477b55; }
.work-limits { margin-top: 12px; }
.economy-summary { padding: 16px; border-radius: 8px; background: var(--dark); color: var(--white); }
.economy-summary > p { color: #e1e9e2; margin-top: 6px; }
.economy-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.economy-metrics li { display: grid; align-content: start; gap: 3px; padding: 10px 12px; border: 1px solid #52635b; border-radius: 5px; }
.economy-metrics strong { color: var(--accent); font-size: clamp(1.2rem, 2.5vw, 1.65rem); }

.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid transparent; border-radius: 5px; font-weight: 670; color: var(--ink); line-height: 1.22; text-decoration: none; }
.button.primary { background: var(--accent); border-color: #c8d957; }
.button.primary:hover { background: #f0fb97; }
.button.light { border-color: #a9b3ac; background: var(--white); }
.button.light:hover { background: #e9eddf; }
.button:disabled { opacity: .6; cursor: wait; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; gap: 8px; margin: 0 0 14px; }
.flow li { border: 1px solid #aebcb0; background: #f7faf5; border-radius: 4px; padding: 11px 13px; font-weight: 630; }
.flow li.visited { background: var(--okay-bg); border-color: #8eb188; }
.compact-list { padding-left: 1.33em; margin-top: 8px; }
.compact-list li + li { margin-top: 4px; }
label { display: block; font-weight: 650; margin-bottom: 5px; }
input:not([type=file]), textarea { border-radius: 5px; border: 1px solid #87948b; background: var(--white); color: var(--ink); width: 100%; min-height: 46px; padding: 8px 10px; }
input[type=file] { width: 100%; min-height: 44px; padding-block: 4px; }
input::file-selector-button { min-height: 36px; }
textarea { resize: vertical; }
.footer { background: var(--dark); color: var(--white); padding-block: 24px; }
.print-only { display: none; }

.demo-main { padding-top: clamp(28px, 4.5vw, 60px); padding-bottom: 44px; }
.demo-intro h1 { font-size: clamp(2.05rem, 5.1vw, 4.3rem); }
.demo-intro .lede { max-width: 67ch; margin-top: 13px; }
.intake-routing .top-row { min-height: 44px; }
.intake-routing .demo-main { padding-top: 12px; }
.intake-routing .demo-intro h1 { font-size: clamp(1.6rem, 2.5vw, 2rem); }
.intake-routing .demo-intro .lede { max-width: none; margin-top: 6px; font-size: .9rem; }
.intake-guide > summary, .intake-examples > summary, .intake-technical > summary { width: fit-content; color: var(--green); text-decoration: underline; }
.intake-guide .compact-list, .intake-technical .compact-list { max-width: 82ch; }
.intake-guide .compact-list { margin-bottom: 8px; }
.intake-technical .compact-list li + li { margin-top: 8px; }
.intake-technical code { overflow-wrap: anywhere; }
.intake-production { margin-top: 2.2rem; }
.intake-production + .intake-technical { margin-top: 1.25rem; }
.intake-production > p { margin-top: .6rem; }
.intake-production-steps {
  display: grid;
  gap: 1rem 2rem;
  margin: 1rem 0;
  padding-inline-start: 1.35em;
}
.intake-production-steps > li { border-top: 1px solid var(--line); padding-top: .6rem; }
.intake-production-steps > li::marker { color: var(--green); font-weight: 650; }
.intake-production-steps h3 { font-size: .95rem; }
.intake-production-steps p { margin-top: 4px; }
.intake-routing .workbench { gap: 12px; margin-top: 12px; }
.intake-routing .panel { padding: 11px 15px; }
.intake-routing .panel h2, .intake-technical > summary, .intake-production h2 { font-size: 1.35rem; line-height: 1.18; }
.intake-routing .notice { margin-block: 9px 7px; padding: 8px 10px; font-weight: 500; }
.intake-message { container-type: inline-size; }
.intake-message .example-label { margin-top: 8px; font-size: .875rem; font-weight: 600; }
.intake-message .pills { gap: 5px; margin: 4px 0 7px; }
.intake-message .pills button {
  flex: 1 1 calc((100% - 5px) / 2);
  min-width: 0;
  padding: 5px 7px;
  border-color: #c5cfc2;
  background: #e8eee5;
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
}
.intake-message .pills button[aria-pressed=true] { background: #d9e7cb; }
.intake-message .pills button[aria-pressed=false]:hover:not(:disabled) { background: #dfe7db; border-color: #829081; }
.intake-message .pills button:disabled { cursor: wait; opacity: .7; }
.intake-message button:focus-visible { outline-offset: 2px; }
.intake-message form > .button { width: 100%; margin-top: 7px; background: #e5efb6; border-color: #c6d48d; font-weight: 400; }
.intake-message form > .button:hover { background: #edf4ce; }
.intake-message-label { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.intake-new-card { padding: 2px 4px; border: 0; background: transparent; color: var(--green); font-size: .8125rem; text-decoration: underline; text-underline-offset: .18em; }
.intake-new-card:hover { text-decoration-thickness: 2px; }
.intake-new-card:disabled { cursor: wait; opacity: .65; }
.intake-message .field-hint { margin-bottom: 4px; font-size: .75rem; }
.intake-message textarea { display: block; padding: 6px 8px; }
.intake-examples { margin-top: 10px; border-top: 1px solid var(--line); }
.intake-examples > .pills { margin-top: 0; }
.intake-faq-examples { margin-bottom: 7px; }
.intake-faq-examples .example-label { margin-top: 0; }
.intake-faq-examples .pills { margin-bottom: 0; }
.intake-example-preview {
  position: fixed;
  z-index: 2;
  width: min(23rem, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid #b8c5b8;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 4px 14px #18201f21;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.intake-results { display: grid; gap: 12px; min-width: 0; }
.intake-card-heading, .intake-card-meta, .intake-route-summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 10px;
}
.intake-card-heading { justify-content: space-between; }
.intake-card-status {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--green);
  font-weight: 650;
}
.intake-card-status[data-state="warning"] { background: var(--warn-bg); color: var(--warn); }
.intake-card-status[data-state="ready"], .intake-card-status[data-state="saved"] { background: var(--okay-bg); color: var(--okay); }
.intake-card-meta { margin-top: 5px; color: var(--muted); }
.intake-card-meta strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.intake-routing #route-result { margin-bottom: 0; }
.intake-route-summary span, .intake-card-previous { font-size: .8125rem; }
.intake-card-previous { margin-top: 6px; }
.intake-routing .intake-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
}
.intake-empty p { max-width: 48ch; }
.intake-positions h2 + p { margin-top: 5px; }
#positions-result { container-type: inline-size; }
.intake-reply { padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; white-space: pre-line; }
.intake-reply-sources { display: grid; gap: 5px; margin-top: 12px; }
.intake-reply-sources h3 { font-size: 1rem; }
.intake-pricing { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 9px; padding: 8px 10px; background: #edf1ec; border-radius: 4px; }
.intake-pricing-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
.intake-pricing h3 { font-size: 1rem; }
.intake-pricing-heading > span { font-size: .8125rem; }
.intake-price-total strong { font-size: 1.08rem; }
.intake-card-approve { min-height: 36px; padding: 6px 10px; }
.intake-price-line p { margin-top: 3px; color: var(--muted); }
.intake-clarification { margin-bottom: 9px; }
.intake-clarification-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.intake-clarification-toolbar .button { min-height: 38px; padding: 5px 8px; }
.intake-clarification-toolbar .button[aria-expanded=true] { background: #e5efdc; border-color: #91a289; }
.intake-clarification-panel { margin-top: 6px; border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; background: #f8faf7; }
.intake-draft-text { display: block; min-height: 0; background: var(--white); }
#intake-draft-panel .intake-clarification-actions { margin: 0 0 6px; }
.intake-clarification-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
.intake-clarification-actions .button { min-height: 38px; padding: 5px 10px; }
.intake-edit-position { margin-top: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; overflow-wrap: anywhere; }
.intake-edit-position legend { font-weight: 650; padding-inline: 4px; max-width: 100%; }
.intake-edit-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 6px 8px; margin-top: 8px; }
.intake-edit-fields input, .intake-edit-fields textarea { display: block; min-width: 0; width: 100%; min-height: 0; margin-top: 3px; padding: 5px 7px; font-weight: 400; }
.intake-edit-fields label { margin: 0; }
.intake-edit-dimensions { grid-column: 1 / -1; }
.intake-edit-dimensions .field-hint { display: block; font-size: .78rem; font-weight: 400; }
.intake-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.intake-table th, .intake-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.intake-table th { background: #f3f6f1; }
.intake-table th:first-child { width: 23%; }
.intake-table th:nth-child(2) { width: 27%; }
.intake-table th:nth-child(3) { width: 28%; }
.intake-mobile-label { display: none; }
.intake-list { margin: 0; padding-inline-start: 1.15em; }
.intake-list li + li, .intake-reference + .intake-reference, .intake-table td > p + .intake-reference { margin-top: 5px; }
.mode { color: var(--muted); margin-top: 8px; }
.workbench { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: start; margin-top: 27px; }
.intake-workbench { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.panel { min-width: 0; background: var(--white); border: 1px solid #c7d0c7; border-radius: 8px; padding: clamp(13px, 2.3vw, 27px); }
.panel h2, .demo-flow h2, .recording h2 { font-size: clamp(1.5rem, 3vw, 2.13rem); }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.example-label { margin-top: 17px; font-weight: 650; }
.pills { display: flex; margin-block: 6px 17px; flex-wrap: wrap; gap: 8px; }
.pills button { border: 1px solid #a4b0a5; background: #f7f8f6; min-height: 44px; border-radius: 5px; padding: 6px 11px; color: var(--ink); font-weight: 650; }
.pills button[aria-pressed=true] { background: #e6efd9; border-color: #677c60; }
.field-hint { margin-bottom: 6px; }
#submit { margin-top: 14px; }
.field-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.field-line > a { min-height: 44px; display: inline-flex; align-items: center; }
.spec-preview { margin-top: 2px; }
.spec-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border: 1px solid var(--line); background: #f8faf7; border-radius: 4px; overflow-wrap: anywhere; }
.spec-row + .spec-row { margin-top: 6px; }
.spec-row small { color: var(--muted); }
summary { min-height: 44px; padding-block: 10px; font-weight: 660; }
#spec-details { margin-bottom: 10px; }
#spec-details label { margin-top: 8px; }
.notice { background: #edf1ec; border-radius: 4px; padding: 11px 12px; margin-block: 15px 10px; font-weight: 670; overflow-wrap: anywhere; }
.notice.warning { background: var(--warn-bg); color: var(--warn); }
.notice.okay { background: var(--okay-bg); color: var(--okay); }
.muted { color: var(--muted); }
.warn-text { color: var(--warn); }
.run-meta { margin-bottom: 8px; overflow-wrap: anywhere; }
.position { border: 1px solid var(--line); border-radius: 5px; padding: 13px; margin-bottom: 10px; }
.position p { margin-top: 6px; overflow-wrap: anywhere; }
.position-values { font-weight: 680; }
.quick-edit { margin-top: 12px; border-top: 1px solid var(--line); }
.quick-edit label { margin-top: 8px; }
.quick-edit .button { margin-top: 8px; }
.sources { margin-top: 4px; }
.sources dl > div { border-top: 1px solid var(--line); display: grid; gap: 2px; padding-block: 8px; }
.sources dt { font-weight: 650; }
.sources dd { overflow-wrap: anywhere; }
.source-note { font-size: .87rem; }
.draft { margin-bottom: 8px; }
.draft p { white-space: pre-line; overflow-wrap: anywhere; }
.demo-flow, .recording { margin-top: 35px; }
.demo-flow .flow { margin-top: 12px; }
.demo-flow > p + p, .recording h2 + p { margin-top: 8px; }
.recording video { width: min(100%, 760px); margin-top: 10px; aspect-ratio: 16 / 9; background: #20302a; display: block; border-radius: 5px; }

@media (min-width: 801px) {
  .intake-routing .demo-intro { position: relative; }
  .intake-guide > summary { position: absolute; inset-block-start: 0; inset-inline-end: 0; }
  .intake-production-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intake-workbench { align-items: stretch; min-height: 440px; }
  .intake-results { contain: size; grid-template-rows: auto minmax(0, 1fr); }
  .intake-positions { min-height: 0; overflow: auto; }
  .intake-message .pills button { min-height: 28px; padding: 3px 6px; }
}
@media (min-width: 801px) and (max-height: 640px) {
  .intake-routing .demo-main { padding-top: 8px; }
  .intake-routing .workbench { margin-top: 8px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 36px); }
  .workbench { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-intro .lede { max-width: 44ch; }
  .intake-new-card, .intake-card-approve { min-height: 44px; }
  .intake-message textarea, .intake-clarification textarea, .intake-clarification input { font-size: 1rem; }
  .intake-clarification-toolbar .button, .intake-clarification-actions .button { min-height: 44px; }
}
@container (max-width: 600px) {
  .intake-table, .intake-table tbody, .intake-table td { display: block; }
  .intake-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .intake-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 5px; }
  .intake-table tbody tr + tr { margin-top: 10px; }
  .intake-table td { padding: 7px 10px; }
  .intake-table td:first-child { background: #f3f6f1; }
  .intake-mobile-label { display: block; color: var(--muted); font-size: .85rem; }
}
@container (410px < width <= 600px) {
  .intake-table td:nth-child(odd) { border-inline-end: 1px solid var(--line); }
  .intake-table td:nth-child(n+3) { border-bottom: 0; }
}
@container (max-width: 410px) {
  .intake-table tbody tr { grid-template-columns: minmax(0, 1fr); }
  .intake-table td:last-child { border-bottom: 0; }
}
@container (max-width: 265px) {
  .intake-clarification-toolbar { grid-template-columns: minmax(0, 1fr); }
}
@container (min-width: 375px) {
  #samples button { flex-basis: calc((100% - 10px) / 3); }
  #faq-samples button { flex-basis: calc((100% - 15px) / 4); padding-inline: 5px; font-size: .75rem; }
}
@container (max-width: 265px) {
  .intake-message .pills button { flex-basis: 100%; }
}
@media (max-width: 480px) {
  .top-row { padding-block: 5px; gap: 0 12px; }
  .top nav { gap: 12px; }
  #submit { width: 100%; }
}

@page { size: A4; margin: 14mm 15mm 13mm; }
@media screen {
  .proposal .top-row { min-height: 44px; padding-block: 0; }
  .proposal .top nav { gap: 0 16px; }
  .proposal .hero { padding-block: 12px 18px; }
  .proposal-intro { max-width: none; }
  .proposal .hero h1 { font-size: clamp(1.6rem, 2.5vw, 2rem); }
  .proposal h2 { font-size: 1.35rem; }
  .proposal h3 { font-size: 1rem; }
  .proposal .section { padding-block: 0 28px; }
  .proposal .hero + .section { padding-top: 22px; }
  .proposal .ideas-continuation + .section { margin-top: 28px; }
  .proposal .sheet:first-child > .section:last-of-type { padding-bottom: 12px; }
  .proposal .ideas-continuation .idea-list { margin-top: 0; }
  .future-ideas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proposal .panel { padding: 11px 15px; }
  .proposal .button { min-height: 44px; padding: 7px 12px; }

  @media (max-width: 800px) {
    .benefit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .future-ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 480px) {
    .proposal .top-row { gap: 0 12px; }
    .proposal .top nav { justify-content: flex-start; gap: 0 12px; }
    .benefit-list, .idea-list, .economy-metrics { grid-template-columns: minmax(0, 1fr); }
    .proposal .actions .button { width: 100%; }
  }
}

@media print {
  :root { background: #fff; font-size: 10.8pt; }
  .screen-only, .skip { display: none !important; }
  .print-only { display: block; }
  .proposal { font-size: 1rem; line-height: 1.33; }
  .wrap { width: 100%; margin: 0; }
  .sheet { break-after: page; min-height: 267mm; position: relative; padding-bottom: 13mm; }
  .sheet:last-child { break-after: auto; }
  .proposal .hero { padding: 0 0 5mm; }
  .proposal .hero h1 { font-size: 28pt; }
  .proposal .hero .lede { font-size: 14pt; }
  .proposal .section { padding-block: 7mm 0; }
  .proposal .sheet:first-child .section { padding-top: 5mm; }
  .proposal .sheet:last-child > .section:first-child { padding-top: 0; }
  .proposal h2 { font-size: 19pt; }
  .proposal h3 { font-size: 12pt; }
  .benefit-list, .idea-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3mm; margin-top: 3mm; }
  .future-ideas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proposal .panel { padding: 3mm 3.5mm; break-inside: avoid; print-color-adjust: exact; }
  .proposal .sheet:first-child .panel { padding-block: 2.5mm; }
  .ideas-continuation .idea-list, .future-ideas { gap: 2.5mm; font-size: 10.2pt; }
  .ideas-continuation .panel, .future-ideas .panel { padding: 1.8mm 3mm; }
  .proposal :is(.ideas-continuation, .future-ideas) .panel p { margin-top: 1.1mm; }
  .future-ideas { margin-top: 2mm; }
  .proposal .ideas-continuation + .section { padding-top: 3mm; }
  .proposal .benefit-list .panel p { margin-top: 1mm; }
  .proposal .benefit-list h3 { font-size: 11pt; }
  .economy-summary { padding: 4mm 5mm; background: #eef2ec; color: var(--ink); print-color-adjust: exact; }
  .economy-summary > p { color: var(--muted); }
  .economy-metrics li { border-color: #aeb8b1; }
  .economy-metrics strong { color: var(--green); font-size: 16pt; }
  .print-footer { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; border-top: 1px solid #aeb8b1; padding-top: 2.5mm; font-size: 9pt; color: var(--muted); }
}
