:root {
  color-scheme: light;
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --ink: #17191b;
  --ink-2: #34383d;
  --muted: #5e6670;
  --accent: #1d5fbf;
  --accent-dark: #164b97;
  --accent-soft: #edf3fb;
  --small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --body: clamp(1.0625rem, 1rem + 0.24vw, 1.1875rem);
  --lead: clamp(1.25rem, 1.08rem + 0.7vw, 1.65rem);
  --head: clamp(2.35rem, 1.6rem + 3.5vw, 4.4rem);
  --display: clamp(3.6rem, 2rem + 6.9vw, 7rem);
  --sans: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --shell: min(1320px, calc(100% - 64px));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.visually-hidden {
  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;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-head { position: relative; z-index: 20; background: var(--bg); }
.nav-shell {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
.brand-mark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.site-nav { display: flex; justify-content: center; gap: 30px; }
.site-nav a {
  color: var(--ink-2);
  font-size: 0.93rem;
  text-decoration: none;
  text-underline-offset: .22em;
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: .08em; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background-color 160ms ease, transform 160ms var(--ease);
}
.button:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-small { min-height: 42px; padding: 10px 18px; font-size: .92rem; }
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-2);
  font-weight: 600;
  text-underline-offset: .22em;
  text-decoration-thickness: .07em;
}
.text-link:hover { color: var(--accent-dark); }

.hero { overflow: hidden; padding: 34px 0 86px; }
.hero-grid {
  min-height: min(720px, calc(100svh - 110px));
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(560px, 1.08fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; padding-bottom: 16px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 {
  max-width: 8.7ch;
  margin: 0 0 28px;
  font-size: var(--display);
  font-weight: 720;
  line-height: .96;
  letter-spacing: -.055em;
}
.lead {
  max-width: 31ch;
  margin-bottom: 30px;
  color: var(--ink-2);
  font-size: var(--lead);
  line-height: 1.42;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero-scope { margin: 28px 0 0; color: var(--muted); font-size: var(--small); }

.hero-visual { min-width: 0; }
.hero-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 54px 42px 54px 54px;
  background: var(--accent);
  clip-path: polygon(0 0, calc(100% - 96px) 0, 100% 96px, 100% 100%, 0 100%);
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-dark);
  clip-path: polygon(0 0, calc(100% - 96px) 0, 100% 96px, calc(100% - 52px) 96px, calc(100% - 148px) 0, 0 0);
}
.work-window {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 560px;
  min-height: 500px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  transform-origin: 70% 50%;
}
[data-ui] * { box-sizing: border-box; }
[data-ui] .app-rail { padding: 18px 12px; background: #f6f7f8; }
[data-ui] .app-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; }
[data-ui] .app-brand-dot { width: 17px; height: 17px; background: var(--ink); clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%); }
[data-ui] .app-nav { display: grid; gap: 4px; margin-top: 26px; }
[data-ui] .app-nav span { padding: 8px 9px; color: var(--muted); border-radius: 6px; }
[data-ui] .app-nav .active { background: #e7e9eb; color: var(--ink); font-weight: 650; }
[data-ui] .app-canvas { min-width: 0; padding: 17px 18px 20px; }
[data-ui] .app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
[data-ui] .app-topbar div { display: grid; gap: 1px; }
[data-ui] .app-topbar strong { font-size: 16px; letter-spacing: -.02em; }
[data-ui] .app-topbar span { color: var(--muted); font-size: 11px; }
[data-ui] .app-user { padding: 5px 8px; background: #f0f2f4; color: var(--ink-2) !important; border-radius: 5px; }
[data-ui] .app-tabs { display: flex; gap: 18px; margin: 18px 0 14px; color: var(--muted); }
[data-ui] .app-tabs .active { position: relative; color: var(--ink); font-weight: 650; }
[data-ui] .app-tabs .active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--accent); }
[data-ui] .shipment-card { padding: 14px; background: #fafbfc; border: 1px solid #e4e7ea; border-radius: 9px; }
[data-ui] .shipment-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; }
[data-ui] .shipment-head div { display: grid; gap: 2px; }
[data-ui] .shipment-head strong { font-size: 13px; }
[data-ui] .shipment-head span { color: var(--muted); font-size: 11px; }
[data-ui] .state-chip { padding: 4px 7px; background: #e8f6ee; color: #166534 !important; border-radius: 99px; }
[data-ui] .file-row { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 8px; background: #fff; border-top: 1px solid #edf0f2; }
[data-ui] .file-row:first-of-type { border-top: 0; }
[data-ui] .file-type { display: grid; place-items: center; width: 29px; height: 29px; background: #eef1f4; color: #56606b; font-size: 11px; font-weight: 700; border-radius: 5px; }
[data-ui] .file-type.blue { background: var(--accent-soft); color: var(--accent); }
[data-ui] .file-row div { display: grid; gap: 1px; min-width: 0; }
[data-ui] .file-row strong { overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
[data-ui] .file-row span { color: var(--muted); font-size: 11px; }
[data-ui] .row-state { color: var(--muted); font-size: 11px !important; }
[data-ui] .row-state.accent { color: var(--accent) !important; }
[data-ui] .mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
[data-ui] .mini-card { min-width: 0; padding: 12px; background: #fff; border: 1px solid #e4e7ea; border-radius: 8px; }
[data-ui] .mini-card span { display: block; color: var(--muted); font-size: 11px; }
[data-ui] .mini-card strong { display: block; margin: 4px 0 12px; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
[data-ui] .match-path, [data-ui] .template-state { color: var(--ink-2); font-size: 11px; }
[data-ui] .blue-card { background: var(--accent-soft); border-color: #d9e6f7; }
[data-ui] .blue-card strong { color: var(--accent-dark); }

.section { padding: 150px 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .7fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 68px;
}
.section-head h2, .closing h2 {
  margin-bottom: 0;
  font-size: var(--head);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}
.section-head p {
  max-width: 35ch;
  margin: 0 0 5px;
  color: var(--ink-2);
  font-size: var(--lead);
  line-height: 1.42;
  text-wrap: pretty;
}
.capability-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.capability {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px;
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.capability-wide { grid-column: span 7; }
.capability-tall { grid-column: span 5; }
.capability:nth-child(3) { grid-column: span 5; }
.capability:nth-child(4) { grid-column: span 7; }
.capability-copy h3 { margin-bottom: 8px; font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.35rem); line-height: 1.08; letter-spacing: -.035em; }
.capability-copy p { max-width: 42ch; margin-bottom: 0; color: var(--ink-2); font-size: 1rem; }
.template-ui, .image-ui, .product-ui, .shipment-ui { min-height: 265px; overflow: hidden; background: #f6f7f8; color: var(--ink); font-size: 11px; }
[data-ui] .fragment-bar { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; background: #fff; border-bottom: 1px solid #e4e7ea; }
[data-ui] .fragment-bar span { color: var(--muted); font-size: 11px; }
[data-ui] .template-columns { min-height: 220px; display: grid; grid-template-columns: 128px minmax(0, 1fr); }
[data-ui] .fragment-tree { display: flex; flex-direction: column; gap: 2px; padding: 12px 9px; background: #f7f8fa; }
[data-ui] .fragment-tree span { padding: 5px 7px; color: var(--muted); border-radius: 4px; }
[data-ui] .fragment-tree .nested { padding-left: 18px; }
[data-ui] .fragment-tree .deeper { padding-left: 29px; }
[data-ui] .fragment-tree .active { background: #e7e9eb; color: var(--ink); font-weight: 650; }
[data-ui] .fragment-list { padding: 12px; background: #fff; }
[data-ui] .fragment-list-head { display: flex; justify-content: space-between; padding: 2px 0 10px; }
[data-ui] .fragment-list-head span { color: var(--muted); font-size: 11px; }
[data-ui] .template-row { display: flex; align-items: center; gap: 9px; padding: 9px; background: #f7f8fa; border-radius: 6px; }
[data-ui] .template-row.active { background: var(--accent-soft); }
[data-ui] .template-row div { display: grid; gap: 1px; }
[data-ui] .template-row span { color: var(--muted); font-size: 11px; }
[data-ui] .xlsx-mark { display: grid; place-items: center; width: 27px; height: 31px; flex: none; background: #e8f6ee; color: #166534; font-size: 11px; font-weight: 800; clip-path: polygon(0 0, 74% 0, 100% 23%, 100% 100%, 0 100%); }
[data-ui] .sheet-preview { min-height: 90px; margin-top: 10px; padding: 12px; background: #fff; border: 1px solid #e4e7ea; }
[data-ui] .sheet-title { margin-bottom: 9px; font-size: 11px; font-weight: 700; }
[data-ui] .sheet-line { width: 65%; height: 4px; margin-bottom: 6px; background: #e7eaed; }
[data-ui] .sheet-line.short { width: 43%; }
[data-ui] .sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 10px; }
[data-ui] .sheet-grid span { height: 16px; background: #f2f4f6; }
[data-ui] .image-ui { padding: 14px; }
[data-ui] .image-search { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; background: #fff; border: 1px solid #e1e5e9; border-radius: 6px; }
[data-ui] .image-search span { font-weight: 650; }
[data-ui] .image-search b { padding: 4px 8px; background: var(--ink); color: #fff; font-size: 11px; border-radius: 4px; }
[data-ui] .image-match { margin-top: 12px; background: #fff; border: 1px solid #e1e5e9; border-radius: 7px; }
[data-ui] .match-group, [data-ui] .match-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-top: 1px solid #edf0f2; }
[data-ui] .match-group { border-top: 0; }
[data-ui] .match-group span { color: var(--muted); font-size: 11px; }
[data-ui] .match-row span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
[data-ui] .match-row b { color: var(--accent); font-size: 11px; white-space: nowrap; }
[data-ui] .image-file { margin-top: 12px; padding: 10px 11px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }
[data-ui] .product-ui { padding: 14px; }
[data-ui] .product-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
[data-ui] .product-toolbar strong { margin-right: auto; font-size: 12px; }
[data-ui] .product-toolbar span { padding: 5px 8px; background: #e9ecef; color: var(--ink-2); font-size: 11px; border-radius: 4px; }
[data-ui] .product-table { overflow: hidden; background: #fff; border: 1px solid #e1e5e9; border-radius: 7px; }
[data-ui] .product-tr { display: grid; grid-template-columns: 1.45fr .55fr .7fr .6fr; align-items: center; min-height: 40px; padding: 0 10px; border-top: 1px solid #edf0f2; }
[data-ui] .product-tr:first-child { border-top: 0; }
[data-ui] .product-th { min-height: 32px; background: #f6f7f8; color: var(--muted); font-size: 11px; }
[data-ui] .product-tr span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
[data-ui] .product-tr b { color: #166534; font-size: 11px; }
[data-ui] .product-tr b.empty { color: var(--muted); }
[data-ui] .shipment-ui { min-height: 190px; display: grid; grid-template-columns: minmax(0, .85fr) 70px minmax(0, 1.15fr); align-items: center; gap: 16px; padding: 20px; }
[data-ui] .shipment-source { display: grid; gap: 6px; padding: 18px; background: #fff; border: 1px solid #e1e5e9; border-radius: 8px; }
[data-ui] .shipment-source .source-label { color: var(--muted); font-size: 11px; }
[data-ui] .shipment-source strong { font-size: 14px; }
[data-ui] .shipment-source > span:last-child { color: var(--muted); font-size: 11px; }
[data-ui] .shipment-link { height: 2px; background: var(--accent); }
[data-ui] .shipment-output { display: grid; gap: 8px; }
[data-ui] .shipment-output > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 9px; align-items: center; padding: 10px; background: #fff; border: 1px solid #e1e5e9; border-radius: 7px; }
[data-ui] .shipment-output .xlsx-mark { grid-row: span 2; }
[data-ui] .shipment-output strong { font-size: 11px; }
[data-ui] .shipment-output small { color: var(--muted); font-size: 11px; }
[data-ui] .xlsx-mark.customs { background: #e8f1fb; color: #0b5fa5; }

.sku-search {
  padding: 120px 0;
  background: var(--accent);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 72px) 0, 100% 72px, 100% 100%, 0 100%);
}
.sku-search-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(500px, 1.14fr); gap: clamp(54px, 8vw, 120px); align-items: center; }
.sku-search h2 { margin-bottom: 24px; font-size: var(--head); font-weight: 700; line-height: .99; letter-spacing: -.045em; }
.sku-search-copy > p { max-width: 35ch; color: #fff; font-size: var(--lead); line-height: 1.42; }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 34px; }
.search-form input { min-width: 0; height: 58px; padding: 0 18px; border: 0; background: #fff; color: var(--ink); font-size: 1.15rem; font-weight: 650; }
.search-form input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.search-form button { min-width: 92px; border: 0; background: var(--ink); color: #fff; font-weight: 650; cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease); }
.search-form button:hover { background: #000; transform: translateY(-2px); }
.search-hint { margin-top: 18px !important; color: #fff !important; font-size: 1rem !important; }
.search-results { padding: 18px; background: #fff; color: var(--ink); }
[data-ui] .search-results-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 4px 2px 18px; }
[data-ui] .search-results-head div { display: grid; gap: 2px; }
[data-ui] .search-results-head span { color: var(--muted); font-size: 11px; }
[data-ui] .search-results-head strong { font-size: 22px; letter-spacing: -.02em; }
[data-ui] .result-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 10px 14px; background: #f7f8fa; border-top: 1px solid #e5e8eb; }
[data-ui] .result-row:first-of-type { border-top: 0; }
[data-ui] .result-row div { display: grid; gap: 3px; min-width: 0; }
[data-ui] .result-row strong { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
[data-ui] .result-row span { color: var(--muted); font-size: 11px; }
[data-ui] .result-row > span { color: var(--accent-dark); font-weight: 650; white-space: nowrap; }
[data-ui] .result-row.is-hidden { display: none; }

.flow { padding-bottom: 170px; }
.flow-head { grid-template-columns: minmax(0, .75fr) minmax(360px, .75fr); }
.flow-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.flow-step { min-height: 220px; padding: 26px 22px 24px; background: var(--surface); }
.flow-step:nth-child(2) { background: #e9edf1; }
.flow-step:nth-child(3) { background: var(--accent-soft); }
.flow-step:nth-child(4) { background: #dde3e9; }
.flow-label { color: var(--muted); font-size: var(--small); font-weight: 650; }
.flow-step h3 { margin: 30px 0 12px; font-size: clamp(1.45rem, 1.2rem + .85vw, 2rem); line-height: 1.1; letter-spacing: -.03em; }
.flow-step p { margin-bottom: 0; color: var(--ink-2); font-size: .95rem; text-wrap: pretty; }
.accent-step h3 { color: var(--accent-dark); }

.closing { padding: 126px 0; background: var(--ink); color: #fff; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 60px; }
.closing h2 { max-width: 10ch; }
.closing p { margin: 26px 0 0; color: #fff; font-size: var(--lead); }
.button-light { min-width: 154px; background: #fff; color: var(--ink); }
.button-light:hover { background: var(--accent-soft); color: var(--ink); }

.site-footer { padding: 72px 0 32px; background: var(--ink); color: #fff; }
.footer-main { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding-bottom: 58px; }
.footer-wordmark { margin: 0; font-size: clamp(3.4rem, 7.8vw, 7.8rem); font-weight: 700; line-height: .8; letter-spacing: -.06em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 26px; }
.footer-links a { color: #fff; text-decoration-color: #8fa4bf; text-underline-offset: .25em; }
.footer-links a:hover { color: #fff; text-decoration-thickness: .09em; }
.footer-legal { padding-top: 24px; }
.footer-legal p { max-width: 76ch; margin: 0; color: #c8ccd2; font-size: var(--small); }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: no-preference) {
  .hero-visual { animation: shutter-in 1000ms var(--ease) 100ms both; }
  .work-window { animation: window-settle 1100ms var(--ease) 180ms both, slow-float 8s ease-in-out 1.4s infinite; }
  .state-chip { animation: state-in 520ms var(--ease) 900ms both; }
}
@keyframes shutter-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes window-settle { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@keyframes slow-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes state-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .button, .search-form button { transition: none; }
}

@media (max-width: 1120px) {
  :root { --shell: min(calc(100% - 48px), 980px); }
  .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(470px, 1.05fr); gap: 38px; }
  .hero-stage { min-height: 560px; padding: 42px 30px 42px 42px; }
  .work-window { min-width: 500px; }
  .site-nav { gap: 18px; }
  .capability-wide, .capability-tall, .capability:nth-child(3), .capability:nth-child(4) { grid-column: span 6; }
  .section-head { gap: 36px; }
  .sku-search-grid { grid-template-columns: minmax(0, .8fr) minmax(430px, 1.2fr); gap: 48px; }
}

@media (max-width: 860px) {
  :root { --shell: calc(100% - 40px); --head: clamp(2.25rem, 7vw, 3.2rem); }
  .nav-shell { grid-template-columns: auto 1fr auto; gap: 16px; }
  .site-nav { display: none; }
  .nav-shell > .button { justify-self: end; }
  .hero { padding-top: 22px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 54px; }
  .hero-copy { padding-top: 36px; }
  h1 { max-width: 8.8ch; }
  .lead { max-width: 34ch; }
  .hero-visual { width: min(100%, 700px); justify-self: end; }
  .hero-stage { min-height: 520px; }
  .work-window { min-width: 500px; }
  .section { padding: 110px 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 50px; }
  .section-head p { max-width: 44ch; }
  .capability-wide, .capability-tall, .capability:nth-child(3), .capability:nth-child(4) { grid-column: 1 / -1; }
  .capability { gap: 24px; }
  .sku-search { padding: 96px 0; }
  .sku-search-grid { grid-template-columns: 1fr; gap: 50px; }
  .sku-search-copy > p { max-width: 40ch; }
  .flow-head { grid-template-columns: 1fr; }
  .flow-bar { grid-template-columns: 1fr 1fr; }
  .flow-step { min-height: 230px; }
  .closing-grid { grid-template-columns: 1fr; align-items: start; }
  .closing-grid .button { justify-self: start; }
  .footer-main { align-items: start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 32px); --display: clamp(3.25rem, 14vw, 4.35rem); --lead: 1.18rem; }
  .nav-shell { min-height: 66px; }
  .brand { font-size: .98rem; }
  .brand-mark { width: 29px; height: 29px; }
  .button-small { min-height: 40px; padding: 9px 14px; }
  .hero { padding-bottom: 72px; }
  .hero-copy { padding-top: 30px; }
  h1 { margin-bottom: 24px; line-height: .98; }
  .lead { margin-bottom: 26px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-stage { min-height: 430px; padding: 30px 18px 30px 28px; clip-path: polygon(0 0, calc(100% - 54px) 0, 100% 54px, 100% 100%, 0 100%); }
  .work-window { min-width: 490px; min-height: 390px; grid-template-columns: 104px minmax(0, 1fr); transform-origin: left center; }
  [data-ui] .app-rail { padding: 14px 8px; }
  [data-ui] .app-brand strong { font-size: 11px; }
  [data-ui] .app-nav { margin-top: 18px; }
  [data-ui] .app-nav span { padding: 6px 7px; font-size: 11px; }
  [data-ui] .app-canvas { padding: 13px 12px; }
  [data-ui] .mini-grid { grid-template-columns: 1fr; }
  [data-ui] .mini-card:last-child { display: none; }
  .section { padding: 88px 0; }
  .capability { padding: 20px; }
  .template-ui, .image-ui, .product-ui, .shipment-ui { min-height: 230px; }
  [data-ui] .template-columns { grid-template-columns: 100px minmax(0, 1fr); }
  [data-ui] .fragment-tree .deeper { padding-left: 21px; }
  [data-ui] .shipment-ui { grid-template-columns: 1fr; min-height: 300px; }
  [data-ui] .shipment-link { width: 2px; height: 28px; justify-self: center; }
  .sku-search { padding: 78px 0; clip-path: polygon(0 0, calc(100% - 42px) 0, 100% 42px, 100% 100%, 0 100%); }
  .search-form { grid-template-columns: 1fr; }
  .search-form button { min-height: 50px; }
  .search-results { padding: 12px; }
  [data-ui] .result-row { align-items: flex-start; flex-direction: column; gap: 5px; min-height: 70px; }
  .flow { padding-bottom: 110px; }
  .flow-bar { grid-template-columns: 1fr; gap: 8px; }
  .flow-step { min-height: auto; }
  .flow-step h3 { margin-top: 28px; }
  .closing { padding: 88px 0; }
  .footer-wordmark { font-size: 3.3rem; }
}
