/* mrktlogistic.com: shared styles for every page. The home page adds home.css. Same palette and type as the app (packages/ui/src/styles.css). */
@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/overpass.woff2') format('woff2-variations');
}

:root {
  --navy-50: #f1f3f9;
  --navy-100: #e3e7f3;
  --navy-300: #a7b0cc;
  --navy-600: #33437a;
  --navy-800: #1b2547;
  --navy-900: #121a33;
  --navy-950: #0b1022;
  --saffron-100: #fde6c9;
  --saffron-400: #f39a3c;
  --saffron-500: #f08a1c;
  --saffron-700: #a84f00;
  --highway-500: #1f8a5b;
  --ink: var(--navy-900);
  --muted: #4b5677;
  --line: var(--navy-100);
  --radius: 12px;
  --page: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Overpass', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--saffron-700);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-900);
}

:focus-visible {
  outline: 3px solid var(--saffron-400);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  left: 16px;
}

/* ------------------------------------------------------------ header */

.site-header {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
}

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

.site-footer .brand,
.site-footer .brand:hover {
  color: #fff;
  text-decoration: none;
}

.brand svg {
  width: 34px;
  height: 34px;
}

.brand small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-300);
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.nav a:hover {
  color: var(--ink);
}

.actions {
  display: flex;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--saffron-400);
  color: var(--navy-950);
}

.button-primary:hover {
  background: var(--saffron-500);
  color: var(--navy-950);
}

.button-ghost {
  color: var(--ink);
  border: 1px solid var(--navy-300);
}

.button-ghost:hover {
  color: var(--ink);
  background: var(--navy-50);
}

.button-large {
  min-height: 50px;
  padding: 0 24px;
  font-size: 1rem;
}

/* ------------------------------------------------------------ sections (used by the home page) */

.section {
  padding: 72px 0;
}

.section-tint {
  background: var(--navy-50);
}

.section h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 800;
}

.lede {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 40em;
  margin: 0 0 36px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 3px solid var(--saffron-400);
  padding-top: 20px;
}

.steps li::before {
  content: 'Step ' counter(step);
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--saffron-700);
  margin-bottom: 6px;
}

.steps h3 {
  font-size: 1.125rem;
  font-weight: 800;
}

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

.money {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.money div {
  border-left: 3px solid var(--highway-500);
  padding: 4px 0 4px 18px;
}

.money strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 4px;
}

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

.cta {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta h2 {
  margin: 0 0 4px;
}

.cta p {
  margin: 0;
  color: var(--navy-100);
}

/* ------------------------------------------------------------ policy pages */

.page {
  padding: 48px 0 72px;
}

.prose {
  max-width: 760px;
}

.prose h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 2em;
}

.prose p,
.prose li {
  color: #2a3352;
}

.prose ul {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 6px;
}

.updated {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 2em;
}

.note {
  background: var(--navy-50);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin: 0;
}

.details dt {
  font-weight: 700;
}

.details dd {
  margin: 0;
  color: #2a3352;
}

/* ------------------------------------------------------------ footer */

.site-footer {
  background: var(--navy-950);
  color: var(--navy-300);
  padding: 48px 0 32px;
  font-size: 0.9375rem;
}

.site-footer .columns {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer h2 {
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 6px;
}

.site-footer a {
  color: var(--navy-100);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer address {
  font-style: normal;
}

.legal {
  border-top: 1px solid var(--navy-800);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.875rem;
}

/* ------------------------------------------------------------ small screens */

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .actions {
    margin-left: auto;
  }

  .site-footer .columns {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media (max-width: 480px) {
  .site-header .actions .button-ghost {
    display: none;
  }

  .cta {
    padding: 28px 20px;
  }

  .details {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .details dd {
    margin-bottom: 10px;
  }
}
