:root {
  --ink: #0b1220;
  --bone: #f4efe6;
  --signal: #1978d1;
  --action: #1460a8;
  --white: #ffffff;
  --surface: #f7f9fc;
  --muted: #475569;
  --faint: #64748b;
  --hairline: #e2e8f0;
  --navy: #12243c;
  --navy-soft: #cbd5e1;
  --blue-pale: #e8f2fc;
  --blue-border: #b9d4ec;
  --warning-bg: #fff0d5;
  --warning-text: #805008;
  --danger: #a13c32;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
  letter-spacing: -0.045em;
}
p {
  line-height: 1.6;
}
.wrap {
  max-width: 1360px;
  margin: auto;
  padding: 0 6%;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    800 20px Manrope,
    Arial,
    sans-serif;
  letter-spacing: -0.05em;
}
.mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--signal);
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 6px;
  background: var(--action);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
}
.btn.light {
  background: var(--white);
  color: var(--ink);
}
.btn.outline {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
}
.btn.small {
  padding: 10px 14px;
}
.hero {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero-inner {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6%;
  padding-top: 40px;
  padding-bottom: 70px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--action);
}
.hero .eyebrow {
  color: #b9dcff;
}
.hero h1 {
  font-size: clamp(54px, 6.5vw, 90px);
  line-height: 1.02;
  margin: 22px 0 24px;
}
.hero h1 em {
  font-style: normal;
  color: #b9dcff;
}
.hero p {
  font-size: 17px;
  color: var(--navy-soft);
  max-width: 530px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}
.hero .outline {
  color: white;
  border-color: #94a3b8;
}
.scene {
  position: relative;
  height: 460px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    #e5eff9 0 32%,
    #bfd5e8 32% 45%,
    #829db9 45% 58%,
    #405c7a 58%
  );
}
.scene:before {
  content: "";
  position: absolute;
  width: 120%;
  height: 180px;
  bottom: -70px;
  left: -10%;
  background: #aabed0;
  transform: rotate(-13deg);
  border-top: 9px solid #e2e8f0;
}
.scene:after {
  content: "";
  position: absolute;
  bottom: 58px;
  left: 20%;
  width: 62%;
  height: 3px;
  background: var(--white);
  transform: rotate(-13deg);
  box-shadow: 180px 0 var(--white);
}
.scene-label {
  position: absolute;
  top: 30px;
  left: 30px;
  background: var(--white);
  color: var(--ink);
  padding: 13px 16px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 1;
}
.scene-label strong {
  display: block;
  font-size: 16px;
}
.truck {
  position: absolute;
  z-index: 2;
  bottom: 112px;
  left: 28%;
  font-size: 100px;
  filter: grayscale(1);
  transform: rotate(-13deg);
}
.scene-foot {
  position: absolute;
  right: 25px;
  bottom: 20px;
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.intro {
  padding: 90px 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
}
.intro h2,
.section h2 {
  font-size: clamp(35px, 4vw, 54px);
  line-height: 1.1;
  margin-top: 15px;
}
.intro p {
  color: var(--muted);
  font-size: 17px;
}
.section {
  padding: 80px 0;
  background: var(--surface);
}
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  margin-top: 45px;
  border: 1px solid var(--hairline);
}
.role {
  background: var(--surface);
  padding: 32px;
  min-height: 230px;
}
.role .num {
  color: var(--action);
  font-size: 12px;
}
.role h3 {
  font-size: 22px;
  margin: 35px 0 12px;
}
.role p {
  color: var(--muted);
  font-size: 14px;
}
.end {
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.end h2 {
  font-size: 36px;
}
.footer {
  background: var(--ink);
  color: var(--hairline);
  padding: 35px 0;
  font-size: 13px;
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.footer p {
  color: var(--navy-soft);
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}
.side {
  background: var(--navy);
  color: var(--white);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.side .brand {
  padding: 0 8px;
}
.side-label {
  color: #b7c6d9;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 700;
  padding: 0 12px;
}
.side nav {
  display: grid;
  gap: 5px;
}
.side nav button {
  background: transparent;
  color: #d4dfeb;
  text-align: left;
  padding: 12px;
  border-radius: 5px;
  font-size: 13px;
}
.side nav button.active {
  background: var(--blue-pale);
  color: var(--ink);
  font-weight: 700;
}
.side-bottom {
  margin-top: auto;
  font-size: 12px;
  color: #b7c6d9;
  line-height: 1.6;
}
.main {
  min-width: 0;
}
.app-top {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px;
  gap: 16px;
}
.app-top p {
  font-size: 12px;
  color: var(--faint);
}
.chip {
  display: inline-block;
  border-radius: 30px;
  padding: 6px 10px;
  background: var(--blue-pale);
  color: var(--action);
  font-size: 11px;
  font-weight: 700;
}
.chip.warn {
  background: var(--warning-bg);
  color: var(--warning-text);
}
.chip.gray {
  background: var(--surface);
  color: var(--muted);
}
.content {
  padding: 38px;
  max-width: 1440px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.heading h1 {
  font-size: 34px;
  margin: 8px 0;
}
.heading p,
.muted {
  color: var(--muted);
  font-size: 13px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 22px;
}
.stat .label {
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font:
    700 30px Manrope,
    Arial,
    sans-serif;
  margin: 14px 0 5px;
}
.stat small {
  color: var(--faint);
}
.columns {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.card h2 {
  font-size: 19px;
}
.card h3 {
  font-size: 15px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}
.row p {
  font-size: 12px;
  color: var(--muted);
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: grid;
  place-items: center;
  color: var(--action);
  font-weight: 700;
}
.person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
td,
th {
  padding: 15px 10px;
  border-bottom: 1px solid var(--hairline);
}
td:first-child,
th:first-child {
  padding-left: 0;
}
.stack {
  display: grid;
  gap: 16px;
}
.notice {
  background: var(--blue-pale);
  border-left: 3px solid var(--signal);
  padding: 16px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
.field {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  background: var(--white);
  border-radius: 5px;
  padding: 11px;
  color: var(--ink);
}
textarea {
  min-height: 80px;
  resize: vertical;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.history {
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.6;
}
.history b {
  color: var(--ink);
}
.error {
  color: var(--danger);
  font-size: 12px;
}
.link {
  background: none;
  color: var(--action);
  font-weight: 700;
  padding: 0;
  font-size: 13px;
}
@media (max-width: 800px) {
  .nav a:not(.btn) {
    display: none;
  }
  .hero-inner,
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    padding-top: 50px;
  }
  .hero h1 {
    font-size: 54px;
  }
  .scene {
    height: 300px;
  }
  .roles {
    grid-template-columns: 1fr;
  }
  .role {
    min-height: 0;
  }
  .role h3 {
    margin-top: 20px;
  }
  .app-shell {
    display: block;
  }
  .side {
    padding: 14px 18px;
    gap: 12px;
  }
  .side-label,
  .side-bottom {
    display: none;
  }
  .side nav {
    display: flex;
    overflow: auto;
  }
  .side nav button {
    white-space: nowrap;
  }
  .app-top {
    padding: 15px 20px;
  }
  .content {
    padding: 24px 18px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: start;
    flex-direction: column;
  }
  .footer .wrap,
  .end {
    flex-direction: column;
    align-items: start;
  }
  .top {
    padding: 16px 0;
  }
  .intro,
  .section {
    padding: 60px 0;
  }
}
.truck {
  width: 45%;
  height: auto;
  bottom: 100px;
  left: 26%;
  font-size: initial;
  filter: none;
}
.segments {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.segments legend {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.segments label {
  position: relative;
  cursor: pointer;
}
.segments input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.segments span {
  display: block;
  border: 1px solid var(--hairline);
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 12px;
  background: white;
  color: var(--muted);
}
.segments input:checked + span {
  background: var(--blue-pale);
  border-color: var(--blue-border);
  color: var(--ink);
  font-weight: 700;
}
.segments input:focus-visible + span {
  outline: 3px solid var(--action);
  outline-offset: 2px;
}
.choices {
  margin: 16px 0;
}
.choices legend {
  font-weight: 700;
  color: var(--muted);
}
.role-switch span {
  white-space: nowrap;
}
@media (max-width: 800px) {
  .truck {
    bottom: 65px;
  }
  .app-top {
    align-items: flex-start;
  }
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}
.hero :focus-visible,
.side :focus-visible,
.footer :focus-visible {
  outline-color: #b9dcff;
}

/* Account entry */
.auth-page {
  min-height: 100vh;
  background: var(--surface);
}
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 6%;
}
.auth-back,
.demo-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--action);
}
.auth-main {
  width: min(100% - 40px, 480px);
  margin: 8vh auto 0;
}
.auth-card {
  padding: 44px;
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  box-shadow: 0 16px 50px rgba(18, 36, 60, 0.06);
}
.auth-card h1 {
  font-size: 34px;
  line-height: 1.12;
  margin: 16px 0;
}
.auth-intro {
  color: var(--muted);
  margin-bottom: 28px;
}
.auth-card label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 9px;
}
.auth-card input {
  width: 100%;
  border: 1px solid #a9b8c9;
  border-radius: 6px;
  padding: 13px 14px;
  background: white;
  color: var(--ink);
}
.auth-card input:focus-visible,
.auth-card button:focus-visible,
.auth-back:focus-visible {
  outline: 3px solid #80b9ed;
  outline-offset: 2px;
}
.auth-button {
  width: 100%;
  margin-top: 18px;
  min-height: 48px;
}
.auth-card button:disabled {
  cursor: default;
  opacity: 0.6;
}
.auth-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}
.auth-options button {
  padding: 0;
  background: transparent;
  color: var(--action);
  font-size: 13px;
  font-weight: 700;
}
.auth-error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 18px;
}
.auth-empty {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 20px;
}
.auth-empty h2 {
  font-size: 19px;
  margin-bottom: 8px;
}
.auth-empty p {
  color: var(--muted);
  font-size: 14px;
}
.auth-footer {
  color: var(--faint);
  font-size: 12px;
  text-align: center;
  margin-top: 22px;
}
.end-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
@media (max-width: 520px) {
  .auth-header {
    padding: 24px 20px;
  }
  .auth-card {
    padding: 28px;
  }
  .auth-card h1 {
    font-size: 29px;
  }
}
