/* ============================================
   HTW CSS — NanuPay "How it works" Page
   ============================================ */

.htw-page {
  padding-top: var(--header-h);
  background: var(--white);
}

/* ============================================
   PAGE HERO
   ============================================ */
.htw-hero {
  background: url('../img/htw-bg.png') center/cover no-repeat;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.htw-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.htw-hero-title {
  font-size: 44px;
  line-height: 1.08;
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: -1.2px;
  margin-bottom: 22px;
}

.htw-hero-desc {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(10, 22, 40, 0.7);
  max-width: 460px;
  margin-bottom: 32px;
}

.htw-hero-features {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.htw-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.htw-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #1e5ed9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.htw-feature-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.htw-feature-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-dark);
}

.htw-feature-text em {
  font-style: normal;
  font-size: 13px;
  color: rgba(10, 22, 40, 0.55);
}

/* ----- Hero visual (spacer for bg image) ----- */
.htw-hero-visual {
  position: relative;
  height: 360px;
}

/* ============================================
   SECTION HEADER (shared)
   ============================================ */
.htw-section-header {
  margin-bottom: 36px;
}

.htw-section-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}

.htw-section-desc {
  font-size: 15px;
  color: rgba(10, 22, 40, 0.6);
}

/* ============================================
   STEPS
   ============================================ */
.htw-steps-section {
  padding: 80px 0 64px;
  background: var(--white);
}

.htw-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: stretch;
  list-style: none;
  margin-bottom: 40px;
}

.htw-step {
  position: relative;
  display: flex;
  align-items: stretch;
}

.htw-step-card {
  flex: 1;
  background: #fff;
  border: 1px solid #e5ecf6;
  border-radius: 16px;
  padding: 24px 18px 22px;
  text-align: center;
  position: relative;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.htw-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1e5ed9;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.htw-step-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.htw-step-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy-dark);
  margin-bottom: 10px;
  min-height: 60px;
}

.htw-step-desc {
  font-size: 13px;
  color: rgba(10, 22, 40, 0.6);
  line-height: 1.55;
}

.htw-step-icon svg {
  width: 48px;
  height: 48px;
  color: #1e5ed9;
  stroke-width: 1.6;
}

.htw-step-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.htw-step-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  flex-shrink: 0;
  color: #1e5ed9;
}

.htw-step-arrow svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   LUCIDE — generic icon sizing within wraps
   ============================================ */
.htw-feature-icon svg {
  width: 32px;
  height: 32px;
}

.htw-note-icon svg {
  width: 22px;
  height: 22px;
}

.htw-issuer-btn svg {
  width: 16px;
  height: 16px;
}

.htw-more-link svg {
  width: 16px;
  height: 16px;
}

.htw-issuer-alert-icon svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   NOTE BOX (info / warning)
   ============================================ */
.htw-note {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: 14px;
  margin-top: 16px;
}

.htw-note--info {
  background: #eaf1ff;
  border: 1px solid #d4e1fb;
}

.htw-note--warning {
  background: #f4f6fb;
  border: 1px solid #e1e7f0;
  margin-top: 36px;
}

.htw-note-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #1e5ed9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.htw-note-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.htw-note-list {
  list-style: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.htw-note-list li {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(10, 22, 40, 0.75);
}

/* ============================================
   ISSUERS
   ============================================ */
.htw-issuers-section {
  padding: 32px 0 96px;
  background: var(--white);
}

.htw-country-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.htw-country-tab {
  height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid #d1d9e8;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: rgba(10, 22, 40, 0.6);
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.htw-country-tab:hover {
  border-color: #1e5ed9;
  color: #1e5ed9;
}

.htw-country-tab.is-active {
  background: #1e5ed9;
  border-color: #1e5ed9;
  color: #fff;
}

/* ----- Issuer cards ----- */
.htw-issuer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.htw-issuer-card {
  background: #fff;
  border: 1px solid #e5ecf6;
  border-radius: 14px;
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

.htw-issuer-logo {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.htw-issuer-logo-text {
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.htw-issuer-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(10, 22, 40, 0.55);
  margin-bottom: 16px;
}

.htw-issuer-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.htw-issuer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #d1d9e8;
  background: #fff;
  color: #1e5ed9;
  font-size: 13px;
  font-weight: 600;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.htw-issuer-btn:hover {
  background: #eaf1ff;
  border-color: #1e5ed9;
}

.htw-issuer-btn svg {
  flex-shrink: 0;
}

/* ----- More link ----- */
.htw-issuer-more {
  text-align: center;
  margin-bottom: 18px;
}

.htw-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1e5ed9;
  font-size: 14px;
  font-weight: 600;
  transition: color var(--transition);
}

.htw-more-link:hover {
  color: var(--navy-dark);
}

/* ----- Alert bar ----- */
.htw-issuer-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  background: #fafbfd;
}

.htw-issuer-alert-icon {
  flex-shrink: 0;
  color: rgba(10, 22, 40, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.htw-issuer-alert p {
  font-size: 14px;
  color: rgba(10, 22, 40, 0.75);
}

.htw-issuer-alert strong {
  font-weight: 700;
  color: var(--navy-dark);
}

/* ============================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .htw-hero {
    padding: 56px 0 64px;
  }

  .htw-hero-title {
    font-size: 44px;
  }

  .htw-hero-visual {
    height: 320px;
  }

  .htw-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    row-gap: 24px;
  }

  .htw-step-arrow {
    display: none;
  }

  .htw-step-title {
    min-height: auto;
  }

  .htw-issuer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  .htw-hero {
    padding: 40px 0 48px;
    background:
      linear-gradient(
        180deg,
        rgba(234, 241, 255, 0.55) 0%,
        rgba(244, 247, 253, 0.85) 100%
      ),
      url('../img/htw-bg.png') center/cover no-repeat;
  }

  .htw-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .htw-hero-title {
    font-size: 34px;
  }

  .htw-hero-desc {
    font-size: 14px;
  }

  .htw-hero-features {
    gap: 20px;
  }

  .htw-hero-visual {
    display: none;
  }

  .htw-steps-section,
  .htw-issuers-section {
    padding: 56px 0;
  }

  .htw-section-title {
    font-size: 24px;
  }

  .htw-section-desc {
    font-size: 14px;
  }

  .htw-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .htw-step-card {
    padding: 20px 14px 18px;
  }

  .htw-step-icon {
    width: 60px;
    height: 60px;
  }

  .htw-step-icon svg {
    width: 48px;
    height: 48px;
  }

  .htw-step-title {
    font-size: 14px;
  }

  .htw-step-desc {
    font-size: 12.5px;
  }

  .htw-note {
    padding: 18px;
    gap: 14px;
  }

  .htw-note-icon {
    width: 34px;
    height: 34px;
  }

  .htw-note-title {
    font-size: 15px;
  }

  .htw-note-list li {
    font-size: 13px;
  }

  .htw-country-tabs {
    gap: 8px;
  }

  .htw-country-tab {
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
  }

  .htw-issuer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .htw-issuer-card {
    padding: 24px 18px 18px;
  }
}

/* ============================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  .htw-hero-title {
    font-size: 28px;
  }

  .htw-steps {
    grid-template-columns: 1fr;
  }

  .htw-step-title {
    min-height: auto;
  }

  .htw-country-tabs {
    gap: 6px;
  }

  .htw-country-tab {
    height: 36px;
    padding: 0 14px;
    font-size: 12.5px;
  }
}
