/* OncoFix — product page.

   Clinical rather than corporate: a lot of white, a deep navy that reads as
   hospital signage, and one clay-red used only where the product itself
   would use it — to say "this one needs a second look". Nothing on this
   page is allowed to look like a diagnosis, so the red never appears
   beside a number and never appears alone. */

:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #e2e7ef;
  --line-hi: #cdd5e1;
  --ink: #101a2c;
  --mid: #4d5a70;
  --soft: #8593a8;
  --navy: #13396b;
  --navy-tint: #e9f0fa;
  --flag: #c0463c;
  --flag-tint: #fceeed;
  --ok: #1d7a5f;
  --wrap: 70rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.021em;
  font-weight: 700;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  margin: 0;
  font-family: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ── header ───────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 251, 0.9);
  backdrop-filter: blur(10px);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark i {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--navy);
}

.mark i::before,
.mark i::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 1px;
}

.mark i::before {
  top: 6px;
  left: 11px;
  width: 2px;
  height: 12px;
}

.mark i::after {
  top: 11px;
  left: 6px;
  width: 12px;
  height: 2px;
}

.top nav {
  display: none;
  gap: 4px;
  margin-left: 12px;
}

.top nav a {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--mid);
  text-decoration: none;
}

.top nav a:hover {
  background: var(--navy-tint);
  color: var(--navy);
}

@media (min-width: 880px) {
  .top nav {
    display: flex;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 5px 11px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: var(--card);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mid);
}

.chip b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

/* ── hero ─────────────────────────────────────────────── */
.hero {
  padding: 86px 0 66px;
}

.hero h1 {
  max-width: 18ch;
  margin-top: 18px;
  font-size: clamp(2.25rem, 5.4vw, 3.7rem);
}

.lede {
  max-width: 62ch;
  margin-top: 20px;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--mid);
}

/* ── sections ─────────────────────────────────────────── */
section {
  padding: 66px 0;
  border-top: 1px solid var(--line);
}

.h2 {
  max-width: 24ch;
  margin-top: 14px;
  font-size: clamp(1.58rem, 3.1vw, 2.2rem);
}

.sub {
  max-width: 66ch;
  margin-top: 16px;
  color: var(--mid);
}

.sub + .sub {
  margin-top: 14px;
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 38px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.card h3 {
  font-size: 16.5px;
}

.card p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--mid);
}

.card .eyebrow {
  margin-bottom: 12px;
  font-size: 10.5px;
  color: var(--soft);
}

/* ── the visit, step by step ──────────────────────────── */
.steps {
  counter-reset: step;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 20px 0 20px 62px;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 20px;
  left: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--navy-tint);
  color: var(--navy);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12.5px;
  font-weight: 600;
}

.steps b {
  font-size: 16px;
}

.steps p {
  margin-top: 5px;
  font-size: 14.5px;
  color: var(--mid);
}

/* ── the honest box ───────────────────────────────────── */
.limits {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--flag);
  border-left-width: 4px;
  border-radius: 14px;
  background: var(--flag-tint);
}

.limits h3 {
  font-size: 17px;
  color: var(--flag);
}

.limits p {
  margin-top: 10px;
  font-size: 15px;
  color: #6c3b36;
  max-width: 62ch;
}

.limits ul {
  margin: 14px 0 0;
  padding-left: 20px;
  font-size: 14.5px;
  color: #6c3b36;
}

.limits li {
  margin-top: 7px;
}

/* ── fleet table ──────────────────────────────────────── */
.rows {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.rows li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.rows b {
  flex: 0 0 clamp(11rem, 26vw, 15rem);
  font-size: 15px;
}

.rows span {
  flex: 1;
  min-width: 250px;
  font-size: 14.5px;
  color: var(--mid);
}

/* ── close ────────────────────────────────────────────── */
.close {
  padding: 74px 0 82px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--navy);
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  opacity: 0.92;
}

.btn:active {
  transform: scale(0.985);
}

.btn.ghost {
  border-color: var(--line-hi);
  background: var(--card);
  color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

footer {
  padding: 24px 0 44px;
  border-top: 1px solid var(--line);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  color: var(--soft);
}

footer .wrap span:last-child {
  margin-left: auto;
}

/* ── motion ───────────────────────────────────────────── */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s cubic-bezier(0.22, 0.68, 0.3, 1) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rise {
    animation: none;
    opacity: 1;
    transform: none;
  }
  * {
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════════════
   Scroll choreography and the hero visual
   ══════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.62s cubic-bezier(0.22, 0.68, 0.3, 1),
    transform 0.62s cubic-bezier(0.22, 0.68, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.hero-wrap {
  display: grid;
  gap: 46px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-wrap {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 54px;
  }
}

/* The screening station. A capture frame with a sweep passing over it,
   the reading beside it, and — deliberately — the words "for review",
   never a result. The page is not allowed to look like a diagnosis and
   neither is its picture. */
.station {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 34px 80px -50px rgba(16, 26, 44, 0.5);
  overflow: hidden;
}

.station::before {
  content: '';
  position: absolute;
  inset: -18% -12% auto;
  height: 60%;
  z-index: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(19, 57, 107, 0.1), transparent 70%);
}

.station-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--soft);
}

.station-head em {
  margin-left: auto;
  font-style: normal;
  color: var(--ok);
}

.capture {
  position: relative;
  height: 210px;
  background: linear-gradient(160deg, #eef2f8 0%, #e4eaf3 60%, #eef2f8 100%);
  overflow: hidden;
}

/* the four corner brackets of a capture frame */
.capture .frame {
  position: absolute;
  inset: 30px 46px;
}

.capture .frame span {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--navy);
  opacity: 0.55;
}

.capture .frame span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.capture .frame span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.capture .frame span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.capture .frame span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

/* the sweep: one transformed element, nothing repainted */
.capture .sweep {
  position: absolute;
  left: 46px;
  right: 46px;
  top: 30px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--navy), transparent);
  box-shadow: 0 0 14px rgba(19, 57, 107, 0.45);
  animation: sweep 3.4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes sweep {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(150px); opacity: 0; }
}

/* the region the assessment is pointing at */
.capture .spot {
  position: absolute;
  top: 96px;
  left: 44%;
  width: 44px;
  height: 34px;
  border: 2px solid var(--flag);
  border-radius: 50%;
  opacity: 0;
  animation: spot 3.4s ease-out infinite;
}

@keyframes spot {
  0%, 55% { opacity: 0; transform: scale(0.86); }
  70% { opacity: 1; transform: scale(1); }
  96% { opacity: 1; }
  100% { opacity: 0; }
}

.readout {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.readout div {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.readout div:last-child {
  border-right: 0;
}

.readout b {
  display: block;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.readout span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--soft);
}

.verdict {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  background: var(--flag-tint);
  font-size: 14px;
  color: #6c3b36;
}

.verdict b {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--flag);
  color: #fff;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* ── card artwork ─────────────────────────────────────── */
.art {
  display: block;
  width: 100%;
  height: 56px;
  margin-bottom: 16px;
}

.art .ln {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art .ln.dim {
  stroke: var(--line-hi);
}

[data-reveal] .art .trace {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
}

[data-reveal].is-in .art .trace {
  animation: trace 1.5s 0.2s cubic-bezier(0.3, 0.7, 0.3, 1) forwards;
}

@keyframes trace {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .capture .sweep,
  .capture .spot,
  [data-reveal].is-in .art .trace {
    animation: none;
  }
  .capture .sweep { opacity: 0.5; transform: translateY(78px); }
  .capture .spot { opacity: 1; }
  [data-reveal] .art .trace { stroke-dashoffset: 0; }
}
