:root {
  --paper: #f5f3ee;
  --paper-2: #ece8df;
  --white: #fffefb;
  --ink: #1c1b18;
  --ink-2: #3d3b36;
  --muted: #6e6b63;
  --rule: #d9d4c8;
  --rule-2: #c7c0b1;
  --accent: #c8461b;
  --accent-ink: #a5390f;
  --ok: #2f6b45;
  --ok-bg: #e4efe5;
  --warn: #8a5a00;
  --warn-bg: #f6ecd2;
  --bad: #9b2c1f;
  --bad-bg: #f6e1dc;

  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1120px;
  --r: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--sans);
  font-stretch: 87%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1em;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 720px;
}

.mono {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.eyebrow {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  display: block;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  z-index: 10;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-stretch: 85%;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
}

.logo svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-2);
}

.nav a:hover,
.nav a.on {
  color: var(--ink);
  text-decoration: underline;
}

.nav .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav form {
  margin: 0;
}

.menu {
  display: none;
  margin-left: auto;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--ink);
  padding: 6px 10px;
  border-radius: var(--r);
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu[open] summary {
  background: var(--ink);
  color: var(--paper);
}

.menu .panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 68px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 8px 24px 20px;
  z-index: 20;
}

.menu .panel a,
.menu .panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  font-size: 1.05rem;
}

.menu .panel form {
  margin: 0;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .menu {
    display: block;
  }
}

/* ---------- Buttons & forms ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 0.95rem/1 var(--sans);
  padding: 13px 20px;
  border-radius: var(--r);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: #000;
  color: var(--white);
}

.btn.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.accent:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn.small {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.btn.block {
  width: 100%;
}

.btn.big {
  padding: 16px 24px;
  font-size: 1.02rem;
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.linkish:hover {
  color: var(--accent-ink);
}

.linkish.danger {
  color: var(--bad);
}

form .field {
  margin-bottom: 20px;
}

label,
.label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
input[type='number'],
input[type='date'],
select,
textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  padding: 11px 12px;
  appearance: none;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

input[type='file'] {
  font: inherit;
  font-size: 0.9rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0;
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  background: var(--white);
}

.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--paper-2);
  cursor: pointer;
}

.checks input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 28px;
}

.choice a {
  text-align: center;
  padding: 11px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.choice a.on {
  background: var(--ink);
  color: var(--paper);
}

.stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.stars input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.stars label {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--rule-2);
  cursor: pointer;
  margin: 0;
}

.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
  color: var(--accent);
}

.stars input:focus-visible + label {
  outline: 2px solid var(--accent);
}

/* ---------- Notices ---------- */

.notice {
  border: 1px solid;
  border-radius: var(--r);
  padding: 12px 16px;
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.notice.success {
  background: var(--ok-bg);
  border-color: #b9d3bd;
  color: var(--ok);
}

.notice.error {
  background: var(--bad-bg);
  border-color: #e5b9b0;
  color: var(--bad);
}

.notice.info {
  background: var(--warn-bg);
  border-color: #e6d3a3;
  color: var(--warn);
}

.flash-bar {
  padding-top: 20px;
}

.flash-bar .notice {
  margin: 0;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 2px 8px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  color: var(--ink-2);
  background: var(--white);
  white-space: nowrap;
}

.tag.open {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.tag.awarded,
.tag.held,
.tag.pending {
  border-color: #d9be7c;
  background: var(--warn-bg);
  color: var(--warn);
}

.tag.paid,
.tag.completed,
.tag.approved,
.tag.accepted,
.tag.released {
  border-color: #a9c9b0;
  background: var(--ok-bg);
  color: var(--ok);
}

.tag.cancelled,
.tag.declined,
.tag.rejected,
.tag.refunded {
  color: var(--muted);
  background: var(--paper-2);
}

/* ---------- Page sections ---------- */

main {
  min-height: 60vh;
}

.page {
  padding: 48px 0 80px;
}

.page-head {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}

.page-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.3em;
}

.page-head p {
  color: var(--ink-2);
  max-width: 620px;
  font-size: 1.08rem;
  margin: 0;
}

.section {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0;
  max-width: 560px;
}

/* ---------- Home ---------- */

.hero {
  padding: 72px 0 80px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: 20px;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 34rem;
  margin-bottom: 32px;
}

.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.link-plain {
  font-weight: 600;
}

.section h2 {
  margin-bottom: 32px;
}

.section-link {
  margin: 28px 0 0;
}

.preview {
  margin: 0;
}

.preview figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}

@media (max-width: 900px) {
  .hero {
    padding: 44px 0 56px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* Docket — the job card used on the home page example and the job page */
.docket {
  background: var(--white);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
}

.docket-body {
  padding: 18px 16px 6px;
}

.docket-body h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.docket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.docket-quotes {
  border-top: 1px solid var(--paper-2);
}

.dq {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--paper-2);
  font-size: 0.9rem;
}

.dq:last-child {
  border-bottom: 0;
}

.dq strong {
  font-weight: 600;
}

.dq .amt {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.dq .sub {
  color: var(--muted);
  font-size: 0.8rem;
}

.dq.picked {
  background: var(--ok-bg);
}

.docket-foot {
  padding: 10px 16px;
  font-size: 0.85rem;
  border-top: 1px solid var(--paper-2);
  color: var(--ok);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.steps li {
  list-style: none;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.steps h3 {
  font-size: 1.1rem;
}

.steps p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

ol.steps {
  padding: 0;
  margin: 0;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
  }
}


@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Trade directory */
.trade-list {
  columns: 3 220px;
  column-gap: 40px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trade-list li {
  break-inside: avoid;
  border-bottom: 1px solid var(--rule);
}

.trade-list a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  font-size: 1.02rem;
}

.trade-list a:hover {
  text-decoration: underline;
}

/* Promise / split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.plain-list li:first-child {
  border-top: 1px solid var(--rule);
}

.plain-list strong {
  display: block;
  margin-bottom: 2px;
}

.plain-list span {
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* Dark band for tradies */
.band {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0;
}

.band a:not(.btn) {
  color: var(--paper);
}

.band .eyebrow {
  color: #a7a397;
}

.band p {
  color: #d4d0c5;
}

.band .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.band .btn:hover {
  background: var(--white);
}

.band .btn.ghost {
  background: transparent;
  color: var(--paper);
  border-color: #6d6a62;
}

.band .btn.ghost:hover {
  border-color: var(--paper);
}

.sum {
  border: 1px solid #4a4842;
  border-radius: var(--r);
  font-variant-numeric: tabular-nums;
}

.sum div {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #3a3934;
}

.sum div:last-child {
  border-bottom: 0;
  font-weight: 600;
  color: var(--white);
}

.sum .label-col {
  color: #a7a397;
}

/* Recent jobs list */
.job-rows {
  border-top: 1px solid var(--ink);
}

.job-row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 4px 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.job-row:hover {
  color: inherit;
  background: linear-gradient(var(--paper-2), var(--paper-2)) no-repeat;
  background-size: 100% 100%;
}

.job-row:hover .t {
  text-decoration: underline;
}

.job-row .n {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 6px;
}

.job-row .t {
  font-weight: 600;
  font-size: 1.05rem;
}

.job-row .m {
  grid-column: 2;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}

.job-row .d {
  grid-column: 2;
  font-size: 0.92rem;
  color: var(--ink-2);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-row .r {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
  padding-right: 6px;
}

@media (max-width: 600px) {
  .job-row {
    grid-template-columns: 1fr;
  }

  .job-row .n,
  .job-row .m,
  .job-row .d,
  .job-row .r {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
    padding: 0;
  }
}

.empty {
  border: 1px dashed var(--rule-2);
  border-radius: var(--r);
  padding: 36px 24px;
  text-align: center;
  color: var(--muted);
}

.empty strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 28px;
}

.filters .field {
  margin: 0;
  min-width: 220px;
}

.filters select {
  padding-top: 9px;
  padding-bottom: 9px;
}

/* ---------- Layout: sidebar pages ---------- */

.with-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .with-side {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.box {
  background: var(--white);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  padding: 22px;
}

.box + .box {
  margin-top: 16px;
}

.box h3 {
  font-size: 1.05rem;
}

.box.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.box.dark p {
  color: #d4d0c5;
}

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  font-size: 0.93rem;
  margin: 0;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  text-align: right;
}

.kv dd.mono {
  font-size: 0.86rem;
}

.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin: 20px 0 8px;
}

.photos a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--paper-2);
}

.photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quote cards on a job */
.quote {
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  background: var(--white);
  margin-bottom: 14px;
}

.quote-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 10px;
}

.quote-head h3 {
  margin: 0 0 3px;
  font-size: 1.08rem;
}

.quote-amt {
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

.quote-body {
  padding: 0 18px 14px;
  font-size: 0.95rem;
}

.quote-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid var(--paper-2);
  font-size: 0.85rem;
  color: var(--muted);
}

.quote.accepted {
  border-color: var(--ok);
  box-shadow: inset 3px 0 0 var(--ok);
}

.quote.declined {
  opacity: 0.55;
}

.contact {
  background: var(--ok-bg);
  border: 1px solid #b9d3bd;
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 24px;
}

.contact h3 {
  color: var(--ok);
  font-size: 1rem;
  margin-bottom: 8px;
}

.contact .kv dd {
  text-align: left;
}

/* Progress strip on a job */
.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  background: var(--white);
  margin-bottom: 32px;
  font-size: 0.82rem;
  overflow: hidden;
}

.progress div {
  padding: 10px 12px;
  border-right: 1px solid var(--rule);
  color: var(--muted);
}

.progress div:last-child {
  border-right: 0;
}

.progress .done {
  color: var(--ink);
}

.progress .done::before {
  content: '✓ ';
  color: var(--ok);
}

.progress .now {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--accent);
}

@media (max-width: 600px) {
  .progress {
    grid-template-columns: 1fr 1fr;
  }

  .progress div:nth-child(2) {
    border-right: 0;
  }

  .progress div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }
}

/* Tables (dashboard / admin) */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--paper-2);
  vertical-align: top;
}

th {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--paper);
  border-bottom: 1px solid var(--rule-2);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

td form {
  display: inline;
  margin: 0;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  background: var(--white);
  margin-bottom: 40px;
}

.stats div {
  padding: 18px 20px;
  border-right: 1px solid var(--rule);
}

.stats div:last-child {
  border-right: 0;
}

.stats b {
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 4px;
}

.stats span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Auth pages */
.auth {
  max-width: 460px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.auth h1 {
  font-size: 2.2rem;
}

.auth .alt {
  margin-top: 24px;
  font-size: 0.93rem;
  color: var(--muted);
}

/* Profile page */
.profile-head {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 8px;
}

.initials {
  width: 72px;
  height: 72px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  font-weight: 800;
  font-stretch: 85%;
  font-size: 1.6rem;
  background: var(--white);
}

.review {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.review .stars-static {
  color: var(--accent);
  letter-spacing: 2px;
}

/* Legal */
.legal h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.legal p,
.legal li {
  color: var(--ink-2);
}

.draft-banner {
  font-size: 0.85rem;
  background: var(--warn-bg);
  border: 1px solid #e6d3a3;
  color: var(--warn);
  padding: 10px 14px;
  border-radius: var(--r);
  margin-bottom: 32px;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}

.faq details:first-of-type {
  border-top: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 1.2rem;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  color: var(--ink-2);
  padding-bottom: 8px;
  max-width: 640px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 40px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.foot-grid h4 {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.foot-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot-grid li {
  margin-bottom: 8px;
}

.foot-grid a {
  text-decoration: none;
}

.foot-grid a:hover {
  text-decoration: underline;
}

.foot-base {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .band {
    padding: 56px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

.nav a.btn,
.nav a.btn:hover {
  color: var(--paper);
  text-decoration: none;
}

.doc h2 {
  font-size: 1.35rem;
  margin: 2.2em 0 0.5em;
}

.doc h2:first-child {
  margin-top: 0;
}

.tag::first-letter {
  text-transform: uppercase;
}

/* Sector picker on the job form */
.sector-pick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sector-pick label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 12px;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  cursor: pointer;
}

.sector-pick strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.sector-pick input {
  accent-color: var(--accent);
  margin-top: 3px;
}

.sector-pick label:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

@media (max-width: 600px) {
  .sector-pick {
    grid-template-columns: 1fr;
  }
}

/* Extra field per sector. Shown only when that sector is picked. */
.sector-extra {
  display: none;
}

form:has(input[name='sector'][value='hotels']:checked) .sector-extra-hotels,
form:has(input[name='sector'][value='mining']:checked) .sector-extra-mining {
  display: block;
}

.sector-mark {
  color: var(--accent-ink);
  font-weight: 600;
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }

  .menu {
    display: block;
  }
}

.tick-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tick-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.tick-list li:first-child {
  border-top: 1px solid var(--rule);
}

.sector-rows {
  border-top: 1px solid var(--ink);
}

.sector-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 8px 32px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.sector-row h3 {
  margin: 0;
  font-size: 1.35rem;
}

.sector-row p {
  margin: 0;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .sector-row {
    grid-template-columns: 1fr;
  }
}

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

.crumbs + .wrap .page-head,
.crumbs + .wrap.page {
  padding-top: 20px;
}

/* Link lists on landing pages */
.link-cloud {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.link-cloud a[aria-current] {
  font-weight: 700;
  text-decoration: none;
}

.link-group {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 24px 0 10px;
}

.tradie-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.tradie-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  text-decoration: none;
  font-size: 0.9rem;
}

.tradie-card strong {
  font-size: 1rem;
}

.tradie-card:hover {
  border-color: var(--ink);
  color: inherit;
}

.locate-preview {
  margin: 8px 0 0;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--ok);
}

.locate-preview.is-error {
  color: var(--warn);
}

/* Get-started quiz */
.quiz {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.quiz-bar {
  height: 4px;
  background: var(--paper-2);
  border-radius: 2px;
  margin-bottom: 40px;
  overflow: hidden;
}

.quiz-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
}

.quiz h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin-bottom: 10px;
}

.quiz-sub {
  color: var(--ink-2);
  margin-bottom: 24px;
}

.quiz h1 + .opts,
.quiz h1 + .plan {
  margin-top: 28px;
}

.quiz-group {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  margin: 24px 0 10px;
}

.opts {
  display: grid;
  gap: 10px;
}

.opts.grid {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 520px) {
  .opts.grid {
    grid-template-columns: 1fr;
  }
}

.opt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  text-decoration: none;
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}

.opt strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.opt span {
  font-size: 0.88rem;
  color: var(--muted);
}

.opt:hover {
  border-color: var(--ink);
  color: inherit;
}

.opt.check {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.opt.check span {
  flex-basis: 100%;
  padding-left: 30px;
}

.opt.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.opt.check:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.more {
  margin-top: 12px;
}

.more summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}

.more .opts {
  margin-top: 8px;
}

.quiz-next {
  margin-top: 28px;
}

.plan {
  background: var(--white);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  margin-bottom: 20px;
}

.plan div {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 14px 18px;
  border-bottom: 1px solid var(--paper-2);
}

.plan div:last-child {
  border-bottom: 0;
}

.plan span {
  color: var(--muted);
  font-size: 0.9rem;
}

.plan a {
  font-size: 0.88rem;
  color: var(--muted);
}

.match {
  padding: 14px 18px;
  border-radius: var(--r);
  background: var(--ok-bg);
  border: 1px solid #b9d3bd;
  color: var(--ok);
  margin-bottom: 24px;
}

.match.none {
  background: var(--warn-bg);
  border-color: #e6d3a3;
  color: var(--warn);
}

.next-list {
  padding-left: 20px;
  margin: 0 0 20px;
  color: var(--ink-2);
}

.next-list li {
  margin-bottom: 10px;
}

.copy-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.copy-row input {
  font-size: 0.85rem;
  padding: 8px 10px;
}

.inline-select {
  margin: 0;
}

.inline-select select {
  padding: 6px 30px 6px 8px;
  font-size: 0.9rem;
  min-width: 120px;
}

/* ---------- Work area ---------- */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--rule-2);
  overflow-x: auto;
  margin-top: -16px;
}

.tabs a {
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs a.on {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.filter-tabs a {
  padding: 6px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  background: var(--white);
}

.filter-tabs a.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.source {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 4px;
}

.source.tradebench {
  color: var(--accent-ink);
}

.source.private {
  color: var(--muted);
}

.tag.ws-new { border-color: #d9be7c; background: var(--warn-bg); color: var(--warn); }
.tag.ws-scheduled { border-color: var(--ink-2); color: var(--ink); }
.tag.ws-in_progress { border-color: var(--accent); color: var(--accent-ink); }
.tag.ws-done, .tag.ws-paid, .tag.inv-paid { border-color: #a9c9b0; background: var(--ok-bg); color: var(--ok); }
.tag.ws-invoiced, .tag.inv-sent { border-color: #a9b9d3; background: #e6ecf5; color: #2c4a7a; }
.tag.ws-cancelled, .tag.inv-void { color: var(--muted); background: var(--paper-2); }
.tag.inv-draft { color: var(--ink-2); }

.h-sm {
  font-size: 1.3rem;
}

.inline-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.inline-form .field {
  margin: 0;
  min-width: 110px;
}

.inline-form .grow {
  flex: 1;
  min-width: 200px;
}

.note-form textarea {
  border: 0;
  padding: 0;
  background: transparent;
}

.note-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 12px;
}

.file-pick {
  font-weight: 400;
  font-size: 0.9rem;
  margin: 0;
  cursor: pointer;
}

.file-pick input {
  font-size: 0.8rem;
  margin-left: 6px;
}

.note {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.note-photo {
  margin-top: 10px;
  max-height: 260px;
  border-radius: var(--r);
  border: 1px solid var(--rule);
}

/* Schedule */
.week-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  background: var(--white);
}

.day {
  border-right: 1px solid var(--rule);
  min-height: 220px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.day:last-child {
  border-right: 0;
}

.day.today {
  background: #fbf3ee;
}

.day-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--paper-2);
}

.day-head strong {
  color: var(--ink);
}

.slot {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 8px;
  border-radius: var(--r);
  background: var(--paper);
  border-left: 3px solid var(--ink-2);
  text-decoration: none;
  font-size: 0.8rem;
}

.slot strong {
  font-size: 0.85rem;
  line-height: 1.25;
}

.slot span {
  color: var(--muted);
}

.slot .slot-time {
  color: var(--ink);
  font-weight: 600;
}

.slot.ws-in_progress { border-left-color: var(--accent); }
.slot.ws-done, .slot.ws-invoiced, .slot.ws-paid { border-left-color: var(--ok); opacity: 0.7; }

.slot-add {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 860px) {
  .week {
    grid-template-columns: 1fr;
  }

  .day {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    min-height: 0;
  }
}

/* Invoices */
.lines {
  margin: 8px 0;
}

.lines th,
.lines td {
  padding: 6px 4px;
  border: 0;
  background: none;
}

.lines input {
  padding: 8px;
}

.lines td:nth-child(2),
.lines td:nth-child(3) {
  width: 130px;
}

.invoice-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.invoice-bar .actions form {
  display: inline;
}

.invoice-doc {
  background: var(--white);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  padding: 48px;
  max-width: 820px;
  margin: 0 auto;
}

.inv-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.inv-head h1 {
  font-size: 2rem;
}

.inv-meta {
  grid-template-columns: 70px auto;
}

.inv-meta dd {
  text-align: left;
}

.inv-from {
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.6;
}

.inv-to {
  margin-bottom: 28px;
}

.inv-lines th {
  background: none;
}

.inv-lines tfoot td {
  border-bottom: 0;
}

.inv-total td {
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 2px solid var(--ink);
}

.inv-pay {
  margin-top: 24px;
  padding: 16px;
  background: var(--paper);
  border-radius: var(--r);
}

@media print {
  .site-header,
  .site-footer,
  .no-print,
  .flash-bar,
  .crumbs {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page {
    padding: 0;
  }

  .invoice-doc {
    border: 0;
    padding: 0;
  }
}

@media (max-width: 600px) {
  .invoice-doc {
    padding: 22px;
  }

  .inv-from {
    text-align: left;
  }
}

/* Two-column field rows are too cramped inside the sidebar. */
aside .row {
  grid-template-columns: 1fr;
  gap: 0;
}

/* ---------- Photography ----------
   Photos are big and edge to edge, with text set over a dark wash. A fine grain over every
   photo ties images from different cameras together. */
:root {
  --wash: 22, 20, 17;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.photo-tag {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 3;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.photo-tag:hover {
  color: #fff;
}

/* Home hero */
.hero-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
  min-height: min(86vh, 780px);
  display: flex;
  align-items: center;
  padding: 96px 0;
}

.hero-media,
.banner-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #2a2723;
}

.hero-media::after,
.banner-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-img,
.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img {
  /* Wider than the hero so the sun sits behind the example job card. */
  width: 128%;
  max-width: none;
  right: auto;
  object-position: 50% 45%;
  animation: drift 18s ease-out both;
}

.hero-media::before,
.banner-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(var(--wash), 0.9) 0%, rgba(var(--wash), 0.72) 38%, rgba(var(--wash), 0.2) 75%, rgba(var(--wash), 0.35) 100%),
    linear-gradient(0deg, rgba(var(--wash), 0.55) 0%, rgba(var(--wash), 0) 40%);
}

.hero-inner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.hero-photo .eyebrow {
  color: #e9b89f;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-photo h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 13ch;
  margin-bottom: 24px;
}

.hero-photo .lede {
  color: rgba(245, 243, 238, 0.86);
  font-size: 1.15rem;
  max-width: 34rem;
  margin-bottom: 36px;
}

.hero-photo .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.hero-photo .link-plain {
  color: #fff;
}

.hero-photo .preview {
  max-width: 420px;
  justify-self: end;
  width: 100%;
}

.hero-photo .docket {
  color: var(--ink);
  border: 0;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.hero-photo .preview figcaption {
  color: rgba(245, 243, 238, 0.6);
}

.hero-photo + .section {
  border-top: 0;
}

/* Sector tiles on the home page */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background: #2a2723;
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.tile > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(var(--wash), 0.92) 0%, rgba(var(--wash), 0.5) 42%, rgba(var(--wash), 0) 70%);
}

.tile::after,
.auth-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--grain);
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.tile::after {
  z-index: -1;
}

.tile-body {
  padding: 26px 26px 24px;
}

.tile h3 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.tile-link {
  color: #fff;
  text-decoration: none;
}

.tile-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.tile p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  max-width: 30ch;
}

.tile-go {
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.tile-go::after {
  content: '\2192';
  transition: transform 0.3s ease;
}

.tile:hover > img {
  transform: scale(1.06);
}

.tile:hover .tile-go::after {
  transform: translateX(4px);
}

.tile:has(.tile-link:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Photo banner at the top of the sector pages */
.banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 64px;
  margin-top: 16px;
}

.banner-img {
  animation: drift 18s ease-out both;
}

.banner-inner {
  position: relative;
  width: 100%;
}

.banner-copy {
  max-width: 640px;
}

.banner h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.banner p {
  color: rgba(245, 243, 238, 0.86);
  font-size: 1.1rem;
  margin: 0;
}

.banner .banner-cta {
  margin-top: 30px;
}

/* For tradies: the dark band with a photo behind it */
.photo-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 120px 0 104px;
}

.photo-band .banner-media::before {
  background:
    linear-gradient(90deg, rgba(var(--wash), 0.92) 0%, rgba(var(--wash), 0.78) 45%, rgba(var(--wash), 0.55) 100%);
}

.photo-band h1 {
  color: #fff;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.photo-band .lede {
  font-size: 1.15rem;
  max-width: 480px;
}

.photo-band .sum {
  background: rgba(var(--wash), 0.55);
  backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.16);
}

.photo-band .sum div {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Sign-up: form on the left, photo filling the right */
.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-split .auth {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  padding: 56px 24px 80px;
}

.auth-media {
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100vh - 69px);
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: #2a2723;
}

.auth-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(var(--wash), 0.85) 0%, rgba(var(--wash), 0.2) 45%, rgba(var(--wash), 0) 70%);
}

.auth-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 18s ease-out both;
}

.auth-quote {
  position: absolute;
  z-index: 2;
  left: 48px;
  right: 48px;
  bottom: 48px;
  color: #fff;
}

.auth-quote p {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 22ch;
  margin: 0 0 12px;
}

.auth-quote span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Photo credits page */
.credit-list {
  margin: 32px 0;
  border-top: 1px solid var(--rule);
}

.credit {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.credit img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--r);
}

.credit p {
  margin: 0;
}

/* Motion: photos settle slowly into place, and the hero text rises in after them. */
@keyframes drift {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rise,
.banner-copy,
.photo-band .banner-inner > div,
.auth-quote {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.rise:nth-child(2) { animation-delay: 0.08s; }
.rise:nth-child(3) { animation-delay: 0.16s; }
.rise:nth-child(4) { animation-delay: 0.24s; }
.hero-inner > .preview.rise { animation-delay: 0.35s; }
.photo-band .banner-inner > div + div { animation-delay: 0.2s; }
.auth-quote { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .hero-img,
  .banner-img,
  .auth-img,
  .rise,
  .banner-copy,
  .photo-band .banner-inner > div,
  .auth-quote,
  .tile {
    animation: none;
  }

  .tile > img {
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero-photo {
    min-height: 0;
    padding: 72px 0 56px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-img {
    width: 100%;
    object-position: 100% 50%;
  }

  .hero-photo .preview {
    justify-self: start;
  }

  .hero-media::before,
  .banner-media::before {
    background: linear-gradient(0deg, rgba(var(--wash), 0.88) 0%, rgba(var(--wash), 0.7) 60%, rgba(var(--wash), 0.5) 100%);
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  .tile {
    aspect-ratio: 1 / 1;
  }

  .tile::before {
    background: linear-gradient(0deg, rgba(var(--wash), 0.94) 0%, rgba(var(--wash), 0.7) 50%, rgba(var(--wash), 0.1) 85%);
  }

  .banner {
    min-height: 380px;
    padding: 96px 0 44px;
  }

  .auth-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-media {
    display: none;
  }
}

/* ---------- Dashboard ---------- */
.dash {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.dash-side {
  position: sticky;
  top: 20px;
}

.dash-who {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  line-height: 1.25;
}

.dash-who strong {
  display: block;
  font-size: 0.95rem;
}

.dash-who small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.dash-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
}

.dash-nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.dash-nav a.on {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent), 0 0 0 1px var(--rule);
}

.dash-cta {
  margin-top: 20px;
}

.dash-public {
  display: block;
  margin-top: 18px;
  font-size: 0.88rem;
}

.dash-main .wrap {
  max-width: none;
  padding: 0;
}

.dash-main .page {
  padding-top: 0;
}

.dash-main .page-head {
  padding-top: 0;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.dash-head h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.dash-head .eyebrow {
  margin-bottom: 4px;
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h2,
.card h2 {
  font-size: 1.12rem;
  margin: 0;
  letter-spacing: -0.01em;
}

.card-head a {
  font-size: 0.88rem;
}

.empty-card {
  text-align: center;
  padding: 40px 24px;
}

.empty-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.empty-card p {
  margin: 0 auto;
  max-width: 46ch;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpis.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px 18px;
}

.kpi > span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.kpi b {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.kpi small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.star {
  color: var(--accent);
  letter-spacing: 1px;
}

.star.off {
  color: var(--rule-2);
}

.kpi .star {
  font-size: 1.1rem;
}

.dash-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* Set-up checklist */
.setup-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.meter {
  height: 6px;
  background: var(--paper-2);
  border-radius: 3px;
  margin: 12px 0 16px;
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.steps-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
}

.steps-list .tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-2);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.steps-list li.done .tick {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.steps-list li.done span:not(.tick) {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--rule-2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Things waiting on you */
.action-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.action-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.action-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.action-list strong {
  display: block;
  font-size: 0.95rem;
}

.action-list small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.go {
  background: var(--accent);
}

.dot.wait {
  background: var(--rule-2);
}

.job-rows.tight .job-row {
  padding: 12px 0;
}

.mini-review + .mini-review {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.mini-review p {
  margin: 6px 0 4px;
  font-size: 0.93rem;
}

.mini-review small {
  color: var(--muted);
}

/* Chart */
.chart {
  margin: 0;
}

.chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart .grid {
  stroke: var(--rule);
  stroke-width: 1;
}

.chart .base {
  stroke: var(--rule-2);
  stroke-width: 1;
}

.chart .tick {
  fill: var(--muted);
  font-size: 11px;
}

.chart .val {
  fill: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.chart .bar path {
  fill: var(--accent);
}

.chart .bar .hit {
  fill: transparent;
}

.chart .bar:hover .hit,
.chart .bar:focus .hit {
  fill: var(--paper-2);
}

.chart .bar:focus {
  outline: none;
}

.chart-tip {
  position: absolute;
  z-index: 50;
  display: none;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
}

.table-toggle {
  margin-top: 12px;
  font-size: 0.9rem;
}

.table-toggle summary {
  cursor: pointer;
  color: var(--ink-2);
}

.table-toggle table {
  margin-top: 10px;
}

.table-wrap.flat {
  border: 0;
  margin: -6px -8px 0;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.tabs a {
  padding: 9px 14px;
  text-decoration: none;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 0.95rem;
}

.tabs a span {
  color: var(--muted);
  font-size: 0.82rem;
  margin-left: 4px;
}

.tabs a.on {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* Lists of quotes and jobs */
.list-cards {
  display: grid;
  gap: 10px;
}

.list-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
}

.list-card:hover {
  border-color: var(--rule-2);
}

.lc-main strong {
  display: block;
}

.lc-main small {
  color: var(--muted);
}

.lc-side {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 6px;
  flex: none;
}

.job-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.job-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.jc-top,
.jc-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.jc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.jc-foot {
  color: var(--muted);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

.tag.sector {
  background: var(--paper-2);
}

/* Customer job cards */
.cj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.cj-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}

.cj-card:hover {
  border-color: var(--ink);
}

.cj-card.cancelled {
  opacity: 0.6;
}

.cj-photo {
  width: 76px;
  height: 76px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--muted);
}

.cj-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cj-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cj-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 2px;
}

.cj-next {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 4px;
}

.cj-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 8px;
}

.cj-stages i {
  height: 4px;
  border-radius: 2px;
  background: var(--paper-2);
}

.cj-stages i.on {
  background: var(--accent);
}

.cj-card.completed .cj-stages i.on {
  background: var(--ok);
}

.welcome h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.welcome-steps {
  margin: 0 0 22px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  max-width: 60ch;
}

/* Reviews */
.review-card .rc-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.review-card .prose {
  margin: 10px 0 0;
}

.reply {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 0.93rem;
}

.reply p {
  margin: 4px 0 0;
}

.reply-form {
  margin-top: 14px;
  display: grid;
  gap: 6px;
  justify-items: start;
}

.reply-form textarea {
  width: 100%;
  min-height: 70px;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: start;
  margin: 6px 0 18px;
  font-weight: 400;
}

.check-row input {
  margin-top: 4px;
}

@media (max-width: 960px) {
  .dash {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-top: 18px;
  }

  .dash-side {
    position: static;
  }

  .dash-who {
    margin-bottom: 12px;
  }

  .dash-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 6px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    scrollbar-width: none;
  }

  .dash-nav a {
    white-space: nowrap;
    border: 1px solid var(--rule);
    background: var(--white);
    padding: 7px 12px;
    font-size: 0.9rem;
  }

  .dash-nav a.on {
    background: var(--ink);
    color: var(--paper);
    box-shadow: none;
    border-color: var(--ink);
  }

  .dash-cta,
  .dash-public {
    display: none;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .steps-list {
    grid-template-columns: 1fr;
  }

  .kpi b {
    font-size: 1.4rem;
  }

  .card {
    padding: 18px;
  }

  .cj-grid {
    grid-template-columns: 1fr;
  }

  .action-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .action-list .btn {
    grid-column: 2;
    justify-self: start;
  }
}

/* Photo picker */
.drop {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1.5px dashed var(--rule-2);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.drop:hover,
.drop:focus-within {
  border-color: var(--ink);
  background: var(--paper);
}

.drop.has-files {
  border-style: solid;
  border-color: var(--ok);
}

.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.drop-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  color: var(--ink-2);
}

.drop-text strong {
  display: block;
  font-size: 0.97rem;
}

.drop-text span {
  font-size: 0.85rem;
  color: var(--muted);
}

.drop-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.drop-preview:empty {
  display: none;
}

.drop-preview figure {
  margin: 0;
  width: 92px;
}

.drop-preview img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.drop-preview figcaption {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field > .label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.logo-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.logo-preview {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex: none;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.logo-form {
  flex: 1;
  min-width: 240px;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.logo-form .drop {
  width: 100%;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.photo-grid figure {
  margin: 0;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.photo-grid figcaption {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ink-2);
  margin-top: 5px;
}

.logo-img {
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--rule);
}

.photo-grid.public {
  margin: 12px 0 8px;
}
