/* Track and Pack — trackandpack.com */

:root {
  --ink: #0f1b2d;
  --ink-2: #33415a;
  --muted: #5d6b82;
  --line: #d9e0ea;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --panel: #ffffff;
  --navy: #0f1b2d;
  --navy-2: #172a45;
  --navy-line: #2b4166;
  --on-navy: #e8eef7;
  --on-navy-muted: #a9b7cc;
  --accent: #f2a900;          /* label-stock amber */
  --accent-ink: #1a1300;
  --accent-soft: #fff4d6;
  --blue: #2f6fed;
  --live: #1f9d55;
  --radius: 14px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef7;
    --ink-2: #c6d1e1;
    --muted: #93a3bb;
    --line: #26354f;
    --bg: #0b1422;
    --bg-alt: #0f1b2d;
    --panel: #13223a;
    --accent-soft: #2a2208;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 750; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 720; }
h3 { font-size: 1.1rem; font-weight: 680; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--navy) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none; font-weight: 720; font-size: 1.15rem; letter-spacing: -.01em; }
.brand em { font-style: normal; font-weight: 450; color: var(--on-navy-muted); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--on-navy-muted); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a:focus-visible { color: var(--on-navy); }
@media (max-width: 860px) { .nav { display: none; } .header-row .btn-small { margin-left: auto; } }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 650; text-decoration: none; border: 2px solid var(--accent);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(242, 169, 0, .3); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn-small { padding: 8px 14px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--on-navy); border-color: var(--navy-line); }
.btn-ghost:hover { box-shadow: none; border-color: var(--on-navy-muted); }
.btn-block { display: block; text-align: center; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(47, 111, 237, .22), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-navy);
  padding: 72px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.lead { font-size: 1.15rem; color: var(--on-navy-muted); max-width: 36em; }
.lead-cloud { color: var(--on-navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--on-navy-muted); border: 1px solid var(--navy-line); border-radius: 999px; padding: 5px 14px; margin-bottom: 22px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-live { background: var(--live); box-shadow: 0 0 0 4px rgba(31, 157, 85, .2); }
.dot-build { background: var(--accent); box-shadow: 0 0 0 4px rgba(242, 169, 0, .2); }
.notice .dot-build { margin-top: 7px; }

.hero-figure { margin: 0; background: rgba(255, 255, 255, .03); border: 1px solid var(--navy-line); border-radius: 18px; padding: 18px; }
.hero-figure svg { display: block; width: 100%; height: auto; }
.caption { fill: var(--on-navy-muted); font: 400 12.5px var(--font); text-anchor: middle; }

/* factory:start — generated; animated hero figure */
.factory { overflow: visible; }
.factory .fl, .factory .fr, .factory .ft { stroke-linejoin: round; }
.fx-slab .ft { fill: #1b2f4e; stroke: #2f4a73; stroke-width: 1; }
.fx-slab .fl { fill: #13233b; }
.fx-slab .fr { fill: #0d192b; }
.fx-grid { stroke: #24395c; stroke-width: .7; }
.fx-belt .ft { fill: #2c4266; } .fx-belt .fl { fill: #1e3050; } .fx-belt .fr { fill: #172741; }
.fx-scale .ft { fill: #3b5d8f; stroke: #6f8fbf; stroke-width: .8; } .fx-scale .fl { fill: #2a4570; } .fx-scale .fr { fill: #203a60; }
.fx-run { fill: none; stroke: #5a78a6; stroke-width: 1.6; stroke-dasharray: 3 7; animation: fx-run .9s linear infinite; }
@keyframes fx-run { to { stroke-dashoffset: -10; } }
.fx-post .ft, .fx-kiosk .ft, .fx-printer .ft { fill: #4a6794; }
.fx-post .fl, .fx-kiosk .fl, .fx-printer .fl { fill: #34507c; }
.fx-post .fr, .fx-kiosk .fr, .fx-printer .fr { fill: #263f63; }
.fx-arm { stroke: #6f8fbf; stroke-width: 3; stroke-linecap: round; }
.fx-head { fill: #6f8fbf; }
.fx-screen { fill: #13223a; stroke: #2f6fed; stroke-width: .8; }
.fx-lamp { fill: #5d4410; }
.fx-shelf .ft { fill: #6f8fbf; } .fx-shelf .fl { fill: #4f6a93; } .fx-shelf .fr { fill: #3a5580; }
.fx-upright { stroke: #6f8fbf; stroke-width: 2; stroke-linecap: round; }
.fx-stock .ft, .fx-carton .ft { fill: #d6ad72; }
.fx-stock .fl, .fx-carton .fl { fill: #b88a4f; }
.fx-stock .fr, .fx-carton .fr { fill: #966d3b; }
.fx-stock-b .ft { fill: #7ea3dc; } .fx-stock-b .fl { fill: #5b82c2; } .fx-stock-b .fr { fill: #4467a3; }
.fx-pallet .ft { fill: #a07a4c; } .fx-pallet .fl { fill: #7d5d37; } .fx-pallet .fr { fill: #654a2b; }
.fx-sticker { fill: #f4f7fb; opacity: 0; animation: fx-sticker 15s linear infinite; }
.fx-lab .ft { fill: #d9e0ea; } .fx-lab .fl { fill: #a9b7cc; } .fx-lab .fr { fill: #8394ad; }
.fx-vial .ft { fill: #9fd0ff; } .fx-vial .fl { fill: #6aa6e6; } .fx-vial .fr { fill: #4f86c6; }
.fx-trailer .ft { fill: #e3e9f1; } .fx-trailer .fl { fill: #b9c5d6; } .fx-trailer .fr { fill: #97a6bc; }
.fx-cab .ft { fill: #5b8cf0; } .fx-cab .fl { fill: #2f6fed; } .fx-cab .fr { fill: #2456bd; }
.fx-wheel { fill: #0b1422; stroke: #33415a; stroke-width: 1.5; }
.fx-cert rect { fill: var(--accent); }
.fx-cert path { stroke: var(--accent-ink); stroke-width: 1.4; stroke-linecap: round; }
.fx-cert { opacity: 0; }
.fx-parcel { animation: fx-parcel 15s cubic-bezier(.45, 0, .4, 1) infinite; }
@keyframes fx-parcel {
  0% { transform: translate(0px, -14px); opacity: 0; }
  3.33% { transform: translate(0px, 30px); opacity: 1; }
  9.33% { transform: translate(0px, 30px); opacity: 1; }
  20.87% { transform: translate(155.9px, 120px); opacity: 1; }
  26.87% { transform: translate(155.9px, 120px); opacity: 1; }
  29.76% { transform: translate(116.9px, 142.5px); opacity: 1; }
  35.76% { transform: translate(116.9px, 142.5px); opacity: 1; }
  38.64% { transform: translate(77.9px, 165px); opacity: 1; }
  44.03% { transform: translate(5.2px, 123px); opacity: 1; }
  50.03% { transform: translate(5.2px, 123px); opacity: 1; }
  56.18% { transform: translate(-77.9px, 75px); opacity: 1; }
  62.18% { transform: translate(-77.9px, 75px); opacity: 1; }
  67.95% { transform: translate(-155.9px, 120px); opacity: 1; }
  74.36% { transform: translate(-69.3px, 170px); opacity: 1; }
  80.36% { transform: translate(-69.3px, 170px); opacity: 1; }
  86.32% { transform: translate(16.5px, 219.5px); opacity: 1; }
  87.99% { transform: translate(33.8px, 229.5px); opacity: 0; }
  100% { transform: translate(33.8px, 229.5px); opacity: 0; }
}
@keyframes fx-sticker { 0%, 23.14% { opacity: 0; } 23.21%, 100% { opacity: 1; } }
@keyframes fx-docket { 0%, 76.63% { opacity: 0; } 76.69%, 100% { opacity: 1; } }
.fx-docket { fill: var(--accent); stroke: #fff4d6; stroke-width: .6; opacity: 0; animation: fx-docket 15s linear infinite; }
.fx-tag rect { fill: #1d3354; stroke: #3a5580; stroke-width: 1.2; }
.fx-tag text { fill: var(--on-navy); font: 600 12.5px var(--font); text-anchor: middle; }
.fx-tag .sub { fill: var(--on-navy-muted); font-weight: 400; font-size: 10.5px; }
.fx-lead { stroke: #4f6a93; stroke-width: 1.2; stroke-dasharray: 3 3; fill: none; }
.fx-pin { fill: #4f6a93; }
.fx-tag-accent rect { fill: var(--accent); stroke: var(--accent); }
.fx-tag-accent text, .fx-tag-accent .sub { fill: var(--accent-ink); }
.fx-tag { animation: fx-tag 15s ease-out infinite; }
.fx-tag rect, .fx-tag .fx-pin, .fx-tag .fx-lead { animation: inherit; }
.fx-tag rect { animation-name: fx-tag-hi; }
.fx-tag .fx-pin { animation-name: fx-pin-hi; }
.fx-tag .fx-lead { animation-name: fx-lead-hi; }
.fx-tag-accent rect { animation-name: fx-tag-glow; }
.fx-screen.fx-hot { animation: fx-screen-hot 15s ease-out infinite; }
.fx-lamp.fx-hot { animation: fx-lamp-hot 15s ease-out infinite; }
.fx-cert { animation: fx-cert 15s ease-out infinite; }
@keyframes fx-tag { 0%, 8% { transform: translateY(-3px); } 11.33%, 100% { transform: none; } }
@keyframes fx-tag-hi { 0%, 8% { stroke: #f2a900; fill: #24406a; } 11.33%, 100% { stroke: #3a5580; fill: #1d3354; } }
@keyframes fx-pin-hi { 0%, 8% { fill: #f2a900; } 11.33%, 100% { fill: #4f6a93; } }
@keyframes fx-lead-hi { 0%, 8% { stroke: #f2a900; } 11.33%, 100% { stroke: #4f6a93; } }
@keyframes fx-tag-glow { 0%, 8% { stroke: #fff4d6; stroke-width: 3; } 11.33%, 100% { stroke: #f2a900; stroke-width: 1.2; } }
@keyframes fx-screen-hot { 0%, 8% { fill: #f2a900; } 11.33%, 100% { fill: #13223a; } }
@keyframes fx-lamp-hot { 0%, 8% { fill: #ffc940; } 11.33%, 100% { fill: #5d4410; } }
@keyframes fx-cert { 0% { opacity: 0; transform: translateY(6px); } 8%, 8% { opacity: 1; transform: translateY(-4px); } 11.33%, 100% { opacity: 0; transform: translateY(-14px); } }
.fx-t1, .fx-s1 { animation-delay: 0.40s; }
.fx-t2, .fx-s2 { animation-delay: 3.03s; }
.fx-t3, .fx-s3 { animation-delay: 4.36s; }
.fx-t4, .fx-s4 { animation-delay: 6.50s; }
.fx-t5, .fx-s5 { animation-delay: 8.33s; }
.fx-t6, .fx-s6 { animation-delay: 11.05s; }
.fx-t7, .fx-s7 { animation-delay: 12.80s; }
@media (prefers-reduced-motion: reduce) {
  .factory *, .factory .fx-tag rect { animation: none !important; }
  .fx-parcel { transform: translate(-69.3px, 170px); }
  .fx-sticker, .fx-cert, .fx-docket { opacity: 1; }
}
/* factory:end */

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-navy); }
.section-dark .section-lead { color: var(--on-navy-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.eyebrow-light { color: var(--accent); }
.section-lead { font-size: 1.08rem; color: var(--muted); max-width: 44em; }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.split-reverse { grid-template-columns: 1.05fr .95fr; }
.split-even { grid-template-columns: 1fr 1fr; }
@media (max-width: 920px) { .split, .split-reverse, .split-even { grid-template-columns: 1fr; } }

/* End-to-end stages */
.stages { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: s; }
@media (max-width: 1040px) { .stages { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .stages { grid-template-columns: 1fr; } }
.stage { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; row-gap: 0; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 18px; box-shadow: var(--shadow); }
.stage p { color: var(--muted); font-size: .95rem; margin: 0; }
.stage-no { justify-self: start; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); font-weight: 750; font-size: .92rem; margin-bottom: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }

/* Lists */
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23b37d00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.checks strong { color: var(--ink); }
.plain { padding-left: 1.1em; margin: 0 0 1.2em; color: var(--ink-2); }
.plain li { margin-bottom: 6px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 10px; box-shadow: var(--shadow); }
.panel h3 { margin-top: 4px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.cards-dark { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .cards-dark { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-dark { grid-template-columns: 1fr; } }
.cards-dark .card { background: rgba(255, 255, 255, .04); border-color: var(--navy-line); box-shadow: none; }
.cards-dark .card h3 { color: var(--on-navy); }
.cards-dark .card p { color: var(--on-navy-muted); }

/* Quality chart */
.chart-panel { margin: 0; padding: 22px; }
.chart-panel svg { display: block; width: 100%; height: auto; }
.chart-panel figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.limit { stroke: #d2564a; stroke-width: 1.5; stroke-dasharray: 6 5; }
.mean { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; }
.run { fill: none; stroke: var(--blue); stroke-width: 2; }
.pts circle { fill: var(--panel); stroke: var(--blue); stroke-width: 2; }
.chart-label { fill: var(--muted); font: 500 11.5px var(--font); }

/* Cloud */
.notice { width: fit-content; display: flex; gap: 12px; align-items: flex-start; background: rgba(242, 169, 0, .08); border: 1px solid rgba(242, 169, 0, .35); border-radius: 12px; padding: 14px 18px; color: var(--on-navy); max-width: 52em; margin: 22px 0 8px; }
.notice strong { color: var(--accent); }

/* Security */
.roles { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 13px; font-size: .9rem; color: var(--ink-2); }

/* Hardware */
.hw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 920px) { .hw { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hw { grid-template-columns: 1fr; } }
.hw > div { border-top: 3px solid var(--accent); background: var(--panel); border-radius: 0 0 var(--radius) var(--radius); padding: 18px; box-shadow: var(--shadow); }
.hw p { color: var(--muted); margin: 0; font-size: .95rem; }
.fineprint { color: var(--muted); font-size: .9rem; margin-top: 22px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: rgba(255, 255, 255, .04); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.contact-card .btn { white-space: nowrap; }
.contact-line { color: var(--on-navy); text-align: center; text-decoration: none; font-weight: 600; }
.contact-line:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: .9rem; border-top: 1px solid var(--navy-line); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 20px; }
.provenance { margin: 22px 0 0; font-size: .9rem; color: var(--on-navy-muted); letter-spacing: .01em; }
.kicker { margin: 0 0 14px; font-size: .95rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.callout { margin-top: 28px; padding: 24px 26px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-left: 5px solid var(--accent); }
.callout h3 { margin-bottom: .4em; }
.callout p { margin: 0; color: var(--ink-2); max-width: 62em; }
