/* ==========================================================================
   In-House FM sector page (/sectors/in-house-fm)
   Section designs shared with the Field Services page; own copy, own prefix.
   Page-specific classes use the `ih-` prefix. Colours: --v2-* tokens or the
   page tokens below (defined for both themes).
   ========================================================================== */
:root,
[data-theme="light"] {
  --ih-player-bg: #EBEFE2;
  --ih-player-overlay: none;
  --ih-player-shadow: 0 30px 70px rgba(33, 30, 40, 0.14);
  --ih-card-bg: #FFFFFF;
  --ih-card-border: #DDD9CF;
  --ih-tint: #E9F0C8;
  --ih-track: #D3CEC2;
  --ih-bar-muted: #A39DB0;
  --ih-ctl-bg: rgba(255, 255, 255, 0.85);
  --ih-sent-bg: #FFFFFF;
  --ih-on: #211E28;      /* "done" chip / check circle / bars */
  --ih-on-fg: #DDEE93;
  --ih-hero-rule: rgba(33, 30, 40, 0.16);
  --ih-hero-rail: rgba(33, 30, 40, 0.2);
}
[data-theme="dark"] {
  --ih-player-bg: linear-gradient(to bottom, #2C3350 0%, #4A4A66 40%, #6C5A6E 70%, #9A6E68 100%);
  --ih-player-overlay: linear-gradient(to right, rgba(14, 10, 22, 0.5), rgba(14, 10, 22, 0.12));
  --ih-player-shadow: 0 40px 90px rgba(0, 0, 0, 0.4);
  --ih-card-bg: rgba(20, 16, 30, 0.66);
  --ih-card-border: rgba(246, 210, 176, 0.24);
  --ih-tint: rgba(221, 238, 147, 0.12);
  --ih-track: rgba(246, 210, 176, 0.22);
  --ih-bar-muted: rgba(246, 210, 176, 0.5);
  --ih-ctl-bg: rgba(255, 255, 255, 0.14);
  --ih-sent-bg: rgba(20, 16, 30, 0.92);
  --ih-on: #DDEE93;
  --ih-on-fg: #211E28;
  --ih-hero-rule: rgba(246, 210, 176, 0.16);
  --ih-hero-rail: rgba(246, 210, 176, 0.22);
}

/* --------------------------------------------------------------------------
   01 Hero pipeline
   -------------------------------------------------------------------------- */
.ih-hero { padding-bottom: clamp(3.25rem, 2rem + 4.4vw, 6.25rem); }
.ih-hero__inner { display: grid; gap: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
.ih-hero__title {
  position: relative;
  margin: 0;
  padding-left: 30px;
  display: grid;
  font-family: var(--v2-font-display);
  font-weight: 500;
  font-size: var(--v2-fs-h1);
  line-height: 1.08;
  letter-spacing: var(--v2-ls-h);
}
.ih-hero__rail {
  position: absolute; left: 8px; top: 6%; bottom: 6%;
  width: 1px; background: var(--ih-hero-rail);
}
.ih-hero__dot {
  position: absolute; left: 3px; top: 87.5%;
  width: 11px; height: 11px; margin-top: -5px;
  border-radius: var(--v2-r-pill);
  background: var(--v2-accent);
  box-shadow: 0 0 0 6px var(--v2-accent-halo);
}
.ih-hero__line {
  display: flex; align-items: baseline;
  gap: clamp(0.875rem, 0.7rem + 0.8vw, 1.375rem);
  padding: 12px 0;
  border-bottom: 1px solid var(--ih-hero-rule);
}
.ih-hero__num {
  flex: none; width: 28px;
  font-family: var(--v2-font-text);
  font-size: clamp(0.8125rem, 0.77rem + 0.2vw, 0.9375rem);
  font-weight: 400; letter-spacing: 0.1em;
  color: var(--v2-accent-ink);
}
.ih-hero__text { min-width: 0; }
.ih-hero__paid {
  display: inline-block;
  padding: 0 clamp(10px, 0.4rem + 0.8vw, 18px);
  margin-left: calc(-1 * clamp(10px, 0.4rem + 0.8vw, 18px));
  border-radius: 14px;
  background: var(--v2-accent);
  color: #211E28;
}

/* Looping pipeline: lines appear one by one, the dot walks down the rail,
   "Paid." lights up, then everything fades and restarts (10s). The
   static (no-animation) state is the final, fully lit pipeline. */
@media (prefers-reduced-motion: no-preference) {
  .ih-hero__line { animation: 10s linear infinite both; }
  .ih-hero__line--1 { animation-name: ih-hero-l1; }
  .ih-hero__line--2 { animation-name: ih-hero-l2; }
  .ih-hero__line--3 { animation-name: ih-hero-l3; }
  .ih-hero__line--4 { animation-name: ih-hero-l4; }
  .ih-hero__paid { animation: ih-hero-paid 10s linear infinite both; }
  .ih-hero__dot { animation: ih-hero-dot 10s linear infinite both, ih-hero-pulse 1.9s ease-in-out infinite alternate; }
}
@keyframes ih-hero-l1 { 0%, 4% { opacity: 0; transform: translateY(14px); } 9%, 93% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
@keyframes ih-hero-l2 { 0%, 10.5% { opacity: 0; transform: translateY(14px); } 15.5%, 93% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
@keyframes ih-hero-l3 { 0%, 17% { opacity: 0; transform: translateY(14px); } 22%, 93% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
@keyframes ih-hero-l4 { 0%, 23.5% { opacity: 0; transform: translateY(14px); } 28.5%, 93% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
@keyframes ih-hero-paid {
  0%, 36% { background-color: transparent; color: inherit; }
  40%, 100% { background-color: var(--v2-accent); color: #211E28; }
}
@keyframes ih-hero-dot {
  0%, 3.9% { opacity: 0; top: 12.5%; }
  4% { opacity: 1; top: 12.5%; }
  10.5% { top: 12.5%; }
  15.5% { top: 37.5%; }
  17% { top: 37.5%; }
  22% { top: 62.5%; }
  23.5% { top: 62.5%; }
  28.5% { top: 87.5%; }
  93% { opacity: 1; top: 87.5%; }
  99%, 100% { opacity: 0; top: 87.5%; }
}
@keyframes ih-hero-pulse {
  from { box-shadow: 0 0 0 6px var(--v2-accent-halo); }
  to { box-shadow: 0 0 0 10px var(--v2-accent-halo); }
}

/* --------------------------------------------------------------------------
   Shared section head spacing (design: 20px head gap, 56px to content)
   -------------------------------------------------------------------------- */
.ih-head { gap: clamp(0.875rem, 0.75rem + 0.5vw, 1.25rem); margin-bottom: clamp(2rem, 1.3rem + 2.9vw, 3.5rem); }
.ih-problem__sub { color: var(--v2-text-lead); }
.ih-problem .v2-col p { margin: 0; }
.ih-problem .v2-col h3 { margin: 0; }
/* Three problem columns (badge, title, text) with a top rule; stacked below 900px. */
.ih-problem__grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ih-problem__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ih-problem__col { gap: clamp(1rem, 0.8rem + 0.8vw, 1.5rem); }
/* Columns side by side share their row tracks (badge, title, text), so a
   two-line title pushes every column's text down to the same line. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 900px) { .ih-problem__col { grid-row: span 3; grid-template-rows: subgrid; } }
}

/* --------------------------------------------------------------------------
   03 See it work: walkthrough player
   -------------------------------------------------------------------------- */
.ih-see__glows { display: none; }
[data-theme="dark"] .ih-see__glows { display: block; }
.ih-see__head { gap: 16px; margin-bottom: clamp(1.625rem, 1.3rem + 1.3vw, 2.5rem); }
.ih-see__head .v2-h2 { letter-spacing: -0.025em; }
.ih-see__sub { margin: 0; font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); }

.ih-demo { display: grid; gap: clamp(1.25rem, 0.9rem + 1.2vw, 1.75rem); }
.ih-demo__stage { position: relative; display: grid; gap: 16px; }
.ih-demo__panels { display: grid; }
.ih-demo__panel {
  grid-area: 1 / 1;
  display: grid; gap: 18px; align-content: start;
  opacity: 0; transform: translateY(12px); visibility: hidden;
  transition: opacity 600ms ease, transform 600ms ease, visibility 0s linear 600ms;
}
.ih-demo__panel.is-active {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity 600ms ease, transform 600ms ease, visibility 0s;
}
.ih-demo__copy { display: grid; gap: 10px; max-width: 430px; }
.ih-demo__count { font-family: var(--v2-font-mono); font-size: 0.75rem; color: var(--v2-text-muted); }
.ih-demo__title {
  margin: 0;
  font-family: var(--v2-font-display); font-weight: 500;
  font-size: clamp(2.5rem, 2.05rem + 1.85vw, 4rem);
  letter-spacing: -0.03em; line-height: 1;
}
.ih-demo__text { margin: 0; font-size: clamp(1rem, 0.93rem + 0.3vw, 1.1875rem); line-height: 1.45; color: var(--v2-text-muted); }

.ih-demo__controls { display: flex; gap: 8px; justify-content: flex-end; order: -1; }
.ih-demo__ctl {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--v2-chip-border); border-radius: var(--v2-r-pill);
  background: var(--ih-ctl-bg); color: var(--v2-text);
  font: inherit; font-size: 15px; cursor: pointer;
  transition: transform var(--v2-dur) var(--v2-ease), box-shadow var(--v2-dur) ease, background-color var(--v2-dur) ease;
}
.ih-demo__ctl svg { width: 13px; height: 13px; fill: currentColor; }
.ih-demo__ctl:hover { transform: scale(1.06); box-shadow: 0 0 0 8px var(--v2-accent-halo); }
.ih-demo__ctl:focus-visible { outline: 2px solid var(--v2-focus); outline-offset: 3px; }
.ih-demo__ctl--play { background: var(--v2-accent); border-color: transparent; color: #211E28; }
.ih-demo__icon-play { display: none; }
.ih-demo.is-paused .ih-demo__icon-pause { display: none; }
.ih-demo.is-paused .ih-demo__icon-play { display: block; }

/* Card inside the player */
.ih-card {
  box-sizing: border-box; width: 100%;
  background: var(--v2-card-bg);
  border: 1px solid var(--v2-chip-border);
  border-radius: 18px;
  padding: 14px 20px;
  display: flex; flex-direction: column;
}
.ih-card--rank { padding: 14px 12px; }
.ih-card__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-bottom: 10px; min-height: 30px;
}
.ih-card--rank .ih-card__head { padding-inline: 8px; }
.ih-card__label { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--v2-text-muted); }
.ih-muted { color: var(--v2-text-muted); }
.ih-xs { font-size: 0.75rem; }
.ih-xs2 { font-size: 0.8125rem; }
.ih-xxs { font-size: 0.75rem; }
.ih-cap { display: block; font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--v2-text-muted); }
.ih-cap--lg { font-size: 0.6875rem; }

.ih-row { border-top: 1px solid var(--v2-border); }
.ih-pill {
  display: block; justify-self: start;
  font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  padding: 5px 11px; border-radius: var(--v2-r-pill);
  box-shadow: inset 0 0 0 1px var(--ih-card-border);
}
.ih-chan { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; }
.ih-chan__body { display: grid; gap: 8px; }
.ih-chan__body--tight { gap: 4px; }
.ih-chan__voice { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ih-chan__quote { font-size: 0.9375rem; line-height: 1.4; }
.ih-chan__subject { font-size: 0.9375rem; line-height: 1.35; font-weight: 600; }
.ih-bubble { display: inline-block; font-size: 0.9375rem; line-height: 1.4; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--ih-tint); }
.ih-wave { display: flex; gap: 3px; align-items: center; height: 28px; }
.ih-wave > span { display: block; width: 4px; height: 28px; border-radius: 2px; background: var(--ih-on); transform: scaleY(0.22); }

.ih-done { display: flex; align-items: center; gap: 12px; padding: 14px 0 4px; font-size: 0.9375rem; font-weight: 600; }
.ih-done--soft { border-top: 0; padding: 6px 0 2px; font-weight: 400; color: var(--v2-text-muted); }
.ih-done--plain { border-top: 0; padding: 8px 0 4px; font-weight: 400; }
.ih-done--plain.ih-done--rule { border-top: 1px solid var(--v2-border); padding-top: 12px; }
.ih-check { display: block; flex: none; width: 18px; height: 18px; }
.ih-check circle { fill: var(--ih-on); }
.ih-check path { fill: none; stroke: var(--ih-on-fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ih-check--lg { width: 46px; height: 46px; }
.ih-check--lg path { stroke-width: 1.8; }

.ih-chip-on {
  display: inline-block; white-space: nowrap;
  font-size: 0.75rem; font-weight: 600; padding: 5px 12px; border-radius: var(--v2-r-pill);
  background: var(--ih-on); color: var(--ih-on-fg);
  border-top: 0;
}
.ih-chip-on--xs { font-size: 0.65625rem; font-weight: 700; padding: 4px 10px; }

/* Logged: key/value list */
.ih-kv { margin: 0; display: grid; }
.ih-kv > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; font-size: 0.9375rem; }
.ih-kv dt { color: var(--v2-text-muted); }
.ih-kv dd { margin: 0; font-weight: 600; text-align: right; }

/* Quoted */
.ih-status { position: relative; display: inline-grid; white-space: nowrap; font-size: 0.75rem; font-weight: 600; }
.ih-status > span {
  grid-area: 1 / 1; padding: 5px 12px; border-radius: var(--v2-r-pill);
  transition: opacity 400ms ease;
}
.ih-status__a { box-shadow: inset 0 0 0 1px var(--ih-card-border); color: var(--v2-text-muted); opacity: 0; }
.ih-status__b { background: var(--ih-on); color: var(--ih-on-fg); }
.ih-chip-off {
  display: inline-block; white-space: nowrap;
  font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: var(--v2-r-pill);
  box-shadow: inset 0 0 0 1px var(--ih-card-border); color: var(--v2-text-muted);
}
.ih-subj { font-size: 1rem; font-weight: 600; padding: 4px 0 10px; line-height: 1.35; }
.ih-subj--sm { font-size: 0.9375rem; padding: 0 0 6px; }
.ih-msg { margin: 0; font-size: 0.9375rem; line-height: 1.5; padding: 14px 0 4px; }
.ih-msg--first { padding: 6px 0 14px; }
.ih-cap--row { font-size: 0.6875rem; padding: 12px 0 8px; }
.ih-cap--flush { padding: 4px 0; }
.ih-check-row--sm { padding: 10px 0; }
.ih-attach { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0 2px; font-size: 0.875rem; border-top-color: var(--ih-card-border); }

/* Planned due: readiness dots, stat tiles, work order line */
.ih-ring { display: flex; align-items: center; gap: 10px; padding: 4px 0 14px; border-top: 0; }
.ih-ring__dots { display: flex; gap: 4px; }
.ih-ring__dots i { display: block; width: 13px; height: 13px; border-radius: 999px; box-sizing: border-box; border: 1px solid var(--ih-card-border); }
.ih-ring__dots i.is-on { background: var(--ih-on); border-color: var(--ih-on); }
.ih-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 6px 0 12px; border-top: 0; }
.ih-tile { display: grid; gap: 4px; align-content: start; padding: 10px 12px; border-radius: 12px; background: var(--ih-tint); }
.ih-tile__num { font-family: var(--v2-font-display); font-weight: 500; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ih-tile__lab { font-size: 0.75rem; line-height: 1.25; color: var(--v2-text-muted); }
.ih-wo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 12px 0 2px; font-size: 0.875rem; }
.ih-wo__id { font-weight: 600; grid-column: 1 / -1; }
.ih-wo__meta { padding-top: 6px; }

/* Compliance pack + report findings */
.ih-req, .ih-find { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; font-size: 0.875rem; line-height: 1.35; }
.ih-status--cc > span { padding: 4px 10px; font-weight: 700; }
.ih-cert { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.8125rem; padding: 2px 0 10px; color: var(--v2-text-muted); }

/* Reporting: completion bars per discipline */
.ih-vbars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 4px 0 10px; }
.ih-vbar { display: grid; gap: 6px; justify-items: center; text-align: center; }
.ih-vbar__track { position: relative; display: block; width: 100%; height: 48px; border-radius: 4px; background: var(--ih-track); overflow: hidden; }
.ih-vbar__track i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ih-on); transform-origin: bottom; }
.ih-h100 { height: 100%; } .ih-h50 { height: 50%; }
.ih-vbar__lab { font-size: 0.75rem; font-weight: 600; }
.ih-vbar__val { font-size: 0.6875rem; color: var(--v2-text-muted); }


/* Compliance */
.ih-check-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; font-size: 0.9375rem; }
.ih-note { margin: 10px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--ih-tint); font-size: 0.9375rem; line-height: 1.4; }
.ih-note--gap { margin: 4px 0 8px; }
.ih-card .ih-r4:has(.ih-note), .ih-card .ih-r2:has(.ih-note) { border-top: 0; }


/* Steps / progress */
.ih-demo__steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.ih-demo__steps::-webkit-scrollbar { display: none; }
.ih-demo__steps > li { flex: none; scroll-snap-align: start; }
.ih-step {
  display: block; width: 100%; padding: 10px 16px; margin: 0;
  border: 0; border-radius: var(--v2-r-pill);
  box-shadow: inset 0 0 0 1px var(--v2-chip-border);
  background: transparent; color: var(--v2-text-muted);
  font: inherit; font-size: 0.875rem; font-weight: 600; text-align: left; white-space: nowrap; cursor: pointer;
  transition: background-color 400ms ease, color 400ms ease, opacity 400ms ease;
}
.ih-step:hover { color: var(--v2-text); }
.ih-step:focus-visible { outline: 2px solid var(--v2-focus); outline-offset: 3px; }
.ih-step.is-active { background: var(--v2-accent); color: #211E28; box-shadow: none; }
.ih-step__track { display: none; }
.ih-step__num { display: none; font-family: var(--v2-font-mono); font-size: 0.75rem; }

/* Row reveal (only while JS drives the walkthrough and motion is allowed) */
.ih-demo.is-animated .ih-row,
.ih-demo.is-animated .ih-rv {
  opacity: 0; transform: translateY(8px);
  transition: opacity 450ms ease, transform 450ms ease;
}
.ih-demo.is-animated .is-active .ih-row,
.ih-demo.is-animated .is-active .ih-rv { opacity: 1; transform: none; }
.ih-demo.is-animated .is-active .ih-r0 { transition-delay: 400ms; }
.ih-demo.is-animated .is-active .ih-r1 { transition-delay: 825ms; }
.ih-demo.is-animated .is-active .ih-r2 { transition-delay: 1250ms; }
.ih-demo.is-animated .is-active .ih-r3 { transition-delay: 1675ms; }
.ih-demo.is-animated .is-active .ih-r4 { transition-delay: 2100ms; }
.ih-demo.is-animated .is-active .ih-r5 { transition-delay: 2525ms; }
.ih-demo.is-animated .is-active .ih-r6 { transition-delay: 2950ms; }
.ih-demo.is-animated .is-active .ih-r7 { transition-delay: 3375ms; }
.ih-demo.is-animated .is-active .ih-r8 { transition-delay: 3800ms; }
.ih-demo.is-animated .is-active .ih-r9 { transition-delay: 4225ms; }
/* Voice wave while step 1 is on screen */
.ih-demo.is-animated .is-active .ih-wave > span { animation: ih-wave 0.53s ease-in-out infinite alternate; }
.ih-wave > span:nth-child(2) { animation-delay: -0.14s; } .ih-wave > span:nth-child(3) { animation-delay: -0.27s; }
.ih-wave > span:nth-child(4) { animation-delay: -0.41s; } .ih-wave > span:nth-child(5) { animation-delay: -0.06s; }
.ih-wave > span:nth-child(6) { animation-delay: -0.33s; } .ih-wave > span:nth-child(7) { animation-delay: -0.2s; }
.ih-wave > span:nth-child(8) { animation-delay: -0.47s; } .ih-wave > span:nth-child(9) { animation-delay: -0.1s; }
.ih-wave > span:nth-child(10) { animation-delay: -0.37s; } .ih-wave > span:nth-child(11) { animation-delay: -0.24s; }
.ih-wave > span:nth-child(12) { animation-delay: -0.5s; }
@keyframes ih-wave { from { transform: scaleY(0.22); } to { transform: scaleY(1); } }
/* Quote status flips to "Checked" at ~66% of the step */
.ih-demo.is-animated .ih-status__a { opacity: 1; }
.ih-demo.is-animated .ih-status__b { opacity: 0; }
.ih-demo.is-animated .is-active .ih-status__a { opacity: 0; transition-delay: 3300ms; }
.ih-demo.is-animated .is-active .ih-status__b { opacity: 1; transition-delay: 3300ms; }
/* Reporting: discipline bars grow */
.ih-demo.is-animated .ih-vbar__track i { transform: scaleY(0); transition: transform 1000ms ease; }
.ih-demo.is-animated .is-active .ih-vbar__track i { transform: none; transition-delay: 1300ms; }
.ih-demo.is-animated .is-active .ih-vbar:nth-child(2) .ih-vbar__track i { transition-delay: 1600ms; }
.ih-demo.is-animated .is-active .ih-vbar:nth-child(3) .ih-vbar__track i { transition-delay: 1900ms; }
.ih-demo.is-animated .is-active .ih-vbar:nth-child(4) .ih-vbar__track i { transition-delay: 2200ms; }
/* Step progress fill (desktop track) */
.ih-demo.is-animated .ih-step.is-active .ih-step__fill { animation: ih-fill 5s linear both; }
.ih-demo.is-paused .ih-step.is-active .ih-step__fill { animation-play-state: paused; }
@keyframes ih-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 600px) {
  .ih-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .ih-tile { padding: 12px 14px; }
  .ih-wo { grid-template-columns: 110px minmax(0, 1fr) auto; }
  .ih-wo__id { grid-column: auto; }
  .ih-vbar__track { height: 56px; }
  .ih-ring__dots { gap: 6px; }
  .ih-ring__dots i { width: 18px; height: 18px; }
}

@media (min-width: 900px) {
  .ih-demo__stage {
    display: block;
    min-height: 480px;
    border-radius: 26px; overflow: hidden;
    background: var(--ih-player-bg);
    box-shadow: var(--ih-player-shadow);
  }
  .ih-demo__stage::before { content: ""; position: absolute; inset: 0; background: var(--ih-player-overlay); pointer-events: none; }
  .ih-demo__panels { position: relative; min-height: 480px; padding: 40px clamp(56px, 5vw, 140px) 76px 56px; box-sizing: border-box; }
  .ih-demo__panel { justify-items: start; }
  .ih-demo__panel .ih-card { max-width: 520px; }
  .ih-demo__copy { gap: 14px; }
  .ih-demo__count { font-size: 0.875rem; }
  .ih-demo__controls { position: absolute; left: 56px; bottom: 22px; z-index: 2; justify-content: flex-start; }
  .ih-demo__ctl { width: 34px; height: 34px; border-color: transparent; }
  .ih-demo__ctl--play { background: var(--ih-ctl-bg); color: var(--v2-text); }
  .ih-card { background: var(--ih-card-bg); border-color: var(--ih-card-border); padding: 20px 28px; }
  .ih-card__label { font-size: 0.75rem; }
  .ih-chan { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 15px 0; }
  .ih-chan__quote, .ih-chan__subject { font-size: 1rem; }
  .ih-kv > div { padding: 13px 0; font-size: 1rem; }
  .ih-check-row { padding: 15px 0; font-size: 1.0625rem; }
  .ih-check-row--sm { padding: 10px 0; font-size: 0.9375rem; }
  .ih-subj { font-size: 1.0625rem; }
  .ih-req { font-size: 0.9375rem; padding: 12px 0; }
  .ih-wo__id { color: var(--v2-text); }
  .ih-tile__num { font-size: 1.625rem; }
  .ih-done { font-size: 1rem; }
  .ih-done--soft, .ih-done--plain { font-size: 0.9375rem; }

  .ih-demo__steps { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 16px; overflow: visible; }
  .ih-step {
    display: grid; gap: 12px; padding: 0 0 4px; border-radius: 0; box-shadow: none;
    background: transparent; color: var(--v2-text); opacity: 0.5; font-size: 0.875rem; white-space: normal;
  }
  .ih-step:hover { opacity: 0.8; }
  .ih-step.is-active { background: transparent; color: var(--v2-text); opacity: 1; }
  .ih-step__track { display: block; height: 2px; background: var(--ih-track); overflow: hidden; }
  .ih-step__fill { display: block; height: 100%; background: var(--ih-on); transform-origin: left; transform: scaleX(0); }
  .ih-step.is-done .ih-step__fill, .ih-step.is-active .ih-step__fill { transform: scaleX(1); }
  .ih-step__label { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
  .ih-step__num { display: inline; }
}
@media (min-width: 1200px) {
  .ih-demo__panel {
    grid-template-columns: minmax(0, 430px) minmax(0, 520px);
    justify-content: space-between; align-items: center; align-content: center; gap: 40px;
  }
}
@media (min-width: 1280px) {
  .ih-demo__panels { padding-right: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .ih-hero__line, .ih-hero__paid, .ih-hero__dot { animation: none !important; }
  .ih-wave > span { animation: none !important; }
}

/* --------------------------------------------------------------------------
   04 Peace of mind (same two-column layout as "You stay in control")
   -------------------------------------------------------------------------- */
.ih-ctrl__intro.ih-peace__intro { align-content: start; height: auto; }
.ih-peace__intro .ih-head { margin-bottom: 0; }
.ih-peace__title { font-size: clamp(2.5rem, 1.4rem + 4.7vw, 5.5rem); line-height: 1; }
.ih-peace__note { margin: 0; max-width: 440px; }

/* --------------------------------------------------------------------------
   05 Integrations
   -------------------------------------------------------------------------- */
:root, [data-theme="light"] {
  --ih-int-line: rgba(33, 30, 40, 0.16);
  --ih-int-fill: rgba(33, 30, 40, 0.02);
  --ih-sys-border: rgba(33, 30, 40, 0.22);
  --ih-sys-bg: rgba(33, 30, 40, 0.03);
  --ih-st-new: #8A8094;
  --ih-st-future: #7E7488;
}
[data-theme="dark"] {
  --ih-int-line: rgba(246, 210, 176, 0.18);
  --ih-int-fill: rgba(255, 255, 255, 0.03);
  --ih-sys-border: rgba(246, 210, 176, 0.24);
  --ih-sys-bg: rgba(255, 255, 255, 0.04);
  --ih-st-new: #B7ABB9;
  --ih-st-future: #9D93A6;
}
.ih-int__top { display: grid; gap: 24px; margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.ih-int__head .v2-h2 { letter-spacing: -0.025em; line-height: 1.05; }
.ih-int__sub { margin: 0; max-width: 560px; }

.ih-int__table { border: 1px solid var(--ih-int-line); border-radius: clamp(20px, 1rem + 1vw, 30px); overflow: hidden; background: var(--ih-int-fill); }
.ih-int__row { display: grid; gap: 16px; padding: 22px 20px; }
.ih-int__row + .ih-int__row { border-top: 1px solid var(--ih-int-line); }
.ih-int__cat { margin: 0; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--v2-text-muted); font-weight: 600; }
.ih-int__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ih-sys {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2;
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--ih-sys-border); background: var(--ih-sys-bg);
  transition: border-color 400ms ease, background-color 400ms ease;
}
.ih-sys--future { opacity: 0.5; }
/* Vendor tags: the whole tag is the link target (stretched ::after), so the tag keeps its padding/look. */
.ih-sys--link { position: relative; }
.ih-sys__link { color: inherit; text-decoration: none; }
.ih-sys__link::after { content: ""; position: absolute; inset: -1px; border-radius: 12px; }
.ih-sys__link:focus-visible { outline: none; }
.ih-sys__link:focus-visible::after { outline: 2px solid var(--v2-focus); outline-offset: 2px; }
.ih-sys--link:hover,
.ih-sys--link:has(.ih-sys__link:focus-visible) { border-color: var(--v2-accent); background: var(--v2-accent-tint); }
.ih-sys--link:hover .ih-sys__link { color: var(--v2-accent-ink); }
.ih-sys--more { border-color: var(--v2-accent-tint-border); background: var(--v2-accent-tint); color: var(--v2-accent-ink); }
.ih-sys__st { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.ih-sys__st--live { color: var(--v2-accent-ink); }
.ih-sys__st--new { color: var(--ih-st-new); }
.ih-sys__st--future { color: var(--ih-st-future); }

.ih-int__beyond { display: grid; gap: 28px; margin-top: clamp(3rem, 2.3rem + 2.9vw, 4.5rem); align-items: start; }
.ih-int__beyond-head { display: grid; gap: 18px; }
.ih-int__beyond-title { margin: 0; font-family: var(--v2-font-display); font-weight: 500; font-size: clamp(1.75rem, 1.5rem + 1.05vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; }
.ih-int__papers { list-style: none; margin: 0; padding: 0; display: grid; }
.ih-int__papers > li {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 16px 0; border-top: 1px solid var(--ih-int-line);
  font-size: clamp(1.125rem, 1.03rem + 0.4vw, 1.375rem); line-height: 1.35;
}
.ih-int__papers strong { font-weight: 600; }
.ih-int__pnum { font-family: var(--v2-font-mono); font-size: 0.875rem; color: var(--v2-text-muted); }
.ih-int__trust { margin: 36px 0 0; font-size: 1rem; line-height: 1.6; color: var(--v2-text-muted); max-width: 900px; }
.ih-int__trust a { color: inherit; text-decoration: underline; text-decoration-color: var(--v2-accent-ink); text-underline-offset: 3px; }
.ih-int__trust a:hover { color: var(--v2-accent-ink); }
.ih-int__cards { display: grid; gap: 18px; margin-top: clamp(2.5rem, 1.9rem + 2.4vw, 4rem); }
.ih-int__card {
  border: 1px solid var(--ih-int-line); border-radius: 24px; background: var(--ih-int-fill);
  padding: clamp(24px, 1.2rem + 1vw, 34px) clamp(22px, 1rem + 1.5vw, 38px);
  display: grid; gap: 14px; align-content: start;
}
.ih-int__card-title { margin: 0; font-family: var(--v2-font-display); font-weight: 600; font-size: clamp(1.375rem, 1.24rem + 0.57vw, 1.75rem); letter-spacing: -0.02em; }
.ih-int__card p { margin: 0; font-size: var(--v2-fs-body); line-height: 1.55; color: var(--v2-text-muted); max-width: 460px; }
.ih-int__legal { margin: 36px 0 0; font-size: 0.8125rem; line-height: 1.6; color: var(--v2-text-muted); max-width: 1000px; }

@media (min-width: 900px) {
  .ih-int__row { grid-template-columns: minmax(180px, 290px) minmax(0, 1fr); gap: 32px; align-items: center; padding: 30px 44px; }
  .ih-int__cat { font-size: 0.8125rem; }
  .ih-int__chips { gap: 12px; }
  .ih-sys { font-size: 1.125rem; padding: 12px 18px; }
  .ih-int__beyond { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); }
  .ih-int__papers > li { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
  .ih-int__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* --------------------------------------------------------------------------
   06 You stay in control
   -------------------------------------------------------------------------- */
.ih-ctrl__grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
.ih-ctrl__intro { display: grid; gap: 28px; align-content: space-between; height: 100%; }
.ih-ctrl__note { margin: 0; max-width: 420px; }
.ih-ctrl__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--v2-line); }
.ih-ctrl__list .v2-ctrl { padding: 22px 0; }
.ih-ctrl__icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--v2-r-pill); background: var(--v2-accent);
}
.ih-ctrl__icon svg { width: 22px; height: 22px; fill: none; stroke: #211E28; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ih-ctrl__txt { display: grid; gap: 8px; }
.ih-ctrl__title { margin: 0; font-size: clamp(1.25rem, 1.2rem + 0.2vw, 1.375rem); }
.ih-ctrl__txt p { margin: 0; }
@media (min-width: 900px) {
  .ih-ctrl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ih-ctrl__list .v2-ctrl { padding: 26px 0; }
}

/* --------------------------------------------------------------------------
   07 Your first 60 days: timeline lights up step by step (10s loop)
   -------------------------------------------------------------------------- */
.ih-days__inner { display: grid; gap: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.ih-days__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.ih-days__step { display: grid; gap: 14px; align-content: start; }
.ih-days__title { margin: 0; font-size: clamp(1.25rem, 1.2rem + 0.2vw, 1.375rem); }
.ih-days__step p { margin: 0; }
/* Steps side by side share row tracks so body text starts on one line. */
@supports (grid-template-rows: subgrid) {
  .ih-days__step { grid-row: span 4; grid-template-rows: subgrid; }
}
.ih-days__track { position: relative; display: block; height: 22px; }
.ih-days__track::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--v2-line-soft); }
.ih-days__fill { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--v2-accent); transform-origin: left; }
.ih-days__step--4 .ih-days__fill { transform: scaleX(0); }
.ih-days__dot {
  position: absolute; left: 0; top: 4px; width: 14px; height: 14px; box-sizing: border-box;
  border-radius: var(--v2-r-pill); border: 2px solid var(--v2-accent); background: var(--v2-accent);
}
.ih-days__banner { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ih-days__step--1 .ih-days__fill { animation: ih-days-f1 10s linear infinite both; }
  .ih-days__step--2 .ih-days__fill { animation: ih-days-f2 10s linear infinite both; }
  .ih-days__step--3 .ih-days__fill { animation: ih-days-f3 10s linear infinite both; }
  .ih-days__step--2 .ih-days__dot { animation: ih-days-d2 10s linear infinite both; }
  .ih-days__step--3 .ih-days__dot { animation: ih-days-d3 10s linear infinite both; }
  .ih-days__step--4 .ih-days__dot { animation: ih-days-d4 10s linear infinite both; }
}
@keyframes ih-days-f1 { 0%, 23% { transform: scaleX(0); } 30%, 99.9% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes ih-days-f2 { 0%, 46% { transform: scaleX(0); } 53%, 99.9% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes ih-days-f3 { 0%, 69% { transform: scaleX(0); } 76%, 99.9% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes ih-days-d2 { 0%, 23% { background-color: var(--v2-bg); border-color: var(--v2-chip-border); } 28%, 100% { background-color: var(--v2-accent); border-color: var(--v2-accent); } }
@keyframes ih-days-d3 { 0%, 46% { background-color: var(--v2-bg); border-color: var(--v2-chip-border); } 51%, 100% { background-color: var(--v2-accent); border-color: var(--v2-accent); } }
@keyframes ih-days-d4 { 0%, 69% { background-color: var(--v2-bg); border-color: var(--v2-chip-border); } 74%, 100% { background-color: var(--v2-accent); border-color: var(--v2-accent); } }

/* --------------------------------------------------------------------------
   08 Closing + pipeline divider above the shared footer
   -------------------------------------------------------------------------- */
.ih-closing { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(3.5rem, 2.5rem + 4.4vw, 6.25rem); }
.ih-closing__inner { padding-bottom: clamp(3rem, 2.3rem + 2.9vw, 4.5rem); }
.ih-closing__accent { color: var(--v2-accent-ink); }
.ih-pipe { position: relative; height: 1px; background: var(--v2-line-soft); margin: 0 0 clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.ih-pipe__fill { position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--v2-accent); opacity: 0.55; transform-origin: left; }
.ih-pipe__node {
  position: absolute; top: -5px; margin-left: -5px; width: 11px; height: 11px; box-sizing: border-box;
  border-radius: var(--v2-r-pill); border: 2px solid var(--v2-accent); background: var(--v2-accent);
}
.ih-pipe__node--1 { left: 0; } .ih-pipe__node--2 { left: 33.333%; } .ih-pipe__node--3 { left: 66.667%; } .ih-pipe__node--4 { left: 100%; margin-left: -6px; }
.ih-pipe__dot {
  position: absolute; top: -5px; left: 0; margin-left: -5px; width: 11px; height: 11px; border-radius: var(--v2-r-pill);
  background: var(--v2-accent); box-shadow: 0 0 0 6px var(--v2-accent-halo); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .ih-pipe__fill { animation: ih-pipe-fill 9s linear infinite; }
  .ih-pipe__dot { animation: ih-pipe-dot 9s linear infinite; }
  .ih-pipe__node--2 { animation: ih-pipe-n2 9s linear infinite; }
  .ih-pipe__node--3 { animation: ih-pipe-n3 9s linear infinite; }
  .ih-pipe__node--4 { animation: ih-pipe-n4 9s linear infinite; }
}
@keyframes ih-pipe-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ih-pipe-dot {
  0% { left: 0; opacity: 0; } 16.7% { opacity: 1; } 83.3% { opacity: 1; } 100% { left: 100%; opacity: 0; }
}
@keyframes ih-pipe-n2 { 0%, 32.3% { background-color: var(--v2-bg); border-color: var(--v2-chip-border); } 33.3%, 100% { background-color: var(--v2-accent); border-color: var(--v2-accent); } }
@keyframes ih-pipe-n3 { 0%, 65.6% { background-color: var(--v2-bg); border-color: var(--v2-chip-border); } 66.6%, 100% { background-color: var(--v2-accent); border-color: var(--v2-accent); } }
@keyframes ih-pipe-n4 { 0%, 98.9% { background-color: var(--v2-bg); border-color: var(--v2-chip-border); } 99%, 100% { background-color: var(--v2-accent); border-color: var(--v2-accent); } }

/* Fixes after visual check */
.ih-see__glows { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); }
@media (max-width: 1199.98px) {
  /* Narrow screens: the stage takes the height of the current step only, and
     the step pills sit above it so they do not jump while steps change. */
  .ih-demo__panels { position: relative; }
  .ih-demo__panel:not(.is-active) { position: absolute; top: 0; left: 0; width: 100%; }
}
@media (max-width: 899.98px) { .ih-demo__steps { order: -1; } }
@media (min-width: 900px) and (max-width: 1199.98px) {
  .ih-demo__panel:not(.is-active) { top: 40px; left: 56px; right: clamp(56px, 5vw, 140px); width: auto; }
}
@media (min-width: 900px) and (max-width: 1199.98px) { .ih-step__num { display: none; } .ih-step { font-size: 0.9375rem; } }
