/* Humsana landing page.
   One layout system for every band: a 1120px wrapper, a 62ch measure, and a
   spacing scale in eighths. Sections share the same head block (eyebrow, h2,
   lede) so the page reads as one document rather than eight designs.
   Palette is the product's: paper, ink, navy. No webfont. */

:root {
  --paper: #fbfaf7;
  --white: #ffffff;
  --tint: #f4f0e6;
  --ink: #17160f;
  --muted: #6b675c;
  --line: #e3ded1;
  --line-strong: #cfc8b6;
  --accent: #2c4a6b;
  --accent-hover: #22384f;
  --accent-soft: #e9eef3;
  --green: #1c6b45;
  --amber: #8a5a18;
  --red: #9b2c1f;
  --deep: #14161c;
  --deep-line: rgba(255, 255, 255, 0.13);
  --deep-text: #f3f0e8;
  --deep-muted: #a8a69d;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;
  --band: clamp(var(--s6), 7.5vw, var(--s8));
  --wrap: 1120px;
  --narrow: 760px;
  --measure: 62ch;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: var(--s2); background: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 99; }
.skip:focus { left: var(--s3); }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.xl { width: 30px; height: 30px; color: var(--accent); margin-bottom: var(--s2); }
.wrap { width: min(var(--wrap), 100% - var(--s6)); margin: 0 auto; }
.wrap.narrow { width: min(var(--narrow), 100% - var(--s6)); }

/* one head block for every band */
.head { max-width: 44em; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.head h2 { margin-top: var(--s3); }
.head .lede { margin-top: var(--s4); }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.028em; }
.lede { font-size: clamp(1rem, 1.4vw, 1.14rem); color: var(--muted); max-width: var(--measure); }
.deep .lede { color: var(--deep-muted); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, 0.93); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { width: min(var(--wrap), 100% - var(--s6)); margin: 0 auto; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; min-height: 44px; }
.nav nav { display: flex; gap: var(--s5); font-size: 0.9rem; }
.nav nav a, .sign { text-decoration: none; color: var(--muted); padding: 12px 0; }
.nav nav a:hover, .sign:hover { color: var(--ink); }
.nav-r { display: flex; align-items: center; gap: var(--s3); font-size: 0.9rem; }
.pill-btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 500; padding: 12px 22px; border-radius: 999px; font-size: 0.92rem; min-height: 44px; transition: background 0.2s, transform 0.2s; }
.pill-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.pill-btn.big { font-size: 1.02rem; padding: 16px 30px; }

/* hero */
.hero { padding: clamp(var(--s7), 8vw, 92px) 0 clamp(var(--s6), 6vw, 80px); text-align: center; }
.hero .eyebrow { margin-bottom: var(--s4); }
h1 { font-size: clamp(2.4rem, 6.6vw, 5rem); line-height: 1.03; font-weight: 700; letter-spacing: -0.035em; padding: 0 var(--s3); }
.sub { max-width: 620px; margin: var(--s5) auto 0; font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: var(--muted); padding: 0 var(--s4); }
.cta-row { display: flex; justify-content: center; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); padding: 0 var(--s4); }
.link { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--accent); font-size: 1rem; min-height: 44px; padding: 0 var(--s2); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link .ic { width: 16px; height: 16px; }
.fine { margin-top: var(--s3); font-size: 0.86rem; color: var(--muted); padding: 0 var(--s4); }

.stage { width: min(1000px, 100% - var(--s5)); margin: clamp(var(--s6), 5vw, var(--s7)) auto 0; }
.win { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 34px 80px -46px rgba(23, 22, 15, 0.5); text-align: left; overflow: hidden; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 13px var(--s4); border-bottom: 1px solid var(--line); background: var(--paper); }
.bar b { font-weight: 600; font-size: 0.86rem; }
.bar span { font-size: 0.8rem; color: var(--muted); }
.cols { display: grid; grid-template-columns: 268px 1fr; }
.list { list-style: none; padding: 10px; border-right: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.list li { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; }
.list li.on { background: var(--accent-soft); }
.list small { display: block; font-weight: 400; color: var(--muted); font-size: 0.76rem; line-height: 1.35; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); flex: none; }
.d { width: 7px; height: 7px; border-radius: 50%; margin-left: auto; background: var(--green); flex: none; }
.d.y { background: var(--amber); }
.d.r { background: var(--red); }
.det { padding: var(--s4) var(--s5) var(--s4); }
.det h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.crit { display: flex; gap: var(--s3); align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); }
.crit > .ic { margin-top: 2px; color: var(--accent); }
.crit > span { flex: 1; font-size: 0.94rem; }
.crit small { display: block; color: var(--muted); font-size: 0.83rem; margin-top: 3px; line-height: 1.45; }
.tag { font-style: normal; font-size: 0.74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag.g { background: #e7f0ea; color: var(--green); }
.tag.y { background: #f4ecdd; color: var(--amber); }
.tag.b { background: var(--accent-soft); color: var(--accent); }

/* bands */
.band { padding: var(--band) 0; }
.band.tint { background: var(--tint); }
.band.deep { background: var(--deep); color: var(--deep-text); }
.band.deep .eyebrow { color: #a9c3d8; }
.band + .band { border-top: 1px solid transparent; }

/* the pool diagram */
.pool { margin-top: clamp(var(--s5), 4vw, var(--s6)); border-top: 1px solid var(--line-strong); padding-top: var(--s4); }
.tint .pool { border-top-color: var(--line-strong); }
.pool-cap { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s4); }
.pool-line { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 4ch; align-items: center; gap: var(--s3); padding: var(--s2) 0; }
.pool-line p { font-size: 0.98rem; }
.pool-line b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.track { display: block; height: 10px; background: rgba(23, 22, 15, 0.07); border-radius: 999px; overflow: hidden; }
.track i { display: block; height: 100%; width: var(--w); background: var(--bar, var(--accent)); border-radius: 999px; }
.sources { margin-top: clamp(var(--s4), 3vw, var(--s5)); font-size: 0.78rem; color: var(--muted); max-width: 78ch; }
.sources a { color: var(--muted); text-underline-offset: 2px; }
.sources a:hover { color: var(--ink); }
.pool-note { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--muted); max-width: 54ch; font-size: 0.95rem; }

.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: clamp(var(--s6), 5vw, var(--s7)); }
.note { border-top: 2px solid var(--ink); padding-top: var(--s3); }
.tint .note { border-top-color: var(--line-strong); }
.note .ic { color: var(--accent); margin-bottom: var(--s2); }
.note h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 5px; }
.note p { color: var(--muted); font-size: 0.94rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); margin-top: var(--s5); }
.promises { margin-top: clamp(var(--s6), 5vw, var(--s7)); padding-top: var(--s5); border-top: 1px solid var(--line); }
.promises .note { border-top: 1px solid var(--line-strong); }
.promises .eyebrow { margin-bottom: var(--s1); }

/* two doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--s5), 4vw, var(--s7)); margin-top: clamp(var(--s5), 5vw, var(--s7)); }
.door h3 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.steps { list-style: none; padding: 0; display: grid; gap: var(--s4); margin-top: var(--s4); }
.steps li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); align-items: start; font-size: 0.96rem; }
.steps b { font-size: 0.76rem; font-weight: 700; color: var(--accent); padding-top: 4px; }
.steps span { color: var(--ink); }

/* merge diagram */
.merge { display: grid; grid-template-columns: auto minmax(48px, 1fr) auto 32px auto; align-items: center; gap: var(--s3); width: 100%; margin: clamp(var(--s5), 4vw, var(--s6)) 0 0; padding-top: var(--s5); border-top: 1px solid var(--line); }
.merge-side { display: grid; gap: var(--s3); justify-items: start; }
.merge .pill { white-space: nowrap; }
.arr.short { width: 32px; }
.pill { display: inline-block; font-size: 0.86rem; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); background: var(--white); }
.pill-in { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pill-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.merge-lines { width: 100%; height: 140px; overflow: visible; }
.merge-lines path { fill: none; stroke: var(--line-strong); stroke-width: 1.75; }

/* the record */
.chain { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: clamp(var(--s5), 5vw, var(--s6)); }
.chip { font-size: 0.84rem; padding: 8px 14px; border: 1px solid var(--deep-line); border-radius: 999px; color: var(--deep-text); }
.chip-ink { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.link-line { width: var(--s5); height: 1px; background: var(--deep-line); position: relative; flex: none; }
.link-line::after { content: ""; position: absolute; right: -1px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #a9c3d8; }

.tabs { display: inline-flex; gap: 4px; margin-top: clamp(var(--s5), 4vw, var(--s6)); padding: 4px; background: rgba(255, 255, 255, 0.07); border-radius: 999px; }
.tabs button { font: inherit; font-size: 0.92rem; font-weight: 500; color: var(--deep-muted); background: none; border: 0; padding: 12px 20px; border-radius: 999px; cursor: pointer; min-height: 44px; transition: background 0.2s, color 0.2s; }
.tabs button:hover { color: var(--deep-text); }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.scn { margin-top: var(--s4); border: 1px solid var(--deep-line); border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, 0.03); }
.scn:not([hidden]) { animation: rise 0.45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.tr { display: grid; grid-template-columns: 112px 1fr; gap: var(--s4); padding: 17px var(--s4); border-top: 1px solid var(--deep-line); font-size: 0.99rem; }
.tr:first-child { border-top: 0; }
.tr b { color: var(--deep-muted); font-weight: 500; font-size: 0.86rem; padding-top: 3px; }
.tr span { display: flex; align-items: center; gap: var(--s2); }
.res span { font-weight: 600; }
.res.g span { color: #7fc7a1; }
.res.y span { color: #e2b266; }
.res.r span { color: #e89184; }
.claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: clamp(var(--s6), 5vw, var(--s7)); }
.claims p { color: var(--deep-muted); font-size: 0.93rem; border-top: 1px solid var(--deep-line); padding-top: var(--s3); }
.claims b { color: var(--deep-text); display: block; margin-bottom: 6px; font-size: 0.97rem; }
.origin { margin-top: clamp(var(--s5), 4vw, var(--s6)); max-width: 62ch; color: var(--deep-muted); font-size: 0.96rem; border-left: 2px solid #a9c3d8; padding-left: var(--s3); }

/* separation of duties */
.flow { display: flex; align-items: stretch; gap: var(--s2); margin-top: clamp(var(--s6), 5vw, var(--s7)); }
.node { flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s3); text-align: center; }
.node .ic.xl { margin: 0 auto var(--s2); }
.node b { display: block; font-weight: 600; font-size: 0.97rem; }
.node small { color: var(--muted); font-size: 0.83rem; display: block; margin-top: 4px; }
.node.hi { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.node.hi small { color: #cdc9bd; }
.node.hi .ic.xl { color: #a9c3d8; }
.arr { position: relative; align-self: center; width: 40px; height: 2px; flex: none; background: var(--line-strong); }
.arr::after { content: ""; position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: travel 2.6s var(--ease) infinite; }
@keyframes travel { 0% { left: 0; opacity: 0.15; } 45% { opacity: 1; } 100% { left: calc(100% - 5px); opacity: 0.15; } }

/* questions */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: var(--s5); border-top: 1px solid var(--line); }
summary { cursor: pointer; font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: 44px; padding: var(--s4) 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.45rem; line-height: 1; color: var(--accent); transition: transform 0.25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 var(--s4); color: var(--muted); max-width: 62ch; }

/* close + footer */
.close { padding: var(--band) 0; text-align: center; border-top: 1px solid var(--line); }
.close h2 { max-width: 16em; margin: 0 auto; }
.close .lede { margin: var(--s4) auto var(--s5); }
.foot { background: var(--tint); border-top: 1px solid var(--line); padding: var(--s5) 0; font-size: 0.86rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); }
.foot .brand { color: var(--ink); }
.foot p { display: flex; flex-wrap: wrap; gap: 0 var(--s1); }
.foot p a { margin-left: var(--s3); text-decoration: none; display: inline-block; padding: 11px 0; }
.foot p a:hover { color: var(--ink); text-decoration: underline; }
.foot .fine { width: 100%; margin: 0; padding: 0; }

/* motion: everything visible by default, animated only when JS is present */
.js .r { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js .r.in { opacity: 1; transform: none; }

/* the bars grow on arrival. The base state is the finished bar, so a capture,
   a print or a blocked script still shows the figure; the keyframe is the
   enhancement, not the content. */
.pool .track i { animation: grow 1.1s var(--ease) both; animation-delay: calc(var(--d, 0s) + 0.2s); }
@keyframes grow { from { width: 0; } to { width: var(--w); } }

/* the merge figure fades in with the rest of the block; the lines are part of it */

/* the flow lights up in order */
.js .flow .node, .js .flow .arr { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .flow.run .node, .js .flow.run .arr { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 0.14s); }
.js .flow.run .arr::after { animation-duration: 2.2s; }

@media (max-width: 960px) {
  .nav-in { flex-wrap: wrap; padding-top: var(--s2); }
  .nav nav { order: 3; width: 100%; gap: var(--s4); overflow-x: auto; padding-bottom: var(--s2); }
  .nav nav a { white-space: nowrap; }
  .notes, .claims, .grid4 { grid-template-columns: 1fr 1fr; }
  .doors { grid-template-columns: 1fr; gap: var(--s6); }
  .flow { flex-direction: column; }
  .arr { width: 1px; height: var(--s5); align-self: center; }
  .arr::after { top: 0; left: -2px; animation: travel-y 2.6s var(--ease) infinite; }
  @keyframes travel-y { 0% { top: 0; opacity: 0.15; } 45% { opacity: 1; } 100% { top: calc(100% - 5px); opacity: 0.15; } }
  .merge { grid-template-columns: 1fr; gap: var(--s2); justify-items: start; }
  .merge-lines { display: none; }
  .merge .arr { justify-self: start; width: 2px; height: var(--s4); margin-left: calc(var(--s4) + 4px); border-radius: 2px; background: var(--line-strong); }
  .merge .arr::after { display: none; }
  .merge .pill-in { margin-top: var(--s2); }
}

@media (max-width: 720px) {
  :root { --band: var(--s6); }
  .nav-in { min-height: 58px; gap: var(--s3); }
  .sign { display: none; }
  .hero { padding-top: var(--s6); }
  .cols { grid-template-columns: 1fr; }
  .list { display: none; }
  .det { padding: var(--s4) var(--s3); }
  .crit { flex-wrap: wrap; }
  .crit .tag { margin-left: var(--s5); }
  .notes, .claims, .grid4 { grid-template-columns: 1fr; gap: var(--s4); }
  .pool-line { grid-template-columns: 1fr auto; grid-template-areas: "label count" "bar bar"; row-gap: var(--s2); }
  .pool-line p { grid-area: label; }
  .pool-line b { grid-area: count; }
  .pool-line .track { grid-area: bar; }
  .tr { grid-template-columns: 1fr; gap: 5px; padding: var(--s3); }
  .tr b { font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase; }
  .tabs { display: flex; flex-direction: column; width: 100%; border-radius: var(--radius); }
  .tabs button { width: 100%; }
  .stage { width: min(1000px, 100% - var(--s3)); }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
  .foot p a { margin: 0 var(--s3) 0 0; }
  .chain { gap: var(--s2); }
  .link-line { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arr::after, .scn:not([hidden]) { animation: none; }
  .js .r, .js .flow .node, .js .flow .arr { opacity: 1; transform: none; transition: none; }
  .pool .track i { animation: none; }
}

/* -- four parts ---------------------------------------------------------------------------------------------- */
.part-grid { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.part-grid li { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.1rem; row-gap: .35rem;
  align-items: start; }
.part-grid h3 { margin: 0; font-size: 1.0625rem; grid-column: 2; }
.part-grid p { margin: 0; grid-column: 2; max-width: 46ch; line-height: 1.6; }
.part-icon { width: 56px; height: 56px; grid-row: span 2; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
@media (min-width: 860px) {
  .part-grid { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
}
