.hiw-page { overflow: clip; }

.skip-link {
  position: fixed;
  z-index: 10000;
  top: -64px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  border-radius: 10px;
  background: #0f172a;
  font-size: .75rem;
  font-weight: 750;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

.hiw-hero-section { padding: 120px 0 30px; }
.hiw-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 76px);
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 18%, rgba(16, 185, 129, .19), transparent 31%),
    radial-gradient(circle at 14% 0%, rgba(37, 99, 235, .20), transparent 34%),
    rgba(255, 255, 255, .75);
  box-shadow: 0 30px 80px rgba(15, 23, 42, .08);
  text-align: center;
}
.hiw-hero::after {
  position: absolute;
  inset: auto -8% -52% auto;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(37, 99, 235, .13);
  border-radius: 50%;
  content: '';
}
.hiw-eyebrow,
.hiw-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 13px;
  color: var(--blue-dark);
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 999px;
  background: rgba(239, 246, 255, .9);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hiw-hero h1 { max-width: 850px; margin: 0 auto 18px; font-size: clamp(2.1rem, 6vw, 4.4rem); line-height: 1.03; letter-spacing: -.055em; }
.hiw-hero h1 span { color: var(--blue); }
.hiw-hero-copy { max-width: 720px; margin: 0 auto; color: var(--text-muted); font-size: clamp(.95rem, 1.7vw, 1.12rem); line-height: 1.75; }
.hiw-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hiw-hero-actions a { min-width: 168px; }
.hiw-reveal { opacity: 0; transform: translateY(18px); animation: hiwReveal .62s cubic-bezier(.22, 1, .36, 1) forwards; }
.hiw-reveal--2 { animation-delay: .12s; }
.hiw-reveal--3 { animation-delay: .22s; }
.hiw-reveal--4 { animation-delay: .32s; }
.hiw-reveal--5 { animation-delay: .42s; }
@keyframes hiwReveal { to { opacity: 1; transform: translateY(0); } }

.hiw-hero .hero-app-glimpse--guide {
  width: min(100%, 820px);
  margin: 32px auto 0;
  text-align: left;
}

.hiw-section { padding: 64px 0; }
.hiw-section--soft { background: linear-gradient(180deg, rgba(239, 246, 255, .48), rgba(240, 253, 250, .34)); }
.hiw-section-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.hiw-section-head h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.035em; }
.hiw-section-head p { color: var(--text-muted); line-height: 1.7; }

.hiw-role-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.hiw-role-link { display: flex; align-items: center; gap: 11px; width: 100%; padding: 15px 16px; color: var(--text); border: 1px solid rgba(148, 163, 184, .25); border-radius: 16px; background: rgba(255, 255, 255, .82); font: 750 .78rem/1.25 'DM Sans', sans-serif; text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.hiw-role-link:hover { transform: translateY(-2px); border-color: rgba(37, 99, 235, .34); box-shadow: 0 14px 34px rgba(15, 23, 42, .07); }
.hiw-role-link:focus-visible { outline: 3px solid rgba(37, 99, 235, .24); outline-offset: 3px; }
.hiw-role-link.is-active { color: #fff; border-color: #2563eb; background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 15px 34px rgba(37, 99, 235, .23); }
.hiw-role-link > span:last-child { display: grid; gap: 4px; }
.hiw-role-link small { color: var(--text-muted); font-size: .58rem; font-weight: 650; letter-spacing: .02em; }
.hiw-role-link.is-active small { color: rgba(255, 255, 255, .76); }
.hiw-role-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: rgba(37, 99, 235, .1); font-size: 1rem; }
.hiw-role-link.is-active .hiw-role-icon { background: rgba(255, 255, 255, .17); }

.hiw-active-journey { display: flex; align-items: center; gap: 9px; margin: 0 0 -8px 8px; color: var(--text-muted); font-size: .68rem; }
.hiw-active-journey span { text-transform: uppercase; letter-spacing: .07em; }
.hiw-active-journey strong { color: #1d4ed8; }

.hiw-flow { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 34px; align-items: start; margin-top: 26px; padding: clamp(24px, 5vw, 46px); border: 1px solid rgba(148, 163, 184, .22); border-radius: 28px; background: rgba(255, 255, 255, .78); box-shadow: 0 22px 54px rgba(15, 23, 42, .06); }
.hiw-flow[hidden] { display: none; }
.hiw-flow + .hiw-flow { margin-top: 24px; }
.hiw-flow-summary { position: sticky; top: 92px; }
.hiw-flow-badge { display: inline-flex; margin-bottom: 16px; padding: 6px 11px; color: #1d4ed8; border-radius: 999px; background: #dbeafe; font-size: .65rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.hiw-flow--cardholder .hiw-flow-badge { color: #6d28d9; background: #ede9fe; }
.hiw-flow--wallet .hiw-flow-badge { color: #047857; background: #d1fae5; }
.hiw-flow--safety .hiw-flow-badge { color: #9a3412; background: #ffedd5; }
.hiw-flow-summary h3 { margin-bottom: 12px; font-size: clamp(1.45rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.hiw-flow-summary p { color: var(--text-muted); line-height: 1.65; }
.hiw-flow-note { margin-top: 18px; padding: 14px 15px; color: #7c2d12; border: 1px solid #fed7aa; border-radius: 14px; background: #fff7ed; font-size: .72rem; line-height: 1.55; }

.hiw-process { position: relative; display: grid; gap: 12px; --process-progress: 0%; }
.hiw-process::before,
.hiw-process::after { position: absolute; top: 26px; bottom: 26px; left: 20px; width: 2px; border-radius: 2px; content: ''; }
.hiw-process::before { background: #e2e8f0; }
.hiw-process::after { height: var(--process-progress); max-height: calc(100% - 52px); background: linear-gradient(var(--blue), var(--green)); transition: height .65s cubic-bezier(.22, 1, .36, 1); }
.hiw-process-step { position: relative; z-index: 1; display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; padding: 16px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 17px; background: #fff; opacity: .74; transform: translateX(7px); transition: opacity .35s ease, transform .35s ease, border-color .35s ease; }
.hiw-process-step.is-active { opacity: 1; transform: translateX(0); border-color: rgba(37, 99, 235, .23); }
.hiw-step-num { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; border-radius: 14px; background: linear-gradient(135deg, var(--blue), #4338ca); font: 800 .75rem/1 'Space Grotesk', sans-serif; box-shadow: 0 8px 18px rgba(37, 99, 235, .2); }
.hiw-process-step h4 { margin: 1px 0 5px; font-size: .9rem; }
.hiw-process-step p { color: var(--text-muted); font-size: .75rem; line-height: 1.55; }

.hiw-safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hiw-flow--safety .hiw-safety-grid { grid-template-columns: 1fr; }
.hiw-safety-card { padding: 24px; border: 1px solid rgba(148, 163, 184, .22); border-radius: 20px; background: rgba(255, 255, 255, .82); }
.hiw-safety-card span { display: grid; width: 42px; height: 42px; margin-bottom: 16px; place-items: center; border-radius: 14px; background: #ecfdf5; font-size: 1.2rem; }
.hiw-safety-card h3,
.hiw-safety-card h4 { margin-bottom: 8px; font-size: .95rem; }
.hiw-safety-card p { color: var(--text-muted); font-size: .75rem; line-height: 1.6; }

.hiw-video-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.hiw-video-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.hiw-video-filter { padding: 9px 14px; color: var(--text-muted); border: 1px solid rgba(148, 163, 184, .28); border-radius: 999px; background: #fff; font: 750 .7rem/1 'DM Sans', sans-serif; cursor: pointer; }
.hiw-video-filter.is-active { color: #fff; border-color: var(--blue); background: var(--blue); }
.hiw-video-count { color: var(--text-muted); font-size: .7rem; font-weight: 700; }
.hiw-video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hiw-video-card { overflow: hidden; border: 1px solid rgba(148, 163, 184, .23); border-radius: 22px; background: #fff; box-shadow: 0 18px 40px rgba(15, 23, 42, .065); }
.hiw-video-card[hidden] { display: none; }
.hiw-video-media { position: relative; overflow: hidden; aspect-ratio: 9 / 12; background: #0f172a; }
.hiw-video-media img,
.hiw-video-media iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.hiw-video-media img { transform: scale(1.22); filter: saturate(.92) contrast(1.03); }
.hiw-video-media::after { position: absolute; inset: 0; background: linear-gradient(transparent 48%, rgba(15, 23, 42, .72)); content: ''; pointer-events: none; }
.hiw-video-media:has(iframe)::after { display: none; }
.hiw-video-play { position: absolute; z-index: 1; left: 50%; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; min-width: 118px; justify-content: center; padding: 10px 14px; color: #0f172a; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 28px rgba(0, 0, 0, .24); font: 800 .68rem/1 'DM Sans', sans-serif; cursor: pointer; transform: translateX(-50%); }
.hiw-video-play-icon { color: #ef4444; }
.hiw-video-body { padding: 18px; }
.hiw-video-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 12px; }
.hiw-video-chip { padding: 5px 8px; color: #1d4ed8; border-radius: 999px; background: #dbeafe; font-size: .58rem; font-weight: 850; text-transform: uppercase; }
.hiw-video-chip--muted { color: #475569; background: #f1f5f9; }
.hiw-video-duration { margin-left: auto; color: #64748b; font-size: .6rem; font-weight: 700; }
.hiw-video-body h3 { min-height: 2.5em; margin-bottom: 8px; font-size: .88rem; line-height: 1.25; }
.hiw-video-body p { min-height: 4.6em; color: var(--text-muted); font-size: .7rem; line-height: 1.55; }
.hiw-video-youtube { display: inline-flex; margin-top: 15px; color: var(--blue-dark); font-size: .68rem; font-weight: 800; text-decoration: none; }
.hiw-video-empty { padding: 30px; border: 1px dashed #cbd5e1; border-radius: 18px; color: var(--text-muted); text-align: center; }

.hiw-cta { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; padding: clamp(28px, 5vw, 48px); color: #fff; border-radius: 28px; background: linear-gradient(135deg, #0f172a, #1e3a8a); box-shadow: 0 28px 60px rgba(15, 23, 42, .18); }
.hiw-cta h2 { margin-bottom: 8px; color: #fff; font-size: clamp(1.45rem, 3vw, 2.35rem); }
.hiw-cta p { max-width: 680px; color: #cbd5e1; line-height: 1.65; }

@media (max-width: 1024px) {
  .hiw-role-tabs { grid-template-columns: repeat(2, 1fr); }
  .hiw-video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  /* Clear the fixed mobile navbar (and display cutout) even though the
     shared mobile section rule uses !important. */
  .hiw-hero-section { padding: calc(112px + env(safe-area-inset-top, 0px)) 0 24px !important; }
  .hiw-hero { padding: 34px 20px; border-radius: 24px; }
  .hiw-hero .hero-app-glimpse--guide { margin-top: 26px; }
  .hiw-section { padding: 48px 0; }
  .hiw-flow { grid-template-columns: 1fr; gap: 24px; padding: 22px 16px; border-radius: 22px; }
  .hiw-flow-summary { position: static; }
  .hiw-safety-grid { grid-template-columns: 1fr; }
  .hiw-cta { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 520px) {
  .hiw-role-tabs,
  .hiw-video-grid { grid-template-columns: 1fr; }
  .hiw-role-link { padding: 13px; }
  .hiw-video-card { max-width: 360px; margin: 0 auto; }
  .hiw-video-toolbar { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hiw-reveal { opacity: 1; transform: none; animation: none; }
  .hiw-process::after,
  .hiw-process-step { transition: none; }
}
