@font-face {
  font-family: Hanken;
  src: url("/assets/hanken-grotesk.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --deep: #142630;
  --navy: #233745;
  --paper: #f2efe8;
  --copper: #d8b898;
  --mineral: #aec6d4;
  --muted: #596a72;
  --line: #b8c2c3;
  font-family: Hanken, Arial, sans-serif;
  color: var(--navy);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 16px 22px;
  min-height: 48px;
  text-align: left;
  font-weight: 500;
}
button:hover {
  box-shadow: inset 0 -3px var(--copper);
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #946947;
  outline-offset: 4px;
}
h2.demo-view-title,
h2,
h3,
p {
  margin-top: 0;
}
h2.demo-view-title,
h2 {
  font-weight: 300;
  line-height: 1.08;
}
h2.demo-view-title {
  font-size: clamp(38px, 3.4vw, 49px);
  margin-bottom: 40px;
}
h2 {
  font-size: 32px;
}
p {
  line-height: 1.45;
}
button.link {
  background: transparent;
  color: inherit;
  padding-left: 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}
button.secondary {
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
}
.eyebrow,
dt,
.field-label {
  font:
    12px/1.5 "IBM Plex Mono",
    Consolas,
    monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--muted);
}
.brand-rail {
  min-height: 86px;
  padding: 20px 28px;
  background: var(--deep);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
}
.brand-rail p {
  margin: 0;
  color: var(--mineral);
}
.brand-rail > a:last-child {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.skip {
  position: absolute;
  left: 20px;
  top: -80px;
  background: var(--copper);
  padding: 16px;
  z-index: 9;
}
.skip:focus {
  top: 8px;
}
#notice {
  padding: 0 28px;
  background: var(--copper);
  line-height: 1.6;
}
#notice:not(:empty) {
  padding: 14px 28px;
}
#view:focus {
  outline: 0;
}
.entry {
  background: var(--deep);
  color: var(--paper);
  padding: 65px max(28px, 4vw);
  min-height: calc(100svh - 86px);
  position: relative;
}
.entry h2.demo-view-title {
  font-size: clamp(70px, 10.5vw, 151px);
  max-width: 920px;
  margin: 45px 0 35px;
}
.entry .eyebrow {
  color: var(--copper);
}
.entry p {
  color: var(--mineral);
}
.entry .actions {
  margin: 65px 0 30px;
}
.entry button:not(.link) {
  background: var(--copper);
  color: var(--navy);
  min-width: 290px;
}
.entry .link {
  font-size: 27px;
  text-decoration: none;
}
.entry-foot {
  margin: 70px 0 0;
}
.actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.workspace {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: calc(100svh - 86px);
}
.sidebar {
  background: var(--navy);
  color: var(--paper);
  padding: 38px 16px;
  display: flex;
  flex-direction: column;
  gap: 38px;
}
.sidebar-brand {
  padding-left: 12px;
  font-size: 28px;
}
.sidebar-brand .eyebrow {
  color: var(--copper);
  margin-bottom: 3px;
}
.sidebar nav {
  display: grid;
  gap: 10px;
}
.sidebar nav button {
  font-size: 19px;
  padding: 12px;
}
.sidebar nav button[aria-current] {
  background: var(--deep);
}
.sidebar .session {
  margin-top: auto;
  padding-left: 12px;
}
.sidebar .session p {
  color: var(--mineral);
}
.workspace-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 38px;
  padding: 32px 40px 70px;
}
.workspace-content > main {
  min-width: 0;
}
.trace {
  margin-top: 45px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.events {
  list-style: none;
  padding: 0;
  overflow-wrap: anywhere;
}
.events li {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.events time {
  display: block;
  font:
    12px/1.6 Consolas,
    monospace;
  color: var(--muted);
}
.events strong {
  font-size: 16px;
  font-weight: 500;
}
.mobile-nav {
  display: none;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}
.field {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 16px;
}
.field.wide {
  grid-column: 1/-1;
}
.field-label {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}
input,
textarea {
  width: 100%;
  border: 0;
  background: #fff;
  color: var(--navy);
  font-size: 21px;
  padding: 5px 0;
  min-height: 44px;
  border-radius: 0;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-bottom: 2px solid #963d29;
}
.field-error {
  color: #843724;
  font-size: 15px;
}
.muted {
  color: var(--muted);
}
.conversation {
  list-style: none;
  padding: 0;
}
.conversation li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.conversation p {
  font-size: clamp(23px, 2.1vw, 31px);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}
.conversation .eyebrow {
  font-size: 12px;
}
.compose label {
  display: block;
}
.compose textarea {
  padding: 16px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.proposal-preview {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.proposal-preview dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.proposal-preview dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.table-head,
.record-row {
  display: grid;
  grid-template-columns: 1.7fr 0.6fr 0.7fr;
  gap: 18px;
  padding: 18px;
}
.table-head {
  background: var(--navy);
  color: var(--paper);
  font:
    12px Consolas,
    monospace;
}
.record-row {
  background: white;
  color: var(--navy);
  width: 100%;
  padding: 26px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.record-row strong {
  font-size: 27px;
  display: block;
}
.record-row small {
  display: block;
  margin-top: 10px;
  font-size: 17px;
}
.badge {
  background: var(--copper);
  padding: 8px 12px;
  font:
    12px Consolas,
    monospace;
  align-self: start;
}
.record-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.record-fields div {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.record-fields dd {
  margin: 8px 0 0;
  font-size: 21px;
}
.record-fields .wide {
  grid-column: 1/-1;
}
.record-summary {
  font-size: 26px;
  white-space: pre-wrap;
}
.packet-lane {
  height: 150px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(var(--line), var(--line)) center/100% 1px
    no-repeat;
}
.packet {
  position: relative;
  padding: 18px;
  background: var(--copper);
  color: var(--navy);
  width: 180px;
  overflow-wrap: anywhere;
  z-index: 1;
}
.packet small {
  display: block;
}
.packet-lane[data-state="created"] .packet {
  margin-left: auto;
}
.packet-lane[data-state="queued"] .packet {
  border: 2px solid #843724;
}
.dock {
  background: var(--navy);
  color: var(--paper);
  padding: 25px;
}
.failure {
  border-left: 4px solid #946947;
  padding: 20px;
  background: white;
}
.failure h2 {
  font-size: 28px;
}
.failure-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 24px 0;
}
.failure-toggle input {
  width: 24px;
  height: 24px;
  min-height: 24px;
  accent-color: var(--navy);
}
.empty {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  font-size: 22px;
}
.chaos {
  padding: 55px max(28px, 4vw);
  min-height: 900px;
}
.chaos h2.demo-view-title {
  font-size: clamp(43px, 5.7vw, 82px);
  max-width: 850px;
}
.chaos.organized {
  background: var(--deep);
  color: var(--paper);
}
.chaos.organized .eyebrow {
  color: var(--copper);
}
.tools {
  position: relative;
  height: 500px;
  margin: 50px 0;
}
.tool {
  position: absolute;
  width: 23%;
  min-height: 130px;
  padding: 18px;
  background: #fff;
  color: var(--navy);
  transition:
    left 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    top 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s;
  z-index: 1;
}
.tool span {
  display: block;
  font-size: 25px;
  margin-top: 16px;
}
.tool:nth-of-type(3n + 1) {
  background: var(--copper);
}
.tool:nth-of-type(3n) {
  background: var(--mineral);
}
.tool:nth-of-type(1) {
  left: 0;
  top: 0;
  transform: rotate(2deg);
}
.tool:nth-of-type(2) {
  left: 36%;
  top: 45px;
  transform: rotate(-3deg);
}
.tool:nth-of-type(3) {
  left: 70%;
  top: 0;
  transform: rotate(2deg);
}
.tool:nth-of-type(4) {
  left: 17%;
  top: 210px;
  transform: rotate(-3deg);
}
.tool:nth-of-type(5) {
  left: 68%;
  top: 240px;
  transform: rotate(2deg);
}
.tool:nth-of-type(6) {
  left: 0;
  top: 355px;
  transform: rotate(-3deg);
}
.tool:nth-of-type(7) {
  left: 36%;
  top: 380px;
  transform: rotate(2deg);
}
.tool:nth-of-type(8) {
  left: 75%;
  top: 395px;
  transform: rotate(-3deg);
}
.organized .tool {
  transform: none;
  background: var(--navy);
  color: var(--paper);
}
.organized .tool .eyebrow {
  color: var(--mineral);
}
.organized .tool:nth-of-type(6) {
  left: 0;
  top: 0;
}
.organized .tool:nth-of-type(1) {
  left: 25.5%;
  top: 0;
}
.organized .tool:nth-of-type(7) {
  left: 51%;
  top: 0;
}
.organized .tool:nth-of-type(8) {
  left: 76.5%;
  top: 0;
}
.organized .tool:nth-of-type(5) {
  left: 0;
  top: 220px;
}
.organized .tool:nth-of-type(3) {
  left: 25.5%;
  top: 220px;
}
.organized .tool:nth-of-type(2) {
  left: 51%;
  top: 220px;
}
.organized .tool:nth-of-type(4) {
  left: 76.5%;
  top: 220px;
}
.connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: #946947;
  fill: none;
  stroke-width: 2;
}
.organized .connections {
  stroke: var(--copper);
}
dialog {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  width: min(640px, calc(100% - 32px));
  padding: 32px;
  max-height: 90svh;
}
dialog::backdrop {
  background: #142630c9;
}
dialog dd {
  margin: 5px 0 22px;
}
details summary {
  padding: 14px 0;
  min-height: 48px;
  cursor: pointer;
}
.noscript {
  padding: 40px;
}
.entry-packet {
  position: absolute;
  right: 8%;
  bottom: 170px;
}
.flow-label {
  margin: 30px 0;
  color: var(--muted);
}
@media (max-width: 1190px) {
  .workspace-content {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px;
  }
  .trace {
    margin: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0;
  }
  .trace .events {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
  }
  .entry-packet {
    display: none;
  }
  .brand-rail > .eyebrow {
    max-width: 330px;
  }
}
@media (max-width: 700px) {
  .brand-rail {
    padding: 20px 22px;
    flex-wrap: wrap;
    gap: 18px;
  }
  .brand-rail .eyebrow {
    order: 3;
    max-width: none;
    width: 100%;
    font-size: 10px;
  }
  .brand-rail > a:last-child {
    font-size: 14px;
  }
  .brand {
    font-size: 22px;
  }
  .entry {
    padding: 28px 22px 38px;
    min-height: 760px;
  }
  .entry h2.demo-view-title {
    font-size: 64px;
    margin: 30px 0 65px;
  }
  .entry .actions {
    margin: 60px 0 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .entry button:not(.link) {
    min-width: 0;
    width: 100%;
  }
  .entry .link {
    font-size: 23px;
  }
  .entry-foot {
    margin-top: 55px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .mobile-nav {
    display: block;
    padding: 18px 22px;
    background: var(--navy);
    color: var(--paper);
  }
  .mobile-nav select {
    width: 100%;
    min-height: 48px;
    padding: 10px;
    border: 1px solid var(--mineral);
    background: var(--navy);
    color: var(--paper);
    margin-top: 8px;
  }
  .workspace-content {
    padding: 28px 22px;
  }
  .fields,
  .record-fields,
  .proposal-preview dl {
    grid-template-columns: 1fr;
  }
  .field.wide,
  .record-fields .wide {
    grid-column: auto;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .actions button {
    width: 100%;
  }
  .table-head {
    display: none;
  }
  .record-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .record-row .badge {
    justify-self: start;
  }
  .chaos {
    padding: 32px 22px;
    min-height: 0;
  }
  .chaos h2.demo-view-title {
    font-size: 43px;
  }
  .tools {
    height: 850px;
  }
  .tool {
    width: 45%;
    min-height: 150px;
    padding: 12px;
  }
  .tool span {
    font-size: 21px;
  }
  .tool:nth-of-type(1) {
    left: 0;
    top: 0;
  }
  .tool:nth-of-type(2) {
    left: 53%;
    top: 65px;
  }
  .tool:nth-of-type(3) {
    left: 0;
    top: 215px;
  }
  .tool:nth-of-type(4) {
    left: 53%;
    top: 270px;
  }
  .tool:nth-of-type(5) {
    left: 0;
    top: 430px;
  }
  .tool:nth-of-type(6) {
    left: 53%;
    top: 465px;
  }
  .tool:nth-of-type(7) {
    left: 0;
    top: 650px;
  }
  .tool:nth-of-type(8) {
    left: 53%;
    top: 680px;
  }
  .organized .tool:nth-of-type(6) {
    left: 0;
    top: 0;
  }
  .organized .tool:nth-of-type(1) {
    left: 55%;
    top: 0;
  }
  .organized .tool:nth-of-type(7) {
    left: 0;
    top: 215px;
  }
  .organized .tool:nth-of-type(8) {
    left: 55%;
    top: 215px;
  }
  .organized .tool:nth-of-type(5) {
    left: 55%;
    top: 645px;
  }
  .organized .tool:nth-of-type(3) {
    left: 0;
    top: 645px;
  }
  .organized .tool:nth-of-type(2) {
    left: 55%;
    top: 430px;
  }
  .organized .tool:nth-of-type(4) {
    left: 0;
    top: 430px;
  }
  .packet {
    width: 150px;
  }
  .flow-label {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.packet .eyebrow {
  color: var(--navy);
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
.sidebar nav button {
  font-weight: 400;
}
.sidebar nav button[aria-current] {
  font-weight: 700;
}
.record-row strong {
  font-weight: 500;
}
.failure {
  border: 1px solid var(--line);
}
.record-row + .muted {
  margin-top: 30px;
}
@media (max-width: 700px) {
  .entry h2.demo-view-title {
    font-size: 47px;
  }
  .entry .actions button:nth-child(2) {
    background: transparent;
    color: var(--paper);
    padding-left: 0;
    font-size: 23px;
  }
  .entry .actions {
    margin-top: 90px;
  }
  .brand-rail .eyebrow {
    font-size: 12px;
  }
}

/* State-driven handoff cues; the number represents this session's one inquiry. */
.next-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 24px;
  height: 24px;
  margin-left: 9px;
  padding: 0 6px;
  border-radius: 50%;
  background: #b42318;
  color: #fff;
  font: 700 13px/1 Arial, sans-serif;
  vertical-align: middle;
}
.next-step, .step-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  padding: 16px;
  margin: 0 0 28px;
}
.next-step { display: flex; align-items: flex-start; gap: 12px; }
.next-step .next-badge { margin: 0; }
.next-step p, .step-note p { margin: 0; font-size: 16px; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .next-step { animation: handoff-arrives 420ms ease-out both; }
  .next-step .next-badge { animation: handoff-pulse 650ms ease-out 1; }
}
@keyframes handoff-arrives { from { transform: translateY(6px); } to { transform: translateY(0); } }
@keyframes handoff-pulse { 50% { box-shadow: 0 0 0 7px rgb(180 35 24 / 15%); } }

/* Estimate and customer handoff extend the existing paper workspace. */
.estimate-items { display: grid; gap: 18px; margin: 24px 0; }
.estimate-item { min-width: 0; border: 1px solid var(--line); padding: 20px; }
.estimate-item legend { padding: 0 8px; font-size: 14px; }
.estimate-item label { display: grid; gap: 8px; }
.estimate-item input { width: 100%; min-width: 0; }
.item-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.quote-document { background: #fff; padding: 28px; margin: 28px 0; border-top: 3px solid var(--navy); overflow-wrap: anywhere; }
.quote-document h2 { font-size: 25px; line-height: 1.2; }
.quote-document .record-summary { white-space: pre-wrap; }
.quote-lines { margin-top: 32px; }
.quote-line { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.quote-line small { display: block; margin-top: 6px; color: var(--muted); }
.quote-line > strong { flex-shrink: 0; }
.quote-total { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0; font-size: 20px; }
.confirmation { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; margin: 24px 0; }
.confirmation input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; }
.delivery { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.customer-quote { max-width: 820px; padding: 60px 28px; margin: 0 auto; }
.customer-quote h2.demo-view-title { font-size: 48px; font-weight: 400; line-height: 1.05; }
.customer-quote p { line-height: 1.55; }
.owner-return { display: inline-block; padding: 16px 0; }
@media (max-width: 700px) {
  .quote-document { padding: 20px; }
  .quote-line { flex-wrap: wrap; }
  .customer-quote { padding: 36px 22px; }
  .customer-quote h2.demo-view-title { font-size: 38px; }
  .estimate-item { padding: 16px; }
}

.privacy-banner { padding: 20px 28px; border-bottom: 2px solid var(--navy); background: #fff; color: var(--navy); }
.privacy-banner p { max-width: 90ch; font-size: 15px; line-height: 1.5; margin: 8px 0; }
.privacy-banner details { margin: 12px 0; font-size: 15px; }
.privacy-banner summary { cursor: pointer; }
.privacy-banner button { margin-top: 8px; }
