/* Axon Tech home: the nerve, the phone, the five steps. */
html, body { overflow-x: clip; }

.kicker { font-size: var(--t-lead); color: var(--ink-2); font-weight: 500; letter-spacing: -0.005em; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.platforms { color: var(--ink-2); font-size: var(--t-small); }

/* ── 1. Hero ────────────────────────────────────────────── */
.hero {
  max-width: var(--page); margin: 0 auto;
  padding: clamp(28px, 5vh, 64px) var(--gutter) var(--s-8);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto; /* the stage is as wide as the phone, so it closes the page edge like the header button */
  grid-template-areas: "copy stage" "nerve stage";
  column-gap: var(--s-7);
  align-items: end;
}
.hero-copy { grid-area: copy; align-self: center; }
.hero h1 {
  margin-top: var(--s-4);
  font-size: max(2.5rem, min(clamp(2.75rem, 1.15rem + 4.1vw, 5.25rem), 8.4vh));
  line-height: 0.99; overflow-wrap: anywhere; letter-spacing: -0.045em; font-weight: 640;
  max-width: 14ch;
}
.hero .lead { margin-top: var(--s-5); }
.hero .actions { margin-top: clamp(var(--s-5), 4vh, var(--s-6)); }

/* The nerve: an axon with myelin, nodes under each step. */
.nerve { grid-area: nerve; position: relative; margin-top: clamp(var(--s-6), 6vh, var(--s-7)); margin-right: calc(-1 * var(--s-7)); }
.nerve::before { /* the axon, from the page's left edge into the phone */
  content: ""; position: absolute; top: 12px; left: -50vw; right: 0; height: 1.5px; background: var(--ink);
}
.nerve ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.nerve li {
  position: relative; text-align: center; padding-top: 36px;
  font-size: var(--t-small); color: var(--ink-2); font-weight: 500;
  transition: color .3s var(--ease-out);
}
.nerve li::before { /* node of Ranvier */
  content: ""; position: absolute; top: 7px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px;
  border-radius: 50%; background: var(--ground); border: 1.5px solid var(--ink);
}
.nerve li::after { /* myelin sheath to the next node */
  content: ""; position: absolute; top: 2px; left: calc(50% + 12px); width: calc(100% - 24px); height: 22px;
  border-radius: 999px; background: var(--sheath); border: 1px solid var(--myelin-edge);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px oklch(80% 0.03 60 / .35), 0 1px 2px oklch(40% 0.03 60 / .08);
}
.nerve li:last-child::after { width: calc(50% - 12px + var(--s-7)); }
.nerve ol::before { /* the sheath coming in from the left */
  content: ""; position: absolute; top: 2px; right: calc(90% + 12px); width: 40vw; height: 22px;
  border-radius: 999px; background: var(--sheath); border: 1px solid var(--myelin-edge);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px oklch(80% 0.03 60 / .35);
}
.nerve { --sheath: linear-gradient(#fcf7f2, #efe1d5 60%, #e4cfbf); --myelin-edge: #d6bfae; }
.nerve li.on::before { background: var(--impulse); border-color: var(--impulse); transition: background .25s, border-color .25s; }
.nerve li.on { color: var(--ink); font-weight: 620; }
.spark {
  position: absolute; top: 4px; left: 0; width: 17px; height: 17px; margin-left: -8.5px; border-radius: 50%;
  background: var(--impulse);
  box-shadow: 0 0 0 5px color-mix(in oklch, var(--impulse) 18%, transparent);
  transform: translateX(var(--x, 0px));
  left: 90%; /* resting at the signed PAC (no JS, reduced motion) */
}
.spark.live { left: 0; transition: transform .45s var(--leap); }
.spark::before { /* the trail left on the axon as it leaps */
  content: ""; position: absolute; right: 50%; top: 50%; height: 3px; width: 120px; margin-top: -1.5px; border-radius: 3px;
  background: linear-gradient(to right, transparent, color-mix(in oklch, var(--impulse) 60%, transparent));
  opacity: 0; transition: opacity .4s ease-out;
}
.spark.leaping::before { opacity: 1; transition: none; }

/* The phone */
.stage { grid-area: stage; display: grid; justify-items: start; perspective: 1800px; align-self: center; }
.phone {
  width: 312px; aspect-ratio: 312 / 648; border-radius: var(--r-phone); padding: 10px;
  background: linear-gradient(145deg, oklch(30% 0.01 250), oklch(14% 0.01 250));
  box-shadow:
    inset 0 0 0 1.5px oklch(42% 0.01 250),
    0 2px 4px oklch(20% 0.02 250 / .12),
    30px 50px 90px -30px oklch(25% 0.03 250 / .42);
  transform: rotateY(-14deg) rotateX(6deg);
  transform-style: preserve-3d;
  will-change: transform;
}
.glass { position: relative; width: 100%; height: 100%; border-radius: calc(var(--r-phone) - 10px); background: #f4fafa; overflow: hidden; }
.island { position: absolute; top: 11px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 999px; background: #0b0c0d; z-index: 3; }
.screen {
  position: absolute; inset: 0; padding: 54px 16px 16px; color: #191c1c;
  opacity: 0; transform: translateX(-24px);
  transition: opacity .24s var(--ease-out), transform .24s var(--ease-out);
  pointer-events: none;
}
.screen.on { opacity: 1; transform: none; }

/* PAC's own UI language (Material 3 Expressive), for the phone and the step fragments */
.s-over { color: var(--pac); font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.s-title { font-size: 23px; font-weight: 600; letter-spacing: -0.015em; margin-top: 2px; line-height: 1.2; }
.s-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: #dde3ff; color: #1d2a6b; font-size: 12px; font-weight: 600; }
.s-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.slot { margin-top: 14px; background: var(--pac-c); border-radius: 26px; padding: 16px 16px 14px; color: var(--pac-ink); }
.slot-top { display: flex; gap: 12px; align-items: flex-start; }
.time { font-size: 44px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.when { white-space: nowrap; font-size: 11.5px; line-height: 1.35; padding-top: 2px; color: color-mix(in oklch, var(--pac-ink) 80%, transparent); }
.proc { font-size: 17px; line-height: 1.25; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips span { background: var(--pac-chip); border-radius: 10px; padding: 3px 9px; font-size: 11.5px; font-weight: 600; }
.s-note { margin-top: 12px; font-size: 13px; color: #3f4949; }
.s-actions { position: absolute; left: 16px; right: 16px; bottom: 18px; display: flex; gap: 8px; }
.s-actions span { flex: 1; text-align: center; border-radius: 999px; padding: 12px 0; font-size: 14px; font-weight: 600; }
.s-actions .ghost { background: #dfe9e9; color: var(--pac-ink); }
.s-actions .primary { background: var(--pac); color: #fff; }

.labs { list-style: none; padding: 0; margin-top: 12px; border-radius: 20px; background: #fff; overflow: hidden; }
.labs li { display: grid; grid-template-columns: 1fr auto 52px; gap: 8px; align-items: baseline; padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid #e3eded; }
.labs li:last-child { border-bottom: 0; }
.labs b { font-size: 15px; font-weight: 600; }
.labs i { font-style: normal; font-size: 11.5px; color: #5c6767; }
.labs li.warn { background: var(--pac-warn); color: var(--pac-warn-ink); }
.labs li.warn i { color: var(--pac-warn-ink); }
.ecg { margin-top: 12px; border-radius: 20px; background: #fff; padding: 10px 14px; color: var(--pac); font-size: 12px; }
.ecg p:first-child { font-weight: 600; color: #191c1c; font-size: 13px; }
.ecg svg { width: 100%; height: 34px; margin: 6px 0; }

.q { margin-top: 18px; border-radius: 24px; background: #fff; padding: 18px 16px; }
.q .hi { font-size: 19px; line-height: 1.45; font-weight: 500; font-family: "Nirmala UI", "Noto Sans Devanagari", "Kohinoor Devanagari", var(--font); }
.q .en { font-size: 14px; color: #3f4949; margin-top: 8px; }
.yn { display: flex; gap: 8px; margin-top: 12px; }
.yn span { flex: 1; text-align: center; padding: 12px 0; border-radius: 999px; background: #dfe9e9; font-weight: 600; font-size: 14px; color: var(--pac-ink); }
.yn span.picked { background: var(--pac); color: #fff; }
.listen { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; color: #3f4949; }
.wave { display: inline-flex; gap: 3px; align-items: center; height: 18px; }
.wave i { width: 3px; border-radius: 2px; background: var(--pac); height: 40%; }
.wave i:nth-child(2) { height: 85%; } .wave i:nth-child(3) { height: 60%; } .wave i:nth-child(4) { height: 100%; } .wave i:nth-child(5) { height: 45%; }
.progress { list-style: none; padding: 0; display: flex; gap: 5px; position: absolute; left: 16px; right: 16px; bottom: 22px; }
.progress li { flex: 1; height: 5px; border-radius: 3px; background: #d6e3e3; }
.progress li.done { background: var(--pac); }
.progress li.cur { background: color-mix(in oklch, var(--pac) 45%, white); }

.exam { margin-top: 12px; border-radius: 20px; background: #fff; }
.exam div { display: flex; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid #e3eded; font-size: 13.5px; }
.exam div:last-child { border-bottom: 0; }
.exam dd { font-weight: 600; }
.flag { margin-top: 12px; border-radius: 22px; background: var(--pac-warn); color: var(--pac-warn-ink); padding: 14px; font-size: 13px; line-height: 1.4; }
.flag-t { font-weight: 650; font-size: 15px; }
.meter { display: flex; gap: 4px; margin: 8px 0; }
.meter i { flex: 1; height: 6px; border-radius: 3px; background: #c9790f; }
.meter i.off { background: color-mix(in oklch, #c9790f 25%, white); }

.signed { margin-top: 14px; border-radius: 24px; background: var(--pac-ok); color: var(--pac-ok-ink); padding: 14px 16px; }
.signed .ok { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 16px; }
.signed .by { font-size: 12.5px; margin-top: 4px; }
.tick { width: 18px; height: 18px; border-radius: 50%; background: var(--pac-ok-ink); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4.5px; height: 8px; border: solid var(--pac-ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.parts { list-style: none; padding: 0; margin-top: 10px; }
.parts li { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; padding: 10px 2px; border-bottom: 1px solid #dfe9e9; font-size: 13px; }
.parts em { font-style: normal; color: #3f4949; font-size: 12px; }
.share { position: absolute; left: 14px; right: 14px; bottom: 16px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 20px; padding: 10px; font-size: 12.5px; line-height: 1.3; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.share small { color: #5c6767; }
.pdf { width: 34px; height: 40px; border-radius: 8px; background: #fde4e0; color: #8a2a17; font-size: 10px; font-weight: 700; display: grid; place-items: center; flex: none; }
.share .go { margin-left: auto; background: var(--pac); color: #fff; border-radius: 999px; padding: 9px 14px; font-weight: 600; font-size: 13px; }

/* ── 2. Five steps ──────────────────────────────────────── */
.how { background: var(--ground-2); }
.how-head, .steps-wrap, .rules, .company { max-width: var(--page); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.how-head { padding-top: 112px; }
.how h2, .rules h2, .safety h2, .company h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.035em; font-weight: 620; }
.how-head .lead, .rules-head .lead { margin-top: var(--s-4); }
.steps-wrap { position: relative; padding-top: var(--s-8); padding-bottom: var(--s-9); }
.spine { position: absolute; top: calc(var(--s-8) + 14px); bottom: calc(var(--s-9) + 40px); left: calc(var(--gutter) + 6px); width: 1.5px; background: var(--ink); }
.spine-spark {
  position: absolute; left: -7.25px; top: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--impulse); box-shadow: 0 0 0 5px color-mix(in oklch, var(--impulse) 18%, transparent);
  transform: translateY(var(--y, 0px)); display: none;
}
.spine-spark.live { display: block; }
.steps { list-style: none; padding: 0; display: grid; gap: var(--s-7); }
.step {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: var(--s-7); align-items: start; padding-left: 64px;
}
.step::before { /* node */
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ground-2); border: 1.5px solid var(--ink);
}
.step::after { /* myelin around the spine between nodes */
  content: ""; position: absolute; left: -3px; top: 34px; bottom: calc(-1 * var(--s-7) + 10px); width: 20px;
  border-radius: 999px; background: var(--myelin); border: 1px solid var(--myelin-edge); z-index: -1;
}
.step:last-child::after { display: none; }
.steps-wrap { isolation: isolate; }
.step h3 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.1; font-weight: 620; }
.step-copy p { margin-top: var(--s-4); color: var(--ink-2); max-width: 46ch; }
.ui { border-radius: var(--r-ui); background: #f4fafa; padding: 20px; color: #191c1c; box-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 18px 40px -24px oklch(30% 0.03 250 / .35); border: 1px solid #e2eded; }
.ui .labs { margin-top: 12px; }
.ui .s-note b { color: #8a4b00; }
.pages { display: flex; gap: 8px; }
.pages span { flex: 1; height: 64px; border-radius: 10px; background: #fff; border: 1px solid #dbe6e6; font-size: 11px; font-weight: 600; color: #3f4949; padding: 8px; position: relative; }
.pages span::after { content: ""; position: absolute; left: 8px; right: 12px; top: 30px; height: 18px; background: repeating-linear-gradient(#dbe6e6 0 2px, transparent 2px 6px); }
.aadhaar { margin-top: 12px; font-size: 12.5px; color: #3f4949; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mask { background: #1a1c1c; color: #1a1c1c; border-radius: 4px; padding: 1px 6px; font-family: var(--mono); font-size: 12px; user-select: none; }
.ui-q .q { margin-top: 12px; }
.detail { margin-top: 12px; font-size: 13px; background: #fff; border-radius: 16px; padding: 12px 14px; color: #3f4949; }
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scores div { background: #fff; border-radius: 18px; padding: 14px; }
.scores dt { font-size: 12px; color: #3f4949; font-weight: 600; }
.scores dd { font-size: 30px; font-weight: 650; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.scores dd small { font-size: 15px; color: #5c6767; }
.scores div:first-child { background: var(--pac-warn); color: var(--pac-warn-ink); }
.scores div:first-child dt, .scores div:first-child small { color: var(--pac-warn-ink); }
.line { margin-top: 12px; font-size: 13px; color: #3f4949; }
.ui-share .signed { margin-top: 0; }
.choice { display: grid; gap: 8px; margin-top: 10px; }
.choice p { background: #fff; border-radius: 16px; padding: 12px 14px; font-size: 12.5px; color: #3f4949; border: 1.5px solid transparent; }
.choice p b { display: block; color: #191c1c; font-size: 14px; }
.choice p.on { border-color: var(--pac); }

/* ── 3. Rules ───────────────────────────────────────────── */
.rules { padding-top: var(--s-9); padding-bottom: var(--s-9); }
.rule-list { margin-top: var(--s-7); border-top: 1.5px solid var(--ink); }
.rule-list div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rule-list dt { font-size: clamp(1.375rem, 0.95rem + 1.1vw, 2.125rem); letter-spacing: -0.035em; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }
.rule-list dd { color: var(--ink-2); }
.rule-list dd b { color: var(--ink); font-weight: 620; display: inline-flex; align-items: baseline; gap: 10px; }
.rule-list dd b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--impulse); flex: none; transform: translateY(-1px); }
.rules-note { margin-top: var(--s-5); color: var(--ink-2); font-size: var(--t-small); }

/* ── 4. Safety ──────────────────────────────────────────── */
.safety { background: var(--ground-2); }
.safety-inner { max-width: var(--page); margin: 0 auto; padding: var(--s-9) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--s-8); align-items: center; }
.safety .lead { margin-top: var(--s-5); }
.facts { list-style: none; padding: 0; margin-top: var(--s-6); border-top: 1px solid var(--rule); }
.facts li { padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); max-width: 52ch; }
.paper { justify-self: center; width: min(520px, 100%); }
.sheet {
  background: #fff; border-radius: 6px; padding: 30px 28px 26px; font-size: 11.5px; color: #222;
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 30px 60px -30px oklch(30% 0.03 250 / .45);
  transform: rotate(-2deg); display: flex; flex-direction: column; gap: 12px; border: 1px solid #ececec;
}
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #111; padding-bottom: 8px; font-size: 15px; }
.sheet-who { font-weight: 600; font-size: 13px; }
.sheet-what { color: #555; }
.sheet-grid { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 6px 12px; padding: 10px 0; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; }
.sheet-grid span { color: #555; }
.sheet-lines { display: grid; gap: 7px; }
.sheet-lines i { display: block; height: 5px; border-radius: 3px; background: #ececec; }
.sheet-lines i.short { width: 62%; }
.sheet-scans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.sheet-scans figure { border-radius: 4px; border: 1px solid #e3e3e3; overflow: hidden; background: #fafafa; }
.sheet-scans figure svg { width: 100%; height: auto; aspect-ratio: 6 / 7; display: block; }
.sheet-scans figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: #555; padding: 4px 6px; border-top: 1px solid #ececec; background: #fff; }
.sheet-sign { margin-top: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; border-top: 1px solid #e5e5e5; padding-top: 10px; }
.sheet-sign b { color: var(--pac-ok-ink); font-size: 15px; }
.sheet-sign span { color: #555; }
.paper > figcaption { text-wrap: balance; margin-top: var(--s-5); font-size: var(--t-small); color: var(--ink-2); text-align: center; }

/* ── 5. Company ─────────────────────────────────────────── */
.company { padding-top: var(--s-9); padding-bottom: var(--s-9); }
.company .about { margin-top: var(--s-5); font-size: clamp(1.375rem, 1.05rem + 1vw, 2rem); line-height: 1.35; letter-spacing: -0.02em; max-width: 34ch; color: var(--ink); }
.company .facts-line { margin-top: var(--s-5); color: var(--ink-2); max-width: 60ch; }
.company .actions { margin-top: var(--s-6); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-6); }
  .nerve { margin-right: calc(-1 * var(--s-6)); }
  .nerve li:last-child::after { width: calc(50% - 12px + var(--s-6)); }
  .phone { width: 268px; }
  .time { font-size: 38px; }
  .slot-top { gap: 8px; }
}
@media (max-width: 860px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding-left: 44px; }
  .ui { min-width: 0; }
  .safety-inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .rule-list div { grid-template-columns: 1fr; gap: var(--s-2); }
}
@media (max-width: 700px) {
  /* The phone, designed: name, claim, action, then the nerve and the device; the explanation after. */
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; padding-bottom: var(--s-7); }
  .hero-copy { display: contents; }
  .hero .kicker { order: 1; }
  .hero h1 { order: 2; max-width: 16ch; }
  .hero .actions { order: 3; margin-top: var(--s-5); }
  .nerve { order: 4; grid-area: auto; margin-right: 0; margin-top: var(--s-6); }
  .stage { order: 5; grid-area: auto; justify-items: center; margin-top: var(--s-5); }
  .hero .lead { order: 6; margin-top: var(--s-6); }
  .nerve::before { right: -50vw; }
  .nerve li:last-child::after { width: 50vw; }
  .phone { transform: none; width: 286px; }
}
@media (max-width: 360px) {
  .scores { grid-template-columns: 1fr 1fr; }
  .scores div:first-child { grid-column: 1 / -1; }
  .pages span:nth-child(4) { display: none; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2.3rem; letter-spacing: -0.04em; }
  .hero .lead { font-size: 1.125rem; margin-top: var(--s-4); }
  .hero .actions { margin-top: var(--s-5); }
  .nerve { margin-top: var(--s-5); }
  .nerve li { font-size: 12.5px; line-height: 1.25; padding: 34px 0 0; overflow-wrap: anywhere; }
  .nerve li.on { white-space: nowrap; }
  .ui { padding: 16px; }
  .steps { gap: var(--s-7); }
  .step::after { bottom: calc(-1 * var(--s-7) + 10px); }
  .how-head, .rules, .company { padding-top: var(--s-8); }
  .rules, .company { padding-bottom: var(--s-8); }
  .safety-inner { padding-top: var(--s-8); padding-bottom: var(--s-8); }
}
@media (forced-colors: active) {
  .spark, .spine-spark, .rule-list dd b::before { forced-color-adjust: none; background: Highlight; }
  .ui, .sheet { border: 1px solid CanvasText; }
}

/* Patient block on the first phone screen */
.patient { margin-top: 12px; display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 22px; padding: 12px; }
.cookie { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-weight: 650; font-size: 14px; color: #0b3f40; background: #a9e9ec;
  clip-path: polygon(50% 0%, 61% 8%, 75% 6%, 82% 18%, 94% 25%, 92% 39%, 100% 50%, 92% 61%, 94% 75%, 82% 82%, 75% 94%, 61% 92%, 50% 100%, 39% 92%, 25% 94%, 18% 82%, 6% 75%, 8% 61%, 0% 50%, 8% 39%, 6% 25%, 18% 18%, 25% 6%, 39% 8%); }
.patient p { font-size: 12px; color: #3f4949; line-height: 1.4; }
.patient b { display: block; font-size: 15px; color: #191c1c; font-weight: 600; }

/* Company: words left, the facts right */
.company { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--s-6) var(--s-8); align-items: start; }
.company h2, .company .about, .company .facts-line, .company .actions { grid-column: 1; }
.company-facts { grid-column: 2; grid-row: 2 / span 3; align-self: start; margin-top: 10px; border-top: 1.5px solid var(--ink); }
.company-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); font-size: var(--t-small); }
.company-facts dt { color: var(--ink-2); }
.company-facts dd { color: var(--ink); }
@media (max-width: 860px) { .company { grid-template-columns: 1fr; } .company-facts { grid-column: 1; grid-row: auto; } }

/* The PDF's own small print */
.sheet-text { display: grid; gap: 6px; font-size: 11px; line-height: 1.4; color: #444; }
.sheet-text b { color: #111; font-weight: 600; }

.minilist { list-style: none; padding: 0; margin-top: 12px; border-radius: 20px; background: #fff; }
.minilist li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 14px; font-size: 12.5px; border-bottom: 1px solid #e3eded; }
.minilist li:last-child { border-bottom: 0; }
.minilist em { font-style: normal; color: #3f4949; }
.predict { margin-top: 10px; font-size: 12.5px; color: var(--pac-warn-ink); font-weight: 600; padding: 0 4px; }
.s-row { margin-top: 10px; display: flex; justify-content: space-between; font-size: 12.5px; color: #3f4949; padding: 0 4px; }
/* On the smaller phones (tablet and phone layouts) the first screen keeps only what fits. */
@media (max-width: 1100px) { .screen .s-row { display: none; } }

/* Section 2: each card is a terminal of the nerve: a branch runs into it. */
.ui { position: relative; transition: border-color .4s, box-shadow .4s; }
.ui::before {
  content: ""; position: absolute; top: 22px; right: 100%; width: var(--s-7); height: 1.5px; background: var(--ink);
}
.ui::after {
  content: ""; position: absolute; top: 18px; right: calc(100% + var(--s-7) - 4px); width: 9px; height: 9px; border-radius: 50%;
  background: var(--ground-2); border: 1.5px solid var(--ink);
}
.step.live .ui { border-color: color-mix(in oklch, var(--impulse) 45%, #e2eded); box-shadow: 0 0 0 4px color-mix(in oklch, var(--impulse) 12%, transparent), 0 18px 40px -24px oklch(30% 0.03 250 / .35); }
.step.live::before { background: var(--impulse); border-color: var(--impulse); }
.ui::before, .ui::after { display: none; } /* the nerve lights its card instead of a detached branch */

/* Tablet: a headline that sets in four or five lines */
@media (min-width: 701px) and (max-width: 1100px) {
  .hero h1 { font-size: clamp(2.5rem, 0.6rem + 4.4vw, 3.6rem); max-width: 12ch; }
}
/* Phones: only the step under the spark is named; the others stay for screen readers */
@media (max-width: 420px) {
  .nerve li:not(.on) { font-size: 0; }
}

/* Why PAC */
.why { max-width: var(--page); margin: 0 auto; padding: var(--s-8) var(--gutter) var(--s-8); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4) var(--s-8); }
.why h2 { grid-row: span 2; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.035em; font-weight: 620; max-width: 14ch; }
.why p { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 44ch; }
.why p + p { color: var(--ink-2); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .why h2 { grid-row: auto; } }

/* Short windows (a laptop at 125 to 150% display scaling): the phone shrinks, with
   everything on its screen, so the whole device fits under the header. */
@media (min-width: 701px) and (max-height: 800px) { .phone { zoom: .86; } }
@media (min-width: 701px) and (max-height: 720px) { .phone { zoom: .76; } }
@media (min-width: 701px) and (max-height: 640px) { .phone { zoom: .66; } }
@media (min-width: 701px) and (max-height: 560px) { .phone { zoom: .58; } }
