:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #66736e;
  --line: #d9e0dc;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --brand: #16423c;
  --accent: #d98f42;
  --danger: #b42318;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: 17px;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(22, 66, 60, 0.08), transparent 38%),
    repeating-linear-gradient(90deg, rgba(23, 32, 28, 0.035) 0, rgba(23, 32, 28, 0.035) 1px, transparent 1px, transparent 18px),
    var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.landing-intro {
  padding-top: 20px;
  padding-bottom: 4px;
  text-align: center;
}

.brand-title {
  display: inline-flex;
  margin: 0 auto 14px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--accent);
  color: var(--brand);
  font-size: clamp(1.02rem, 2.6vw, 1.34rem);
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.landing-intro h1 {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(1.35rem, 3.05vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.landing-intro > p:not(.brand-title) {
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.demo-section {
  padding-top: 4px;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.section__heading {
  display: block;
  margin-bottom: 14px;
  text-align: center;
}

.section h2,
.panel h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.landing .section h2 {
  font-size: clamp(1.15rem, 2.35vw, 1.8rem);
}

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

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

.demo-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(23, 32, 28, 0.08);
}

.demo-card::after {
  content: ">";
  grid-row: 1 / span 3;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.demo-card span {
  font-size: 1.12rem;
  font-weight: 800;
}

.demo-card small {
  grid-column: 1;
  color: var(--muted);
  line-height: 1.45;
}

.demo-card strong {
  grid-column: 1;
  color: var(--brand);
  font-size: 0.94rem;
}

.split-band,
.cta-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--line);
}

.cta-band {
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--line);
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button--primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.button--secondary {
  border-color: var(--accent);
  background: var(--accent);
  color: #1b140d;
}

.button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.link-button {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 96px;
}

.loading {
  padding: 24px;
}

.app-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: var(--brand);
  color: #fff;
}

.app-header h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2.15rem);
  line-height: 1.1;
}

.app-header .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.back-link {
  font-weight: 900;
  text-decoration: none;
}

.progress {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.progress span {
  min-width: 72px;
  padding: 10px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.progress .is-active {
  background: var(--brand);
  color: #fff;
}

.progress .is-done {
  background: rgba(22, 66, 60, 0.12);
  color: var(--brand);
}

.workflow {
  width: min(920px, calc(100% - 24px));
  margin: 18px auto;
}

.notice,
.alert {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff8e8;
  border: 1px solid #efd38e;
  color: #4e3a10;
  line-height: 1.45;
}

.alert {
  background: #fff1f0;
  border-color: #f5b4ad;
  color: var(--danger);
  font-weight: 700;
}

.panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 32, 28, 0.09);
}

.panel__heading {
  margin-bottom: 18px;
}

.job-home {
  display: grid;
  gap: 18px;
}

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

.job-home__top h2 {
  margin: 0;
}

.empty-jobs {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
  color: var(--muted);
}

.draft-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.draft-list__heading,
.draft-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.draft-list h3 {
  margin: 0;
}

.draft-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.draft-card div:first-child {
  display: grid;
  gap: 3px;
}

.draft-card span,
.draft-card small {
  color: var(--muted);
}

.draft-card__actions {
  display: flex;
  gap: 8px;
}

.panel__heading p:not(.eyebrow) {
  max-width: 58ch;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.field textarea,
.field input,
.field select,
.photo-card input,
.photo-card select,
.inline-add input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.upload-box {
  min-height: 156px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: #f8faf8;
  cursor: pointer;
}

.upload-box input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-box span {
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--brand);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.photo-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #edf0ed;
}

.remove-button {
  justify-self: start;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-weight: 900;
  cursor: pointer;
}

.subsection + .subsection {
  margin-top: 24px;
}

.subsection h3 {
  margin: 0 0 12px;
}

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

.check-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  font-weight: 800;
}

.check-row input {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.inline-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
}

.summary-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.summary-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-list dt {
  color: var(--muted);
  font-weight: 800;
}

.summary-list dd {
  margin: 0;
}

.action-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px;
  background: rgba(251, 250, 246, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

@media (max-width: 860px) {
  .demo-grid,
  .split-band,
  .cta-band,
  .form-grid,
  .photo-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .section__heading,
  .app-header {
    align-items: start;
  }

  .app-header {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px;
  }

  .action-bar .button {
    flex: 1 1 0;
  }

  .summary-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .draft-list__heading,
  .job-home__top,
  .draft-card,
  .draft-card__actions {
    align-items: stretch;
    flex-direction: column;
  }
}
