:root {
  --ink: #18201d;
  --muted: #64706b;
  --paper: #f5f3ec;
  --surface: #fffefa;
  --line: #d8d9d1;
  --green: #1d5a48;
  --green-dark: #123b30;
  --sage: #dbe7dd;
  --gold: #d99c3f;
  --danger: #8b2f2f;
  --warning: #fff4d8;
  --shadow: 0 18px 55px rgba(28, 45, 38, .09);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 85% 0%, rgba(194, 217, 201, .55), transparent 30rem), var(--paper);
  line-height: 1.6;
}
a { color: var(--green); text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 20;
  padding: .65rem 1rem;
  color: white;
  background: var(--ink);
}
.skip-link:focus { top: 1rem; }
.site-header, .site-footer, .page-shell {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid rgba(24, 32, 29, .12);
}
.brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -.03em;
  text-decoration: none;
}
.brand span { color: var(--green); }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--green); }
.page-shell {
  min-height: calc(100vh - 180px);
  padding-block: clamp(2rem, 6vw, 5rem);
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}
.site-footer p { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; }
h1 {
  font-size: clamp(2.35rem, 6vw, 5.7rem);
  max-width: 15ch;
  margin-bottom: 1.5rem;
}
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
.eyebrow {
  margin-bottom: .7rem;
  color: var(--green);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.lede {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.subtle { max-width: 700px; color: var(--muted); }
.hero { padding-block: clamp(2rem, 7vw, 6.5rem); }
.hero .callout {
  width: min(480px, 100%);
  margin-top: 2.6rem;
  padding: 1.2rem 1.35rem;
  border-left: 3px solid var(--gold);
  background: rgba(255, 254, 250, .7);
}
.callout p { margin: .25rem 0 0; color: var(--muted); }
.three-up, .progress-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}
.three-up article, .step-card {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--surface);
}
.three-up article > span, .step-card > span {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  font-size: .72rem;
  font-weight: 800;
}
.three-up p, .step-card p { color: var(--muted); }
.step-card { position: relative; }
.step-card.complete::after {
  position: absolute;
  top: 1rem;
  right: 1rem;
  content: "Complete";
  padding: .3rem .55rem;
  border-radius: 100px;
  color: var(--green-dark);
  background: var(--sage);
  font-size: .67rem;
  font-weight: 800;
  text-transform: uppercase;
}
.step-card a { font-weight: 750; }
.page-heading, .report-header, .section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}
.page-heading h1, .report-header h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  margin-bottom: .7rem;
}
.section-heading { margin-top: 4rem; margin-bottom: 1rem; }
.section-heading h2 { margin-bottom: 0; }
.button, .secondary, .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.15rem;
  border: 1px solid var(--green);
  border-radius: 10px;
  color: white;
  background: var(--green);
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, .button:focus-visible { background: var(--green-dark); }
.button:disabled { opacity: .56; cursor: progress; }
.button.secondary, .secondary { color: var(--green); background: transparent; }
.danger-button {
  border-color: var(--danger);
  color: var(--danger);
  background: transparent;
}
.narrow, .narrow-card { width: min(760px, 100%); margin-inline: auto; }
.narrow-card {
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.narrow-card h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.plain-list { padding: 0; list-style: none; }
.plain-list li {
  position: relative;
  padding: .7rem 0 .7rem 1.7rem;
  border-bottom: 1px solid var(--line);
}
.plain-list li::before {
  position: absolute;
  left: .2rem;
  content: "✓";
  color: var(--green);
  font-weight: 800;
}
.consent {
  display: flex;
  gap: .8rem;
  margin: 1.7rem 0;
  padding: 1rem;
  border-radius: 10px;
  background: var(--sage);
}
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; }
.form-status {
  min-height: 1.5em;
  margin: .75rem 0 0;
  color: var(--danger);
  font-size: .9rem;
}
.property-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.property-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.property-row:last-child { border-bottom: 0; }
.property-row:hover { background: #fafbf7; }
.property-row strong, .property-row span { display: block; }
.property-row div span { color: var(--muted); font-size: .82rem; }
.status-pill {
  padding: .35rem .65rem;
  border-radius: 100px;
  color: var(--green-dark);
  background: var(--sage);
  font-size: .7rem;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}
.empty-state, .progress-callout, .warning-box, .success-banner, .privacy-strip {
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
}
.empty-state { border: 1px dashed var(--line); text-align: center; }
.empty-state p, .progress-callout p, .warning-box p {
  margin: .25rem 0 0;
  color: var(--muted);
}
.account-controls { margin-top: 3rem; color: var(--muted); font-size: .9rem; }
.account-controls summary { cursor: pointer; }
.control-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.control-row form { display: flex; align-items: center; gap: 1rem; }
.text-button {
  border: 0;
  color: var(--green);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}
.prose h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.prose h2 { margin-top: 2.5rem; }
.prose p { color: #46514d; }
.chat-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  min-height: 360px;
  max-height: 62vh;
  overflow-y: auto;
  padding: clamp(1.2rem, 4vw, 2.5rem);
}
.message {
  width: min(78%, 680px);
  padding: 1rem 1.15rem;
  border-radius: 14px;
}
.message span {
  display: block;
  margin-bottom: .25rem;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.message p { margin: 0; white-space: pre-wrap; }
.message.assistant {
  align-self: flex-start;
  border: 1px solid var(--line);
  background: #fafbf7;
}
.message.buyer { align-self: flex-end; color: white; background: var(--green); }
.message.buyer span { color: rgba(255, 255, 255, .7); }
.chat-composer { padding: 1rem; border-top: 1px solid var(--line); }
.chat-composer label { display: block; margin-bottom: .45rem; font-size: .8rem; font-weight: 750; }
.chat-composer textarea { width: 100%; resize: vertical; }
.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .7rem;
}
.privacy-strip {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--muted);
  background: rgba(219, 231, 221, .65);
  font-size: .82rem;
}
.privacy-strip strong { color: var(--green-dark); white-space: nowrap; }
.brief-form, .property-form, .feedback-panel { display: grid; gap: 1.4rem; }
.form-section {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.field-grid { display: grid; gap: 1.2rem; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.compact { align-content: start; }
label { color: #34413c; font-size: .86rem; font-weight: 750; }
label > span { color: var(--muted); font-size: .75rem; font-weight: 500; }
input, textarea, select {
  width: 100%;
  margin-top: .4rem;
  padding: .78rem .85rem;
  border: 1px solid #bec4bd;
  border-radius: 9px;
  color: var(--ink);
  background: white;
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid rgba(29, 90, 72, .16);
  border-color: var(--green);
}
textarea { resize: vertical; }
.sticky-actions {
  position: sticky;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 254, 250, .94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.sticky-actions span { color: var(--muted); font-size: .82rem; }
.confirm-panel {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1.4rem;
  border: 1px solid var(--green);
  border-radius: 12px;
}
.confirm-panel h2, .confirm-panel p { margin-bottom: 0; }
.confirm-panel p { color: var(--muted); }
.success-banner {
  margin-bottom: 1.5rem;
  color: var(--green-dark);
  background: var(--sage);
  font-weight: 700;
}
.file-field {
  padding: 1.2rem;
  border: 1px dashed var(--green);
  border-radius: 12px;
  background: rgba(219, 231, 221, .35);
}
.file-field span { display: block; }
.warning-box { border-left: 4px solid var(--gold); background: var(--warning); }
.progress-callout {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--sage);
}
.pulse {
  flex: 0 0 auto;
  width: .75rem;
  height: .75rem;
  margin-top: .45rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(29, 90, 72, .12);
}
.report-header { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.report-body {
  width: min(850px, 100%);
  margin: 3rem auto 5rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.report-body h1, .report-body h2 { margin-top: 2.8rem; }
.report-body h1:first-child, .report-body h2:first-child { margin-top: 0; }
.report-body table { width: 100%; border-collapse: collapse; }
.report-body th, .report-body td {
  padding: .7rem;
  border: 1px solid var(--line);
  text-align: left;
}
.feedback-panel {
  width: min(850px, 100%);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--sage);
}
.check-grid { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.check-grid label { display: flex; align-items: center; gap: .5rem; }
.check-grid input, .control-row input, .consent input { width: auto; margin: 0; }
.receipt {
  display: block;
  margin: 1rem 0 2rem;
  padding: 1rem;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #eef0eb;
}
@media (max-width: 760px) {
  .site-header { align-items: flex-start; padding-block: 1rem; }
  .site-header nav { flex-direction: column; gap: .25rem; text-align: right; }
  .three-up, .progress-grid, .field-grid.two { grid-template-columns: 1fr; }
  .page-heading, .report-header, .section-heading, .confirm-panel, .control-row,
  .control-row form, .site-footer { align-items: stretch; flex-direction: column; }
  .message { width: 92%; }
  .privacy-strip { display: block; }
  .privacy-strip strong { display: block; margin-bottom: .3rem; }
  .property-row { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
