/* ══════════════════════════════════════════════════════════════════
   HBOT — page-scoped premium components (diagrams, 3D, pressure lab).
   Loaded AFTER base.css. Everything derives from --accent (#0e7490).
   ══════════════════════════════════════════════════════════════════ */

/* ── 3D hero canvas ── */
.hero.hero-3d { padding-bottom: clamp(48px, 7vw, 84px); }
.o2-stage { position: relative; }
#o2-canvas {
  position: absolute; inset: -8% -4% auto -4%; width: 108%; height: 118%;
  z-index: 0; pointer-events: none; opacity: 0.85;
  /* keep the headline area clear — molecules drift around the edges, not behind the text */
  -webkit-mask-image: radial-gradient(58% 52% at 50% 40%, transparent 34%, #000 78%);
          mask-image: radial-gradient(58% 52% at 50% 40%, transparent 34%, #000 78%);
}
.hero.hero-3d .container { position: relative; z-index: 2; }

/* ── Animated SVG mechanism icon ── */
.dgm { width: 100%; height: auto; display: block; color: var(--accent); }
.card .icon.icon-dgm {
  width: 72px; height: 72px; padding: 12px; border-radius: 16px;
  background: linear-gradient(160deg, var(--accent-wash), #fff);
  border: 1px solid var(--accent-line); box-shadow: var(--shadow-xs);
}
.card .icon.icon-dgm svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .dgm * { animation: none !important; } .dgm [begin] { display: initial; } }

/* ── Pressure Explorer (the interactive) ── */
.lab {
  background: linear-gradient(180deg, #fff, var(--accent-wash));
  border: 1px solid var(--accent-line); border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-md);
}
.lab-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.lab-head .badge { background: var(--ink); color: #fff; }
.lab-stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #0c2a33;
  border: 1px solid rgba(255,255,255,0.08); aspect-ratio: 16 / 9; }
.lab-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-readouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
@media (max-width: 620px) { .lab-readouts { grid-template-columns: repeat(2, 1fr); } }
.ro { background: #fff; border: 1px solid var(--gray-150); border-radius: var(--radius); padding: 12px 14px; text-align: center; }
.ro .rn { font-size: 1.5rem; font-weight: 800; color: var(--accent-ink); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ro .rl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); margin-top: 6px; font-weight: 600; }

.lab-control { margin-top: 20px; }
.lab-control .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lab-control label { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.lab-control .val { font-family: var(--mono); font-weight: 700; color: var(--accent-ink); font-size: 1.05rem; }
input[type="range"].ata {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 100px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 0%), var(--gray-200) var(--fill, 0%));
  outline: none; cursor: pointer;
}
input[type="range"].ata::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent); box-shadow: var(--shadow-md); cursor: grab; margin-top: -1px;
}
input[type="range"].ata::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.08); }
input[type="range"].ata::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: var(--shadow-md); cursor: grab; }
.lab-scale { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--gray-400); margin-top: 8px; font-weight: 600; }
.lab-caption { font-size: 0.84rem; color: var(--gray-600); margin-top: 16px; line-height: 1.6; }
.lab-caption b { color: var(--accent-ink); }
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.preset { padding: 7px 14px; border-radius: 100px; border: 1px solid var(--gray-200); background: #fff;
  font-size: 0.8rem; font-weight: 600; color: var(--gray-600); cursor: pointer; font-family: var(--font); transition: all .2s; }
.preset:hover { border-color: var(--accent); color: var(--accent-ink); }
.preset.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Hold-to-pressurize button ── */
.pressurize { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.pressurize button {
  position: absolute; inset: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 38%, #fff, var(--accent-soft));
  color: var(--accent-ink); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.02em;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--accent-line); transition: transform .15s var(--ease);
  display: grid; place-items: center; text-align: center; line-height: 1.2; text-transform: uppercase; user-select: none;
}
.pressurize button:active { transform: scale(0.96); }
.pressurize svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.pressurize .ring-bg { stroke: var(--gray-200); }
.pressurize .ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 396; stroke-dashoffset: 396; transition: stroke-dashoffset .1s linear; }
.pressurize.done .ring-fg { stroke: #16a34a; }

/* ── Lab stage internals (tissue cells + capillary) ── */
#lab-svg .cell { fill: #17323b; transition: fill .35s var(--ease), filter .35s var(--ease); }
#lab-svg .cell.lit { fill: #2dd4bf; filter: drop-shadow(0 0 3px rgba(45,212,191,.8)); }
#lab-svg .capillary { stroke: #ef5f6b; stroke-width: 5; stroke-linecap: round; opacity: .95; }
#lab-svg .cap-label, #lab-svg .edge-label { fill: rgba(255,255,255,.55); font: 700 8px var(--font); text-transform: uppercase; letter-spacing: .08em; }
#lab-svg .rbc { fill: #ef5f6b; }

/* ── Paradox oscillation ── */
.paradox { background: #0c2a33; border-radius: var(--radius-lg); padding: 8px; overflow: hidden; }
.paradox svg { width: 100%; height: auto; display: block; }
.paradox .wave { fill: none; stroke: var(--accent); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(14,116,144,.6)); }
.paradox .pulse { fill: var(--accent); }

/* ── "Is this you?" audience selector ── */
.aud-lab { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 820px) { .aud-lab { grid-template-columns: 1fr; } }
.aud-list { display: flex; flex-direction: column; gap: 8px; }
.aud-chip { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: var(--radius); cursor: pointer;
  background: #fff; border: 1px solid var(--gray-150); text-align: left; font-family: var(--font); transition: all 0.2s var(--ease); }
.aud-chip:hover { border-color: var(--accent-line); transform: translateX(2px); }
.aud-chip.on { background: var(--accent-wash); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.aud-chip .ai { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent-ink); }
.aud-chip.on .ai { background: #fff; }
.aud-chip .ai svg { width: 22px; height: 22px; }
.aud-chip .al { display: block; font-weight: 700; color: var(--ink); font-size: 0.9rem; line-height: 1.2; }
.aud-chip .as { display: block; font-size: 0.76rem; color: var(--gray-500); margin-top: 2px; line-height: 1.2; }
.aud-panel { background: #fff; border: 1px solid var(--gray-150); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.aud-panel .quote-line { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 500; color: var(--ink); line-height: 1.3; }
.aud-panel .who { font-size: 1rem; color: var(--gray-600); margin-top: 16px; line-height: 1.6; }
.aud-panel .aud-meta { display: grid; gap: 14px; margin-top: 22px; }
.aud-panel .am { border-left: 3px solid var(--accent-line); padding-left: 14px; }
.aud-panel .am .k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--accent-ink); }
.aud-panel .am .v { font-size: 0.92rem; color: var(--gray-700); margin-top: 3px; line-height: 1.55; }
.aud-panel .aud-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ── FAQ ── */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--gray-150); border-radius: var(--radius); box-shadow: var(--shadow-xs); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--accent-ink); font-weight: 400; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--gray-100); }
.faq .fa { padding: 16px 22px 22px; color: var(--gray-600); font-size: 0.95rem; line-height: 1.7; }
.faq .fa a { color: var(--accent-ink); }

/* ── Audience deep blocks (who-its-for page) ── */
.aud-block { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: clamp(24px,3vw,34px); background: #fff;
  border: 1px solid var(--gray-150); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
@media (max-width: 620px) { .aud-block { grid-template-columns: 1fr; } }
.aud-block .bi { width: 54px; height: 54px; border-radius: 14px; background: var(--accent-wash); color: var(--accent-ink); display: grid; place-items: center; }
.aud-block .bi svg { width: 28px; height: 28px; }
.aud-block h3 { font-size: 1.25rem; margin-bottom: 6px; }
.aud-block .stake { font-family: var(--serif); font-size: 1.1rem; color: var(--accent-ink); font-style: italic; margin-bottom: 14px; }
.aud-block .rows { display: grid; gap: 12px; margin-top: 4px; }
.aud-block .rw { display: grid; grid-template-columns: 130px 1fr; gap: 14px; font-size: 0.94rem; }
@media (max-width: 520px) { .aud-block .rw { grid-template-columns: 1fr; gap: 2px; } }
.aud-block .rw .rk { font-weight: 700; color: var(--accent-ink); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.aud-block .rw .rv { color: var(--gray-700); line-height: 1.6; }

/* ── Molecule legend chip ── */
.mini-note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--gray-500);
  background: #fff; border: 1px solid var(--gray-150); border-radius: 100px; padding: 6px 14px; box-shadow: var(--shadow-xs); }
.mini-note .swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* ── Line icons from assets/icons.svg ── */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.tidbit .dot .ic { width: 18px; height: 18px; }
.event .when .d .ic { width: 28px; height: 28px; margin: 0 auto; stroke-width: 2.4; color: var(--accent); }
