/* ============================================================================
   ICARE HORIZON TOOLS — service ticker + care pathfinder.
   Self-contained layer: every token use carries a fallback so this file works
   independently of overrides.css. Interactivity lives in /assets/tools.js and
   degrades to plain links / static content without JavaScript.
   ========================================================================== */

/* ---------- Service ticker (marquee band) ---------- */
.svcTicker {
  background: rgba(6, 15, 22, 0.96);
  border-block: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  position: relative;
  padding-block: 18px;
}

.svcTicker__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: svcTickerScroll 46s linear infinite;
}

.svcTicker:hover .svcTicker__track,
.svcTicker:focus-within .svcTicker__track,
.svcTicker[data-paused="true"] .svcTicker__track {
  animation-play-state: paused;
}

.svcTicker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.svcTicker__group span {
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(226, 238, 244, 0.82);
  white-space: nowrap;
  padding-inline: 26px;
}

.svcTicker__group b {
  color: #67e8d9;
  font-weight: 400;
}

.svcTicker__pause {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #eef6fa;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
}

.svcTicker__pause:hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes svcTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .svcTicker__track { animation: none; flex-wrap: wrap; width: auto; }
  .svcTicker__group { flex-wrap: wrap; row-gap: 8px; }
  .svcTicker__group[aria-hidden="true"] { display: none; }
  .svcTicker__pause { display: none; }
}

/* ---------- Care pathfinder ---------- */
.pathfinder {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(6, 15, 22, 0.88) 0%, rgba(10, 26, 38, 0.82) 55%, rgba(13, 35, 52, 0.88) 100%),
    url(/horizon-curve.jpg) center / cover no-repeat, #0a1a26;
  color: #eef6fa;
  padding-block: 100px;
}

.pathfinder .container {
  position: relative;
}

.pathfinder__head {
  max-width: 660px;
  margin-bottom: 42px;
}

.pathfinder__head .eyebrow {
  color: #67e8d9;
}

.pathfinder__head h2 {
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  color: #f7fbfd;
  margin: 0 0 14px;
}

.pathfinder__head p {
  color: rgba(233, 243, 248, 0.82);
  margin: 0;
}

.pathfinder__panel {
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.6);
  padding: clamp(22px, 4vw, 40px);
}

.pathfinder__step {
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7fd0ff;
  display: block;
  margin-bottom: 10px;
}

.pathfinder__question {
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 560;
  color: #f7fbfd;
  margin: 0 0 22px;
}

.pathfinder__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pathfinder__options a,
.pathfinder__options button {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  color: #f2f8fb;
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 560;
  padding: 18px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.pathfinder__options a:hover,
.pathfinder__options button:hover {
  border-color: rgba(103, 232, 217, 0.7);
  background: rgba(18, 181, 164, 0.14);
  transform: translateY(-2px);
}

.pathfinder__options a:focus-visible,
.pathfinder__options button:focus-visible,
.pathfinder__back:focus-visible,
.svcTicker__pause:focus-visible {
  outline: 2px solid #67e8d9;
  outline-offset: 3px;
}

.pathfinder__options small {
  display: block;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(226, 238, 244, 0.66);
  margin-top: 6px;
}

.pathfinder__result h3 {
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  color: #f7fbfd;
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.pathfinder__result > p {
  color: rgba(233, 243, 248, 0.82);
  margin: 0 0 20px;
}

.pathfinder__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.pathfinder__links a {
  display: block;
  background: rgba(18, 181, 164, 0.12);
  border: 1px solid rgba(103, 232, 217, 0.45);
  border-radius: 16px;
  color: #9fded8;
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  padding: 16px 20px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.pathfinder__links a:hover {
  background: rgba(18, 181, 164, 0.22);
  transform: translateY(-2px);
}

.pathfinder__links a small {
  display: block;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(226, 238, 244, 0.7);
  margin-top: 5px;
}

.pathfinder__back {
  background: none;
  border: none;
  color: rgba(226, 238, 244, 0.66);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pathfinder__back:hover { color: #fff; }

.pathfinder__note {
  margin-top: 26px;
  font-size: 0.82rem;
  color: rgba(226, 238, 244, 0.62);
  max-width: 720px;
}

.pathfinder__note a { color: #ffb3a0; }

/* factual stat chips under the heading */
.pathfinder__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pathfinder__facts li {
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 238, 244, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
}

@media (prefers-reduced-motion: reduce) {
  .pathfinder__options a, .pathfinder__options button,
  .pathfinder__links a { transition: none; }
}

@supports not (backdrop-filter: blur(1px)) {
  .pathfinder__panel { background: rgba(10, 26, 38, 0.92); }
}
