:root {
  --forest: #06271d;
  --lime: #c2f600;
  --ink: #08251e;
  --muted: #62736b;
  --line: #dce5df;
  --paper: #f5f8f4;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(#153c2410 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  color: var(--ink);
  font:
    16px/1.5 Arial,
    Helvetica,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
input,
select,
a,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #18834b;
}
a {
  color: inherit;
}
.skip {
  position: absolute;
  left: 15px;
  top: -80px;
  z-index: 20;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--forest);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px max(20px, calc((100vw - 1420px) / 2));
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}
.brand small {
  display: block;
  margin-top: 6px;
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 2px;
}
.back {
  font-size: 14px;
}
main {
  max-width: 1420px;
  padding: 40px 24px 80px;
  margin: auto;
}
h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin: 8px 0 16px;
}
h2 {
  font-size: 25px;
  line-height: 1.2;
  margin: 7px 0 12px;
}
h3 {
  font-size: 18px;
  margin: 0;
}
p {
  margin: 10px 0;
}
.lede {
  font-size: 18px;
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.page-heading,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.button {
  border: 1px solid var(--forest);
  border-radius: 11px;
  background: var(--lime);
  color: var(--ink);
  padding: 12px 16px;
  min-height: 44px;
  font-weight: 700;
}
.secondary {
  background: white;
  border-color: var(--line);
}
.notice {
  font-size: 14px;
  border-left: 3px solid #88b823;
  background: #ebf2e4;
  padding: 13px 16px;
  border-radius: 0 8px 8px 0;
}
.compact {
  margin-bottom: 0;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0 24px;
}
.tabs a {
  white-space: nowrap;
  background: white;
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
}
.editor {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 5px 24px #08251e06;
  min-width: 0;
}
.section-head p:not(.eyebrow),
.card > p:not(.eyebrow):not(.notice) {
  color: var(--muted);
}
.section-head {
  align-items: start;
  margin-bottom: 20px;
}
.section-head .button {
  flex-shrink: 0;
}
.service,
.package {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.remove {
  border: 0;
  background: transparent;
  color: #8d3023;
  font-size: 13px;
  min-height: 44px;
  min-width: 44px;
}
.form-grid,
.service-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.wide {
  grid-column: 1/-1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
}
input:not([type="checkbox"]),
select {
  width: 100%;
  border: 1px solid #b9c9bf;
  background: #fff;
  border-radius: 9px;
  min-height: 45px;
  padding: 10px 12px;
  color: var(--ink);
  min-width: 0;
}
input[type="checkbox"] {
  accent-color: var(--forest);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.check {
  flex-direction: row;
  align-items: center;
  font-weight: 500;
  gap: 10px;
  min-height: 44px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.service-fields .hint {
  grid-column: 1/-1;
  margin: 0;
}
.pill {
  background: #e7f4e6;
  color: #286834;
  border-radius: 30px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
}
.bands {
  display: grid;
  gap: 8px;
}
.band {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}
.band-title {
  font-size: 12px;
  color: var(--muted);
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0;
  min-width: 0;
}
legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0 6px;
}
.included {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.included label {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-weight: 500;
}
.addon-row {
  display: grid;
  grid-template-columns: 1fr 95px;
  align-items: center;
  gap: 8px;
}
.addon-row .units {
  font-size: 12px;
}
.addon-row .units input {
  min-height: 38px;
  padding: 6px 8px;
}
.quote-panel {
  position: sticky;
  top: 110px;
}
.preview {
  padding: 24px;
}
.view-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f2f5f1;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
  margin: 20px 0;
}
.view-toggle button {
  border: 0;
  background: transparent;
  color: var(--ink);
  min-height: 44px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
}
.view-toggle button.active {
  background: var(--forest);
  color: white;
}
.quote-total {
  background: var(--forest);
  color: white;
  border-radius: 14px;
  padding: 23px;
  margin: 20px 0;
}
.quote-total strong {
  display: block;
  font-size: 44px;
  line-height: 1.15;
  color: var(--lime);
  margin: 5px 0;
}
.quote-total span {
  font-size: 13px;
}
.quote-line {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.quote-line strong {
  white-space: nowrap;
}
.quote-line small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.quote-status {
  display: inline-block;
  background: #fff3d0;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}
.internal {
  background: #f5f8f4;
  padding: 14px;
  border-radius: 12px;
  margin-top: 20px;
}
.internal .quote-line {
  font-size: 12px;
}
.internal .quote-line:last-child {
  border: 0;
}
.error {
  background: #fff0ed;
  border: 1px solid #e5b8ad;
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
  color: #803021;
}
.steps {
  padding-left: 20px;
}
.steps li {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 0;
  font-size: 14px;
}
.inset {
  margin-top: 8px;
}
#status {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  border-radius: 12px;
  background: var(--forest);
  color: white;
  max-width: calc(100vw - 30px);
  padding: 12px 20px;
  box-shadow: 0 6px 25px #0002;
}
#status:empty {
  display: none;
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .section-head {
    display: block;
  }
  .section-head .button {
    margin-top: 10px;
  }
  .card {
    padding: 22px;
  }
  .page-heading {
    align-items: start;
  }
}
@media (max-width: 800px) {
  main {
    padding: 25px 16px 50px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .quote-panel {
    position: static;
    width: 100%;
    order: -1;
  }
  .editor {
    width: 100%;
  }
  .page-heading {
    display: block;
  }
  .actions {
    margin: 20px 0;
  }
  .topbar {
    padding: 17px 16px;
  }
  .brand {
    font-size: 16px;
  }
  .brand small {
    max-width: 190px;
    font-size: 8px;
  }
  .back {
    font-size: 12px;
  }
  .preview {
    padding: 20px;
  }
  .quote-total strong {
    font-size: 38px;
  }
}
@media (max-width: 420px) {
  .form-grid,
  .service-fields {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .card {
    padding: 18px;
  }
  .brand small {
    display: none;
  }
  .button {
    font-size: 13px;
  }
  .tabs a {
    padding: 10px 13px;
  }
  .band {
    grid-template-columns: 1fr 1fr auto;
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.setup-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px;
  background: var(--forest);
  color: white;
  border-radius: 16px;
  margin: 20px 0;
}
.setup-banner p {
  font-size: 14px;
}
.setup-banner .eyebrow {
  color: var(--lime);
}
#setup-dialog {
  width: min(880px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  padding: 0;
  overscroll-behavior: contain;
}
#setup-dialog::backdrop {
  background: #06271dcc;
  backdrop-filter: blur(4px);
}
.wizard-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: var(--paper);
}
.wizard-head .button {
  align-self: start;
  font-size: 22px;
}
.wizard-head h2 {
  font-size: 22px;
}
.wizard-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid var(--line);
}
#setup-progress {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
}
#setup-progress span {
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 20px;
}
#setup-progress span.current {
  background: var(--forest);
  color: white;
}
#setup-body {
  padding: 24px;
}
#setup-error {
  margin: 0 24px 18px;
  color: #943421;
  font-size: 14px;
}
.person-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 14px 0;
  padding: 16px;
}
.ai-panel {
  background: #f1f6eb;
  border: 1px solid #d1e0c5;
  border-radius: 12px;
  padding: 18px;
  margin: 20px 0;
}
.ai-result {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.labor-result {
  padding: 16px;
  border-radius: 12px;
  background: var(--paper);
}
.wizard-review {
  display: grid;
  gap: 10px;
}
.wizard-review li {
  margin: 8px 0;
}
body:has(#setup-dialog[open]) {
  overflow: hidden;
}
@media (max-width: 600px) {
  .setup-banner {
    display: block;
  }
  .setup-banner .button {
    margin-top: 10px;
  }
  #setup-dialog {
    max-height: calc(100dvh - 16px);
  }
  .wizard-head,
  #setup-body {
    padding: 18px;
  }
  .wizard-footer {
    padding: 14px 18px;
  }
  #setup-progress {
    padding: 10px 18px;
  }
  .wizard-head h2 {
    font-size: 19px;
  }
}
