/* =========================================================
   GHANIA GAWAI
   How It Works Responsive
   /cara-kerja/
   ========================================================= */


/* =========================================================
   01. SMALL DESKTOP
   <= 1100px
   ========================================================= */

@media (max-width: 1100px) {

  .how-overview__grid {
    gap: 12px;
  }

  .how-detail {
    grid-template-columns:
      90px
      minmax(0, 1fr);

    gap: 24px;
  }

  .how-detail__marker {
    width: 90px;
  }

  .how-detail:not(:last-child)::after {
    left: 44px;
  }

  .how-review__box {
    grid-template-columns:
      minmax(0, 1fr)
      300px;

    gap: 38px;
  }

  .how-faq__layout {
    gap: 48px;
  }

}


/* =========================================================
   02. TABLET
   <= 980px
   ========================================================= */

@media (max-width: 980px) {

  /* Hero */

  .how-hero {
    padding:
      54px
      0
      40px;
  }

  .how-hero__title {
    font-size:
      clamp(
        38px,
        6vw,
        50px
      );
  }


  /* Overview */

  .how-overview {
    padding:
      18px
      0
      72px;
  }

  .how-overview__box {
    padding: 28px;
  }

  .how-overview__grid {
    grid-template-columns:
      repeat(5, minmax(120px, 1fr));

    overflow-x: auto;

    padding-bottom: 6px;

    scroll-snap-type: x proximity;

    scrollbar-width: none;
  }

  .how-overview__grid::-webkit-scrollbar {
    display: none;
  }

  .how-overview-step {
    min-width: 120px;

    scroll-snap-align: start;
  }


  /* Detail */

  .how-details {
    padding:
      70px
      0;
  }

  .how-details__header {
    margin-bottom: 40px;
  }

  .how-detail {
    grid-template-columns:
      82px
      minmax(0, 1fr);

    gap: 22px;
  }

  .how-detail__marker {
    width: 82px;
  }

  .how-detail__circle {
    width: 58px;
    height: 58px;
  }

  .how-detail:not(:last-child)::after {
    left: 40px;
  }


  /* Review */

  .how-review {
    padding:
      70px
      0;
  }

  .how-review__box {
    grid-template-columns: 1fr;

    gap: 28px;
  }

  .how-review__factors {
    max-width: 620px;
  }


  /* Important */

  .how-important {
    padding:
      68px
      0;
  }

  .how-important__grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }


  /* FAQ */

  .how-faq {
    padding:
      68px
      0;
  }

  .how-faq__layout {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .how-faq__intro {
    position: static;

    max-width: 620px;
  }


  /* Final */

  .how-final-cta {
    padding-bottom: 76px;
  }

}


/* =========================================================
   03. SMALL TABLET
   <= 768px
   ========================================================= */

@media (max-width: 768px) {

  /* Hero */

  .how-hero {
    padding:
      46px
      0
      32px;
  }

  .how-hero__title {
    max-width: 620px;

    font-size: 40px;
  }

  .how-hero__description {
    max-width: 560px;

    font-size: 14px;
  }


  /* Overview */

  .how-overview__box {
    padding: 22px;

    border-radius: 18px;
  }

  .how-overview__grid {
    grid-template-columns:
      repeat(5, 116px);

    justify-content: flex-start;
  }

  .how-overview-step__number {
    width: 56px;
    height: 56px;

    margin-bottom: 12px;

    border-radius: 16px;
  }

  .how-overview-step__title {
    font-size: 13px;
  }

  .how-overview-step__description {
    font-size: 9px;
  }


  /* Detail */

  .how-details {
    padding:
      62px
      0;
  }

  .how-details__list {
    gap: 22px;
  }

  .how-detail {
    grid-template-columns:
      74px
      minmax(0, 1fr);

    gap: 18px;
  }

  .how-detail__marker {
    width: 74px;
  }

  .how-detail__circle {
    width: 54px;
    height: 54px;

    font-size: 14px;
  }

  .how-detail:not(:last-child)::after {
    top: 78px;
    left: 36px;

    bottom: -22px;
  }

  .how-detail__card {
    padding: 24px;
  }

  .how-detail__title {
    font-size: 22px;
  }

  .how-detail__content {
    grid-template-columns: 1fr 1fr;
  }


  /* Review */

  .how-review {
    padding:
      62px
      0;
  }

  .how-review__box {
    padding: 36px;
  }


  /* Important */

  .how-important {
    padding:
      60px
      0;
  }

  .how-important__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  /* FAQ */

  .how-faq {
    padding:
      60px
      0;
  }


  /* Final */

  .how-final-cta__box {
    padding: 40px 30px;
  }

  .how-final-cta__title {
    font-size: 31px;
  }

}


/* =========================================================
   04. MOBILE
   <= 640px
   ========================================================= */

@media (max-width: 640px) {

  /* =======================================================
     PAGE
     ======================================================= */

  .how-page {
    background:
      linear-gradient(
        180deg,
        #f7fbfe 0%,
        #ffffff 250px
      );
  }


  /* =======================================================
     HERO
     ======================================================= */

  .how-hero {
    padding:
      34px
      0
      24px;
  }

  .how-hero::before {
    top: -220px;
    right: -220px;

    width: 410px;
    height: 410px;
  }

  .how-hero::after {
    left: -210px;
    bottom: -250px;

    width: 360px;
    height: 360px;
  }

  .how-hero__content {
    max-width: 100%;
  }

  .how-hero__eyebrow {
    margin-bottom: 10px;

    font-size: 9px;
  }

  .how-hero__title {
    max-width: 350px;

    margin-bottom: 12px;

    font-size: 32px;

    line-height: 1.07;

    letter-spacing: -0.04em;
  }

  .how-hero__description {
    max-width: 325px;

    font-size: 12px;

    line-height: 1.65;
  }


  /* =======================================================
     OVERVIEW
     ======================================================= */

  .how-overview {
    padding:
      8px
      0
      54px;
  }

  .how-overview__box {
    padding:
      18px
      14px;

    border-radius: 16px;

    box-shadow:
      0 12px 32px
      rgba(15, 23, 42, 0.05);
  }

  .how-overview__grid {
    grid-template-columns:
      repeat(5, 108px);

    gap: 8px;

    margin:
      0
      -4px;

    padding:
      0
      4px
      4px;

    overflow-x: auto;

    scroll-snap-type:
      x proximity;
  }

  .how-overview__grid::before {
    display: none;
  }

  .how-overview-step {
    min-width: 108px;

    padding:
      12px
      8px;

    background:
      var(--color-background);

    border:
      1px solid
      var(--color-border);

    border-radius: 12px;

    scroll-snap-align: start;
  }

  .how-overview-step__number {
    width: 44px;
    height: 44px;

    margin-bottom: 9px;

    border-radius: 13px;

    font-size: 12px;
  }

  .how-overview-step__title {
    margin-bottom: 4px;

    font-size: 11px;
  }

  .how-overview-step__description {
    font-size: 8px;

    line-height: 1.45;
  }


  /* =======================================================
     DETAILS
     ======================================================= */

  .how-details {
    padding:
      52px
      0;
  }

  .how-details__header {
    margin-bottom: 28px;
  }

  .how-details__list {
    gap: 14px;
  }

  .how-detail {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .how-detail:not(:last-child)::after {
    display: none;
  }

  .how-detail__marker {
    width: auto;

    justify-content: flex-start;
  }

  .how-detail__circle {
    width: 42px;
    height: 42px;

    border-width: 4px;

    font-size: 12px;
  }

  .how-detail__card {
    padding: 18px;

    border-radius: 14px;
  }

  .how-detail__eyebrow {
    font-size: 8px;
  }

  .how-detail__title {
    margin-bottom: 8px;

    font-size: 20px;
  }

  .how-detail__description {
    margin-bottom: 17px;

    font-size: 11px;

    line-height: 1.7;
  }

  .how-detail__content {
    grid-template-columns: 1fr;

    gap: 8px;
  }

  .how-detail-info {
    padding: 13px;

    border-radius: 11px;
  }

  .how-detail-info__icon {
    width: 32px;
    height: 32px;

    margin-bottom: 8px;

    border-radius: 9px;
  }

  .how-detail-info__title {
    font-size: 10px;
  }

  .how-detail-info__description {
    font-size: 9px;
  }

  .how-detail__list {
    margin-top: 14px;

    gap: 7px;
  }

  .how-detail__list li {
    font-size: 10px;
  }


  /* =======================================================
     REVIEW
     ======================================================= */

  .how-review {
    padding:
      52px
      0;
  }

  .how-review__box {
    padding: 24px;

    grid-template-columns: 1fr;

    gap: 20px;

    border-radius: 18px;
  }

  .how-review__box::after {
    right: -180px;
    bottom: -240px;
  }

  .how-review__eyebrow {
    font-size: 8px;
  }

  .how-review__title {
    margin-bottom: 10px;

    font-size: 23px;
  }

  .how-review__description {
    margin-bottom: 17px;

    font-size: 11px;

    line-height: 1.7;
  }

  .how-review__factors {
    padding: 16px;

    border-radius: 12px;
  }

  .how-review__factors-title {
    margin-bottom: 10px;

    font-size: 11px;
  }

  .how-review__factors ul {
    gap: 8px;
  }

  .how-review__factors li {
    font-size: 10px;
  }


  /* =======================================================
     IMPORTANT INFO
     ======================================================= */

  .how-important {
    padding:
      52px
      0;
  }

  .how-important__header {
    margin-bottom: 24px;
  }

  .how-important__grid {
    grid-template-columns: 1fr;

    gap: 9px;
  }

  .how-important-card {
    padding: 17px;

    border-radius: 13px;
  }

  .how-important-card__icon {
    width: 38px;
    height: 38px;

    margin-bottom: 11px;

    border-radius: 10px;
  }

  .how-important-card__title {
    font-size: 13px;
  }

  .how-important-card__description {
    font-size: 10px;
  }


  /* =======================================================
     FAQ
     ======================================================= */

  .how-faq {
    padding:
      52px
      0;
  }

  .how-faq__layout {
    gap: 22px;
  }

  .how-faq-item {
    border-radius: 12px;
  }

  .how-faq-item__button {
    padding:
      14px
      15px;

    gap: 12px;
  }

  .how-faq-item__question {
    font-size: 11px;
  }

  .how-faq-item__icon {
    width: 25px;
    height: 25px;

    border-radius: 7px;
  }

  .how-faq-item__answer-inner {
    padding:
      0
      15px
      15px;

    font-size: 10px;
  }


  /* =======================================================
     FINAL CTA
     ======================================================= */

  .how-final-cta {
    padding:
      8px
      0
      58px;
  }

  .how-final-cta__box {
    padding:
      30px
      18px;

    border-radius: 18px;
  }

  .how-final-cta__eyebrow {
    font-size: 8px;
  }

  .how-final-cta__title {
    max-width: 320px;

    margin:
      0
      auto
      9px;

    font-size: 25px;
  }

  .how-final-cta__description {
    max-width: 310px;

    margin-bottom: 18px;

    font-size: 11px;
  }

  .how-final-cta__actions {
    flex-direction: column;

    align-items: stretch;
  }

  .how-final-cta__actions .btn {
    width: 100%;
  }

}


/* =========================================================
   05. SMALL MOBILE
   <= 480px
   ========================================================= */

@media (max-width: 480px) {

  .how-hero {
    padding:
      30px
      0
      20px;
  }

  .how-hero__title {
    max-width: 310px;

    font-size: 30px;
  }

  .how-hero__description {
    max-width: 300px;
  }


  /* Overview */

  .how-overview__box {
    padding:
      15px
      12px;
  }


  /* Details */

  .how-detail__card {
    padding: 16px;
  }

  .how-detail__title {
    font-size: 19px;
  }


  /* Review */

  .how-review__box {
    padding: 21px;
  }


  /* CTA */

  .how-final-cta__box {
    padding:
      27px
      16px;
  }

}


/* =========================================================
   06. EXTRA SMALL
   <= 380px
   ========================================================= */

@media (max-width: 380px) {

  .how-hero__title {
    max-width: 285px;

    font-size: 28px;
  }


  /* Overview */

  .how-overview__grid {
    grid-template-columns:
      repeat(5, 102px);
  }


  /* Detail */

  .how-detail__circle {
    width: 40px;
    height: 40px;
  }


  /* Review */

  .how-review__title {
    font-size: 21px;
  }


  /* Final */

  .how-final-cta__title {
    font-size: 23px;
  }

}


/* =========================================================
   07. TOUCH DEVICES
   ========================================================= */

@media (hover: none) {

  .how-detail__card:hover,
  .how-important-card:hover {
    transform: none;

    box-shadow:
      var(--shadow-xs);
  }

}


/* =========================================================
   08. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .how-faq-item__answer,
  .how-faq-item__icon {
    transition: none;
  }

  .how-loading__spinner {
    animation-duration: 1.5s;
  }

}