/* ==========================================================================
   The public Laravel pages in the new marketing design (2026-11-22):
   /policy-privacy, /terms-and-conditions, /demo. Loaded by
   resources/views/layouts/marketing.blade.php only; layouts/app (the old
   homepage, login, invitation, 404) keeps app.css and is untouched.

   Values are the Next.js marketing site's tokens (1xfreight-front,
   app/(marketing)/marketing.css, .marketing-root) and its header and footer
   geometry (marketing-chrome.component.tsx, header "v2"). Sizes are px: this
   page has no root font-size games, so px and the Next site's px agree.
   ========================================================================== */

/* ---- Fonts: self-hosted, the Next site's own files (assets/fonts/README.md).
   Variable fonts: one file per subset covers every weight. ---- */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/public-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/public-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ---- */
:root {
  --mk-font-sans: 'Public Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mk-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --mk-paper: #fcfbf9;
  --mk-paper-alt: #f5f4f0;
  --mk-ink: #2a2823;
  --mk-ink-strong: #191813;
  --mk-ink-muted: #5c5a54;
  --mk-rule: #e2e0da;

  --mk-cool-ground: #f3f5fc;
  --mk-cool-ground-alt: #e7eaf7;
  --mk-cool-rule: #d3d8ec;
  --mk-cool-rule-strong: #c3c8dc;
  --mk-cool-ink: #14161d;
  --mk-cool-ink-muted: #3e4250;
  --mk-cool-ink-body: #4e525e;
  /* The AA value the Next homepage uses (4.64:1 on the cool ground). */
  --mk-cool-ink-faint: #6b6e7d;

  --mk-brand: #3a56ea;
  --mk-brand-hover: #2c43c9;
  --mk-brand-active: #0020dd;
  --mk-brand-edge: #c4ccfa;
  --mk-brand-ring: rgb(58 86 234 / 0.28);
  --mk-danger: #c9302c;

  --mk-radius: 6px;
  --mk-radius-lg: 10px;
  --mk-shadow-soft: 0 18px 40px -28px rgb(25 24 19 / 0.5);
  --mk-shadow-cta-sm: 0 8px 20px -8px rgb(58 86 234 / 0.9);
}

/* ---- Base (this layout loads no other stylesheet) ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.mk {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--mk-paper);
  color: var(--mk-ink);
  font-family: var(--mk-font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mk-main {
  flex: 1;
}

.mk img,
.mk svg {
  max-width: 100%;
}

.mk a {
  color: inherit;
}

.mk :focus-visible {
  outline: 2px solid var(--mk-brand);
  outline-offset: 2px;
}

.mk-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Header: the Next homepage's ("v2"). Below 1024px: logo | Book a demo |
   Menu, the links in a dropdown. From 1024px: logo | links, centred | Login ·
   Book a demo. ---- */
.mk-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid var(--mk-cool-rule);
  background: rgb(243 245 252 / 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px -22px rgb(20 22 29 / 0.8);
}

.mk-header__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: 10px;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
}

.mk-header__logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  color: var(--mk-cool-ink);
  text-decoration: none;
}

.mk-header__logo svg {
  display: block;
  width: auto;
  height: 30px;
}

.mk-header__actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mk-header__login {
  display: none;
}

.mk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mk-brand);
  border-radius: var(--mk-radius);
  background: var(--mk-brand);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: translate 180ms, box-shadow 180ms, background-color 180ms;
}

.mk a.mk-button {
  color: #fff;
}

.mk-button:hover {
  background: var(--mk-brand-hover);
  border-color: var(--mk-brand-hover);
  box-shadow: var(--mk-shadow-cta-sm);
  translate: 0 -1px;
}

.mk-button:active {
  background: var(--mk-brand-active);
}

.mk-button--header {
  height: 40px;
  padding: 0 16px;
  font-size: 14.5px;
}

.mk-menu-button {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--mk-cool-rule-strong);
  border-radius: var(--mk-radius);
  background: rgb(255 255 255 / 0.72);
  color: var(--mk-cool-ink);
  cursor: pointer;
  transition: border-color 200ms, background-color 200ms;
}

.mk-menu-button[hidden] {
  display: none;
}

.mk-menu-button:hover {
  border-color: var(--mk-cool-ink);
  background: #fff;
}

.mk-menu-button__close,
.mk-menu-button[aria-expanded='true'] .mk-menu-button__open {
  display: none;
}

.mk-menu-button[aria-expanded='true'] .mk-menu-button__close {
  display: block;
}

/* The section links: a dropdown panel under the header below 1024px. */
.mk-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 6px 8px 12px;
  border-bottom: 1px solid var(--mk-cool-rule);
  background: var(--mk-cool-ground);
  box-shadow: 0 22px 30px -26px rgb(20 22 29 / 0.7);
}

.mk-nav.is-open {
  display: flex;
}

.mk-nav__link,
.mk-header__login {
  align-items: center;
  border-radius: var(--mk-radius);
  color: var(--mk-cool-ink-muted);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms, color 150ms;
}

.mk-nav__link {
  display: flex;
  height: 48px;
  padding: 0 12px;
  font-size: 16px;
}

.mk-nav__link:hover,
.mk-header__login:hover {
  background: var(--mk-cool-ground-alt);
  color: var(--mk-cool-ink);
}

.mk .mk-nav__link,
.mk .mk-header__login {
  color: var(--mk-cool-ink-muted);
}

.mk .mk-nav__link:hover,
.mk .mk-header__login:hover {
  color: var(--mk-cool-ink);
}

.mk-nav__login {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--mk-cool-rule);
  border-radius: 0;
}

@media (min-width: 1024px) {
  .mk-header {
    height: 72px;
    padding: 0 64px;
  }

  .mk-header__inner {
    grid-template-columns: auto 1fr auto;
    column-gap: 24px;
  }

  .mk-header__logo svg {
    height: 38px;
  }

  .mk-header__actions {
    grid-column: 3;
  }

  .mk-header__login {
    display: flex;
    height: 42px;
    padding: 0 14px;
    font-size: 15px;
  }

  .mk-button--header {
    height: 42px;
    padding: 0 20px;
    font-size: 15px;
  }

  .mk-menu-button,
  .mk-menu-button[hidden] {
    display: none;
  }

  .mk-nav,
  .mk-nav.is-open {
    display: flex;
    position: static;
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    justify-content: center;
    gap: 2px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .mk-nav__link {
    height: 42px;
    padding: 0 14px;
    font-size: 15px;
  }

  .mk-nav__login {
    display: none;
  }
}

/* ---- Footer: the Next site's (light theme). ---- */
/* Side padding on the footer, the 1200px box inside it: the same box as the
   header's, so the footer's logo lines up with the header's. */
.mk-footer {
  padding: 0 20px;
  border-top: 1px solid var(--mk-cool-rule);
  background: var(--mk-cool-ground);
}

.mk-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0 96px;
}

.mk-footer__brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 20px;
  color: var(--mk-cool-ink);
}

.mk-footer__logo {
  display: block;
  width: auto;
  height: 24px;
}

.mk-footer__copyright {
  color: var(--mk-cool-ink-faint);
  font-family: var(--mk-font-mono);
  font-size: 12px;
}

.mk-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  color: var(--mk-cool-ink-muted);
  font-size: 13.5px;
}

.mk .mk-footer__link {
  color: var(--mk-cool-ink-muted);
  text-decoration: none;
  transition: color 150ms;
}

.mk .mk-footer__link:hover {
  color: var(--mk-cool-ink);
}

.mk-footer__divider {
  display: none;
  width: 1px;
  height: 24px;
  background: var(--mk-cool-rule);
}

.mk-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mk .mk-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--mk-cool-rule);
  border-radius: var(--mk-radius);
  background: var(--mk-paper);
  color: var(--mk-cool-ink-muted);
  transition: background-color 200ms, color 200ms, border-color 200ms;
}

.mk .mk-social__link:hover {
  border-color: var(--mk-brand-edge);
  background: var(--mk-cool-ground-alt);
  color: var(--mk-brand);
}

@media (min-width: 640px) {
  .mk-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .mk-footer {
    padding: 0 64px;
  }
}

@media (min-width: 1441px) {
  .mk-footer__divider {
    display: block;
  }
}

/* ---- Page head: the title band on the cool ground, under the header. ---- */
.mk-page-head {
  padding: 48px 20px 36px;
  border-bottom: 1px solid var(--mk-cool-rule);
  background: var(--mk-cool-ground);
}

.mk-page-head__title {
  margin: 0;
  color: var(--mk-cool-ink);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.mk-page-head__meta {
  margin: 14px 0 0;
  color: var(--mk-cool-ink-faint);
  font-family: var(--mk-font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

@media (min-width: 1024px) {
  .mk-page-head {
    padding: 80px 64px 52px;
  }

  .mk-page-head__title {
    font-size: 56px;
  }
}

/* ---- Legal pages: the admin's text in a readable column (~74ch). ---- */
.mk-legal {
  padding: 40px 20px 88px;
}

@media (min-width: 1024px) {
  .mk-legal {
    padding: 56px 64px 112px;
  }
}

.mk-prose {
  max-width: 74ch;
  color: var(--mk-ink);
  font-size: 17px;
  line-height: 1.7;
}

.mk-prose > :first-child {
  margin-top: 0;
}

.mk-prose h2,
.mk-prose h3,
.mk-prose h4 {
  color: var(--mk-ink-strong);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mk-prose h2 {
  margin: 48px 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.mk-prose h3 {
  margin: 40px 0 10px;
  font-size: 21px;
  line-height: 1.3;
}

.mk-prose h4 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.mk-prose p {
  margin: 0 0 16px;
}

.mk-prose ul,
.mk-prose ol {
  margin: 0 0 18px;
  padding-left: 1.4em;
}

.mk-prose li {
  margin: 6px 0;
  padding-left: 4px;
}

.mk-prose li::marker {
  color: var(--mk-brand);
}

.mk-prose strong,
.mk-prose b {
  color: var(--mk-ink-strong);
  font-weight: 600;
}

.mk .mk-prose a {
  color: var(--mk-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mk .mk-prose a:hover {
  color: var(--mk-brand-hover);
}

.mk-prose img {
  height: auto;
}

/* ---- Demo page: the form card beside the four product points. Below
   1024px: title, form, points. ---- */
.mk-demo {
  padding: 40px 20px 88px;
  background: var(--mk-cool-ground);
}

.mk-demo__grid {
  display: grid;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.mk-demo__title {
  margin: 0;
  color: var(--mk-cool-ink);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.mk-demo__points {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mk-demo__point h2 {
  margin: 0;
  color: var(--mk-brand);
  font-family: var(--mk-font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mk-demo__point h3 {
  margin: 10px 0 0;
  color: var(--mk-cool-ink);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.mk-demo__point p {
  margin: 8px 0 0;
  color: var(--mk-cool-ink-body);
  font-size: 16px;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .mk-demo {
    padding: 80px 64px 112px;
  }

  .mk-demo__grid {
    grid-template-columns: 1fr 520px;
    grid-template-areas:
      'head form'
      'points form';
    align-items: start;
    column-gap: 72px;
    row-gap: 40px;
  }

  .mk-demo__head {
    grid-area: head;
  }

  .mk-demo__form {
    grid-area: form;
  }

  .mk-demo__points {
    grid-area: points;
  }

  .mk-demo__title {
    font-size: 56px;
  }
}

.mk-form {
  padding: 24px 20px;
  border: 1px solid var(--mk-rule);
  border-radius: var(--mk-radius-lg);
  background: var(--mk-paper);
  box-shadow: var(--mk-shadow-soft);
}

@media (min-width: 640px) {
  .mk-form {
    padding: 32px;
  }
}

.mk-form__row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .mk-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.mk-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--mk-ink-strong);
  font-size: 14px;
  font-weight: 500;
}

.mk-field label span {
  color: var(--mk-brand);
}

.mk-field input,
.mk-field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--mk-cool-rule);
  border-radius: var(--mk-radius);
  background: #fff;
  color: var(--mk-ink-strong);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 150ms, box-shadow 150ms;
}

.mk-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%233e4250' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
}

.mk-field input::placeholder {
  color: #8a8d99;
}

.mk-field input:focus,
.mk-field select:focus {
  border-color: var(--mk-brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--mk-brand-ring);
}

.mk-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0 24px;
  color: var(--mk-ink-muted);
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
}

.mk-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--mk-brand);
}

.mk-consent p {
  margin: 0;
}

.mk .mk-consent a {
  color: var(--mk-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mk-button--submit {
  width: 100%;
  height: 52px;
  font-size: 16px;
}

.mk-button--submit:disabled {
  border-color: var(--mk-cool-rule-strong);
  background: var(--mk-cool-rule-strong);
  color: #fff;
  box-shadow: none;
  translate: none;
  cursor: not-allowed;
}

.mk-form__errors {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid #f3c3c1;
  border-left: 3px solid var(--mk-danger);
  border-radius: var(--mk-radius);
  background: #fdf3f2;
  color: var(--mk-danger);
  font-size: 14px;
}

.mk-form__errors ul {
  margin: 0;
  padding-left: 18px;
}

/* The "request sent" dialog (shown by the page's script after a redirect with
   a success message). */
.mk-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(20 22 29 / 0.5);
}

.mk-modal__card {
  max-width: 480px;
  padding: 40px 32px;
  border-radius: var(--mk-radius-lg);
  background: var(--mk-paper);
  text-align: center;
  box-shadow: var(--mk-shadow-soft);
}

.mk-modal__card h3 {
  margin: 0 0 12px;
  color: var(--mk-ink-strong);
  font-size: 24px;
  font-weight: 600;
}

.mk-modal__card p {
  margin: 0 0 24px;
  color: var(--mk-ink-muted);
}

.mk-modal__card .mk-button {
  height: 46px;
  padding: 0 28px;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .mk *,
  .mk *::before,
  .mk *::after {
    transition: none !important;
  }
}
