/* Page-scoped design tokens: shared navigation and account pages stay independent. */
@font-face {
  font-family: "Righteous";
  src: url("../fonts/Righteous/Righteous-Regular.ttf") format("truetype");
  font-display: swap;
}

.home {
  --home-ink: #243b58;
  --home-blue: #3b64a7;
  --home-dark: var(--bh-dark-blue-gradient);
  --home-muted: #56677d;
  --home-paper: #fff;
  --home-surface: #fff;
  --home-surface-graphite: linear-gradient(135deg, #293b52, #355372);
  --home-on-dark: #f4f7fa;
  --home-on-dark-muted: #c2cad3;
  --home-line: #d9dde2;
  --home-dark-line: #b8cfdd33;
  --home-radius: 24px;
  --home-card-radius: 16px;
  --home-section-gap: 72px;
  --home-panel-shadow: 0 12px 30px -24px #23282e66;
  --home-accent: #a8d1ef;
  color: var(--home-ink);
  background: transparent;
  padding: 28px 0 0;
}
.home-wrap {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}
.home h1,
.home h2,
.home h3,
.home p {
  margin: 0;
}
.home h1,
.home h2 {
  text-wrap: balance;
}
.home h2 {
  font-size: clamp(30px, 3.3vw, 45px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.home h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
}
.home a,
.home button,
.home summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.home :is(a, button, summary):focus-visible {
  outline: 3px solid #3b64a7;
  outline-offset: 6px;
}
.home :is(.home-hero, .home-care, .home-contact) :is(a, button):focus-visible {
  outline-color: var(--home-accent);
}
.home :is(section, h2)[id] {
  scroll-margin-top: 28px;
}
.home-kicker {
  font-size: 13px;
  font-weight: 650;
  color: var(--home-muted);
  margin-bottom: 15px !important;
}
.home-skip {
  position: fixed;
  left: 20px;
  top: 10px;
  padding: 15px 22px;
  background: white;
  z-index: 10000;
  transform: translateY(-180%);
  border-radius: 12px;
}
.home-skip:focus {
  transform: translateY(0);
}
.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #23282e;
  color: #fff;
  border-radius: var(--home-radius);
  overflow: hidden;
  box-shadow: 0 24px 64px -36px #132f68a6;
}
.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 87% 40%, #3b64a750 0%, transparent 57%),
    var(--home-dark);
}
.home-hero__grid {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 40%;
  opacity: 0.2;
  background-image:
    linear-gradient(#b1cfff25 1px, transparent 1px),
    linear-gradient(90deg, #b1cfff25 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.home-hero__copy {
  padding: 62px 0 50px 62px;
  position: relative;
  z-index: 2;
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #ccd8ee;
  flex-wrap: wrap;
}

.home-brand__line {
  width: 22px;
  height: 1px;
  background: #a8bee471;
  margin-inline: 3px;
}
.home h1 {
  font-family: "Righteous", "Montserrat", sans-serif;
  font-size: clamp(54px, 6.1vw, 82px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-top: 34px;
  font-weight: 400;
}
.home-hero__description {
  max-width: 395px;
  font-size: 14px;
  line-height: 1.9;
  color: #c9d6ed;
  margin-top: 26px !important;
}
.home-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 52px;
  padding: 16px 23px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 0.2s,
    background-color 0.2s;
}
.home-button--primary {
  background: var(--home-accent);
  color: #172d50;
  box-shadow: 0 6px 30px #91cee520;
}
.home-button--primary:hover {
  background: #d3e2eb;
  color: #172d50;
  transform: translateY(-3px);
}
.home-button--dark {
  background: var(--home-ink);
  color: #fff;
}
.home-button--dark:hover {
  background: #414d5b;
  color: white;
}
.home-button--light {
  background: #fff;
  color: var(--home-ink);
}
.home-button--light:hover {
  background: #e0e6ec;
  color: var(--home-ink);
  transform: translateY(-3px);
}
.home-text-link {
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-block: 12px;
}
.home-text-link:hover {
  color: var(--home-blue);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.home-hero .home-text-link {
  color: #fff;
}
.home-hero__assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
  color: #bacde9;
  font-size: 10px;
  line-height: 1.6;
}
.home-hero__assurances > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.home-hero__assurances i {
  flex: 0 0 14px;
  text-align: center;
  color: #c6dcff;
}
.home-hero__bottom {
  grid-column: 1 / -1;
  margin: 0 40px;
  padding: 18px 22px;
  border-top: 1px solid #d5e4ff24;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #adc3e6;
  font-size: 10px;
}
.home-hero__bottom a {
  color: #dae6fc;
}
.home-hero__bottom a span {
  margin-left: 18px;
}
/* The rank browser is illustrative, never a fabricated order or live statistic. */
.home-rank {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 40px 25px 22px;
  isolation: isolate;
}
.home-rank__caption {
  color: #dfebff;
  font-size: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.home-dot {
  width: 6px;
  height: 6px;
  background: #9fc8ff;
  border-radius: 50%;
  box-shadow: 0 0 12px #9fc8ff;
}
.home-rank__art {
  width: 270px;
  height: 260px;
  position: relative;
  display: grid;
  place-items: center;
  transform: perspective(900px) rotateX(var(--rank-x, 0deg))
    rotateY(var(--rank-y, 0deg));
  transition: transform 0.3s ease-out;
}
.home-rank__art.is-tracking {
  transition: none;
}
.home-rank__shield {
  position: absolute;
  width: 180px;
  height: 208px;
  clip-path: polygon(50% 0, 95% 25%, 95% 72%, 50% 100%, 5% 72%, 5% 25%);
  background: linear-gradient(
    135deg,
    #c3d0dc95,
    #465668b0 30%,
    #66788bb3 65%,
    #c3d0dc80
  );
}
.home-rank__shield::after {
  content: "";
  position: absolute;
  inset: 2px;
  clip-path: inherit;
  background: linear-gradient(145deg, #5a6d80, #2c3744 55%, #485969);
}
.home-rank__badge {
  width: 126px;
  height: 143px;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 12px 14px #071d49b0);
  image-rendering: auto;
}
.home-rank__ghost {
  position: absolute;
  top: 36%;
  width: 60px;
  height: 68px;
  object-fit: contain;
  opacity: 0.32;
  z-index: 1;
}
.home-rank__ghost[hidden] {
  display: none;
}
.home-rank__ghost--previous {
  left: -10px;
  transform: rotate(-12deg) scale(0.9);
}
.home-rank__ghost--next {
  right: -10px;
  transform: rotate(12deg) scale(0.9);
}
.home-rank__beam {
  position: absolute;
  inset: 8% -25%;
  background: radial-gradient(ellipse, #9ab2c54d, transparent 65%);
  transform: rotate(-25deg);
}
.home-rank__orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid #95b7ff26;
  border-radius: 50%;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%) rotate(-25deg);
}
.home-rank__orbit--outer {
  width: 470px;
  height: 470px;
  border-style: dashed;
}
.home-rank__orbit--inner {
  width: 370px;
  height: 370px;
  box-shadow:
    0 0 0 30px #abcaff04,
    inset 0 0 90px #4a7edb14;
}
.home-rank__cross {
  position: absolute;
  color: #9dbce58c;
  font-size: 20px;
  font-weight: 300;
}
.home-rank__cross--one {
  top: 17%;
  left: 19%;
}
.home-rank__cross--two {
  bottom: 25%;
  right: 12%;
}
.home-rank__spark {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #b3dcff;
  transform: rotate(45deg);
  box-shadow: 0 0 12px #b3dcff;
}
.home-rank__spark--one {
  top: 28px;
  right: 17px;
}
.home-rank__spark--two {
  bottom: 35px;
  left: 12px;
  width: 3px;
  height: 3px;
}
.home-rank__goal {
  text-align: center;
  margin-top: -6px;
}
.home-rank__goal > span {
  color: #aec6ea;
  font-size: 10px;
}
.home-rank__goal strong {
  display: block;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.04em;
  margin-top: 3px;
}
.home-rank__progress {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin: 15px 0 20px;
}
.home-rank__progress span {
  width: 19px;
  height: 3px;
  background: #8bb6ff;
  transform: skew(-25deg);
}
.home-rank__progress span:nth-last-child(-n + 2) {
  background: #adcfff2e;
}
.home-rank__controls {
  display: flex;
  gap: 5px;
  background: #1b222b66;
  border: 1px solid #a0c0ed26;
  border-radius: 8px;
  padding: 4px;
}
.home-rank__controls[hidden] {
  display: none;
}
.home-rank__controls button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 9px 16px;
  color: #b7cceb;
  font-size: 10px;
  min-height: 38px;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.home-rank__controls button:hover {
  color: #fff;
  background: #414e5e;
}
.home-rank__controls button[aria-pressed="true"] {
  background: #41658a;
  color: #fff;
  border-color: #82adf653;
}
.home-rank__note {
  color: #a8bfe2;
  font-size: 9px;
  margin-top: 12px;
}
.home-brand__wordmark {
  font-size: 15px;
  font-weight: 700;
  color: #f4f8ff;
  letter-spacing: -0.04em;
}
/* Motion is enabled by JS only when pause controls are available. */
.home .home-hero {
  width: calc(100% - 32px);
  max-width: 1280px;
  padding-inline: 0;
}
.home-rank__display {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.home-hero__bottom {
  align-items: center;
  flex-wrap: wrap;
}
.home-hero__bottom > a {
  order: 3;
}
.home-hero__copy {
  animation: hero-entrance 0.8s both;
}
.home-rank__art {
  animation: hero-art-enter 1s 0.15s backwards;
}
.home.has-motion .home-rank__display {
  animation: hero-float 5s ease-in-out infinite;
}
.home.has-motion .home-rank__orbit--outer {
  animation: hero-orbit 40s linear infinite;
}
.home.has-motion .home-rank__beam {
  animation: hero-beam 4s ease-in-out infinite alternate;
}
/* Promote only the three moving surfaces, and release them outside the viewport. */
.home.has-motion:not(.is-offscreen)
  :is(.home-rank__art, .home-rank__display, .home-rank__orbit--outer) {
  will-change: transform;
}
.home:is(.motion-paused, .is-offscreen)
  :is(.home-rank__display, .home-rank__orbit--outer, .home-rank__beam) {
  animation-play-state: paused !important;
}
@keyframes hero-art-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes hero-entrance {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}
@keyframes hero-orbit {
  from {
    transform: translate(-50%, -50%) rotate(-25deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(335deg);
  }
}
@keyframes hero-beam {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 1000px) {
  .home-hero__copy {
    padding: 40px 0 35px 35px;
  }
  .home h1 {
    font-size: 63px;
  }
  .home-rank {
    min-height: 540px;
  }
  .home-rank__orbit--outer {
    width: 360px;
    height: 360px;
  }
  .home-rank__orbit--inner {
    width: 280px;
    height: 280px;
  }
  .home-hero__description {
    max-width: 330px;
  }
}
@media (max-width: 700px) {
  .home {
    padding-top: 16px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .home-hero__copy {
    padding: 30px 25px 0;
  }
  .home h1 {
    font-size: clamp(52px, 12vw, 76px);
    margin-top: 24px;
  }
  .home-brand {
    font-size: 9px;
    gap: 7px;
  }
  .home-brand__line {
    width: 12px;
  }
  .home-hero__description {
    max-width: 100%;
  }
  .home-hero__assurances {
    flex-direction: column;
    align-items: flex-start;
    margin: 24px 0 28px;
    gap: 10px;
    font-size: 11px;
  }
  .home-rank {
    min-height: 460px;
    padding-top: 28px;
  }
  .home-rank__art {
    height: 230px;
  }
  .home-rank__orbit--outer {
    width: 330px;
    height: 330px;
  }
  .home-rank__orbit--inner {
    width: 260px;
    height: 260px;
  }
  .home-hero__bottom {
    margin: 0 25px;
    padding: 17px 0;
    font-size: 9px;
    gap: 12px;
  }
  .home-hero__bottom > span {
    flex-basis: 100%;
  }

  .home-hero__bottom > a {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home *,
  .home *::before,
  .home *::after {
    animation: none !important;
    transition: none !important;
  }
}
.home-rank__progress span,
.home-rank__progress span:nth-last-child(-n + 2) {
  background: #adcfff2e;
  transition: background-color 0.3s;
}
.home-rank__progress .is-reached,
.home-rank__progress .is-reached:nth-last-child(-n + 2) {
  background: #a8d1ef;
}
