/* =========================================================
   Cold-chain healthcare theme
   Idea:  temperature is the visual language. Three delivery classes
          (frozen / refrigerated / room temperature) each own a colour
          that recurs in the hero monitor, product tags and diagrams.
   Type:  Bricolage Grotesque (headings) + Public Sans (body)
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Public+Sans:wght@400;500;600;700&display=swap");

:root {
  /* ink / navy */
  --navy-950: #04111f;
  --navy-900: #071a2e;
  --navy-800: #0c2540;
  --navy-700: #143459;
  --navy-600: #1f4a78;
  /* teal (brand) */
  --teal-700: #075f69;
  --teal-600: #0b7a85;
  --teal-400: #2bb5c0;
  --teal-100: #d7f0f2;
  --teal-50: #eef9fa;
  /* the three temperature classes */
  --frozen: #5b78f0;
  --frozen-deep: #3450c8;
  --fridge: #14b3b5;
  --fridge-deep: #0b7a85;
  --crt: #e8a93c;
  --crt-deep: #a8670a;

  --white: #ffffff;
  --paper: #f2f6f9;
  --frost: #e8f1f6;
  --line: #d5dfe9;
  --slate-400: #7f9bb5;
  --slate-500: #566a80;
  --slate-700: #33455a;
  --danger: #b42318;
  --success: #0a7d4f;

  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(7, 26, 46, 0.08);
  --shadow-md: 0 14px 34px -10px rgba(7, 26, 46, 0.28);
  --shadow-lg: 0 30px 60px -20px rgba(4, 17, 31, 0.5);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1180px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { text-wrap: balance;
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--teal-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 4px; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy-800); color: #fff; padding: 0.75rem 1rem;
}
.skip-link:focus { left: 0; }

/* ---------- Demo banner ---------- */
.demo-banner { background: #fff4d6; color: #5c4200; border-bottom: 1px solid #f0d58a; font-size: 0.85rem; text-align: center; padding: 0.45rem 1rem; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy-950); color: #9fb3c8; font-size: 0.85rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(213, 223, 233, 0.8);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(7, 26, 46, 0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy-800); }
.brand-mark { width: 44px; height: 44px; flex: none; transition: transform 0.35s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.015em; color: var(--navy-900); }
.brand-name small { margin-top: 0.22rem; font-size: 0.82rem; font-weight: 500; color: var(--slate-500); letter-spacing: 0.01em; }

.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
.primary-nav ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative; display: block; padding: 0.55rem 0.95rem; border-radius: 999px;
  color: var(--navy-800); font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--teal-50); color: var(--teal-700); }
.nav-link[aria-current="page"] { background: var(--navy-800); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; position: relative; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; width: 20px; height: 2px; background: var(--navy-800); content: "";
  transition: transform 0.2s, background-color 0.2s;
}
.nav-toggle span { left: 11px; top: 20px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.35rem; font: inherit; font-weight: 600; line-height: 1.2;
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.985); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: 0 8px 18px -8px rgba(11, 122, 133, 0.8); }
.btn-primary:hover:not(:disabled) { background: var(--teal-700); color: #fff; box-shadow: 0 14px 26px -10px rgba(11, 122, 133, 0.9); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--teal-700); border-color: var(--teal-600); }
.btn-outline:hover:not(:disabled) { background: var(--teal-600); color: #fff; }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--teal-100); color: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-light { background: rgba(255, 255, 255, 0.04); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--slate-500); border-color: var(--line); }
.btn-ghost:hover { color: var(--danger); border-color: var(--danger); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.cart-count {
  min-width: 1.5rem; padding: 0 0.4rem; border-radius: 999px;
  background: #fff; color: var(--teal-700); font-size: 0.8rem; font-weight: 700; text-align: center;
}
.cart-count.is-empty { display: none; }
.cart-count.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--frost); color: var(--slate-700);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
}
/* thermometer graduations along the bottom edge */
.hero::after, .page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 60px) bottom / 100% 18px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 12px) bottom / 100% 9px no-repeat;
  opacity: 0.3;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.hero h1 { color: var(--navy-900); max-width: 17ch; font-size: clamp(2.3rem, 4.8vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; }
.hero .lead { font-size: 1.15rem; max-width: 50ch; color: var(--slate-700); }
.hero .btn-row { margin-top: 2rem; }
.hero .btn-outline { color: var(--navy-800); border-color: var(--navy-800); }
.hero .btn-outline:hover:not(:disabled) { background: var(--navy-800); color: #fff; }

/* one entrance, hero only */
.hero-copy, .record-wrap { animation: rise 0.7s var(--ease) both; }
.record-wrap { animation-delay: 0.15s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Temperature record (a data-logger printout) ---------- */
.record-wrap { margin: 0; max-width: 430px; justify-self: center; }
.record-wrap figcaption { margin-top: 1.5rem; font-size: 0.85rem; color: var(--slate-500); text-align: center; }
.record {
  position: relative; background: #fff; padding: 1.5rem 1.6rem 1.6rem; border-radius: 3px 3px 0 0;
  transform: rotate(1.2deg);
  box-shadow: 0 1px 0 var(--line), 0 24px 40px -22px rgba(7, 26, 46, 0.45);
}
.record::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px;
  background: conic-gradient(from -45deg at bottom, #0000, #fff 1deg 89deg, #0000 90deg) 0 0 / 18px 100%;
}
.record-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 0.9rem; margin-bottom: 0.9rem; border-bottom: 2px solid var(--navy-800); }
.record-head h2 { margin: 0; font-size: 1.25rem; color: var(--navy-900); }
.record-tag { font-size: 0.78rem; font-weight: 600; color: var(--slate-500); padding: 0.1rem 0.55rem; border: 1px dashed var(--slate-400); border-radius: 4px; }
.record-meta, .record-range { margin: 0; display: grid; }
.record-meta { grid-template-columns: 1fr 1fr; gap: 0.7rem 1.25rem; }
.record-meta dt, .record-range dt { font-size: 0.78rem; color: var(--slate-500); }
.record-meta dd, .record-range dd { margin: 0; font-weight: 600; color: var(--navy-800); font-size: 0.92rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.record-meta div:nth-child(-n+2) { grid-column: 1 / -1; }
.record-chart { display: block; width: 100%; height: auto; margin: 1rem 0 0.5rem; overflow: visible; }
.rc-band { fill: var(--fridge); opacity: 0.14; }
.rc-limit { stroke: var(--fridge-deep); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.7; }
.rc-label { font: 500 9px var(--font-body); fill: var(--slate-500); }
.rc-trace { fill: none; stroke: var(--navy-800); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; animation: draw 2.2s 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
.rc-end { fill: var(--navy-800); animation: fade 0.3s 2.6s both; }
@keyframes draw { from { stroke-dashoffset: 1; } }
.record-range { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 0.75rem 0; border-block: 1px solid var(--line); }
.record-verdict { margin: 0.9rem 0 0.15rem; font-weight: 700; color: var(--success); display: flex; align-items: center; gap: 0.5rem; }
.record-verdict::before { content: "\2713"; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; font-size: 0.8rem; color: #fff; background: var(--success); border-radius: 50%; }
.record-sign { margin: 0; font-size: 0.85rem; color: var(--slate-500); padding-left: 1.8rem; }

/* ---------- Trust banner ---------- */
.trust-banner { background: var(--white); border-bottom: 1px solid var(--line); padding: 1.75rem 0; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.25rem; }
.trust-title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy-800); max-width: 14ch; line-height: 1.25; }
.trust-list { display: flex; flex-wrap: wrap; gap: 0.85rem; list-style: none; margin: 0; padding: 0; }
.trust-badge {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 1.2rem 0.75rem 0.9rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--navy-800); text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.trust-badge:hover { border-color: var(--teal-400); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.trust-badge.is-sample { border-style: dashed; }
.badge-icon { width: 38px; height: 38px; flex: none; padding: 7px; color: var(--teal-700); background: var(--teal-50); border-radius: 50%; }
.badge-text { display: grid; line-height: 1.3; }
.badge-text strong { font-family: var(--font-head); font-size: 1rem; }
.badge-text small { color: var(--slate-500); font-size: 0.8rem; }
.badge-text .badge-id { font-size: 0.75rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--paper); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head.row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.section-head p { color: var(--slate-500); margin: 0; }
.prose { max-width: 66ch; }
.prose h2 { margin-top: 0; }
.lead { font-size: 1.15rem; color: var(--navy-700); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.top { align-items: start; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.75rem; transition: border-color 0.2s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--teal-400); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card-flat {
  position: relative; background: var(--white); padding: 1.5rem 1.6rem 1.6rem; border-radius: var(--r-md);
  border: 1px solid var(--line); overflow: hidden;
}
.card-flat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--teal-400), var(--frozen)); }
.card-flat h3 { color: var(--navy-800); }
.card-flat p:last-child { margin-bottom: 0; }

.checklist { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.75rem; }
.checklist li { position: relative; padding-left: 2.1rem; }
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 0.1em; width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
  background: var(--teal-600); color: #fff; border-radius: 50%;
}
.defs { margin: 0 0 1.5rem; display: grid; gap: 0; }
.defs > div { padding: 1.1rem 0 1.1rem 1.25rem; border-left: 3px solid var(--teal-100); transition: border-color 0.2s; }
.defs > div:hover { border-left-color: var(--teal-600); }
.defs dt { font-family: var(--font-head); font-weight: 700; color: var(--navy-800); font-size: 1.1rem; }
.defs dd { margin: 0.15rem 0 0; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 600; color: var(--navy-800); }
.facts dd { margin: 0; }

/* ---------- Network diagram ---------- */
.network-svg { width: 100%; height: auto; background: radial-gradient(circle at 50% 50%, #fff 40%, var(--frost)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0.75rem; }
.net-lines line { stroke: var(--teal-400); stroke-width: 2; stroke-dasharray: 5 5; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.net-central { fill: var(--navy-800); }
.net-hub { fill: var(--teal-600); }
.net-node { fill: #fff; stroke: var(--navy-700); stroke-width: 2; }
.net-text { font: 600 12px var(--font-body); fill: #fff; text-anchor: middle; }
.net-caption { font: 500 11px var(--font-body); fill: var(--slate-500); text-anchor: middle; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--frost); color: var(--slate-700);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3.75rem, 7vw, 5.5rem);
}
.page-hero.is-compact { padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(3.25rem, 6vw, 4.5rem); }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.page-hero.is-compact .page-hero-grid { grid-template-columns: 1fr; }
.page-hero-copy { animation: rise 0.7s var(--ease) both; }
.page-hero h1 { color: var(--navy-900); max-width: 19ch; margin-bottom: 0.4em; font-size: clamp(2.1rem, 4.4vw, 3.2rem); letter-spacing: -0.02em; line-height: 1.06; }
.page-hero-copy p { max-width: 54ch; font-size: 1.1rem; color: var(--slate-700); margin: 0; }
.page-hero .record { transform: rotate(-1deg); }
.page-hero .record-wrap { max-width: 400px; }

.hero-steps { list-style: none; counter-reset: hs; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 1.75rem 0 0; padding: 0; }
.hero-steps li { counter-increment: hs; display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--navy-800); }
.hero-steps li::before { content: counter(hs); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; font: 700 0.85rem var(--font-head); color: #fff; background: var(--navy-800); border-radius: 50%; }

/* route sheet (logistics) */
.route { list-style: none; margin: 0; padding: 0; }
.route li { position: relative; padding: 0 0 1.15rem 1.9rem; }
.route li:last-child { padding-bottom: 0; }
.route li::before { content: ""; position: absolute; left: 0.1rem; top: 0.3rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #fff; border: 2px solid var(--navy-800); }
.route li::after { content: ""; position: absolute; left: 0.45rem; top: 1.25rem; bottom: -0.05rem; width: 2px; background: var(--line); }
.route li:last-child::after { display: none; }
.route li:last-child::before { background: var(--success); border-color: var(--success); }
.route time { display: block; font-size: 0.82rem; font-weight: 700; color: var(--slate-500); font-variant-numeric: tabular-nums; }
.route strong { display: block; color: var(--navy-800); line-height: 1.3; }
.route span { font-size: 0.85rem; color: var(--slate-500); }

/* manual contents (about) */
.toc { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.toc li:last-child { border-bottom: 0; }
.toc a { display: grid; grid-template-columns: 1.9rem 1fr; gap: 0.5rem; align-items: baseline; padding: 0.75rem 0; text-decoration: none; color: var(--navy-800); }
.toc a::before { content: counter(toc); font: 800 1.15rem var(--font-head); color: var(--teal-600); }
.toc strong { display: block; line-height: 1.3; }
.toc small { color: var(--slate-500); font-size: 0.82rem; }
.toc a:hover strong { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }

/* live quote list (catalog) */
.qslip-count { margin: 0; font: 800 2.6rem/1 var(--font-head); letter-spacing: -0.03em; color: var(--navy-900); }
.qslip-count small { margin-left: 0.5rem; font: 500 0.95rem var(--font-body); letter-spacing: 0; color: var(--slate-500); }
.qslip-items { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.qslip-items li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.5rem; border-bottom: 1px dashed var(--line); }
.qslip-items li span:first-child { color: var(--navy-800); font-weight: 500; }
.qslip-items li span:last-child { color: var(--slate-500); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qslip-more { margin: -0.25rem 0 1rem; font-size: 0.85rem; color: var(--slate-500); }
.qslip-empty { margin: 0 0 1.1rem; color: var(--slate-500); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 0.95rem 1.1rem; text-align: left; vertical-align: top; }
.data-table thead th { background: var(--navy-800); color: #fff; font-weight: 600; font-size: 0.9rem; }
.data-table tbody tr { border-top: 1px solid var(--line); transition: background-color 0.15s; }
.data-table tbody tr:hover { background: var(--teal-50); }
.data-table tbody th { font-weight: 600; color: var(--navy-800); }
/* temperature class rows on the logistics page pick up their colour */
.data-table tbody tr:nth-child(1) th { box-shadow: inset 5px 0 0 var(--frozen); }
.data-table tbody tr:nth-child(2) th { box-shadow: inset 5px 0 0 var(--fridge); }
.data-table tbody tr:nth-child(3) th { box-shadow: inset 5px 0 0 var(--crt); }
.data-table:not(.quote-table) td:nth-child(2) { white-space: nowrap; }

/* ---------- Steps (a real sequence) ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; position: relative; }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; z-index: 1;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #fff;
  background: var(--navy-800); border-radius: 50%; box-shadow: 0 0 0 5px var(--paper);
}
.steps li::after { content: ""; position: absolute; top: 1.2rem; left: 2.5rem; right: -1.25rem; height: 2px; background: linear-gradient(90deg, var(--frozen), var(--fridge) 55%, var(--crt)); opacity: 0.7; }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--teal-600); }
.steps strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--navy-800); margin-bottom: 0.25rem; }
.steps span { font-size: 0.92rem; color: var(--slate-500); display: block; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--navy-800); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
  color: var(--teal-700); background: var(--teal-50); border-radius: 50%; transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--teal-600); color: #fff; }
.faq summary:hover { color: var(--teal-700); }
.faq p { margin: 0.75rem 0 0; max-width: 66ch; }
.faq details[open] p { animation: fade 0.3s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #d9f0f2; padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--teal-700);
}
.cta-band::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; opacity: 0.35; pointer-events: none;
  background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 12px);
}
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin: 0 0 0.3rem; }
.cta-band p { margin: 0; max-width: 54ch; }

/* ---------- Catalog ---------- */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.5rem 1rem; font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer;
  background: var(--white); color: var(--navy-800); border: 1px solid var(--line); border-radius: 999px;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.chip:hover { border-color: var(--teal-600); color: var(--teal-700); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.chip .n { margin-left: 0.45rem; opacity: 0.6; font-weight: 500; }
.search { min-width: min(100%, 300px); }
.result-count { color: var(--slate-500); font-size: 0.92rem; margin-bottom: 1.25rem; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.6rem; }
.product-card {
  --tint: var(--teal-50); --tint-ink: var(--teal-700);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s;
}
.product-grid.is-entering .product-card { animation: fade 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--tint-ink); }
.product-card[data-cat="Surgical Instruments"], .category-card[data-cat="Surgical Instruments"] { --tint: #e7edf8; --tint-ink: #33518a; }
.product-card[data-cat="Compounding Tools"], .category-card[data-cat="Compounding Tools"] { --tint: #eeeafb; --tint-ink: #5b47a8; }
.product-card[data-cat="Diagnostic Devices"], .category-card[data-cat="Diagnostic Devices"] { --tint: #fdebee; --tint-ink: #b3344c; }
.product-card[data-cat="Laboratory Instruments"], .category-card[data-cat="Laboratory Instruments"] { --tint: #e0f3f1; --tint-ink: #0b7a85; }
.product-card[data-cat="Cold-Chain Storage"], .category-card[data-cat="Cold-Chain Storage"] { --tint: #e4ecfd; --tint-ink: #3450c8; }
.product-card[data-cat="Sterile Consumables"], .category-card[data-cat="Sterile Consumables"] { --tint: #e4f4ea; --tint-ink: #1f7a4d; }
.product-card[data-cat="PPE and Infection Prevention"], .category-card[data-cat="PPE and Infection Prevention"] { --tint: #fdf0da; --tint-ink: #a8670a; }
.product-card[data-cat="Pharmaceuticals"], .category-card[data-cat="Pharmaceuticals"] { --tint: #f3e8f6; --tint-ink: #8a3f9c; }

.product-media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--tint-ink);
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--tint-ink) 20%, transparent) 1px, transparent 0) 0 0 / 14px 14px,
    linear-gradient(160deg, var(--tint), color-mix(in srgb, var(--tint) 65%, #fff));
  border-bottom: 1px solid var(--line);
}
/* big faded icon behind, cropped by the frame: gives the placeholder depth */
.media-watermark { position: absolute; right: -16%; bottom: -26%; width: 82%; opacity: 0.13; transform: rotate(-14deg); transition: transform 0.7s var(--ease); }
.media-watermark svg { width: 100%; height: auto; stroke-width: 0.9; }
.media-icon {
  position: relative; display: grid; place-items: center; width: 88px; height: 88px;
  background: #fff; border-radius: 26px;
  box-shadow: 0 16px 28px -14px color-mix(in srgb, var(--tint-ink) 70%, transparent), 0 0 0 1px color-mix(in srgb, var(--tint-ink) 10%, transparent);
  transition: transform 0.45s var(--ease);
}
.media-icon svg { width: 46px; height: 46px; }
.product-media img { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  padding: 2rem;
  mix-blend-mode: multiply;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease); 
}
.product-card:hover .product-media img { 
  transform: scale(1.08); 
  filter: contrast(1.05) brightness(1.02);
}
.product-card:hover .media-icon { transform: translateY(-5px) rotate(-4deg); }
.product-card:hover .media-watermark { transform: rotate(-7deg) scale(1.07); }

.product-cat { position: absolute; top: 0.8rem; left: 0.8rem; z-index: 1; max-width: calc(100% - 1.6rem); padding: 0.22rem 0.7rem; font-size: 0.75rem; font-weight: 700; color: var(--tint-ink); background: rgba(255, 255, 255, 0.92); border-radius: 999px; }
.storage-tag {
  position: absolute; bottom: 0.8rem; left: 0.8rem; z-index: 1; padding: 0.22rem 0.7rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; background: #fff; color: var(--slate-500); font-variant-numeric: tabular-nums;
}
.storage-tag[data-class="fridge"] { background: var(--fridge); color: #04211f; }
.storage-tag[data-class="crt"] { background: var(--crt); color: #3a2400; }

/* added-to-quote feedback */
.product-card.is-in-quote { border-color: var(--teal-600); box-shadow: 0 0 0 1px var(--teal-600), var(--shadow-md); }
.product-card.is-in-quote .product-media::after {
  content: "\2713  In quote list"; position: absolute; right: 0.8rem; bottom: 0.8rem; z-index: 1;
  padding: 0.22rem 0.7rem; font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--teal-600); border-radius: 999px;
  animation: pop 0.35s var(--ease);
}
@keyframes pop { from { transform: scale(0.7); opacity: 0; } }

.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.25rem; }
.product-body h3 { font-size: 1.08rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; margin-bottom: 0.45rem; }
.product-body p { font-size: 0.92rem; color: var(--slate-500); flex: 1; }
.product-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0 0 1rem; padding-top: 0.85rem; border-top: 1px dashed var(--line); font-size: 0.82rem; }
.product-meta dt { color: var(--slate-500); }
.product-meta dd { margin: 0; font-weight: 600; color: var(--navy-800); }
.btn-add { background: var(--navy-800); color: #fff; width: 100%; padding: 0.65rem 0.75rem; white-space: nowrap; font-size: 0.95rem; }
.btn-add:hover { background: var(--teal-600); }
.btn-add.is-added { background: var(--teal-50); color: var(--teal-700); border-color: var(--teal-600); }
.btn-add.is-added::before { content: "\2713"; font-weight: 700; }
.btn-add.is-added:hover { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-add.is-added:hover::before { content: "\00d7"; }
.empty-state { padding: 2.5rem 1.75rem; background: var(--paper); border: 2px dashed var(--line); border-radius: var(--r-lg); }
.empty-state h3 { margin-bottom: 0.3rem; }

/* ---------- Standards (pillars) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { padding: 0.25rem 1.75rem 0.25rem 1.75rem; border-left: 1px solid var(--line); }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.1rem; color: var(--teal-700); background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 14px; transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease); }
.pillar-icon svg { width: 1.6rem; height: 1.6rem; }
.pillar:hover .pillar-icon { background: var(--teal-600); color: #fff; transform: rotate(-6deg); }
.pillar h3 { margin-bottom: 0.4rem; }
.pillar p { font-size: 0.95rem; color: var(--slate-500); margin: 0; }

/* ---------- Category cards ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.category-card {
  --tint: var(--teal-50); --tint-ink: var(--teal-700);
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--slate-700);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--tint-ink); color: var(--slate-700); }
.category-media {
  display: grid; place-items: center; height: 96px; color: var(--tint-ink);
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--tint-ink) 22%, transparent) 1px, transparent 0) 0 0 / 14px 14px, var(--tint);
}
.category-media svg { width: 52px; height: 52px; padding: 12px; background: #fff; border-radius: 50%; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--tint-ink) 70%, transparent); transition: transform 0.4s var(--ease); }
.category-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.category-card:hover .category-media svg { transform: scale(1.1) rotate(-6deg); }
.category-card:hover .category-media img { transform: scale(1.05); }
.category-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.category-body h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.category-body p { font-size: 0.9rem; color: var(--slate-500); flex: 1; margin-bottom: 0.9rem; }
.category-go { font-size: 0.88rem; font-weight: 600; color: var(--tint-ink); }
.category-card:hover .category-go { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy-900); color: #b3c6d9; padding: clamp(2.25rem, 5vw, 3.25rem) 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 0; }
.stat { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 1rem; border-top: 3px solid var(--fridge); }
.stat[data-tone="frozen"] { border-top-color: var(--frozen); }
.stat[data-tone="crt"] { border-top-color: var(--crt); }
.stat dt { font-size: 0.95rem; }
.stat-num { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--navy-800); margin-bottom: 0.3rem; }
.field .hint { display: block; font-weight: 400; font-size: 0.85rem; color: var(--slate-500); }
input[type="text"], input[type="email"], input[type="search"], input[type="number"] {
  width: 100%; padding: 0.75rem 0.95rem; font: inherit; color: var(--navy-800);
  background: var(--white); border: 1px solid #b8c6d5; border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="search"] { border-radius: 999px; padding-inline: 1.15rem; }
input:hover { border-color: var(--teal-600); }
input:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px var(--teal-100); }
input:user-invalid { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0.9rem 0 0; font-weight: 500; min-height: 1.5em; }
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--success); }
.fineprint { font-size: 0.85rem; color: var(--slate-500); }

/* ---------- Quote page ---------- */
.quote-layout { display: grid; grid-template-columns: 1.65fr 1fr; gap: 2rem; align-items: start; }
.quote-side { position: sticky; top: calc(var(--header-h) + 1rem); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.quote-side .panel { border-top: 4px solid var(--teal-600); box-shadow: var(--shadow-md); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2 { margin: 0; font-size: 1.5rem; }
.quote-table td .sku { display: block; font-size: 0.82rem; color: var(--slate-500); }
.quote-table input.qty { width: 5.5rem; padding: 0.45rem 0.6rem; }
.quote-table tbody tr { animation: fade 0.35s var(--ease) both; }
.link-danger { background: none; border: 0; padding: 0.25rem; font: inherit; color: var(--slate-500); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-danger:hover { color: var(--danger); }
.quote-summary { margin: 1rem 0 0; font-weight: 600; color: var(--navy-800); }
.success-panel { max-width: 640px; border-left: 5px solid var(--success); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb3c8; padding: 4rem 0 1.5rem; border-top: 4px solid; border-image: linear-gradient(90deg, var(--frozen), var(--fridge) 55%, var(--crt)) 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0; color: #fff; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: #9fb3c8; text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.footer-brand .brand-mark { width: 38px; height: 38px; }
.footer-brand .brand-mark:hover { transform: none; }
.footer-bottom { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--navy-800); color: #fff; padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 500;
  box-shadow: var(--shadow-md); transition: opacity 0.25s, transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 1.5rem 5vw;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    z-index: 100;
  }
  .primary-nav.is-open { display: flex; animation: slideDown 0.3s var(--ease); }
  .primary-nav ul { flex-direction: column; width: 100%; }
  .nav-link { border-radius: var(--r-sm); padding: 0.8rem 1rem; font-size: 1.1rem; }
  .primary-nav .btn { justify-content: center; padding: 0.8rem; font-size: 1.05rem; }
  
  .record { transform: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .pillar:nth-child(odd) { padding-left: 0; border-left: 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .page-hero-grid, .split, .quote-layout { grid-template-columns: 1fr; }
  .page-hero .record-wrap { max-width: 430px; justify-self: start; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .steps li::after { display: none; }
  .quote-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 720px) {
  body { font-size: 0.95rem; }
  h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .pillars, .category-grid { grid-template-columns: 1fr; }
  .pillar { padding-left: 0; border-left: 0; }
  .grid-2, .grid-3, .grid-4, .steps, .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner span:last-child { display: none; }
  .facts div { grid-template-columns: 1fr; gap: 0.25rem; }
  .btn-row .btn { flex: 1 1 100%; }

  .quote-table thead { position: absolute; left: -9999px; }
  .quote-table, .quote-table tbody, .quote-table tr, .quote-table td { display: block; width: 100%; }
  .quote-table tr { padding: 1rem; border-top: 1px solid var(--line); margin-bottom: 0.5rem; background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
  .quote-table td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0; border: none; }
  .quote-table td::before { content: attr(data-label); font-size: 0.85rem; font-weight: 600; color: var(--slate-500); }
  .quote-table td[data-label=""]::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4, 17, 31, 0.85);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-img {
  max-width: 100%; max-height: 90vh;
  object-fit: contain;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease);
}
.lightbox.is-open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: -1rem; right: -1rem;
  width: 2.5rem; height: 2.5rem;
  background: #fff; color: var(--navy-800);
  border: none; border-radius: 50%;
  font-size: 1.5rem; font-weight: bold; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: transform 0.2s, color 0.2s;
}
.lightbox-close:hover { transform: scale(1.1); color: var(--danger); }

