/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-btn);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
}

.btn--outline:hover {
  background: var(--color-surface-muted);
}

.btn--outline-blue {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(10, 102, 194, 0.3);
}

.btn--outline-blue:hover {
  background: rgba(10, 102, 194, 0.06);
}

.btn--rounded {
  border-radius: var(--radius-btn);
  height: 48px;
}

.btn--pill {
  border-radius: 33px;
}

.btn--white {
  background: var(--color-surface);
  color: var(--color-primary);
  font-weight: 600;
}

.btn--white:hover {
  background: var(--color-surface-muted);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hero — Figma Header / 5 (540:9744) */
.hero-home {
  margin-top: calc(-1 * var(--hero-nav-overlap));
  padding-top: 8vw;
  background-color: var(--hero-home-bg-color);
  background-image: var(--hero-home-bg-top), var(--hero-gradient);
  background-attachment: scroll, fixed;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
  max-width: none;
  padding: 0;
  min-height: 100vh;
  min-height: var(--hero-height);
  background: transparent;
}

.hero__nav-wrap {
  position: sticky;
  top: var(--nav-sticky-top);
  z-index: var(--z-nav-sticky);
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 16px var(--space-page-x) 8px;
  flex-shrink: 0;
  background-color: transparent;
  background-image: none;
  box-sizing: border-box;
}

/* Gradient di belakang pill — radial pakai viewport (fixed), bukan kotak nav pendek */
body:has(.nav-pill--home) .hero__nav-wrap,
.hero__nav-wrap--on-home {
  background-attachment: scroll, fixed;
  background-repeat: no-repeat, no-repeat;
}

.nav-pill {
  --nav-pill-bg: var(--nav-pill-bg-content);
  --nav-pill-shadow: var(--nav-pill-shadow-content);
  --nav-link-color: var(--nav-link-color-content);
  --nav-signin-color: var(--nav-signin-color-content);
  --nav-register-bg: var(--nav-register-bg-content);
  --nav-register-color: var(--nav-register-color-content);
  --nav-toggle-color: var(--nav-toggle-color-content);
  --nav-outline-border: var(--nav-outline-border-content);

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--nav-pill-max);
  margin-inline: auto;
  background: var(--nav-pill-bg);
  border-radius: var(--radius-pill);
  box-shadow: var(--nav-pill-shadow);
  padding: 8px;
  border-bottom: 1px solid var(--color-border);
  transition: var(--nav-transition);
}

.nav-pill--home {
  --nav-pill-bg: var(--nav-pill-bg-home);
  --nav-pill-shadow: var(--nav-pill-shadow-home);
  --nav-link-color: var(--nav-link-color-home);
  --nav-signin-color: var(--nav-signin-color-home);
  --nav-register-bg: var(--nav-register-bg-home);
  --nav-register-color: var(--nav-register-color-home);
  --nav-toggle-color: var(--nav-toggle-color-home);
  --nav-outline-border: var(--nav-outline-border-home);
}

.nav-pill__logo--home {
  display: none;
}

.nav-pill--home .nav-pill__logo--home {
  display: block;
}

.nav-pill--home .nav-pill__logo--content {
  display: none;
}

.nav-pill__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding-inline: 24px;
  gap: 16px;
}

.nav-pill__start {
  display: flex;
  align-items: center;
  gap: var(--nav-start-gap);
  flex: 1;
  min-width: 0;
}

.nav-pill__brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: var(--nav-logo-height);
  padding: 10px 10px 8px;
}

.nav-pill__logo {
  height: 100%;
  width: auto;
  max-height: 40px;
  object-fit: contain;
}

.nav-pill__links {
  display: none;
  align-items: center;
  gap: var(--nav-links-gap);
}

.nav-pill__link {
  font-size: var(--nav-font-size);
  font-weight: 400;
  line-height: 1.5;
  color: var(--nav-link-color);
  white-space: nowrap;
  transition: opacity 0.15s, color 0.2s ease;
}

.nav-pill__link:hover {
  opacity: 0.85;
}

.nav-pill__link--outline {
  border: none;
  border-inline: 1px solid var(--nav-outline-border);
  padding: var(--nav-outline-padding);
}

.nav-pill__actions {
  display: none;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-pill__signin {
  padding: var(--nav-signin-padding);
  font-size: var(--nav-font-size);
  font-weight: 500;
  line-height: 1.5;
  color: var(--nav-signin-color);
  white-space: nowrap;
  transition: opacity 0.15s, color 0.2s ease;
}

.nav-pill__signin:hover {
  opacity: 0.85;
}

.nav-pill__register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--nav-register-width);
  padding: var(--nav-register-padding);
  font-size: var(--nav-font-size);
  font-weight: 600;
  line-height: 1.5;
  color: var(--nav-register-color);
  background: var(--nav-register-bg);
  border-radius: var(--radius-nav-register);
  white-space: nowrap;
  transition: background 0.15s, color 0.2s ease;
}

.nav-pill__register:hover {
  background: var(--nav-register-bg);
  filter: brightness(0.96);
}

.nav-pill--home .nav-pill__register:hover {
  background: var(--color-primary-dark);
  filter: none;
}

.nav-pill__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--nav-toggle-color);
  margin-left: auto;
  transition: color 0.2s ease;
}

.nav-pill__toggle svg {
  width: 24px;
  height: 24px;
}

.nav-pill__mobile {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-md);
  padding: 12px;
  z-index: calc(var(--z-nav-sticky) + 1);
}

.nav-pill__mobile.is-open {
  display: block;
}

.nav-pill__mobile-link {
  display: block;
  padding: 12px 16px;
  font-size: var(--nav-font-size);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  border-radius: 8px;
}

.nav-pill__mobile-link:hover {
  background: var(--color-surface-muted);
}

.nav-pill__mobile-link--outline {
  border: none;
  border-inline: 1px solid var(--color-neutral-lighter);
  margin: 4px 0;
  text-align: center;
}

.nav-pill__mobile-register {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: var(--nav-register-padding);
  font-size: var(--nav-font-size);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-nav-register);
  text-align: center;
}

.nav-pill__mobile-register:hover {
  background: var(--color-surface-muted);
}

/* lg: 1024px — nav desktop */
@media (min-width: 1024px) {
  .hero__nav-wrap {
    padding-top: 24px;
  }

  .nav-pill__start .nav-pill__links {
    display: flex;
  }

  .nav-pill__actions {
    display: flex;
  }

  .nav-pill__toggle {
    display: none;
  }
}

.hero__body {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: var(--hero-body-min-height);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 48px;
}

.hero__visual {
  position: relative;
  width: 100%;
  min-height: 320px;
  flex-shrink: 0;
}

.hero-carousel {
  position: relative;
  width: 100%;
  min-height: 320px;
  height: 100%;
}

.hero-carousel__slide {
  position: relative;
  width: 100%;
  min-height: 320px;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  opacity: 0%;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(0) scale(1) rotate(0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.75s;
}

.hero-carousel__slide.is-active:not(.is-exiting):not(.is-entering) {
  opacity: 100%;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.hero-carousel--intro .hero-carousel__slide.is-active,
.hero-carousel__slide.is-entering {
  z-index: 2;
  visibility: visible;
  pointer-events: none;
  animation: hero-carousel-intro 1.1s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}

@keyframes hero-carousel-intro {
  0% {
    opacity: 0%;
    transform: translateY(32px) scale(0.9) rotate(-2deg);
  }

  20% {
    opacity: 25%;
  }

  45% {
    opacity: 60%;
  }

  70% {
    opacity: 88%;
  }

  100% {
    opacity: 100%;
    transform: translateY(0) scale(1) rotate(0);
  }
}

.hero-carousel__slide.is-active.is-exiting {
  z-index: 1;
  visibility: visible;
  pointer-events: none;
  animation: hero-carousel-out 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes hero-carousel-out {
  0% {
    opacity: 100%;
    transform: translateY(0) scale(1) rotate(0);
  }

  30% {
    opacity: 75%;
  }

  55% {
    opacity: 40%;
  }

  80% {
    opacity: 12%;
  }

  100% {
    opacity: 0%;
    transform: translateY(-28px) scale(0.88) rotate(2deg);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 var(--space-page-x) 0;
  max-width: 100%;
}

/* lg: 1024px — hero desktop overlay */
@media (min-width: 1024px) {
  .hero__body {
    display: block;
    padding-bottom: 0;
  }

  .hero__visual {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    overflow: hidden;
    pointer-events: none;
    min-height: 0;
  }

  .hero-carousel {
    min-height: 0;
  }

  .hero-carousel__slide {
    position: absolute;
    top: 5%;
    left: 42.78vw;
    width: 69.5vw;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: 35% top;
  }

  .hero__content {
    padding: var(--hero-content-offset-y) 0 48px var(--hero-content-pad-left);
    max-width: none;
  }

  .hero__column {
    max-width: var(--hero-copy-max);
    width: min(100%, var(--hero-copy-max));
  }

  .hero__title,
  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: auto;
  }

  .hero__cta--primary,
  .hero__cta--secondary {
    width: var(--hero-cta-primary-width);
    flex: none;
  }

  .hero__cta--secondary {
    width: var(--hero-cta-secondary-width);
  }
}

.hero__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  max-width: var(--hero-copy-max);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--color-text-muted);
}

.hero__title {
  max-width: var(--hero-title-max);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  text-wrap: balance;
}

.hero__subtitle {
  max-width: var(--hero-subtitle-max);
  font-size: var(--text-h5);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--hero-cta-gap);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--hero-cta-height);
  padding: 10px 24px;
  font-size: var(--nav-font-size);
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  border-radius: var(--radius-btn);
  transition: background 0.15s, border-color 0.15s;
}

.hero__cta--primary {
  width: var(--hero-cta-primary-width);
  color: var(--color-surface);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.hero__cta--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.hero__cta--secondary {
  width: var(--hero-cta-secondary-width);
  color: var(--color-primary);
  background: transparent;
  border: 1px solid rgba(10, 102, 194, 0.2);
}

.hero__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Mobile / tablet hero stack — jangan timpa lg+ */
@media (max-width: 1023px) {
  .hero {
    align-items: center;
  }

  .hero__nav-wrap {
    padding-bottom: 16px;
  }

  .hero__content {
    padding-top: calc(var(--hero-nav-overlap) - 48px);
  }

  .hero__column {
    max-width: 100%;
  }

  .hero__title,
  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta--primary,
  .hero__cta--secondary {
    width: 100%;
  }

  .hero__visual {
    min-height: 0;
  }

  .hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1082 / 761;
    min-height: 320px;
    height: auto;
  }

  .hero-carousel__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: bottom center;
  }
}

/* sm: 640px — CTA sejajar (tablet, masih < lg) */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }

  .hero__cta--primary,
  .hero__cta--secondary {
    width: auto;
    min-width: 140px;
    flex: 1 1 auto;
  }
}

/* Features */
.features__intro {
  font-size: var(--text-h5);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--color-text);
  max-width: 100%;
}

.features__intro p + p {
  margin-top: 1em;
}

.feature-card__image {
  aspect-ratio: 440 / 261;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 32px;
}

.feature-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card__title {
  font-size: var(--text-h4);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 24px;
}

.feature-card__desc {
  font-size: var(--text-h6);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-align: center;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(var(--step-card-slot-min-width), 1fr));
  gap: var(--step-card-gap);
  align-items: stretch;
  overflow: visible;
  padding-block: 8px;
}

.step-card-slot {
  position: relative;
  min-height: var(--step-card-min-height);
  overflow: visible;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: var(--step-card-min-height);
  padding: var(--step-card-padding);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
  transition: var(--step-card-transition);
  outline: none;
}

/* Desktop: fixed row height + cards always absolute in slot (no layout jump on hover) */
@media (min-width: 768px) {
  .steps-grid {
    grid-auto-rows: var(--step-card-min-height);
  }

  .step-card-slot {
    height: var(--step-card-min-height);
    min-height: var(--step-card-min-height);
  }

  .step-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
}

/* Idle: angka dekoratif hanya pojok kanan bawah (bukan di belakang teks) */
.step-card::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto;
  font-size: clamp(140px, 32vw, 240px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--color-text);
  opacity: 0%;
  pointer-events: none;
  z-index: 0;
  transform: translate(18%, 22%);
  transition: opacity 0.35s ease;
}

.step-card--1::before {
  content: "1";
}

.step-card--2::before {
  content: "2";
}

.step-card--3::before {
  content: "3";
}

.step-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: var(--step-card-bg-watermark-opacity);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s ease;
}

.step-card--1::after {
  background-image: url("./images/step-card-1.jpg");
}

.step-card--2::after {
  background-image: url("./images/step-card-2.jpg");
}

.step-card--3::after {
  background-image: url("./images/step-card-3.jpg");
}

.step-card:is(.step-card--hovered, :focus-within, .step-card--active)::before,
.step-card:is(.step-card--hovered, :focus-within, .step-card--active)::after {
  opacity: 0;
}

.step-card__figure {
  position: relative;
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  max-width: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  align-self: stretch;
  z-index: 1;
  transition:
    flex 0.4s ease,
    width 0.4s ease,
    max-width 0.4s ease,
    opacity 0.35s ease;
}

/* Hover: angka putih besar di kanan bawah area foto (Figma) */
.step-card__figure::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -12%;
  font-size: clamp(200px, 42vw, 320px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--color-surface);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.35s ease;
}

.step-card--1 .step-card__figure::after {
  content: "1";
}

.step-card--2 .step-card__figure::after {
  content: "2";
}

.step-card--3 .step-card__figure::after {
  content: "3";
}

.step-card__figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .step-card__figure img {
    min-height: 100%;
  }
}

.step-card__content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--step-card-content-gap);
  justify-content: center;
  overflow: hidden;
}

.step-card__label {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.step-card__title {
  font-size: var(--text-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.step-card__desc {
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text);
  max-width: 240px;
  transition: max-width 0.3s ease;
}

.step-card__cta {
  display: none;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 24px;
  min-height: 44px;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-neutral-lighter);
  border-radius: var(--radius-btn);
  transition: opacity 0.35s ease;
}

.step-card__cta:hover {
  background: var(--color-surface);
  border-color: var(--color-text-muted);
}

.step-card__cta:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Active card: expand width (slot height stays fixed on desktop) */
.step-card:is(.step-card--hovered, :focus-within, .step-card--active) {
  position: absolute;
  top: 0;
  height: 100%;
  width: var(--step-card-hover-max-width);
  max-width: var(--step-card-hover-max-width);
  padding: 0;
  border-radius: var(--step-card-hover-radius);
  z-index: 2;
  isolation: isolate;
  box-shadow: var(--step-card-shadow-hover);
}

.step-card--1:is(.step-card--hovered, :focus-within, .step-card--active) {
  left: 0;
  right: auto;
  transform: none;
}

.step-card--2:is(.step-card--hovered, :focus-within, .step-card--active) {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.step-card--3:is(.step-card--hovered, :focus-within, .step-card--active) {
  left: auto;
  right: 0;
  transform: none;
}

.step-card:is(.step-card--hovered, :focus-within, .step-card--active) .step-card__content {
  position: relative;
  z-index: 2;
  flex: 0 0 var(--step-card-content-ratio);
  max-width: var(--step-card-content-ratio);
  padding: var(--step-card-padding);
  background: var(--step-card-content-bg);
  justify-content: flex-start;
}

.step-card:is(.step-card--hovered, :focus-within, .step-card--active) .step-card__desc {
  max-width: none;
}

.step-card:is(.step-card--hovered, :focus-within, .step-card--active) .step-card__cta {
  display: inline-flex;
}

.step-card:is(.step-card--hovered, :focus-within, .step-card--active) .step-card__figure {
  position: relative;
  z-index: 1;
  flex: 1 1 var(--step-card-figure-ratio);
  width: var(--step-card-figure-ratio);
  max-width: none;
  margin: 0;
  opacity: 1;
  background: var(--color-text);
  isolation: isolate;
}

.step-card:is(.step-card--hovered, :focus-within, .step-card--active) .step-card__figure img {
  position: relative;
  z-index: 1;
}

.step-card:is(.step-card--hovered, :focus-within, .step-card--active) .step-card__figure::after {
  opacity: var(--step-card-figure-watermark-opacity);
}

/* Sibling blur — class-driven to avoid :hover flicker between cards */
.steps-grid--has-active
  .step-card:not(.step-card--hovered):not(.step-card--active):not(:focus-within) {
  filter: blur(var(--step-card-sibling-blur));
  opacity: var(--step-card-sibling-opacity);
  z-index: 0;
}

@media (min-width: 768px) {
  .step-card-slot {
    contain: layout style;
    z-index: 1;
  }

  /* Slot aktif di atas sibling agar gambar tidak tembus kartu sebelah */
  .steps-grid--has-active .step-card-slot--active,
  .steps-grid--has-active
    .step-card-slot:has(.step-card--hovered, .step-card--active, .step-card:focus-within) {
    z-index: 20;
  }

  .steps-grid--has-active
    .step-card-slot:not(.step-card-slot--active):not(
      :has(.step-card--hovered, .step-card--active, .step-card:focus-within)
    ) {
    z-index: 1;
  }
}

@media (hover: hover) {
  .steps-grid--has-active
    .step-card:not(.step-card--hovered):not(.step-card--active):not(:focus-within) {
    pointer-events: none;
  }
}

/* Tablet: 768px–1023px — 3 kolom; hover memenuhi lebar grid */
@media (min-width: 768px) and (max-width: 1023px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  #pengaturan .container {
    overflow-x: clip;
    max-width: 100%;
  }

  /* contain: layout pada slot membuat lebar hover terkunci 1 kolom */
  .step-card-slot {
    contain: none;
    overflow: hidden;
  }

  .steps-grid--has-active .step-card-slot--active,
  .steps-grid--has-active
    .step-card-slot:has(.step-card--hovered, .step-card--active, .step-card:focus-within) {
    overflow: visible;
  }

  .steps-grid--has-active
    .step-card:is(.step-card--hovered, :focus-within, .step-card--active) {
    width: calc(300% + 2 * var(--step-card-gap)) !important;
    max-width: calc(300% + 2 * var(--step-card-gap));
    transition:
      opacity 0.4s ease,
      transform 0.4s ease,
      box-shadow 0.4s ease,
      filter 0.4s ease;
    transform: none;
  }

  .steps-grid--has-active .step-card--1:is(.step-card--hovered, :focus-within, .step-card--active) {
    left: 0 !important;
    right: auto !important;
  }

  .steps-grid--has-active .step-card--2:is(.step-card--hovered, :focus-within, .step-card--active) {
    left: calc(-100% - var(--step-card-gap)) !important;
    right: auto !important;
  }

  .steps-grid--has-active .step-card--3:is(.step-card--hovered, :focus-within, .step-card--active) {
    left: auto !important;
    right: 0 !important;
  }

  .steps-grid--has-active
    .step-card:is(.step-card--hovered, :focus-within, .step-card--active)
    .step-card__content {
    padding: 32px;
  }

  .steps-grid--has-active
    .step-card:is(.step-card--hovered, :focus-within, .step-card--active)
    .step-card__desc {
    max-width: none;
  }
}

/* md: 768px — single column; active card stays in flow */
@media (max-width: 767px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card:is(.step-card--hovered, :focus-within, .step-card--active) {
    position: relative;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
    flex-direction: column;
  }

  .step-card:is(.step-card--hovered, :focus-within, .step-card--active) {
    padding: 0;
    border-radius: var(--step-card-hover-radius);
  }

  .step-card:is(.step-card--hovered, :focus-within, .step-card--active) .step-card__content {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    padding: var(--step-card-padding);
  }

  .step-card:is(.step-card--hovered, :focus-within, .step-card--active) .step-card__cta {
    display: inline-flex;
  }

  .step-card:is(.step-card--hovered, :focus-within, .step-card--active) .step-card__figure {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-height: 200px;
    margin: 0;
  }

  .step-card:is(.step-card--hovered, :focus-within, .step-card--active) .step-card__figure img {
    min-height: 200px;
  }

  .step-card:is(.step-card--hovered, :focus-within, .step-card--active) .step-card__figure::after {
    opacity: var(--step-card-figure-watermark-opacity);
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-card,
  .step-card__figure,
  .step-card__content,
  .step-card__desc,
  .step-card__cta,
  .step-card::before,
  .step-card::after,
  .step-card__figure::after {
    transition: none;
  }

}

/* Benefits */
.benefits-wrap {
  background: var(--color-surface-alt);
}

.benefits-inner {
  background: var(--color-surface);
  padding: 64px var(--space-page-x);
}

.benefits-grid {
  overflow: visible;
}

.benefit-card-slot {
  position: relative;
  min-height: var(--benefit-card-min-height);
}

.benefit-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: var(--benefit-card-min-height);
  background: var(--color-surface-muted);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card-sm);
  transition: var(--benefit-card-hover-transition);
  outline: none;
}

.benefit-card-slot:nth-child(2) .benefit-card {
  box-shadow: var(--shadow-card-md);
}

.benefit-card--1 {
  transform-origin: left center;
}

.benefit-card--2 {
  transform-origin: center center;
}

.benefit-card--3 {
  transform-origin: right center;
}

.benefit-card__top {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefit-card__tag {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.benefit-card__title {
  font-size: var(--text-h4);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.benefit-card__image {
  flex: 1;
  position: relative;
  min-height: 200px;
  overflow: hidden;
}

.benefit-card__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 102, 255, 0), rgba(0, 102, 255, 0.2));
  z-index: 1;
  pointer-events: none;
}

.benefit-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Hover / focus / active */
.benefit-card:is(:hover, :focus-within, .benefit-card--active) {
  transform: scale(var(--benefit-card-hover-scale-mobile));
  box-shadow: var(--benefit-card-shadow-hover);
  z-index: 2;
}

/* lg: 1024px — slot + scale hover (Figma 540:10482) */
@media (min-width: 1024px) {
  .benefits-inner {
    padding: var(--space-section-y) var(--space-page-x);
  }

  .benefit-card-slot {
    height: var(--benefit-card-min-height-lg);
    min-height: var(--benefit-card-min-height-lg);
    z-index: 1;
  }

  .benefit-card {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 0;
    height: 100%;
  }

  .benefit-card:is(:hover, :focus-within, .benefit-card--active) {
    transform: scale(var(--benefit-card-hover-scale));
  }

  .benefit-card-slot:has(
    .benefit-card--active,
    .benefit-card:hover,
    .benefit-card:focus-within
  ) {
    z-index: 20;
  }
}

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

  .benefit-card:is(:hover, :focus-within, .benefit-card--active) {
    transform: none;
  }
}

/* CTA */
.section--cta .cta-card {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: auto;
  padding: 40px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-align: center;
}

.cta-card__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 768px;
}

.cta-card__title {
  font-size: var(--text-h2);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.cta-card__desc {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-text);
}

/* md: 768px */
@media (min-width: 768px) {
  .cta-card {
    padding: 64px;
    min-height: 352px;
  }
}

/* FAQ */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.faq-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.faq-item__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.faq-item__icon img {
  width: 100%;
  height: 100%;
}

.faq-item__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item__question {
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
}

.faq-item__answer {
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text);
}

.faq-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.faq-cta__title {
  font-size: var(--text-h4);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.faq-cta .btn--primary {
  color: var(--color-surface);
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .faq-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

/* Contact */
.contact__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 768px;
}

.contact__tagline {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.contact__title {
  font-size: var(--text-h2);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.contact__desc {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-text);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 400px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item__icon {
  width: 32px;
  height: 32px;
}

.contact-item__label {
  font-size: var(--text-h6);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.contact-item__value {
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text);
}

.contact-item__value--link {
  text-decoration: underline;
}

.contact-item__directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  margin-top: 8px;
}

.contact-item__chevron {
  width: var(--contact-chevron-size, 16px);
  height: var(--contact-chevron-size, 16px);
  flex-shrink: 0;
  max-width: none;
}

.contact__map {
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 280px;
  height: 100%;
}

.contact__map img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .contact__map {
    min-height: 400px;
  }

  .contact__map img {
    min-height: 400px;
  }
}

/* Footer */
.site-footer {
  padding: var(--space-section-y-sm) var(--space-page-x);
  background: var(--color-surface);
}

.site-footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.site-footer__logo {
  height: 38px;
  width: auto;
}

.site-footer__divider {
  height: 1px;
  background: var(--color-border);
  border: none;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.site-footer__copy {
  margin: 0;
  color: var(--color-text);
}

.site-footer__links {
  display: flex;
  gap: 24px;
}

.site-footer__links a {
  text-decoration: underline;
}

.site-footer__links a:hover {
  color: var(--color-primary);
}
