:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #5c6a62;
  --line: #dbe4dd;
  --panel: #ffffff;
  --soft: #eef5ef;
  --brand: #1d6b46;
  --brand-dark: #10442b;
  --warn: #8a4a00;
  --warn-bg: #fff4df;
  --shadow: 0 18px 50px rgba(31, 53, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7faf7;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(247, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar h1,
.topbar p {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

main {
  padding: 28px clamp(18px, 5vw, 64px) 56px;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  border-radius: 8px;
  padding: clamp(28px, 6vw, 72px);
  color: #f9fff9;
  background:
    linear-gradient(105deg, rgba(15, 57, 36, 0.92), rgba(15, 57, 36, 0.56)),
    url("https://images.unsplash.com/photo-1600518464441-9154a4dea21b?auto=format&fit=crop&w=1800&q=80")
      center/cover;
}

.hero h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  color: rgba(249, 255, 249, 0.86);
  font-size: 1.1rem;
  line-height: 1.65;
}

.hero-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--brand);
  color: white;
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary {
  background: white;
  color: var(--brand-dark);
  border: 1px solid var(--line);
}

.status-panel {
  display: grid;
  gap: 14px;
}

.status-panel div {
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.status-panel span {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
}

.status-panel p {
  margin: 6px 0 0;
  font-size: 0.98rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bde9c9;
}

.workflow,
.app-grid,
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.workflow article,
.metrics article,
.panel,
.fee-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.workflow article {
  padding: 20px;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics article {
  padding: 18px;
  box-shadow: none;
}

.metrics span {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 950;
  color: var(--brand-dark);
}

.role-switcher {
  position: sticky;
  top: 76px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.role-tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--brand-dark);
  background: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.role-tab.active {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.view-hidden {
  display: none !important;
}

.workflow p,
.legal p,
.fee-band li,
.request p,
.notice,
.metrics p,
.provider p,
.stack-item p {
  color: var(--muted);
  line-height: 1.55;
}

.app-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.app-grid.three-forms {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.fee-band {
  margin-top: 20px;
  padding: clamp(18px, 3vw, 28px);
}

.wide {
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdfb;
  font-weight: 700;
  line-height: 1.45;
}

.check-row input {
  width: auto;
  margin-top: 3px;
}

.company-docs {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px dashed #b8c7bd;
  border-radius: 8px;
  background: #fbfdfb;
}

.company-docs.hidden {
  display: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd8cf;
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: white;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.notice {
  padding: 12px;
  border-radius: 8px;
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid #f2d9a9;
}

.hidden {
  display: none;
}

.request-list,
.booking-list,
.provider-list,
.stack-list {
  display: grid;
  gap: 14px;
}

.request,
.booking,
.provider,
.stack-item {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.request-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.request h3,
.request p,
.booking h3,
.booking p,
.provider h3,
.provider p,
.stack-item p {
  margin: 0;
}

.provider-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.provider-meta,
.quote-meta,
.move-facts,
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.helper-photo {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  color: white;
  background: var(--photo-color, var(--brand));
  font-weight: 950;
  letter-spacing: 0.04em;
}

.booking-actions {
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--brand-dark);
  background: var(--soft);
  font-weight: 900;
  font-size: 0.8rem;
  white-space: nowrap;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quote {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.quote strong {
  font-size: 1.05rem;
}

.quote-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.quote-form label:nth-child(4),
.quote-form button {
  grid-column: 1 / -1;
}

.contact-box {
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.fee-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: start;
  color: white;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.fee-band .eyebrow,
.fee-band li {
  color: rgba(255, 255, 255, 0.82);
}

.fee-band h2,
.fee-band ul {
  margin: 0;
}

.fee-band li + li {
  margin-top: 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-grid h3 {
  margin: 0 0 12px;
}

.stack-item {
  box-shadow: none;
}

.stack-item .button {
  justify-self: start;
}

dialog {
  width: min(92vw, 480px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(15, 31, 22, 0.55);
}

.modal {
  padding: 24px;
}

.modal h2 {
  margin: 0;
}

@media (max-width: 860px) {
  .topbar,
  .request-header,
  .fee-band {
    align-items: stretch;
    flex-direction: column;
  }

  .hero,
  .workflow,
  .metrics,
  .app-grid,
  .provider-list,
  .quotes,
  .quote-form,
  .admin-grid,
  .fee-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .row-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .role-switcher {
    top: 0;
  }
}

@media (max-width: 560px) {
  .topbar {
    position: static;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .modal-actions .button {
    width: 100%;
  }
}
