:root {
  --ols-font-body: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ols-font-body-weight: 500;
  --ols-font-body-size: 18px;
  --ols-font-display: "Shippori Mincho", "Georgia", serif;
  --ols-height: clamp(430px, 34vw, 620px);
  --ols-rail-width: 100px;
  --ols-border-radius: 28px;
  --ols-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ols-transition: 420ms var(--ols-ease);
  --ols-panel-padding: clamp(16px, 4.8vw, 26px);
}

.ols-hacc {
  --ols-rail-width: 100px;
}

.ols-hacc--3 {
  --ols-rail-width: 150px;
}

.ols-hacc--5 {
  --ols-rail-width: 110px;
}

.ols-hacc {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: var(--ols-height);
  border-radius: var(--ols-border-radius);
  overflow: hidden;
  color: #ffffff;
  background: #050b2b;
  isolation: isolate;
  font-family: var(--ols-font-body);
  font-size: var(--ols-font-body-size);
  font-weight: var(--ols-font-body-weight);
}

.ols-hacc,
.ols-hacc * {
  box-sizing: border-box;
}

.ols-hacc__item {
  position: relative;
  flex: 0 0 var(--ols-rail-width);
  width: var(--ols-rail-width);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transition: width var(--ols-transition), flex-basis var(--ols-transition),
    filter var(--ols-transition);
}

.ols-hacc__item.is-active {
  flex: 1 1 60%;
  width: auto;
  filter: saturate(1);
}

.ols-hacc[data-ols-width-lock="true"] .ols-hacc__item,
.ols-hacc[data-ols-width-lock="true"] .ols-hacc__item.is-active {
  flex: 0 0 auto;
  width: auto;
}

.ols-hacc__item:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 3;
}

.ols-hacc__item::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ols-transition);
  z-index: 2;
}

.ols-hacc__item:not(.is-active)::after {
  opacity: 1;
}

.ols-hacc__trigger {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 4;
}

.ols-hacc__item.is-active .ols-hacc__trigger {
  pointer-events: none;
}

.ols-hacc__trigger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: -4px;
}

.ols-hacc__surface {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(20px, 3.6vw, 25px);
  width: 100%;
  min-height: var(--ols-height);
  max-height: 620px;
  height: auto;
  padding: var(--ols-panel-padding);
  background: var(--ols-step-bg, linear-gradient(135deg, #11163f, #070b25));
  color: inherit;
  transition: background var(--ols-transition), padding var(--ols-transition);
}

.ols-hacc__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 70%;
  gap: 8px;
  margin-bottom: 16px;
}

.ols-hacc__meta-num-3 {
  font-family: var(--ols-font-display);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.3;
  font-weight: 200;
  padding-bottom: 25px;
}

.ols-hacc__meta-num {
  font-family: var(--ols-font-display);
  font-size: clamp(38px, 6vw, 48px);
  line-height: 1.3;
  font-weight: 200;
  padding-bottom: 25px;
}

.ols-hacc__meta-rule {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.ols-hacc__body {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.4vw, 24px);
  max-width: min(38rem, 65%);
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition: opacity 80ms ease, transform 200ms ease;
}

.ols-hacc__item.is-active .ols-hacc__body {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 680ms var(--ols-ease) 400ms,
    transform 420ms var(--ols-ease) 140ms;
}

.ols-hacc__title {
  margin: 0;
  font-family: var(--ols-font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  color: #ffffff !important;
}

.ols-hacc__copy {
  margin: 0;
  font-family: var(--ols-font-body);
  font-size: var(--ols-font-body-size);
  font-weight: var(--ols-font-body-weight);
  line-height: 1.6;
  color: rgba(226, 231, 255, 0.92);
  max-width: min(38rem, 95%);
}

.ols-hacc__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: left;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 0px;
  color: #b7befe;
  font-family: var(--ols-font-body);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: var(--ols-font-body-weight);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: color var(--ols-transition), transform var(--ols-transition);
}

.ols-hacc__cta:hover {
  color: #d4d8ff;
  transform: translateX(3px);
}

.ols-hacc__cta:active {
  color: #a8b1ff;
  transform: translateX(1px);
}

.ols-hacc__cta-icon {
  display: inline-flex;
  align-items: left;
  justify-content: left;
  font-family: "Material Symbols Outlined";
  font-size: 1.15em;
  line-height: 1;
  margin-top: 2px;
  transition: transform var(--ols-transition);
  letter-spacing: normal;
  text-transform: none;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.ols-hacc__cta-label {
  display: inline-block;
  text-align: left;
}

.ols-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 7vw, 96px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ols-transition);
  z-index: 10000;
}

.ols-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

body.ols-modal--open {
  overflow: hidden;
}

.ols-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 24, 0.82);
  backdrop-filter: blur(6px);
  z-index: 0;
}

.ols-modal__panel {
  position: relative;
  z-index: 1;
  width: min(840px, 94vw);
  max-height: min(90vh, 820px);
  padding: clamp(28px, 4.6vw, 44px);
  background: transparent;
  border-radius: 28px;
  border: 0px solid rgba(146, 158, 255, 0.32);
  color: #0f1735;
  overflow: auto;
}

.ols-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(142, 154, 255, 0.45);
  background: rgba(234, 237, 255, 0.92);
  color: #3142ff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ols-transition), color var(--ols-transition),
    transform var(--ols-transition), border-color var(--ols-transition);
}

.ols-modal__close:hover {
  background: rgba(220, 225, 255, 0.98);
  color: #1f2cff;
  border-color: rgba(120, 134, 255, 0.55);
}

.ols-modal__close:focus-visible {
  outline: 2px solid rgba(120, 134, 255, 0.75);
  outline-offset: 4px;
}

.ols-modal__close:active {
  transform: scale(0.95);
}

.ols-modal__matrix {
  width: 100%;
  min-width: min(720px, 100%);
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(196, 203, 255, 0.7);
}

.ols-modal__matrix thead th {
  font-family: var(--ols-font-body);
  font-size: clamp(15px, 2.1vw, 17px);
  font-weight: 600;
  color: #3142ff;
  text-align: left;
  padding: clamp(18px, 2.4vw, 22px);
  background: #f4f6ff;
  border-bottom: 1px solid rgba(196, 203, 255, 0.7);
}

.ols-modal__matrix thead th:first-child {
  color: transparent;
}

.ols-modal__matrix-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.8vw, 18px);
}

.ols-modal__matrix-col span {
  flex: 1;
}

.ols-modal__matrix tbody th {
  font-family: var(--ols-font-display);
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 500;
  color: #3142ff;
  background: #f8f9ff;
  padding: clamp(18px, 3vw, 24px);
  border-right: 1px solid rgba(196, 203, 255, 0.7);
  border-bottom: 1px solid rgba(212, 220, 255, 0.65);
}

.ols-modal__matrix tbody tr:last-child th {
  border-bottom: 0;
}

.ols-modal__matrix td {
  padding: clamp(18px, 3vw, 26px);
  border-bottom: 1px solid rgba(212, 220, 255, 0.65);
  border-right: 1px solid rgba(212, 220, 255, 0.65);
  vertical-align: top;
  background: #ffffff;
}

.ols-modal__matrix td:last-child,
.ols-modal__matrix thead th:last-child {
  border-right: 0;
}

.ols-modal__matrix tr:last-child td {
  border-bottom: 0;
}

.ols-modal__matrix-heading {
  display: block;
  font-family: var(--ols-font-body);
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 600;
  color: #11163f;
  margin-bottom: clamp(8px, 1.4vw, 12px);
}

.ols-modal__matrix-copy {
  margin: 0;
  font-family: var(--ols-font-body);
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.6;
  color: rgba(23, 32, 61, 0.76);
}

.ols-modal__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ols-modal__panel:focus-visible {
  outline: 2px solid rgba(120, 134, 255, 0.65);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .ols-modal {
    padding: clamp(16px, 4vw, 32px);
  }

  .ols-modal__panel {
    border-radius: 20px;
    padding: clamp(22px, 6vw, 32px);
    max-height: 90vh;
  }

  .ols-modal__matrix thead th,
  .ols-modal__matrix tbody th,
  .ols-modal__matrix td {
    font-size: 15px;
    padding: clamp(14px, 4.4vw, 20px);
  }

  .ols-modal__matrix-col {
    gap: clamp(10px, 3vw, 16px);
  }
}

.ols-hacc__dots {
  display: none;
}

.ols-hacc__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  opacity: 0.6;
  transition: background var(--ols-transition), transform var(--ols-transition),
    opacity var(--ols-transition);
}

.ols-hacc__dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.ols-hacc__dot[aria-current="true"],
.ols-hacc__dot.is-active {
  background: #ff592e;
  opacity: 1;
  transform: scale(1.2);
}

.ols-hacc__art {
  position: absolute;
  bottom: clamp(10px, 1.5vw, 20px);
  right: clamp(-15px, 2.8vw, -10px);
  width: clamp(160px, 22vw, 270px);
  height: clamp(160px, 22vw, 270px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  transform: translateZ(0);
  transition: opacity var(--ols-transition);
  will-change: opacity;
}

.ols-hacc__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ols-hacc__item:not(.is-active) .ols-hacc__art {
  opacity: 0.65;
}

.ols-hacc--3 .ols-hacc__art {
  right: clamp(-20px, 4vw, -6px);
}

.ols-hacc--5 .ols-hacc__art {
  right: clamp(-10px, 4vw, 35px);
}

.ols-hacc__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Step specific palettes */
.ols-hacc__item--step-1 {
  --ols-step-bg: #0e1652;
  --ols-step-active-bg: #0e1652;
}

.ols-hacc__item--step-2 {
  --ols-step-bg: #091717;
  --ols-step-active-bg: #091717;
}

.ols-hacc__item--step-3 {
  --ols-step-bg: #0021ff;
  --ols-step-active-bg: #0021ff;
}

@media (max-width: 1100px) {
  :root {
    --ols-rail-width: 120px;
  }

  .ols-hacc__item.is-active {
    flex: 1 1 55%;
  }
}

@media (max-width: 900px) {
  .ols-hacc {
    flex-direction: column;
    min-height: auto;
  }

  .ols-hacc__item {
    flex: none;
    min-height: 0;
    width: 100%;
  }

  .ols-hacc__item:not(.is-active) .ols-hacc__body {
    max-height: 0;
    opacity: 0;
    transform: none;
    overflow: hidden;
  }

  .ols-hacc__item.is-active .ols-hacc__body {
    max-height: 1200px;
    opacity: 1;
  }

  .ols-hacc__item:not(.is-active) .ols-hacc__art {
    position: relative;
    left: auto;
    right: auto;
    clip-path: none;
    transform: none;
    width: clamp(140px, 48vw, 200px);
    height: clamp(140px, 48vw, 200px);
    margin-top: clamp(18px, 8vw, 32px);
  }

  .ols-hacc--carousel {
    display: flex;
    flex-direction: row;
    gap: clamp(16px, 4vw, 24px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-bottom: clamp(8px, 2vw, 16px);
  }

  .ols-hacc--carousel::-webkit-scrollbar {
    display: none;
  }

  .ols-hacc--carousel .ols-hacc__item {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .ols-hacc--carousel .ols-hacc__trigger {
    display: none;
  }

  .ols-hacc--carousel .ols-hacc__body {
    max-height: none !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .ols-hacc--carousel .ols-hacc__art {
    display: none;
  }

  .ols-hacc--carousel + .ols-hacc__dots {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 3vw, 16px);
    margin: 30px auto clamp(12px, 4vw, 18px);
  }

  .ols-hacc--carousel + .ols-hacc__dots .ols-hacc__dot {
    background: #c2bab8;
  }

  .ols-hacc--carousel + .ols-hacc__dots .ols-hacc__dot[aria-current="true"],
  .ols-hacc--carousel + .ols-hacc__dots .ols-hacc__dot.is-active {
    background: #ff592e;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ols-hacc__item,
  .ols-hacc__surface,
  .ols-hacc__body,
  .ols-hacc__art,
  .ols-hacc__item::after,
  .ols-modal,
  .ols-modal__panel,
  .ols-modal__overlay,
  .ols-modal__close {
    transition: none !important;
  }
}
