/* ─── EDITORIAL MODE ───
   Single landing-page stylesheet. Source of truth: design/mockup.html.
*/

:root {
  --ink:    #1B2430;
  --steel:  #3E5C76;
  --kraft:  #DCD3BE;
  --chalk:  #F7F5F0;
  --orange: #E8622C;
}

/* ─── EDITORIAL COLUMN ─── */
.col { max-width: 940px; margin: 0 auto; padding: 0 24px; }

body.editorial {
  background: var(--chalk);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
.editorial-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  padding: 20px 0;
  margin-bottom: 0;
}
.editorial-nav-wordmark {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.editorial-nav-wordmark:hover { color: var(--ink); }
.editorial-nav-cta {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  transition: background 0.15s, color 0.15s;
}
.editorial-nav-cta:hover {
  background: var(--ink);
  color: var(--chalk);
}

/* ─── HEADLINE ─── */
.editorial-headline {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 9vw, 88px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--ink);
}

/* ─── SUBHEAD ─── */
.editorial-sub {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 300;
}

/* ─── FOOTER ─── */
.editorial-footer {
  border-top: 1px solid var(--ink);
  padding: 28px 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--steel);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.editorial-footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }

/* ─── HERO + DISPATCH TICKET ─── */
.hero-dispatch {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 80px 0 96px;
  border-bottom: 1px solid var(--ink);
}
.hero-eyebrow {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 28px;
}
.hero-headline {
  margin: 0 0 28px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 8.5vw, 96px);
  line-height: 1.0;
  letter-spacing: -1.5px;
  color: var(--ink);
}
.hero-sub {
  max-width: 520px;
  margin: 0 0 40px;
}
.editorial-cta {
  display: inline-block;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 28px;
  background: var(--ink);
  color: var(--chalk);
  text-decoration: none;
  transition: background 0.15s;
}
.editorial-cta:hover { background: var(--orange); }

/* Dispatch ticket card */
.dispatch-ticket {
  background: var(--kraft);
  border: 1px solid var(--ink);
  padding: 24px;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--ink);
  position: relative;
}
.dt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--steel);
  font-size: 12px;
}
.dt-row:last-of-type { border-bottom: 0; }
.dt-head {
  border-bottom: 1px solid var(--ink);
  padding: 0 0 12px;
  margin-bottom: 4px;
}
.dt-label {
  color: var(--steel);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
}
.dt-value { color: var(--ink); text-align: right; }
.dt-mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.dt-status {
  display: inline-block;
  background: var(--orange);
  color: var(--chalk);
  padding: 4px 10px;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.dt-bar {
  margin-top: 14px;
  height: 4px;
  background: var(--steel);
  position: relative;
}
.dt-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 35%;
  background: var(--orange);
}
.dt-foot {
  margin-top: 10px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

/* ─── TRADES GRID ─── */
.trades-grid {
  padding: 96px 0;
  border-bottom: 1px solid var(--ink);
}
.trades-label {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 16px;
}
.trades-headline {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 56px;
  color: var(--ink);
  max-width: 640px;
}
.trades-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.trades-tile {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--chalk);
  transition: background 0.12s;
}
.trades-tile:hover { background: var(--kraft); }
.trades-tile-icon {
  margin-bottom: 24px;
  color: var(--ink);
}
.trades-tile-icon svg { display: block; }
.trades-tile-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--ink);
}
.trades-tile-sub {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--steel);
  margin: 0;
}

/* ─── PROCESS FLOW ─── */
.process-flow {
  padding: 96px 0;
  border-bottom: 1px solid var(--ink);
}
.process-label {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 16px;
}
.process-headline {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 56px;
  color: var(--ink);
  max-width: 640px;
}
.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: proc;
}
.process-step {
  border-left: 1px solid var(--ink);
  padding: 0 24px 0 24px;
}
.process-step:first-child { border-left: 1px solid var(--ink); }
.process-step:not(:last-child) { margin-right: 0; }
.process-step-num {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.process-step-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--ink);
}
.process-step-sub {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--steel);
  margin: 0;
}

/* ─── SUPPLIER MATCH / BRIEF FORM ─── */
.editorial-headline-form {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin: 0 0 16px;
}
.editorial-sub-form {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  max-width: 540px;
  margin: 0 0 48px;
}
.field {
  border-bottom: 1px solid var(--ink);
  padding: 0;
  margin-bottom: 12px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
}
.field-label {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 14px 0 4px;
}
.field-label span { color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
  background: var(--chalk);
  border: 0;
  outline: 0;
  padding: 8px 0 14px;
  width: 100%;
  resize: vertical;
}
.field textarea { min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: var(--steel); opacity: 1; }
.field select { cursor: pointer; appearance: none; -webkit-appearance: none; }
.field select option { background: var(--chalk); color: var(--ink); }
.btn-submit {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--chalk);
  border: 0;
  padding: 18px 32px;
  margin-top: 32px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-submit:hover { background: var(--orange); }
.btn-submit:disabled { background: var(--ink); opacity: 0.6; cursor: progress; }

body.editorial .supplier-match {
  background: var(--chalk);
  padding: 96px 0;
  border-bottom: 1px solid var(--ink);
}
body.editorial .supplier-match .editorial-headline {
  font-size: clamp(40px, 7vw, 72px);
  margin: 0 0 16px;
  padding: 0;
  line-height: 1.05;
}
body.editorial .supplier-match .editorial-sub {
  margin: 0 0 48px;
  padding: 0;
  max-width: 540px;
}
body.editorial .supplier-match-form { gap: 0; max-width: 640px; }
body.editorial .supplier-match .field {
  background: var(--chalk);
  border-bottom: 1px solid var(--ink);
  padding: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
body.editorial .supplier-match-form .field-label {
  color: var(--steel);
  padding: 14px 0 4px;
  background: transparent;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body.editorial .supplier-match-form .field-label span { color: var(--ink); }
body.editorial .supplier-match-form .field input,
body.editorial .supplier-match-form .field select,
body.editorial .supplier-match-form .field textarea {
  color: var(--ink);
  background: var(--chalk);
  padding: 8px 0 14px;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 17px;
  border: 0;
  outline: 0;
  width: 100%;
  resize: vertical;
}
body.editorial .supplier-match-form .field textarea { min-height: 90px; }
body.editorial .supplier-match-form .field input::placeholder,
body.editorial .supplier-match-form .field textarea::placeholder { color: var(--steel); opacity: 1; }
body.editorial .supplier-match-form .field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
body.editorial .supplier-match-form .field select option { background: var(--chalk); color: var(--ink); }

body.editorial .supplier-match-form .btn-submit {
  background: var(--ink);
  color: var(--chalk);
  border: 0;
  border-radius: 0;
  padding: 18px 32px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  margin-top: 32px;
  cursor: pointer;
  transition: background 0.15s;
}
body.editorial .supplier-match-form .btn-submit:hover { background: var(--orange); }
body.editorial .supplier-match-form .btn-submit:disabled { background: var(--ink); opacity: 0.6; cursor: progress; }

/* Success state — centered "Check your email." */
body.editorial .supplier-match-success {
  display: none;
  text-align: center;
  padding: 80px 24px;
  border: 1px solid var(--ink);
  background: var(--chalk);
  max-width: 640px;
  margin: 0 auto;
}
body.editorial .supplier-match-success.visible { display: block; }
body.editorial .supplier-match-success .success-icon {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 56px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}
body.editorial .supplier-match-success .success-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0 0 16px;
}
body.editorial .supplier-match-success .success-body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 460px;
  margin: 0 auto;
}

/* Validation */
body.editorial .field.error { background: var(--chalk); border-bottom-color: var(--ink); }
body.editorial .field-error-msg {
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 12px;
  padding: 6px 0 8px;
}

/* ─── MOBILE TUNING ─── */
@media (max-width: 760px) {
  .hero-dispatch {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0 72px;
  }
  .trades-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .trades-grid,
  .process-flow,
  .supplier-match,
  body.editorial .supplier-match { padding: 72px 0; }
  body.editorial .editorial-headline { letter-spacing: -1px; }
  .editorial-nav-cta { padding: 8px 14px; font-size: 11px; }
}
@media (max-width: 480px) {
  .trades-tiles { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}
