/* ==========================================================================
   WMS marketing — design system
   Industrial / precise. Ink + paper neutrals, one safety-yellow accent.
   Spacing on a 4px grid. Type: Archivo (display), IBM Plex Sans (body),
   IBM Plex Mono (data, labels).
   ========================================================================== */

:root {
    --ink: #111315;
    --ink-2: #1c1f23;
    --ink-3: #2a2e33;
    --paper: #f6f5f1;
    --surface: #ffffff;
    --line: #e2e0d9;
    --line-dark: #33373d;
    --text: #1b1d20;
    --muted: #5a5e65;
    --muted-dark: #a3a8b0;
    --accent: #f2b705;
    --accent-ink: #3d2f00;
    --success: #1f7a4d;
    --danger: #b42318;

    --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;
    --s-9: 96px;
    --s-10: 128px;

    --radius: 6px;
    --radius-lg: 10px;
    --shadow: 0 1px 2px rgba(17, 19, 21, .06), 0 8px 24px rgba(17, 19, 21, .08);
    --shadow-lg: 0 2px 4px rgba(17, 19, 21, .06), 0 24px 64px rgba(17, 19, 21, .14);
    --max: 1200px;
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); font-stretch: 112%; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.4vw, 2.875rem); font-stretch: 108%; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }

p { margin-bottom: var(--s-4); }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.container { max-width: var(--max); padding-left: var(--s-5); padding-right: var(--s-5); }

.skip-link {
    position: absolute; left: var(--s-4); top: -60px; z-index: 100;
    background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--radius);
}
.skip-link:focus { top: var(--s-4); color: #fff; }

/* ---------- Primitives ---------- */

.eyebrow {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-family: var(--font-mono); font-size: 13px; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
    margin-bottom: var(--s-4);
}
.eyebrow::before {
    content: ""; width: 10px; height: 10px; background: var(--accent); flex: none;
}

.lead-text { font-size: 1.1875rem; color: var(--muted); max-width: 40em; }

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

/* Buttons: exactly three variants. */
.btn-primary-ink,
.btn-secondary-ink {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1;
    padding: 15px 22px; border-radius: var(--radius); border: 1px solid transparent;
    text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary-ink { background: var(--ink); color: #fff; }
.btn-primary-ink:hover { background: var(--ink-3); color: #fff; }
.btn-primary-ink:active { transform: translateY(1px); }
.btn-secondary-ink { background: transparent; color: var(--ink); border-color: #c9c6bc; }
.btn-secondary-ink:hover { border-color: var(--ink); color: var(--ink); }
.on-dark .btn-primary-ink { background: var(--accent); color: var(--ink); }
.on-dark .btn-primary-ink:hover { background: #ffc61a; }

.link-arrow {
    font-weight: 600; text-decoration: none; color: var(--ink);
    border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.link-arrow:hover { border-bottom-color: var(--ink); }
.link-arrow::after { content: " →"; }

/* ---------- Sections ---------- */

.section { padding: var(--s-10) 0; }
.section-tight { padding: var(--s-8) 0; }
.section-head { max-width: 44rem; margin-bottom: var(--s-8); }
.section-head p { font-size: 1.125rem; color: var(--muted); }
.bg-surface { background: var(--surface); }
.border-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.on-dark, .dark { background: var(--ink); color: #e9eaec; }
.on-dark h2, .on-dark h3, .on-dark h4, .dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.on-dark .eyebrow { color: var(--muted-dark); }
.on-dark .section-head p, .on-dark .muted { color: var(--muted-dark); }

@media (max-width: 767.98px) {
    .section { padding: var(--s-8) 0; }
    .section-head { margin-bottom: var(--s-7); }
}

/* ---------- Nav ---------- */

.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(246, 245, 241, .92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-nav .navbar { padding: var(--s-3) 0; }
.site-nav .nav-link {
    font-size: 15px; font-weight: 500; color: var(--muted); padding: var(--s-2) var(--s-3) !important;
}
.site-nav .nav-link:hover { color: var(--ink); }
.site-nav .navbar-toggler { border: 1px solid var(--line); padding: var(--s-2); }
.site-nav .navbar-toggler:focus { box-shadow: none; }
.site-nav .btn-primary-ink { padding: 11px 16px; font-size: 15px; }
@media (max-width: 991.98px) {
    .site-nav .navbar-nav { padding: var(--s-4) 0; gap: var(--s-1); }
    .site-nav .btn-primary-ink { margin-top: var(--s-2); }
}

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

.hero { padding: var(--s-9) 0 var(--s-9); position: relative; overflow: hidden; }
.hero::before {
    /* faint floor grid */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(17,19,21,.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(17,19,21,.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.hero .container { position: relative; }
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .hl {
    background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
    padding: 0 .05em;
}
.hero .lead-text { margin-bottom: var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); margin-bottom: var(--s-7); }

.proof-row {
    display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
    font-size: 14px; color: var(--muted); list-style: none; padding: 0; margin: 0;
}
.proof-row li { display: inline-flex; align-items: center; gap: var(--s-2); }
.proof-row li::before { content: ""; width: 6px; height: 6px; background: var(--ink); flex: none; }

/* Scan log card — signature element */
.scanlog {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden; font-size: 14px;
}
.scanlog-head {
    display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
    padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); background: #fbfaf7;
}
.scanlog-sku { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.scanlog-title { font-weight: 600; color: var(--ink); }
.barcode {
    height: 34px; width: 112px; flex: none;
    background: repeating-linear-gradient(90deg,
        var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
        var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px);
}
.scanlog-body { padding: var(--s-3) var(--s-5) var(--s-5); }
.scanlog ol { list-style: none; margin: 0; padding: 0; position: relative; }
.scanlog ol::before {
    content: ""; position: absolute; left: 5px; top: 18px; bottom: 18px; width: 2px; background: var(--line);
}
.scanlog li { display: grid; grid-template-columns: 12px 1fr auto; gap: var(--s-4); padding: var(--s-3) 0; align-items: start; }
.scanlog li::before {
    content: ""; width: 12px; height: 12px; margin-top: 5px; background: var(--surface);
    border: 2px solid var(--ink); position: relative; z-index: 1;
}
.scanlog li.is-current::before { background: var(--accent); border-color: var(--ink); }
.scanlog .ev { font-weight: 600; color: var(--ink); display: block; }
.scanlog .loc { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.scanlog time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.scanlog-foot {
    display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px;
    color: var(--muted); padding: var(--s-3) var(--s-5); border-top: 1px dashed var(--line);
}

@media (prefers-reduced-motion: no-preference) {
    .scanlog li { animation: scan-in .45s ease-out both; }
    .scanlog li:nth-child(1) { animation-delay: .15s; }
    .scanlog li:nth-child(2) { animation-delay: .3s; }
    .scanlog li:nth-child(3) { animation-delay: .45s; }
    .scanlog li:nth-child(4) { animation-delay: .6s; }
    .scanlog li:nth-child(5) { animation-delay: .75s; }
    @keyframes scan-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- Integrations strip ---------- */

.integrations {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-7);
}
.integrations-label { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.integrations ul { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-7); list-style: none; margin: 0; padding: 0; }
.integrations li {
    font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: #3b3f45;
}
.integrations li small { font-family: var(--font-mono); font-weight: 400; font-size: 12px; color: var(--muted); margin-left: var(--s-1); }

/* ---------- Problems ---------- */

.problem {
    height: 100%; padding: var(--s-6); border-top: 3px solid var(--ink); background: var(--surface);
}
.problem h3 { font-size: 1.3125rem; margin-bottom: var(--s-3); }
.problem p { color: var(--muted); margin: 0; }

/* ---------- Workflow ---------- */

.flow { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.flow-step { padding: var(--s-6); border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.flow-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); display: block; margin-bottom: var(--s-5); }
.flow-step h3 { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.flow-step h3 i { font-size: 1.125rem; color: var(--muted-dark); }
.flow-step p { color: var(--muted-dark); margin: 0; font-size: 16px; }
@media (max-width: 991.98px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .flow { grid-template-columns: 1fr; } }

/* ---------- Case study ---------- */

.case {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.case-main { padding: var(--s-8); height: 100%; display: flex; flex-direction: column; justify-content: center; }
.case-logo {
    display: inline-flex; align-items: center; height: 40px; margin-bottom: var(--s-6);
    font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink);
}
.case-logo img { max-height: 40px; width: auto; }
.case blockquote {
    font-family: var(--font-display); font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 600;
    line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 var(--s-6);
}
.case figcaption { display: flex; align-items: center; gap: var(--s-4); }
.case figcaption strong { display: block; color: var(--ink); }
.case figcaption span { font-size: 15px; color: var(--muted); }
.avatar {
    width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700;
}
.case-metrics { background: var(--ink); color: #fff; padding: var(--s-8) var(--s-7); height: 100%; display: flex; flex-direction: column; justify-content: center; gap: var(--s-6); }
.metric-value { font-family: var(--font-display); font-size: 2.75rem; font-weight: 800; font-stretch: 110%; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.metric-value .unit { color: var(--accent); }
.metric-label { font-size: 15px; color: var(--muted-dark); margin-top: var(--s-2); }
.metric + .metric { padding-top: var(--s-6); border-top: 1px solid var(--line-dark); }
@media (max-width: 767.98px) { .case-main, .case-metrics { padding: var(--s-6); } }

/* ---------- Reporting ---------- */

.report-list { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-6); }
.report-list strong { display: block; font-family: var(--font-display); color: var(--ink); margin-bottom: var(--s-1); }
.report-list span { font-size: 15px; color: var(--muted); }
@media (max-width: 575.98px) { .report-list { grid-template-columns: 1fr; } }

.browser {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.browser-bar {
    display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4);
    border-bottom: 1px solid var(--line); background: #fbfaf7;
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcd9d0; display: block; }
.browser-bar .url {
    margin-left: var(--s-3); flex: 1; max-width: 280px; font-family: var(--font-mono); font-size: 12px;
    color: var(--muted); background: var(--paper); border-radius: 4px; padding: 3px var(--s-3);
}
.browser-body { padding: var(--s-4); display: grid; gap: var(--s-3); background: #f3f4f6; }
.browser-body img { width: 100%; height: auto; display: block; border-radius: 4px; }

/* ---------- Capabilities ---------- */

.cap { height: 100%; padding: var(--s-6) 0 0; border-top: 1px solid var(--line); }
.cap i { font-size: 1.375rem; color: var(--ink); display: inline-block; margin-bottom: var(--s-4); }
.cap h3 { margin-bottom: var(--s-2); }
.cap p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---------- Pricing ---------- */

.price-points { list-style: none; padding: 0; margin: var(--s-6) 0; }
.price-points li { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-dark); }
.price-points li:first-child { border-top: 1px solid var(--line-dark); }
.price-points i { color: var(--accent); }

.calc {
    background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: var(--s-7);
}
.calc label { font-weight: 600; color: #fff; display: block; margin-bottom: var(--s-3); }
.calc-input { display: flex; align-items: center; gap: var(--s-5); margin-bottom: var(--s-6); }
.calc-input input[type=number] {
    width: 9.5rem; flex: none; font-family: var(--font-mono); font-size: 18px; color: #fff;
    background: var(--ink); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: var(--s-2) var(--s-3);
}
.calc-input input[type=number]:focus { border-color: var(--accent); outline: none; }
.calc input[type=range] { flex: 1; accent-color: var(--accent); height: 28px; }
.calc-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line-dark); margin-bottom: var(--s-5); }
.calc-total .amount { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; color: #fff; }
.calc-total .per { color: var(--muted-dark); font-size: 15px; }
.calc-total .eff { font-family: var(--font-mono); font-size: 13px; color: var(--muted-dark); }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tier {
    display: grid; grid-template-columns: 6.5rem 3.5rem 1fr 5.5rem; gap: var(--s-3); align-items: center;
    font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-dark);
}
.tier-bar { height: 8px; background: var(--ink-3); border-radius: 2px; overflow: hidden; }
.tier-bar span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .25s ease-out; }
.tier .cost { text-align: right; color: #fff; }
.tier.is-empty { opacity: .45; }
.tier.is-empty .cost { color: var(--muted-dark); }
.calc-note { font-size: 13px; color: var(--muted-dark); margin: var(--s-5) 0 0; }
@media (max-width: 575.98px) {
    .calc { padding: var(--s-5); }
    .calc-input { flex-direction: column; align-items: stretch; }
    .calc-input input[type=number] { width: 100%; }
    .tier { grid-template-columns: 5.5rem 3rem 1fr 4.75rem; gap: var(--s-2); }
}

/* ---------- Team ---------- */

.person { display: flex; gap: var(--s-5); align-items: flex-start; padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); height: 100%; }
.person .avatar { width: 64px; height: 64px; font-size: 1.25rem; }
.person h3 { margin-bottom: var(--s-1); }
.person .role { font-family: var(--font-mono); font-size: 13px; color: var(--muted); display: block; margin-bottom: var(--s-3); }
.person p { color: var(--muted); margin: 0; font-size: 16px; }

.promise-list { list-style: none; padding: 0; margin: 0; }
.promise-list li { padding: var(--s-4) 0; border-top: 1px solid var(--line); display: flex; gap: var(--s-3); }
.promise-list i { color: var(--ink); }

/* ---------- FAQ ---------- */

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer; padding: var(--s-5) 0; display: flex; justify-content: space-between; gap: var(--s-4);
    font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-weight: 400; font-size: 1.25rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: var(--s-5); margin: 0; max-width: 46rem; }

/* ---------- Demo form ---------- */

.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-7); box-shadow: var(--shadow); }
.demo-card .form-label { font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: var(--s-2); }
.demo-card .form-label .opt { font-weight: 400; color: var(--muted); }
.demo-card .form-control, .demo-card .form-select {
    font-size: 16px; border: 1px solid #cfccc3; border-radius: var(--radius); padding: 11px 14px; background-color: #fff;
}
.demo-card .form-control:focus, .demo-card .form-select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 183, 5, .45); }
.demo-card .form-control::placeholder { color: #9a9ea5; }
.form-element-error { list-style: none; padding: 0; margin: var(--s-1) 0 0; color: var(--danger); font-size: 14px; }
.form-alert { border-left: 3px solid var(--danger); background: #fdf1f0; color: #7a1a12; padding: var(--s-3) var(--s-4); margin-bottom: var(--s-5); font-size: 15px; }
@media (max-width: 575.98px) { .demo-card { padding: var(--s-5); } }

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

.site-footer { background: var(--ink); color: var(--muted-dark); padding: var(--s-8) 0 var(--s-6); font-size: 15px; }
.site-footer a { color: #e9eaec; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .footer-logo { filter: invert(1); height: 26px; width: auto; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.site-footer h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); font-weight: 500; margin-bottom: var(--s-4); }
.footer-base { border-top: 1px solid var(--line-dark); margin-top: var(--s-7); padding-top: var(--s-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: 14px; }

/* ---------- Simple pages (confirmation / tracking) ---------- */

.simple-page { padding: var(--s-10) 0; text-align: center; }
.simple-page h1 { margin-bottom: var(--s-4); }
.simple-page .lead-text { margin: 0 auto var(--s-6); }
