/* Layout: single column, full-width bands, cold-chain scale as the recurring motif */
:root {
  --ice: #f4f5fb;
  --paper: #ffffff;
  --ink: #161a4a;
  --muted: #4d5372;
  --line: #dadcea;
  --frost: #e3e5f6;
  --deep: #2e3192;
  --signal: #d8106f;
  --on-deep: #eaf3f9;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ice: #0e1024; --paper: #161935; --ink: #e9eaf7; --muted: #a8acc9;
    --line: #2b2f57; --frost: #232765; --deep: #1f226b; --signal: #ff5aa5; --on-deep: #e6eef4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ice: #0e1024; --paper: #161935; --ink: #e9eaf7; --muted: #a8acc9;
  --line: #2b2f57; --frost: #232765; --deep: #1f226b; --signal: #ff5aa5; --on-deep: #e6eef4;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ice); color: var(--ink);
  font: 16px/1.6 var(--body);
}
a { color: inherit; }
img { max-width: 100%; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; text-wrap: balance; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
p { margin: 0; max-width: 65ch; }
.eyebrow {
  font: 600 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--signal);
}
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

/* Header: stays white in both themes so the full-color logo reads */
.top { background: #ffffff; color: #161a4a; }
.top::after { content: ""; display: block; height: 4px; background: linear-gradient(90deg, #2e3192, #8b2fc9, #eb107c, #f15a24, #f7c51e, #d4da3c, #009f55, #00a3e0); }
.top .btn.ghost { color: #161a4a; border-color: #161a4a; }
.logo { display: block; height: 46px; width: auto; }
.top .contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.phone { font: 600 1rem/1 var(--mono); text-decoration: none; white-space: nowrap; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand b { font: 700 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.brand span { font: .78rem/1 var(--mono); color: var(--muted); }
.btn {
  display: inline-block; font: 600 1rem/1 var(--body); text-decoration: none; border-radius: 3px;
  padding: 14px 20px; border: 2px solid var(--signal); background: var(--signal); color: #fff; cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }

/* Hero */
.hero { background: var(--paper); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 56px 64px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy p { font-size: 1.15rem; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero product photo */
.hero-photo { margin: 0; min-width: 0; position: relative; }
/* Clickable area over the SpectraGraphics logo printed on the label photo */
.photo-logo-link { position: absolute; left: 40%; top: 14%; width: 19%; height: 25%; border-radius: 8px; }
.photo-logo-link:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 24px 40px -24px rgba(22,26,74,.55); }

/* Label mockup on a frosted tub (unused) */
.tub {
  position: relative; aspect-ratio: 4 / 4.4; max-width: 100%; border-radius: 22px 22px 34px 34px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 14%, rgba(255,255,255,.8) 0 1.5px, transparent 3px),
    radial-gradient(circle at 84% 70%, rgba(255,255,255,.8) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 86%, rgba(255,255,255,.7) 0 1.5px, transparent 3px),
    linear-gradient(160deg, #cfe3ef, #a9c8db);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.35), 0 24px 40px -24px rgba(11,58,91,.5);
  display: grid; place-items: center; padding: 12%;
}
.label {
  width: 100%; background: #fff; color: #0f2233; border-radius: 6px; padding: 20px 20px 16px;
  box-shadow: 0 2px 0 rgba(15,34,51,.08); display: grid; gap: 10px; transform: rotate(-2deg);
}
.label .lt { font: 700 1.9rem/1 var(--display); text-transform: uppercase; }
.label .ls { font: .82rem/1.4 var(--body); color: #4c6274; }
.label .lrow { display: flex; justify-content: space-between; gap: 8px; border-top: 1px dashed #b9c9d4; padding-top: 10px; font: .72rem/1.3 var(--mono); }
.label .bars { height: 34px; background: repeating-linear-gradient(90deg, #0f2233 0 2px, transparent 2px 4px, #0f2233 4px 5px, transparent 5px 8px, #0f2233 8px 11px, transparent 11px 13px); }

/* Temperature range chart: -320°F to 200°F, positions are percent of 520°F */
.range { display: grid; gap: 14px; }
.track { position: relative; height: 26px; }
.track .bar { position: absolute; top: 0; bottom: 0; border-radius: 3px; display: flex; align-items: center; padding: 0 10px; font: 600 .74rem/1 var(--mono); color: #fff; white-space: nowrap; overflow: hidden; }
.track .bar.cryo { left: 0%; width: 98.85%; background: #8fd3f4; color: #161a4a; }
.track .bar.hm { left: 51.92%; width: 37.5%; background: #ffffff; color: #161a4a; }
.rlabel { font: 600 .82rem/1.3 var(--body); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rlabel span { opacity: .8; font-weight: 400; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.axis { position: relative; height: 34px; border-top: 1px solid rgba(255,255,255,.4); }
.axis span { position: absolute; top: 6px; transform: translateX(-50%); font: .72rem/1.25 var(--mono); text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.axis span::before { content: ""; position: absolute; top: -10px; left: 50%; width: 1px; height: 6px; background: currentColor; }
.axis span:first-child { transform: none; text-align: left; }
.axis span:first-child::before { left: 0; }
.axis span:last-child { transform: translateX(-100%); text-align: right; }
.axis span:last-child::before { left: auto; right: 0; }

/* Construction spec table */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); border-radius: 4px; }
table.spec { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec thead th { font: 700 1.25rem/1.1 var(--display); text-transform: uppercase; background: var(--frost); }
.spec thead th:first-child { font: 600 .74rem/1 var(--mono); letter-spacing: .1em; vertical-align: bottom; }
.spec tbody th { font: 600 .74rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); width: 22%; }
.spec td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 14px; max-width: 90ch; }

/* Temperature scale band */
.scale { background: var(--deep); color: var(--on-deep); }
.scale .wrap { padding-block: 40px; display: grid; gap: 22px; }
.scale h2 { color: var(--on-deep); }
.scale-bar { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #7fc2e8, #cde9f7 62%, #f2c9b4 82%, #e2552b); }
.ticks { display: flex; justify-content: space-between; font: .75rem/1.2 var(--mono); font-variant-numeric: tabular-nums; gap: 6px; }
.ticks span { white-space: nowrap; }
.scale small { font: .8rem/1.4 var(--body); opacity: .85; }

/* Sections */
section.band { padding-block: 72px; }
section.band.alt { background: var(--paper); }
.head { display: grid; gap: 12px; margin-bottom: 36px; }
.head p { color: var(--muted); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.grid4 > div { padding: 22px 22px 0 0; display: grid; gap: 8px; align-content: start; }
.grid4 > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.grid4 p { color: var(--muted); font-size: .95rem; }
.grid4 .code { font: 600 .74rem/1 var(--mono); color: var(--signal); letter-spacing: .08em; }

.build { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.part { background: var(--ice); border: 1px solid var(--line); border-radius: 4px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.part .k { font: 600 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.part p { color: var(--muted); }

.markets { display: flex; flex-wrap: wrap; gap: 10px; }
.markets span { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 16px; font-weight: 500; }

.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--paper); }
.checklist > div { padding: 22px; display: grid; gap: 6px; border-bottom: 1px solid var(--line); }
.checklist > div:nth-child(odd) { border-right: 1px solid var(--line); }
.checklist > div:nth-last-child(-n+2) { border-bottom: 0; }
.checklist .q { font: 600 .74rem/1 var(--mono); color: var(--signal); }
.checklist p { color: var(--muted); font-size: .95rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--line); }
.steps li::before { content: "Step " counter(s); font: 600 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--signal); }
.steps p { color: var(--muted); font-size: .95rem; }

/* Form */
.quote { background: var(--deep); color: var(--on-deep); }
.quote .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; padding-block: 72px; }
.quote .head p { color: var(--on-deep); opacity: .85; }
.quote aside { display: grid; gap: 18px; align-content: start; min-width: 0; }
.quote aside ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; opacity: .9; }
form { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.f { display: grid; gap: 6px; min-width: 0; }
.f.full { grid-column: 1 / -1; }
label { font: 600 .85rem/1.2 var(--body); }
input, select, textarea {
  font: 1rem/1.4 var(--body); color: var(--ink); background: var(--ice);
  border: 1px solid var(--line); border-radius: 3px; padding: 11px 12px; width: 100%; min-width: 0;
}
textarea { min-height: 110px; resize: vertical; }
.note { font-size: .82rem; color: var(--muted); }
.formmsg { grid-column: 1 / -1; padding: 12px 14px; border-radius: 3px; background: var(--frost); font-weight: 500; }

/* Footer */
footer { background: var(--paper); border-top: 1px solid var(--line); }
footer .wrap { padding-block: 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
footer b { color: var(--ink); }

/* Simple pages (thank-you, 404) */
.simple { min-height: 60vh; display: grid; align-items: center; }
.simple .wrap { padding-block: 80px; display: grid; gap: 20px; }

@media (max-width: 900px) {
  .hero .wrap, .quote .wrap { grid-template-columns: 1fr; gap: 36px; }
  .tub { max-width: 380px; }
  .hero-photo { max-width: 560px; }
  .grid4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .grid4 > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .logo { height: 38px; }
  .top .btn { display: none; }
  .axis span.opt { display: none; }
  .grid4, .steps, .build, .checklist, form { grid-template-columns: 1fr; }
  .grid4 > div, .grid4 > div + div { padding-left: 0; border-left: 0; padding-right: 0; }
  .checklist > div:nth-child(odd) { border-right: 0; }
  .checklist > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .ticks span:nth-child(even) { display: none; }
  section.band { padding-block: 56px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
