:root {
  color-scheme: light;
  --red: #d60821;
  --red-dark: #ad071a;
  --ink: #171b1f;
  --ink-soft: #30373c;
  --green: #24664f;
  --green-soft: #e9f2ee;
  --gold: #b8751b;
  --paper: #ffffff;
  --surface: #f3f5f4;
  --line: #d8ddda;
  --muted: #626c71;
  --shadow: 0 18px 48px rgba(16, 24, 20, 0.12);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body,
button,
select {
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  max-width: 690px;
  margin-bottom: 22px;
  font-size: 64px;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: 42px;
  font-weight: 780;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 750;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: min(780px, calc(100svh - 48px));
  flex-direction: column;
  overflow: hidden;
  background-color: var(--ink);
  background-image: url("/assets/courier-partner-hero.jpg");
  background-position: center center;
  background-size: cover;
  color: var(--paper);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(10, 14, 16, 0.58);
  content: "";
}

.site-nav {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--paper);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 205px;
  height: auto;
}

.brand span {
  padding-left: 13px;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 6px;
  padding: 7px 14px;
  background: rgba(20, 24, 27, 0.52);
  color: var(--paper);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.portal-link:hover {
  border-color: var(--paper);
  background: rgba(20, 24, 27, 0.82);
}

.language-select {
  min-width: 68px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  background: rgba(20, 24, 27, 0.68);
  color: var(--paper);
  padding: 0 30px 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.hero-content {
  display: flex;
  flex: 1;
  align-items: center;
  padding-top: 46px;
  padding-bottom: 68px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin-bottom: 16px;
  color: #f3c46f;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--red);
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 18px;
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--red);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(19, 23, 25, 0.42);
  color: var(--paper);
}

.button-secondary:hover {
  border-color: var(--paper);
  background: rgba(19, 23, 25, 0.72);
}

.hero-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.intro-band {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 1.25fr);
  gap: 60px;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 34px;
}

.intro-statement {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.45;
}

.intro-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.intro-facts div {
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.intro-facts strong,
.intro-facts span {
  display: block;
}

.intro-facts strong {
  color: var(--green);
  font-size: 17px;
}

.intro-facts span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading > p:last-child,
.model-copy > p {
  color: var(--muted);
  font-size: 18px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.advantage-item {
  min-width: 0;
  min-height: 290px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
}

.advantage-item:nth-child(2) {
  border-top-color: var(--green);
}

.advantage-item:nth-child(3) {
  border-top-color: var(--gold);
}

.advantage-item:nth-child(4) {
  border-top-color: var(--ink);
}

.advantage-number {
  display: block;
  margin-bottom: 42px;
  color: var(--red);
  font-size: 14px;
  font-weight: 850;
}

.advantage-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.operating-model {
  background: var(--surface);
}

.model-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  gap: 76px;
  align-items: center;
}

.boundary-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.boundary-list li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-top: 1px solid var(--line);
  font-weight: 650;
}

.boundary-list li::before {
  position: absolute;
  top: 21px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.portal-preview {
  overflow: hidden;
  border: 1px solid #c9cfcc;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.preview-header {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.preview-header div span,
.preview-header div strong {
  display: block;
}

.preview-header div span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-header div strong {
  margin-top: 3px;
  font-size: 19px;
}

.preview-state {
  color: #f3c46f;
  font-size: 13px;
  font-weight: 750;
}

.preview-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 104px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.preview-row:last-child {
  border-bottom: 0;
}

.preview-index {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--red);
  font-weight: 850;
}

.preview-row strong,
.preview-row span {
  display: block;
}

.preview-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.steps-section {
  border-top: 1px solid var(--line);
}

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

.steps li {
  min-width: 0;
  border-top: 3px solid var(--ink);
  padding-top: 22px;
}

.steps li > span {
  display: block;
  margin-bottom: 38px;
  color: var(--red);
  font-size: 14px;
  font-weight: 850;
}

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

.application-section {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.application-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.66fr) minmax(600px, 1.34fr);
  gap: 52px;
  align-items: start;
}

.application-copy {
  position: sticky;
  top: 32px;
}

.application-copy > p {
  color: var(--muted);
  font-size: 18px;
}

.application-notes {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.application-notes div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.application-notes strong,
.application-notes span {
  display: block;
}

.application-notes strong {
  color: var(--green);
  font-size: 15px;
}

.application-notes span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.application-form {
  min-width: 0;
  border: 1px solid #d3d9d6;
  border-radius: 8px;
  background: var(--paper);
  padding: 0 0 24px;
  box-shadow: 0 18px 48px rgba(20, 31, 25, 0.09);
}

.form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-radius: 7px 7px 0 0;
  padding: 24px 28px 22px;
  border-bottom: 1px solid var(--line);
  background: #fafbfa;
}

.form-header div span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.form-header h3 {
  margin: 4px 0 0;
  font-size: 24px;
}

.form-header > span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.application-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 22px 28px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.application-form legend {
  float: left;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 780;
  line-height: 1.3;
}

.application-form legend + .form-grid {
  clear: both;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 14px;
}

.field {
  min-width: 0;
}

.field.span-2 {
  grid-column: span 2;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #bfc7c3;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field input,
.field select {
  min-height: 46px;
  padding: 9px 12px;
}

.field textarea {
  resize: vertical;
  padding: 11px 12px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #87938d;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(36, 102, 79, 0.16);
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-grid label {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 650;
}

.checkbox-grid label:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
}

.checkbox-grid input,
.consent-field input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 28px 0;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 14px;
}

.consent-field input {
  margin-top: 3px;
}

.form-submit {
  width: calc(100% - 56px);
  margin: 18px 28px 0;
}

.form-submit:disabled {
  background: #9da6a2;
  cursor: wait;
  transform: none;
}

.form-status {
  display: none;
  margin: 20px 28px 0;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 650;
}

.form-status.is-success,
.form-status.is-error,
.form-status.is-pending {
  display: block;
}

.form-status.is-success {
  border-color: #9fcbb9;
  background: var(--green-soft);
  color: #174d3b;
}

.form-status.is-error {
  border-color: #efb1b8;
  background: #fff0f2;
  color: #8f1020;
}

.form-status.is-pending {
  border-color: #e2c88e;
  background: #fff7e6;
  color: #7a5214;
}

.form-trap,
.is-hidden {
  display: none;
}

.contact-section {
  background: var(--red);
  color: var(--paper);
  padding: 70px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: center;
}

.contact-layout > div {
  max-width: 760px;
}

.contact-layout h2 {
  font-size: 38px;
}

.contact-layout p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.contact-layout .eyebrow {
  color: #ffe0a4;
}

.button-light {
  min-width: 190px;
  background: var(--paper);
  color: var(--red-dark);
}

.button-light:hover {
  background: #f3f5f4;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 46px 0;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 48px;
  align-items: end;
}

.footer-layout img {
  width: 176px;
  height: auto;
}

.footer-layout p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.copyright {
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #f3c46f;
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 36px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .intro-facts div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .advantage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advantage-item {
    min-height: 250px;
  }

  .model-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .application-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .application-copy {
    position: static;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 32px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    min-height: calc(100svh - 32px);
    background-position: 62% center;
  }

  .hero::before {
    background: rgba(10, 14, 16, 0.66);
  }

  .site-nav {
    min-height: 76px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 150px;
  }

  .brand span {
    display: none;
  }

  .portal-link {
    min-height: 38px;
    flex-shrink: 0;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 11px;
  }

  .nav-actions {
    gap: 8px;
  }

  .hero-content {
    align-items: flex-end;
    padding-top: 42px;
    padding-bottom: 46px;
  }

  .hero-lead {
    font-size: 18px;
    line-height: 1.48;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .intro-facts {
    grid-template-columns: 1fr;
  }

  .intro-facts div,
  .intro-facts div:first-child {
    padding: 15px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .advantage-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .advantage-item {
    min-height: auto;
  }

  .advantage-number,
  .steps li > span {
    margin-bottom: 24px;
  }

  .preview-header,
  .preview-row {
    padding-right: 18px;
    padding-left: 18px;
  }

  .application-form {
    padding: 0 0 18px;
  }

  .form-header {
    display: block;
    padding: 20px 18px;
  }

  .form-header > span {
    display: block;
    margin-top: 8px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .application-form fieldset {
    margin: 0;
    padding: 20px 18px 22px;
  }

  .consent-field {
    margin-right: 18px;
    margin-left: 18px;
  }

  .form-submit {
    width: calc(100% - 36px);
    margin-right: 18px;
    margin-left: 18px;
  }

  .form-status {
    margin-right: 18px;
    margin-left: 18px;
  }

  .field.span-2 {
    grid-column: auto;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-layout h2 {
    font-size: 31px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 34px;
  }

  .brand img {
    width: 136px;
  }

  .language-select {
    min-width: 62px;
  }

  .hero-lead {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
