/* Generated from takafuloman-website/styles/scss/components/_homepage-how-it-works.scss — edit that file, then recompile (PROJECT_RELATIONSHIPS.md section 36). */
.hiw {
  --hiw-grad: linear-gradient(90deg, #7fcfd6, #7fbf3f);
  --hiw-green-deep: #7fbf3f;
  --hiw-green: #98c829;
  --hiw-teal: #7fcfd6;
  --hiw-green-text: #4f8a12;
  --hiw-teal-text: #167f8c;
  --hiw-surface: var(--tk-card);
  --hiw-surface-2: #f5f9f7;
  --hiw-line: rgba(24, 48, 42, 0.1);
  --hiw-line-strong: rgba(24, 48, 42, 0.2);
  --hiw-mock-bg: linear-gradient(160deg, #eaf6f4 0%, #eef6e2 100%);
  --hiw-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  padding-block: clamp(24px, 3vw, 48px);
  color: var(--tk-ink);
}

:root[data-theme=dark] .hiw {
  --hiw-green-text: #aedc52;
  --hiw-teal-text: #8adae2;
  --hiw-surface-2: #18241f;
  --hiw-line: rgba(214, 240, 230, 0.1);
  --hiw-line-strong: rgba(214, 240, 230, 0.2);
  --hiw-mock-bg: linear-gradient(160deg, #122321 0%, #16220f 100%);
}

.hiw *,
.hiw *::before,
.hiw *::after {
  box-sizing: border-box;
}

:where(.hiw button) {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.hiw-ic {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hiw-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
  padding: clamp(24px, 3.4vw, 46px);
  border-radius: 32px;
  background: var(--hiw-surface);
  border: 1px solid var(--hiw-line);
  box-shadow: 0 10px 24px -14px rgba(16, 58, 48, 0.3);
}

.hiw-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hiw-eyebrow {
  font-size: var(--type-eyebrow, 12px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hiw-green-text);
  font-weight: var(--fw-bold, 700);
}

.hiw-title {
  font-weight: var(--fw-black, 900);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
  text-wrap: balance;
  max-width: 17ch;
  color: var(--tk-ink);
}
.hiw-title span {
  color: var(--hiw-green);
}

.hiw-lede {
  margin: 12px 0 0;
  color: var(--tk-muted);
  font-weight: var(--fw-light, 300);
  font-size: var(--type-body, 16px);
  max-width: 40ch;
}

.hiw-steps {
  list-style: none;
  margin: 24px 0 22px;
  padding: 0;
  display: grid;
  gap: 4px;
}

.hiw-step {
  position: relative;
}

.hiw-step-btn {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: start;
  padding: 12px 14px 14px;
  border-radius: 18px;
  transition: background 0.3s;
}
.hiw-step-btn:hover {
  background: var(--hiw-surface-2);
}
.hiw-step-btn b {
  display: block;
  font-size: 16.5px;
  font-weight: var(--fw-bold, 700);
  color: var(--tk-ink);
}
.hiw-step-btn small {
  display: block;
  color: var(--tk-muted);
  font-size: var(--type-body-sm, 13px);
  line-height: 1.4;
  margin-top: 2px;
}

.hiw-step.is-on .hiw-step-btn {
  background: var(--hiw-surface-2);
}

.hiw-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: var(--fw-bold, 700);
  font-size: 14px;
  background: var(--hiw-surface);
  border: 1.5px solid var(--hiw-line-strong);
  color: var(--tk-muted);
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.5s var(--hiw-ease);
}
.hiw-num .hiw-ic {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}

.hiw-step.is-on .hiw-num {
  background: var(--hiw-grad);
  color: #fff;
  border-color: transparent;
  transform: scale(1.06);
  box-shadow: 0 10px 20px -10px rgba(80, 150, 40, 0.6);
}

.hiw-step.is-past .hiw-num {
  border-color: var(--hiw-green-deep);
  color: var(--hiw-green-text);
}

.hiw-bar {
  position: absolute;
  inset-inline: 74px 16px;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: var(--hiw-line);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}
.hiw-bar i {
  display: block;
  height: 100%;
  background: var(--hiw-grad);
  transform-origin: left;
  transform: scaleX(0);
}

.hiw-step.is-on .hiw-bar {
  opacity: 1;
}

.hiw-step.is-on.is-run .hiw-bar i {
  animation: hiwBarFill var(--hiw-dur, 4200ms) linear forwards;
}

.hiw-step.is-on:not(.is-run) .hiw-bar i {
  transform: scaleX(1);
}

@keyframes hiwBarFill {
  to {
    transform: scaleX(1);
  }
}
.hiw-cta {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--hiw-grad);
  color: #fff;
  font-weight: var(--fw-bold, 700);
  font-size: 15px;
  text-shadow: 0 1px 1px rgba(0, 60, 40, 0.25);
}
.hiw-cta .hiw-ic {
  width: 18px;
  height: 18px;
  transition: transform 0.25s;
}
.hiw-cta:hover .hiw-ic {
  transform: translateX(4px);
}

.hiw-mock {
  position: relative;
  min-height: 470px;
  border-radius: 26px;
  background: var(--hiw-mock-bg);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hiw-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hiw-deco .hiw-ic {
  position: absolute;
  stroke: var(--hiw-green-text);
  stroke-width: 1.2;
  opacity: 0.16;
  animation: hiwDrift 14s ease-in-out infinite;
}

.hiw-deco .hiw-d1 {
  width: 120px;
  height: 120px;
  inset-inline-start: 6%;
  top: 8%;
}

.hiw-deco .hiw-d2 {
  width: 84px;
  height: 84px;
  inset-inline-end: 9%;
  top: 10%;
  stroke: var(--hiw-teal-text);
  animation-delay: -3s;
}

.hiw-deco .hiw-d3 {
  width: 96px;
  height: 96px;
  inset-inline-start: 4%;
  bottom: 12%;
  animation-delay: -6s;
}

.hiw-deco .hiw-d4 {
  width: 70px;
  height: 70px;
  inset-inline-end: 6%;
  bottom: 30%;
  stroke: var(--hiw-teal-text);
  animation-delay: -2s;
}

.hiw-deco .hiw-d5 {
  width: 60px;
  height: 60px;
  inset-inline-start: 40%;
  bottom: 4%;
  animation-delay: -8s;
}

.hiw-deco .hiw-d6 {
  width: 64px;
  height: 64px;
  inset-inline-start: 42%;
  top: 2%;
  stroke: var(--hiw-teal-text);
  animation-delay: -5s;
}

.hiw-deco .hiw-d7 {
  width: 54px;
  height: 54px;
  inset-inline-end: 28%;
  bottom: 3%;
  animation-delay: -10s;
}

@keyframes hiwDrift {
  0%, 100% {
    transform: translate(0, 0) rotate(0);
  }
  50% {
    transform: translate(8px, -12px) rotate(6deg);
  }
}
.hiw-device {
  position: relative;
  width: min(380px, 84%);
  height: 400px;
  border-radius: 24px;
  background: var(--hiw-surface);
  border: 1px solid var(--hiw-line);
  box-shadow: 0 30px 60px -24px rgba(16, 58, 48, 0.28), 0 8px 20px -10px rgba(16, 58, 48, 0.14);
  overflow: hidden;
}

:root[data-theme=dark] .hiw-device {
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6), 0 8px 20px -10px rgba(0, 0, 0, 0.4);
}

.hiw-dev-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hiw-line);
}
.hiw-dev-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hiw-line-strong);
}
.hiw-dev-top em {
  margin-inline-start: 8px;
  flex: 1;
  font-style: normal;
  font-size: 11.5px;
  color: var(--tk-muted);
  background: var(--hiw-surface-2);
  border-radius: 999px;
  padding: 4px 10px;
}

.hiw-ms {
  position: absolute;
  inset: 44px 0 0;
  padding: 18px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.45s var(--hiw-ease), transform 0.6s var(--hiw-ease);
  pointer-events: none;
  color: var(--tk-ink);
}

.hiw-ms.is-on {
  opacity: 1;
  transform: none;
}

.hiw-ms.is-out {
  opacity: 0;
  transform: translateX(-30px);
}

.hiw-ms-h {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-bold, 700);
  font-size: 17px;
  color: var(--tk-ink);
}
.hiw-ms-h .hiw-ic {
  width: 18px;
  height: 18px;
  color: var(--hiw-teal-text);
}

.hiw-mc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  direction: ltr;
}

.hiw-mc {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border-radius: 16px;
  background: var(--hiw-surface-2);
  border: 1.5px solid var(--hiw-line);
  font-size: 12.5px;
  font-weight: var(--fw-medium, 500);
  color: var(--tk-ink);
}
.hiw-mc img {
  height: 62px;
  width: auto;
  object-fit: contain;
}

.hiw-tk {
  position: absolute;
  top: 7px;
  inset-inline-end: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--hiw-green-deep);
  color: #fff;
  display: grid;
  place-items: center;
  transform: scale(0);
}
.hiw-tk .hiw-ic {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.hiw-ms1.is-on .hiw-mc.is-pick {
  animation: hiwPick 0.5s var(--hiw-ease) 1.55s forwards;
}

.hiw-ms1.is-on .hiw-mc.is-pick .hiw-tk {
  animation: hiwTkPop 0.4s var(--hiw-ease) 1.7s forwards;
}

@keyframes hiwPick {
  to {
    border-color: var(--hiw-green-deep);
    background: var(--tk-accent-tint, rgba(152, 200, 41, 0.12));
    transform: scale(1.03);
  }
}
@keyframes hiwTkPop {
  to {
    transform: scale(1);
  }
}
.hiw-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
  transform: translate(280px, 300px);
  opacity: 0;
}
.hiw-cursor svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  stroke: #1a1a1a;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.hiw-ms1.is-on .hiw-cursor {
  animation: hiwCur 2.2s var(--hiw-ease) 0.3s forwards;
}

@keyframes hiwCur {
  0% {
    opacity: 0;
    transform: translate(280px, 300px);
  }
  20% {
    opacity: 1;
  }
  62% {
    transform: translate(96px, 104px) scale(1);
  }
  70% {
    transform: translate(96px, 104px) scale(0.82);
  }
  80% {
    transform: translate(96px, 104px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(110px, 118px);
    opacity: 0;
  }
}
.hiw-mf {
  margin-bottom: 12px;
}
.hiw-mf small {
  display: block;
  font-size: 11.5px;
  color: var(--tk-muted);
  margin-bottom: 5px;
}

.hiw-mf-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid var(--hiw-line-strong);
  background: var(--hiw-surface);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--tk-ink);
}

.hiw-mf-code {
  font-weight: var(--fw-bold, 700);
  color: var(--tk-muted);
  padding-right: 10px;
  border-right: 1.5px solid var(--hiw-line);
}

.hiw-typed {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  font-weight: var(--fw-medium, 500);
  letter-spacing: 0.06em;
  border-right: 2px solid var(--hiw-green-deep);
}

.hiw-ms2.is-on .hiw-t1 {
  animation: hiwType1 0.9s steps(5) 0.3s forwards;
}

.hiw-ms2.is-on .hiw-t2 {
  animation: hiwType2 1s steps(8) 1.3s forwards;
}

@keyframes hiwType1 {
  to {
    width: 5.7ch;
  }
}
@keyframes hiwType2 {
  to {
    width: 9.2ch;
  }
}
.hiw-mf-btn {
  height: 44px;
  border-radius: 12px;
  background: var(--hiw-grad);
  color: #fff;
  font-weight: var(--fw-bold, 700);
  font-size: 14px;
  display: grid;
  place-items: center;
  text-shadow: 0 1px 1px rgba(0, 60, 40, 0.25);
}

.hiw-ms2.is-on .hiw-mf-btn {
  animation: hiwPress 0.35s ease 2.45s;
}

@keyframes hiwPress {
  50% {
    transform: scale(0.95);
  }
}
.hiw-ready {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--tk-accent-tint, rgba(152, 200, 41, 0.12));
  color: var(--hiw-green-text);
  opacity: 0;
  transform: translateY(10px);
}
.hiw-ready > .hiw-ic {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--hiw-green-deep);
  color: #fff;
  stroke-width: 3;
  flex: none;
}
.hiw-ready b {
  display: block;
  font-size: 14px;
  color: var(--tk-ink);
}
.hiw-ready small {
  font-size: 12px;
}

.hiw-ms2.is-on .hiw-ready {
  animation: hiwRise 0.5s var(--hiw-ease) 2.8s forwards;
}

@keyframes hiwRise {
  to {
    opacity: 1;
    transform: none;
  }
}
.hiw-paycard {
  position: relative;
  height: 150px;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #1c7f8c, #3e8f2a);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  box-shadow: 0 18px 30px -18px rgba(20, 90, 70, 0.7);
  overflow: hidden;
}
.hiw-paycard::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.hiw-paycard b {
  font-size: 17px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.hiw-paycard small {
  font-size: 11.5px;
  opacity: 0.8;
}

.hiw-chip {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 36px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffe9a8, #e2b84a);
}

.hiw-ms3.is-on .hiw-paycard {
  animation: hiwTilt 1.2s var(--hiw-ease) 0.2s both;
}

@keyframes hiwTilt {
  from {
    transform: perspective(600px) rotateY(-25deg) translateX(20px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.hiw-pay-btn {
  position: relative;
  margin-top: 16px;
  height: 48px;
  border-radius: 14px;
  background: var(--hiw-grad);
  color: #fff;
  font-weight: var(--fw-bold, 700);
  font-size: 14.5px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-shadow: 0 1px 1px rgba(0, 60, 40, 0.25);
}
.hiw-pay-btn > * {
  grid-area: 1/1;
}

.hiw-spin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  opacity: 0;
}

.hiw-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
}
.hiw-done .hiw-ic {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.hiw-ms3.is-on .hiw-lbl {
  animation: hiwHide 0.2s 1.6s forwards;
}

.hiw-ms3.is-on .hiw-spin {
  animation: hiwShow 0.2s 1.6s forwards, hiwRot 0.8s linear 1.6s 2, hiwHide 0.2s 3.2s forwards;
}

.hiw-ms3.is-on .hiw-done {
  animation: hiwShow 0.3s 3.3s forwards;
}

@keyframes hiwHide {
  to {
    opacity: 0;
  }
}
@keyframes hiwShow {
  to {
    opacity: 1;
  }
}
@keyframes hiwRot {
  to {
    transform: rotate(360deg);
  }
}
.hiw-ms4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}

.hiw-big-ok {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--hiw-grad);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 18px 30px -14px rgba(80, 150, 40, 0.7);
  transform: scale(0.4);
  opacity: 0;
}
.hiw-big-ok > .hiw-ic {
  width: 40px;
  height: 40px;
  stroke-width: 2.8;
}
.hiw-big-ok i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px;
  border-radius: 50%;
  background: var(--hiw-green);
  opacity: 0;
}
.hiw-big-ok i:nth-of-type(odd) {
  background: var(--hiw-teal);
  border-radius: 3px;
}
.hiw-big-ok i:nth-of-type(1) {
  --bx: -70px;
  --by: -30px;
}
.hiw-big-ok i:nth-of-type(2) {
  --bx: 70px;
  --by: -36px;
}
.hiw-big-ok i:nth-of-type(3) {
  --bx: -56px;
  --by: 46px;
}
.hiw-big-ok i:nth-of-type(4) {
  --bx: 60px;
  --by: 44px;
}
.hiw-big-ok i:nth-of-type(5) {
  --bx: 0;
  --by: -74px;
}
.hiw-big-ok i:nth-of-type(6) {
  --bx: 0;
  --by: 70px;
}

.hiw-ms4.is-on .hiw-big-ok {
  animation: hiwOkIn 0.6s var(--hiw-ease) 0.2s forwards;
}

.hiw-ms4.is-on .hiw-big-ok i {
  animation: hiwBurst 0.9s var(--hiw-ease) 0.5s forwards;
}

@keyframes hiwOkIn {
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes hiwBurst {
  0% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translate(var(--bx), var(--by)) scale(0.6);
  }
}
.hiw-mail {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--hiw-surface-2);
  border: 1px solid var(--hiw-line);
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(16px);
}
.hiw-mail b {
  font-size: 15px;
  color: var(--tk-ink);
}

.hiw-ms4.is-on .hiw-mail {
  animation: hiwRise 0.6s var(--hiw-ease) 0.9s forwards;
}

.hiw-m-from {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--tk-muted);
}
.hiw-m-from .hiw-ic {
  width: 14px;
  height: 14px;
}

.hiw-pdf {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--hiw-surface);
  border: 1px solid var(--hiw-line);
  font-size: 12.5px;
  font-weight: var(--fw-medium, 500);
  color: var(--tk-ink);
}
.hiw-pdf .hiw-ic {
  width: 15px;
  height: 15px;
  color: #d14b3c;
}

.hiw[dir=rtl] .hiw-bar i {
  transform-origin: right;
}
.hiw[dir=rtl] .hiw-cta .hiw-ic {
  transform: scaleX(-1);
}
.hiw[dir=rtl] .hiw-cta:hover .hiw-ic {
  transform: scaleX(-1) translateX(4px);
}
.hiw[dir=rtl] .hiw-title {
  letter-spacing: 0;
}
.hiw[dir=rtl] .hiw-eyebrow {
  letter-spacing: 0;
}

@media (max-width: 1099px) {
  .hiw-panel {
    grid-template-columns: 1fr;
  }
  .hiw-cta {
    margin-top: 0;
  }
}
@media (max-width: 640px) {
  .hiw-panel {
    padding: 20px;
    border-radius: 26px;
  }
  .hiw-mock {
    min-height: 440px;
  }
  .hiw-device {
    width: min(340px, 92%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hiw *,
  .hiw *::before,
  .hiw *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
