.tax-page {
  --tax-navy: #081526;
  --tax-ink: #122947;
  --tax-muted: #607795;
  --tax-ice: #f4f7fb;
  background: var(--tax-ice);
  color: var(--tax-ink);
}

.tax-container {
  width: min(100% - 3rem, 78rem);
  margin-inline: auto;
}

.tax-hero {
  position: relative;
  min-height: min(48rem, 100vh);
  overflow: hidden;
  background: var(--tax-navy);
}

.tax-hero__slide,
.tax-hero__slide > img,
.tax-hero__veil {
  position: absolute;
  inset: 0;
}

.tax-hero__slide {
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 600ms ease,
    visibility 0ms linear 600ms;
}

.tax-hero__slide.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  transition: opacity 600ms ease;
}

.tax-hero__slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tax-hero__veil {
  background: linear-gradient(
    90deg,
    rgb(8 21 38 / 100%) 0%,
    rgb(8 21 38 / 92%) 37%,
    rgb(8 21 38 / 42%) 68%,
    rgb(8 21 38 / 16%) 100%
  );
}

.tax-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: min(48rem, 100vh);
  max-width: none;
  padding-block: 9rem 6.5rem;
}

.tax-overline,
.tax-hero__content > p {
  margin: 0;
  color: var(--orange-400);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tax-hero h1,
.tax-intro h2,
.tax-section-heading h2,
.tax-contact h2 {
  margin: 1rem 0 0;
  letter-spacing: -0.04em;
}

.tax-hero h1 {
  max-width: 43rem;
  color: #fff;
  font-size: clamp(3.3rem, 6vw, 6rem);
  line-height: 0.98;
}

.tax-hero__content > span {
  max-width: 35rem;
  margin-top: 1.45rem;
  color: rgb(255 255 255 / 84%);
  font-size: 1.04rem;
  line-height: 1.7;
}

.tax-hero .button,
.tax-contact .button,
.tax-simulator .button {
  width: fit-content;
  min-height: 3.35rem;
  margin-top: 2rem;
  padding: 0.8rem 1.35rem;
}

.tax-hero__controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 2rem;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
}

.tax-impact svg {
  width: 1.2rem;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.tax-hero__controls [role="tablist"] {
  display: flex;
  gap: 0.45rem;
}
.tax-hero__controls [role="tab"] {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 40%);
  border: 0;
}
.tax-hero__controls [role="tab"].is-active {
  position: relative;
  width: 2.25rem;
  border-radius: 2rem;
  background: rgb(255 255 255 / 38%);
}
.tax-hero__controls [role="tab"].is-active::after {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: var(--orange-400);
  content: "";
  animation: tax-dot-progress 6.5s linear forwards;
}
.tax-hero__controls button:focus-visible {
  outline: 0.18rem solid rgb(255 255 255 / 78%);
  outline-offset: 0.2rem;
}

@keyframes tax-dot-progress {
  to {
    width: 100%;
  }
}

.tax-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.75fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(5rem, 10vw, 9rem);
}

.tax-intro h2,
.tax-section-heading h2,
.tax-contact h2 {
  font-size: clamp(2.3rem, 4vw, 4.35rem);
  line-height: 1.02;
}
.tax-intro > p {
  align-self: end;
  max-width: 31rem;
  margin: 0;
  color: var(--tax-muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.tax-impact {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  background: var(--tax-navy);
}
.tax-impact .tax-section-heading {
  max-width: 47rem;
}
.tax-impact h2 {
  color: #fff;
}
.tax-impact__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3.5rem;
  background: rgb(255 255 255 / 18%);
}
.tax-impact article {
  min-height: 15rem;
  padding: 1.8rem;
  background: #10223a;
}
.tax-impact article svg {
  color: var(--orange-400);
}
.tax-impact h3 {
  margin: 2rem 0 0;
  color: #fff;
  font-size: 1.25rem;
}
.tax-impact article p {
  margin: 0.8rem 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: 0.9rem;
  line-height: 1.65;
}

.tax-showcase {
  padding-block: clamp(5rem, 10vw, 9rem);
}
.tax-section-heading {
  max-width: 50rem;
}
.tax-simulator {
  display: grid;
  grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: 3.5rem;
  padding: clamp(1.6rem, 4vw, 3.4rem);
  border-radius: 1rem;
  background: var(--tax-navy);
  box-shadow: 0 1.25rem 3rem rgb(8 21 38 / 18%);
}
.tax-simulator h3,
.tax-dashboard h2 {
  margin: 1rem 0 0;
  color: #fff;
  font-size: clamp(1.9rem, 3.1vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.tax-simulator__copy > p:not(.tax-overline),
.tax-dashboard p:not(.tax-overline) {
  color: rgb(255 255 255 / 76%);
  line-height: 1.7;
}
.tax-simulator figure {
  margin: 0;
  overflow: hidden;
  border-radius: 0.7rem;
}
.tax-simulator img,
.tax-showcase__grid img,
.tax-dashboard img {
  display: block;
  width: 100%;
  height: auto;
}
.tax-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.tax-showcase__grid article {
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 0.8rem 2rem rgb(8 21 38 / 8%);
}
.tax-showcase__grid img {
  aspect-ratio: 1.85;
  object-fit: cover;
  object-position: top;
}
.tax-showcase__grid article div {
  padding: 1.25rem 1.35rem 1.5rem;
}
.tax-showcase__grid h3 {
  margin: 0;
  font-size: 1.1rem;
}
.tax-showcase__grid p {
  margin: 0.55rem 0 0;
  color: var(--tax-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.tax-dashboard {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: #182f4c;
}
.tax-dashboard__layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.tax-dashboard img {
  border-radius: 0.7rem;
}

.tax-contact {
  padding-block: clamp(5rem, 9vw, 8rem);
  background: #eaf0f6;
}
.tax-contact__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.68fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.tax-contact__intro h2 {
  margin: 0;
}
.tax-contact__intro p {
  max-width: 27rem;
  margin: 0;
  color: var(--tax-muted);
  line-height: 1.7;
}
.tax-contact__form {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3.4rem);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1.25rem 3rem rgb(8 21 38 / 10%);
}
.tax-contact .prospect-form__grid {
  display: contents;
}
.tax-contact label {
  display: grid;
  gap: 0.42rem;
}
.tax-contact input,
.tax-contact textarea {
  width: 100%;
  border: 1px solid #cedbe8;
  border-radius: 0.55rem;
  background: #fff;
  color: var(--tax-ink);
  font: inherit;
}
.tax-contact input {
  min-height: 3.15rem;
  padding-inline: 0.85rem;
}
.tax-contact textarea {
  min-height: 7rem;
  padding: 0.85rem;
  resize: vertical;
}
.tax-contact .prospect-form__label {
  color: var(--tax-ink);
  font-size: 0.82rem;
  font-weight: 800;
}
.tax-contact .prospect-form__label em {
  color: var(--orange-500);
  font-style: normal;
}
.tax-contact .prospect-form__help,
.tax-contact .prospect-form__feedback {
  margin: 0;
  color: var(--tax-muted);
  font-size: 0.78rem;
}
.tax-contact .prospect-form__consent {
  grid-template-columns: 1rem 1fr;
  align-items: start;
  color: var(--tax-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}
.tax-contact .prospect-form__consent input {
  min-height: auto;
  margin-top: 0.25rem;
}
.tax-contact .button {
  width: 100%;
  margin-top: 0.25rem;
}
.tax-contact input:focus-visible,
.tax-contact textarea:focus-visible {
  border-color: var(--orange-500);
  outline: 0.18rem solid rgb(255 106 0 / 20%);
  outline-offset: 0.1rem;
}

.tax-contact__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.82fr);
  overflow: hidden;
  margin-top: 3rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1.6rem 3.8rem rgb(8 21 38 / 11%);
}

.tax-contact__visual {
  min-height: 100%;
  margin: 0;
  background: var(--tax-navy);
}

.tax-contact__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 46.0625rem) and (max-height: 48rem) {
  .tax-hero__content {
    padding-block: clamp(6rem, 13vh, 7rem) 6.5rem;
  }
}

@media (max-width: 62rem) {
  .tax-impact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tax-showcase__grid,
  .tax-contact__card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 46rem) {
  .tax-container {
    width: min(100% - 2rem, 78rem);
  }
  .tax-hero,
  .tax-hero__content {
    min-height: 44rem;
  }
  .tax-hero__content {
    align-content: end;
    padding-block: 11rem 3rem;
  }
  .tax-hero h1 {
    font-size: clamp(2rem, 9.2vw, 2.65rem);
  }
  .tax-hero__veil {
    background: linear-gradient(
      180deg,
      rgb(8 21 38 / 12%) 0%,
      rgb(8 21 38 / 34%) 38%,
      rgb(8 21 38 / 88%) 72%,
      rgb(8 21 38 / 98%) 100%
    );
  }

  .tax-hero__content > span {
    font-size: 0.98rem;
  }
  .tax-hero__controls {
    left: 50%;
    bottom: 1.25rem;
  }
  .tax-intro,
  .tax-contact__intro,
  .tax-simulator,
  .tax-dashboard__layout {
    grid-template-columns: 1fr;
  }
  .tax-intro {
    gap: 1.5rem;
  }
  .tax-impact__grid {
    grid-template-columns: 1fr;
  }
  .tax-impact article {
    min-height: 0;
  }
  .tax-simulator,
  .tax-dashboard__layout {
    gap: 1.5rem;
  }
  .tax-simulator figure {
    order: -1;
  }
  .tax-contact__visual {
    min-height: 21rem;
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tax-hero__slide {
    transition: none;
  }
}
