/* Layout: Apple-style product page. A translucent sticky nav, full-width
   sections alternating white and light grey, big tightly tracked headlines,
   and rounded cards for anything you can look at as an object. */
/* Single white theme by choice: every surface is white, cards sit on a
   faint grey, and colour is kept for the accent and the data. */
:root {
  --ink: #1d1d1f;        /* text */
  --ink-soft: #6e6e73;   /* secondary text */
  --paper: #ffffff;      /* page */
  --band: #f5f5f7;       /* card fill */
  --sheet: #ffffff;      /* surfaces inside cards */
  --rule: #e3e3e8;       /* hairlines */
  --teal: #0066cc;       /* accent: links, buttons (name kept for the cascade) */
  --teal-ink: #ffffff;   /* text on accent */
  --teal-wash: #e8f1fc;
  --amber: #b25000;      /* "held" state */
  --amber-wash: #fff3e5;
  --nav: rgba(255, 255, 255, 0.8);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);

  /* column colours for the before/after demo */
  --c1: #0066cc; --c1w: #e8f1fc;
  --c2: #7d3fc8; --c2w: #f2ebfb;
  --c3: #c2410c; --c3w: #fdeee6;
  --c4: #1d7f45; --c4w: #e7f5ec;
  --c5: #b4235c; --c5w: #fbe9f0;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }

.wrap { max-width: 61.25rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 1.5rem); }

/* Nav: a translucent layer that content scrolls under */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; min-height: 3.25rem; padding-block: 0.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font: 600 1.05rem/1 var(--display); letter-spacing: -0.015em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 1.6rem; height: 1.6rem; flex: none; }
.brand b { font-weight: 700; }
nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; letter-spacing: 0.005em; }
nav a { color: var(--ink); opacity: 0.8; }
nav a:hover { opacity: 1; text-decoration: none; }
nav a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* Type: tracking tightens as size grows; body stays near zero */
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.75rem, 7.5vw, 5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.8vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.016em; }
p { margin: 0; max-width: 40rem; }
.lede { font-size: clamp(1.2rem, 2.3vw, 1.45rem); line-height: 1.38; letter-spacing: -0.012em; color: var(--ink-soft); font-weight: 400; }
.eyebrow { font: 600 clamp(1.05rem, 2vw, 1.25rem)/1.3 var(--display); letter-spacing: -0.01em; color: var(--teal); }
.muted { color: var(--ink-soft); }

/* Sections: full-width bands that alternate */
main { display: block; }
section { padding-block: clamp(4rem, 10vw, 7rem); background: var(--paper); }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: clamp(2rem, 5vw, 3rem); }

/* Buttons: pills, with feedback on press */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.8rem 1.4rem; border-radius: 980px; font: 500 1.0625rem/1 var(--sans); letter-spacing: -0.01em; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--teal); padding-inline: 0.5rem; }
.btn-ghost::after { content: "›"; font-size: 1.2em; line-height: 0.8; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }

/* Hero: centred statement, then the product shot */
.hero { display: grid; gap: clamp(2.5rem, 6vw, 4rem); justify-items: center; text-align: center; }
.hero > * { min-width: 0; width: 100%; }
.hero .stack, .hero .stack-lg { justify-items: center; }
.hero .lede { margin-inline: auto; max-width: 38rem; }
.hero .actions { justify-content: center; }
.hero > div:last-child { max-width: 46rem; text-align: left; }
main > section:first-child { padding-block: clamp(3.5rem, 9vw, 6rem) clamp(4rem, 10vw, 7rem); }

/* File card: a supplier spreadsheet, shown as an object */
.file { background: var(--sheet); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--rule) 50%, transparent); }
.file-head { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--rule); font: 500 0.82rem/1.3 var(--mono); color: var(--ink-soft); }
.file-head span:last-child { white-space: nowrap; }
.grid-scroll { overflow-x: auto; }
.cells { border-collapse: collapse; width: 100%; font: 0.82rem/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.cells th, .cells td { padding: 0.55rem 0.85rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
.cells th { font-weight: 600; background: var(--band); }
.cells th:last-child, .cells td:last-child { border-right: 0; }
.cells .changed { background: var(--amber-wash); color: var(--amber); box-shadow: inset 0 -2px 0 var(--amber); }
.cells .num { text-align: right; }
.status { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.95rem 1.1rem; font-size: 0.95rem; line-height: 1.45; }
.status.held { background: var(--amber-wash); }
.status.ok { background: var(--teal-wash); }
.pill { flex: none; display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font: 600 0.75rem/1.35 var(--sans); letter-spacing: 0.01em; }
.held .pill { background: var(--amber); color: var(--sheet); }
.ok .pill { background: var(--teal); color: var(--teal-ink); }
.file + .file { margin-top: 1rem; }

/* Flow: a real sequence, so numbered */
.flow { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.flow li { display: grid; gap: 0.6rem; align-content: start; padding: 1.75rem; background: var(--band); border-radius: 18px; }
.flow li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal); color: var(--teal-ink); font: 600 0.95rem/1 var(--sans); }

/* Feature cards */
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.features > div { display: grid; gap: 0.5rem; align-content: start; padding: 1.75rem; background: var(--band); border-radius: 18px; }
@media (min-width: 48rem) { .features.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Split: headline above, body below, kept to a readable measure */
.split { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.split > * { min-width: 0; }
.split > .stack, .split > p, .split > ul { max-width: 40rem; }
.split p { font-size: 1.1875rem; line-height: 1.47; letter-spacing: -0.008em; }
.split p.muted { font-size: 1.0625rem; }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; max-width: 40rem; }
.ticks li { padding-left: 1.7rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.5em; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.systems { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.systems li { padding: 0.4rem 0.9rem; border-radius: 980px; background: var(--band); font-size: 0.95rem; }

/* What you do / what we do */
.duties { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .duties { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.duties > div { display: grid; gap: 1rem; align-content: start; min-width: 0; padding: clamp(1.5rem, 4vw, 2rem); border-radius: 18px; background: var(--band); }
.duties > div + div { background: var(--teal-wash); }

/* Examples: business, file in, file out, inside a card */
.grid-scroll:has(> .examples) { background: var(--band); border-radius: 18px; padding: 0.5rem 1.5rem; }
.examples { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: 1rem; }
.examples th { text-align: left; font: 600 0.8rem/1.2 var(--sans); color: var(--ink-soft); padding: 1rem 1rem 0.75rem 0; border-bottom: 1px solid #d2d2d7; }
.examples td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid #d2d2d7; vertical-align: top; }
.examples tr:last-child td { border-bottom: 0; }
.examples td:first-child { font-weight: 600; }
.examples td:last-child { color: var(--teal); }

/* Q&A */
.qa { display: grid; gap: 2rem; max-width: 46rem; }
.qa h3 { margin-bottom: 0.4rem; }

/* Call to action: centred */
.cta { display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.cta .lede { margin-inline: auto; }
.cta .address { margin-top: 0.5rem; display: inline-block; padding: 0.9rem 1.6rem; border-radius: 980px; background: var(--teal); color: var(--teal-ink); font: 500 clamp(1.05rem, 2.6vw, 1.25rem)/1.2 var(--sans); letter-spacing: -0.01em; word-break: break-all; }
.cta .address:hover { text-decoration: none; filter: brightness(1.08); }
.cta .address:active { transform: scale(0.97); }

/* Footer */
footer { background: var(--paper); font-size: 0.8125rem; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.75rem; border-top: 1px solid var(--rule); }
footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--ink); }

/* Prose pages (privacy) */
.prose { display: grid; gap: 1rem; max-width: 42rem; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 1.5rem; }
.prose ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.4rem; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .cta .address { transition: transform 100ms ease-out, filter 150ms ease; }
}
@media (prefers-reduced-transparency: reduce) {
  .top { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .top { background: var(--paper); border-bottom-color: var(--ink); }
  .file, .flow li, .features > div, .duties > div { box-shadow: none; border: 1px solid var(--ink); }
}

/* Before/after: one supplier table becomes the import table.
   Each column keeps its colour so the reorder and renames can be followed. */
.convert { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: center; text-align: left; }
.convert > * { min-width: 0; }
.convert .file { box-shadow: var(--shadow); }
.arrow { display: grid; place-items: center; gap: 0.35rem; color: var(--ink-soft); font: 600 0.8rem/1.2 var(--sans); }
.arrow svg { width: 2.25rem; height: 2.25rem; transform: rotate(90deg); }
.xt { border-collapse: collapse; width: 100%; font: 0.8rem/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.xt th, .xt td { padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
.xt th { font: 600 0.78rem/1.2 var(--sans); border-top: 3px solid; background: var(--paper); }
.xt tbody tr:last-child td { border-bottom: 0; }
.xt .r { text-align: right; }
.xt .k1 { border-top-color: var(--c1); color: var(--c1); }
.xt .k2 { border-top-color: var(--c2); color: var(--c2); }
.xt .k3 { border-top-color: var(--c3); color: var(--c3); }
.xt .k4 { border-top-color: var(--c4); color: var(--c4); }
.xt .k5 { border-top-color: var(--c5); color: var(--c5); }
.xt .kx { border-top-color: var(--rule); color: var(--ink-soft); text-decoration: line-through; }
.xt td.x { color: #aeaeb2; text-decoration: line-through; }
.xt td.v2 { background: var(--c2w); color: var(--c2); }
.xt td.v3 { background: var(--c3w); color: var(--c3); }
.xt td.v5 { background: var(--c5w); color: var(--c5); }
.changes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.changes li { padding: 0.4rem 0.85rem; border-radius: 980px; background: var(--band); font-size: 0.9rem; color: var(--ink); }
.changes b { font-weight: 600; }
.hero > div.convert-wrap { max-width: 58rem; width: 100%; display: grid; gap: 1.5rem; }
@media (max-width: 40rem) {
  .xt th, .xt td { padding: 0.5rem 0.5rem; }
  .xt { font-size: 0.72rem; }
  .xt th { font-size: 0.7rem; }
}
