/* Bennett Applied — site styles
   Fonts are self-hosted (SIL Open Font License, see assets/fonts). */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0F1C2E;
  --ink-2: #15253A;
  --steel: #243449;
  --line-dark: #2C3E56;
  --node: #4A6080;
  --mist: #B8C4D2;
  --mist-2: #8FA3B8;
  --paper: #F3F5F7;
  --white: #FFFFFF;
  --rule: #D6DDE4;
  --slate: #4A5A6E;
  --amber: #F2A33A;
  --amber-ink: #9A5200;
  --amber-soft: #F5C27F;

  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 24px);
  --section: clamp(72px, 9vw, 120px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--amber-ink); }
a:hover { color: #7A4100; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: 80px; }

/* ---------- Shared type ---------- */

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  color: inherit;
}
h2 {
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; }

.mono {
  font-family: var(--mono);
  font-weight: 500;
}

/* Route strings: IDOC → API → EDI. Arrows are drawn, not typed,
   so they render the same everywhere. */
.flow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.45em;
  row-gap: 0.2em;
  font-family: var(--mono);
  font-weight: 500;
}
.arr {
  width: 0.95em;
  height: 0.95em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arr-amber { color: var(--amber); }
.arr-ink { color: var(--amber-ink); }

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.31em;
  font-family: var(--display);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .wm-b {
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--mist);
}
.wordmark .wm-a {
  position: relative;
  display: inline-block;
  padding-bottom: 0.3em;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
}
.wordmark .wm-a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.04em;
  bottom: 0;
  height: 0.17em;
  background: var(--amber);
}
.wordmark.on-light .wm-b { color: var(--slate); }
.wordmark.on-light .wm-a { color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #F5B25A; color: var(--ink); }
.btn-ghost { border-color: #6B7F97; color: var(--white); }
.btn-ghost:hover { border-color: var(--mist); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid #22344B;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.site-header .wordmark { font-size: 17px; }
.header-right {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: inline-block;
  padding: 12px 0;
  color: var(--mist);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.main-nav a:hover { color: var(--white); }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .site-header .wrap { min-height: 64px; }
  .site-header .wordmark { font-size: 15px; }
}

/* ---------- Hero ---------- */

.hero {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(184, 196, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 196, 210, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--white);
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (min-width: 1040px) {
  .hero .wrap { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 80px; }
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(42px, 6.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-lede {
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--mist);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* Interface route panel */
.route {
  margin: 0;
  padding: 26px 26px 24px;
  border-radius: 16px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  max-width: 560px;
  width: 100%;
}
@media (min-width: 1040px) { .route { max-width: none; } }
.route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.route-head .flow { font-size: 13px; color: var(--mist); }
.tag {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.route-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 0 0 20px 30px;
}
.step::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mist-2);
}
.step::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 22px;
  bottom: 2px;
  width: 2px;
  background: var(--line-dark);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step-meta .status { text-transform: uppercase; }
.step-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--mist-2);
}
.step-text {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--white);
}
.step.fail::before {
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 163, 58, 0.22);
}
.step.fail::after {
  width: 0;
  background: none;
  border-left: 2px dashed var(--line-dark);
}
.step.fail .status { color: var(--amber); }
.step.wait::before {
  background: transparent;
  border: 2px solid var(--node);
}
.step.wait .step-text { color: var(--mist); }
.step-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(242, 163, 58, 0.45);
  background: rgba(242, 163, 58, 0.1);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--amber-soft);
}
.route figcaption {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: var(--white);
}

/* ---------- Two-column text sections ---------- */

.split {
  padding-block: var(--section);
}
.split .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
@media (min-width: 900px) {
  .split .wrap {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .split .split-head { grid-column: span 5; }
  .split .split-body { grid-column: 7 / span 6; }
}
.split-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--slate);
}
.split-body .strong { color: var(--ink); font-weight: 500; }
.split.on-paper { background: var(--paper); }

/* ---------- What you'll learn ---------- */

.learn {
  padding-block: var(--section);
  background: var(--paper);
}
.learn h2 { margin-bottom: 48px; }
.topics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 80px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 820px) {
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.topic {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--rule);
}
.topic .flow {
  font-size: 14px;
  color: var(--amber-ink);
}
.topic h3 {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
}
.topic p {
  max-width: 30em;
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate);
}

/* ---------- Start here ---------- */

.videos { padding-block: var(--section); }
.videos-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
}
.videos-head > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.videos-head p {
  max-width: 34em;
  font-size: 19px;
  line-height: 1.5;
  color: var(--slate);
}
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (min-width: 1040px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.thumb {
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(184, 196, 210, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 196, 210, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.ti {
  height: 100%;
  padding: 6cqi 6.4cqi;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.6cqi;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
}
.ti .t-small { font-size: 4.2cqi; letter-spacing: 0.02em; color: var(--mist); }
.ti .t-big { font-size: 8cqi; color: var(--white); }
.ti .t-hi {
  padding: 0.1em 0.27em 0.13em;
  background: var(--amber);
  color: var(--ink);
}
.ti .t-mid { font-size: 6.9cqi; }
.ti.t-choice {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 3.7cqi;
}
.ti .t-stack {
  display: flex;
  flex-direction: column;
  gap: 1cqi;
  font-size: 9cqi;
  color: var(--white);
}
.ti .t-q { font-size: 25cqi; color: var(--amber); }
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--slate);
}
.card h3 {
  margin-top: 6px;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
}

/* ---------- Checklist ---------- */

.checklist { padding-block: clamp(56px, 7vw, 96px); }
.checklist-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 72px);
  border-radius: 20px;
  background: var(--ink);
  color: var(--white);
}
@media (min-width: 900px) {
  .checklist-panel { grid-template-columns: 300px minmax(0, 1fr); gap: 72px; }
}
.cover {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  padding: 32px 28px;
  border-radius: 6px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
}
.cover .wordmark { font-size: 13px; }
.cover-title {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cover-title::before {
  content: "";
  width: 40px;
  height: 5px;
  background: var(--amber);
}
.cover-title strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.cover-title span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--slate);
}
.cover small {
  font-size: 12px;
  line-height: 1.45;
  color: var(--slate);
}
.checklist-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.checklist-copy .soon {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--amber);
}
.checklist-copy h2 { font-size: clamp(30px, 3.6vw, 40px); }
.checklist-copy p {
  max-width: 34em;
  font-size: 19px;
  line-height: 1.6;
  color: var(--mist);
}
.checklist-copy .btn { margin-top: 8px; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 72px 44px;
  background: var(--ink);
  color: var(--mist);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-brand .wordmark { font-size: 20px; }
.footer-brand p { font-size: 16px; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links h2 {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--white);
}
.footer-links a {
  padding: 4px 0;
  font-size: 15px;
  color: var(--mist);
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 48px;
  padding-top: 24px;
  border-top: 1px solid #22344B;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist-2);
}
.footer-legal p { max-width: 640px; }
