:root {
  color-scheme: light;
  --ink: #1e2425;
  --muted: #66706c;
  --paper: #fbfaf6;
  --card: #ffffff;
  --line: #dce2dd;
  --teal: #16847f;
  --teal-dark: #0f5555;
  --coral: #d95f49;
  --gold: #e8b84b;
  --green: #dbeee7;
  --blue: #dfe9f7;
  --shadow: 0 22px 60px rgba(31, 38, 39, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(22, 132, 127, 0.1), transparent 34%),
    linear-gradient(180deg, #f5eee3 0%, #edf3ef 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

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

.shell {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 32px;
}

.hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(460px, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 18px 0;
}

.eyebrow {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #515d59;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.5;
}

.session-strip {
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(15, 85, 85, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 8px;
}

.session-strip span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-strip button,
.primary,
.secondary,
.task-card {
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.session-strip button {
  flex: 0 0 auto;
  background: var(--ink);
  color: white;
  padding: 0 14px;
}

.hero-media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.task-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 18px;
}

.task-card {
  display: grid;
  gap: 5px;
  justify-items: start;
  border: 1px solid rgba(31, 38, 39, 0.08);
  background: rgba(255, 255, 255, 0.82);
  padding: 16px;
  text-align: left;
}

.task-card span {
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.task-card.is-active {
  background: var(--ink);
  color: white;
}

.task-card.is-active span {
  color: #9edbd4;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(340px, 0.9fr);
  grid-template-areas:
    "desk log"
    "explain log";
  gap: 18px;
}

.desk-card,
.log-card,
.explain-card {
  min-width: 0;
  border: 1px solid rgba(31, 38, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  padding: 18px;
}

.desk-card {
  grid-area: desk;
}

.log-card {
  grid-area: log;
}

.explain-card {
  grid-area: explain;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head strong {
  font-size: 1.05rem;
}

.desk-diagram {
  display: grid;
  grid-template-columns: 150px 1fr 180px;
  grid-template-areas:
    "desk connector private"
    "desk connector pool";
  gap: 12px;
  align-items: center;
}

.node,
.lane {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-radius: 8px;
  padding: 16px;
}

.node span,
.lane span,
.explain-grid span {
  color: #495451;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.node strong,
.lane strong {
  font-size: 2rem;
}

.desk-node {
  grid-area: desk;
  background: var(--green);
}

.connector {
  grid-area: connector;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
}

.private-lane {
  grid-area: private;
  background: #fff0df;
}

.pooled-lane {
  grid-area: pool;
  background: var(--blue);
}

.reason {
  min-height: 54px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.primary,
.secondary {
  flex: 1 1 180px;
  padding: 0 18px;
}

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

.secondary {
  background: #edf2ee;
}

.event-log {
  min-height: 442px;
  max-height: 620px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-log li {
  border-left: 5px solid var(--line);
  border-radius: 8px;
  background: #f7f8f4;
  padding: 12px;
}

.event-log li[data-route="desk"] {
  border-color: var(--teal);
}

.event-log li[data-route="private garage"] {
  border-color: var(--coral);
}

.event-log li[data-route="pooled garage"] {
  border-color: #5b84c4;
}

.event-log li[data-route="human"] {
  border-color: var(--gold);
}

.event-log span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.event-log strong {
  display: block;
  margin: 4px 0;
}

.event-log p {
  margin: 0;
  color: #57625e;
  line-height: 1.45;
}

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

.explain-grid div {
  min-height: 126px;
  border-radius: 8px;
  background: #f3f6f2;
  padding: 14px;
}

.explain-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1040px) {
  .hero,
  .workbench {
    grid-template-columns: 1fr;
    grid-template-areas:
      "desk"
      "log"
      "explain";
  }

  .hero-media {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(390px, calc(100vw - 28px));
    margin-left: 14px;
    padding-top: 16px;
  }

  h1 {
    font-size: clamp(2.05rem, 10.8vw, 3rem);
    line-height: 1;
  }

  .task-picker,
  .explain-grid {
    grid-template-columns: 1fr;
  }

  .session-strip,
  .section-head,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .desk-diagram {
    grid-template-columns: 1fr;
    grid-template-areas:
      "desk"
      "connector"
      "private"
      "pool";
  }

  .connector {
    width: 8px;
    height: 44px;
    justify-self: center;
    background: linear-gradient(180deg, var(--teal), var(--gold), var(--coral));
  }

  .hero-media {
    min-height: 240px;
  }
}
