/* burger menu */
.burger-line {
  transform-origin: center;
  transition: transform 300ms ease;
}

#burger-line-1 {
  transform: translateY(-5px) translateX(7px);
  transition-timing-function: cubic-bezier(0.5, 0.85, 0.25, 1.1);
}

#burger-line-2 {
  transform: translateY(0) translateX(0);
  transition-timing-function: cubic-bezier(0.5, 0.85, 0.25, 1.8);
}

#burger-line-3 {
  transform: translateY(5px) translateX(0);
  transition-timing-function: cubic-bezier(0.5, 0.85, 0.25, 1.1);
}

.burger-btn[aria-pressed="true"] #burger-line-1 {
  transform: translateX(0) translateY(0) rotate(315deg);
}

.burger-btn[aria-pressed="true"] #burger-line-2 {
  transform: rotate(45deg);
}

.burger-btn[aria-pressed="true"] #burger-line-3 {
  transform: translateX(0) translateY(0) rotate(135deg);
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-reveal="left"] {
  transform: translateX(-40px);
}

.reveal[data-reveal="right"] {
  transform: translateX(40px);
}

.reveal[data-reveal="zoom"] {
  transform: scale(0.94);
}

.reveal[data-reveal="left"].is-visible,
.reveal[data-reveal="right"].is-visible,
.reveal[data-reveal="zoom"].is-visible {
  transform: none;
}

header {
  box-shadow: none;
}

header.is-scrolled {
  box-shadow: 0 8px 22px -10px rgba(15, 23, 42, 0.22);
}

.stat-count {
  font-variant-numeric: tabular-nums;
}

.landing-steps-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.landing-steps-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.125rem 0.25rem 0.625rem;
  margin-inline: -0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.landing-steps-tabs::-webkit-scrollbar {
  display: none;
}

.landing-step-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  border: 1px solid rgb(226 232 240);
  background: #FAF9F5;
  color: rgb(51 65 85);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.landing-step-tab:hover:not(.is-active):not([aria-selected="true"]) {
  border-color: rgb(148 163 184);
  background: #fff;
}

.landing-step-tab.is-active,
.landing-step-tab[aria-selected="true"] {
  border-color: rgb(55 65 81);
  background: linear-gradient(to top, rgb(55 65 81), rgb(71 85 105));
  color: rgb(252 231 243);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.landing-step-tab.is-active:hover,
.landing-step-tab[aria-selected="true"]:hover {
  border-color: rgb(17 24 39);
  background: linear-gradient(to top, rgb(17 24 39), rgb(30 41 59));
}

.landing-step-tab:focus-visible {
  outline: 2px solid rgb(148 163 184);
  outline-offset: 2px;
}

.landing-step-tab-num {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 999px;
  background: rgb(226 232 240);
  color: rgb(71 85 105);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.landing-step-tab.is-active .landing-step-tab-num,
.landing-step-tab[aria-selected="true"] .landing-step-tab-num {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.landing-step-image-frame {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgb(226 232 240);
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.landing-step-image {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.landing-step-panel {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
  padding-inline: 0.5rem;
}

.landing-step-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgb(15 23 42);
  transition: opacity 0.2s ease;
}

.landing-step-panel-text {
  margin-top: 0.625rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgb(87 83 78);
  transition: opacity 0.2s ease;
}

.landing-step-panel.is-updating .landing-step-panel-title,
.landing-step-panel.is-updating .landing-step-panel-text {
  opacity: 0;
}

@media (min-width: 768px) {
  .landing-steps-showcase {
    gap: 1.5rem;
  }

  .landing-steps-tabs {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    margin-inline: 0;
    padding-bottom: 0.25rem;
  }

  .landing-step-tab {
    padding: 0.75rem 1.125rem;
    font-size: 0.9375rem;
  }

  .landing-step-panel-title {
    font-size: 1.5rem;
  }

  .landing-step-panel-text {
    font-size: 1.0625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .landing-step-image,
  .landing-step-panel-title,
  .landing-step-panel-text {
    transition: none !important;
  }
}
