/* ==================== SHARED STYLES ==================== */
:root {
  --color-brand: #1e4fd8;
  --color-brand-dark: #173da8;
  --color-brand-soft: #e8eefc;
  --color-ink: #23272f;
  --color-muted: #5b6472;
  --color-line: #e3e6ec;
  --color-surface: #ffffff;
  --color-page: #f6f7fa;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(35, 39, 47, 0.08);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-page);
  line-height: 1.55;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--color-brand);
  border-radius: 999px;
  background: var(--color-brand);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

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

.button--ghost {
  background: transparent;
  color: var(--color-brand);
}

.button--ghost:hover {
  background: var(--color-brand-soft);
  color: var(--color-brand-dark);
}

.page {
  padding: 4rem 0;
  animation: page-fade-in 0.35s ease;
}

.page__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--color-brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page__lead {
  max-width: 680px;
  color: var(--color-muted);
  font-size: 1.15rem;
}

.card {
  padding: 1.75rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.card__title {
  font-size: 1.2rem;
}

.card__text {
  color: var(--color-muted);
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.check-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.check-list__item {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.4rem;
}

.check-list__item::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-brand);
  font-weight: 700;
}

.button--small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.form {
  display: grid;
  gap: 1rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form__input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-page);
  color: var(--color-ink);
  font: inherit;
}

.form__input:focus {
  outline: 2px solid var(--color-brand);
  border-color: transparent;
}

.form__checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form__checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-page);
  font-size: 0.9rem;
  cursor: pointer;
}

.form__message {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.form__message--error {
  color: #c0392b;
}

.form__message--success {
  color: #1e8449;
}

.data-table__wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th {
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--color-line);
  vertical-align: middle;
  white-space: nowrap;
}

.data-table__number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.empty-state {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-style: italic;
}

.status {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.status--active {
  background: #e3f6ea;
  color: #1e8449;
}

.status--invited {
  background: #fff4dc;
  color: #9a6700;
}

.status--disabled {
  background: var(--color-line);
  color: var(--color-muted);
}

@media (max-width: 860px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==================== HEADER SECTION ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 68px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  color: var(--color-ink);
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
}

.site-header__logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-brand);
  color: #ffffff;
  font-size: 1.1rem;
}

.site-header__logo-icon {
  width: 70%;
  height: 70%;
}

.site-header__logo-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header__nav {
  display: flex;
  gap: 0.25rem;
}

.site-header__link {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--color-muted);
  font-weight: 600;
  text-decoration: none;
}

.site-header__link:hover {
  color: var(--color-ink);
}

.site-header__link--active {
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.site-header__logout {
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-header__menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
}

.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-page);
}

.language-switch__button {
  padding: 0.3rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.language-switch__button--active {
  background: var(--color-brand);
  color: #ffffff;
}

@media (max-width: 1020px) {
  .site-header__menu-toggle {
    display: block;
  }

  .site-header__nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-surface);
  }

  .site-header__nav--open {
    display: flex;
  }
}

@media (max-width: 420px) {
  .site-header__inner {
    gap: 0.5rem;
  }

  .site-header__logo {
    font-size: 1.05rem;
  }

  .site-header__logo-mark {
    width: 28px;
    height: 28px;
  }

  .site-header__menu-toggle {
    padding: 0 0.25rem;
  }
}

/* ==================== HOME PAGE ==================== */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

.hero__title-accent {
  display: block;
  color: var(--color-brand);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__visual {
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-brand), #4f7bff);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero__visual-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero__visual-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  height: 150px;
  margin: 1rem 0;
}

.hero__visual-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: rgba(255, 255, 255, 0.85);
}

.hero__visual-bar--locked {
  background: rgba(255, 255, 255, 0.25);
}

.hero__visual-caption {
  margin: 0;
  font-weight: 600;
}

.problems__heading {
  margin-top: 4.5rem;
  font-size: 1.5rem;
}

.problems__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--color-brand-soft);
  font-size: 1.3rem;
}

.promise {
  margin-top: 4.5rem;
}

.promise__title {
  font-size: 1.5rem;
}

.promise__card {
  border-top: 4px solid var(--color-brand);
}

.promise__cta {
  margin-top: 2.5rem;
  text-align: center;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

/* ==================== HOW IT WORKS PAGE ==================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.steps__item {
  position: relative;
  padding-top: 2.25rem;
}

.steps__number {
  position: absolute;
  top: -18px;
  left: 1.75rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #ffffff;
  font-weight: 700;
}

.steps__label {
  color: var(--color-brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.steps__cta {
  margin-top: 3rem;
  text-align: center;
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ==================== WHY US PAGE ==================== */
.benefits__card {
  border-top: 4px solid var(--color-brand);
}

.benefits__quote {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--color-ink);
  color: #ffffff;
  font-size: 1.25rem;
  text-align: center;
}

/* ==================== SOLUTIONS PAGE ==================== */
.loadbuilder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2.5rem;
}

.loadbuilder__flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.loadbuilder__flow-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
}

.loadbuilder__flow-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
}

.loadbuilder__truck {
  padding: 1.5rem;
}

.loadbuilder__truck-body {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 8px;
  border: 3px solid var(--color-ink);
  border-radius: 6px;
  background: var(--color-page);
}

.loadbuilder__pallet {
  height: 36px;
  border-radius: 3px;
  background: var(--color-brand);
}

.loadbuilder__pallet--light {
  background: #7a9bf0;
}

.loadbuilder__pallet--empty {
  background: var(--color-line);
}

.loadbuilder__truck-wheels {
  display: flex;
  justify-content: space-between;
  padding: 0 1.5rem;
  margin-top: -4px;
}

.loadbuilder__wheel {
  width: 26px;
  height: 26px;
  border: 5px solid var(--color-ink);
  border-radius: 50%;
  background: var(--color-surface);
}

.loadbuilder__truck-caption {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
}

.roadmap {
  margin-top: 4.5rem;
}

.roadmap__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.roadmap__phase {
  color: var(--color-brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roadmap__item--current {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
}

@media (max-width: 960px) {
  .loadbuilder,
  .roadmap__list {
    grid-template-columns: 1fr;
  }
}

/* ==================== CONTACT PAGE ==================== */
.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.contact__form {
  display: grid;
  gap: 1rem;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact__label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact__input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-page);
  color: var(--color-ink);
  font: inherit;
}

.contact__input:focus {
  outline: 2px solid var(--color-brand);
  border-color: transparent;
}

.contact__textarea {
  min-height: 130px;
  resize: vertical;
}

.contact__error {
  margin: 0;
  color: #c0392b;
  font-size: 0.9rem;
}

.contact__success {
  text-align: center;
}

.contact__success-icon {
  font-size: 2.5rem;
}

.contact__info-item {
  margin-bottom: 1.25rem;
}

.contact__info-label {
  display: block;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact__info-value {
  font-weight: 600;
}

.contact__info-link {
  display: block;
  color: var(--color-ink);
  text-decoration: none;
}

.contact__info-link:hover {
  color: var(--color-brand);
}

@media (max-width: 860px) {
  .contact,
  .contact__row {
    grid-template-columns: 1fr;
  }
}

/* ==================== LOGIN PAGE ==================== */
.auth {
  max-width: 480px;
}

.auth__card {
  margin-top: 1.5rem;
}

/* ==================== CONFIRM PAGE ==================== */
.confirm__email {
  color: var(--color-ink);
  font-weight: 700;
}

/* ==================== ACCOUNT PAGE ==================== */
.account__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.account__meta {
  margin: 0;
  color: var(--color-muted);
}

.account__panel {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.account__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.account__panel > *,
.account__columns > * {
  min-width: 0;
}

.account__lead {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.invite-link {
  border-left: 4px solid var(--color-brand);
}

.invite-link__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.invite-link__url {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 0.85rem;
}

.admin-apps {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}

.admin-apps__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.app-card__url {
  color: var(--color-muted);
  font-size: 0.85rem;
  word-break: break-all;
}

.app-card__open {
  margin-top: 0.5rem;
}

@media (max-width: 860px) {
  .account__columns {
    grid-template-columns: 1fr;
  }
}

/* ==================== TERMS PAGE ==================== */
.legal {
  max-width: 860px;
}

.legal__updated {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.legal__card {
  margin-top: 1.5rem;
}

.legal__article + .legal__article {
  margin-top: 1.75rem;
}

.legal__heading {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.legal__article .legal__heading,
.legal__card > .legal__heading:first-child {
  margin-top: 0;
}

.legal__text {
  margin: 0;
  color: var(--color-muted);
}

/* ==================== COOKIES PAGE ==================== */
.cookies__table {
  margin-bottom: 0.5rem;
}

.cookies__table td {
  vertical-align: top;
  white-space: normal;
}

.cookies__name {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
}

/* ==================== FOOTER SECTION ==================== */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer__link {
  color: var(--color-muted);
}

.site-footer__link:hover {
  color: var(--color-brand);
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  padding: 1rem 0;
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  box-shadow: 0 -6px 24px rgba(35, 39, 47, 0.1);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.92rem;
}

.cookie-banner__link {
  color: var(--color-brand);
  font-weight: 600;
}

.cookie-banner__close {
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
}
