/* ==========================================================================
   How It Works v2.0 — Premium step-by-step workflow page
   ========================================================================== */

.hiw-hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hiw-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--allybi-accent);
  margin-bottom: 20px;
  padding: 6px 14px;
  background: var(--allybi-accent-subtle);
  border-radius: var(--allybi-radius-full);
  border: 1px solid var(--allybi-accent-muted);
}

.hiw-hero h1 {
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--allybi-text-strongest);
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.hiw-hero p {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--allybi-text-secondary);
  max-width: 580px;
  margin: 0 auto 32px;
}

.hiw-hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Steps */
.hiw-steps {
  padding: 0 0 var(--allybi-section-py);
}

.hiw-step {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--allybi-border-default);
}

.hiw-step:last-child { border-bottom: none; }

.hiw-step:nth-child(even) .hiw-step__text { order: 2; }
.hiw-step:nth-child(even) .hiw-step__visual { order: 1; }

.hiw-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--allybi-accent-subtle);
  color: var(--allybi-accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hiw-step h3 {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--allybi-text-strongest);
  margin-bottom: 14px;
}

.hiw-step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--allybi-text-secondary);
  max-width: 420px;
}

.hiw-step__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hiw-step__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  background: var(--allybi-bg-alt-1);
  border: 1px solid var(--allybi-border-default);
  border-radius: var(--allybi-radius-full);
  color: var(--allybi-text-secondary);
}

.hiw-step__tag--coming {
  opacity: 0.55;
  border-style: dashed;
}

/* Visual mock */
.hiw-step__visual {
  background: var(--allybi-bg-surface);
  border: 1px solid var(--allybi-border-default);
  border-radius: var(--allybi-radius-xl);
  box-shadow: var(--allybi-shadow-lg);
  overflow: hidden;
}

.hiw-mock__chrome {
  display: flex;
  gap: 5px;
  padding: 12px 16px;
  background: var(--allybi-bg-alt-1);
  border-bottom: 1px solid var(--allybi-border-default);
}

.hiw-mock__chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--allybi-border-strong);
}

.hiw-mock__body {
  padding: 20px;
}

.hiw-mock__query {
  font-size: 13px;
  color: var(--allybi-text-muted);
  padding: 10px 14px;
  background: var(--allybi-bg-alt-1);
  border-radius: var(--allybi-radius-sm);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hiw-mock__result {
  font-size: 14px;
  line-height: 1.6;
  color: var(--allybi-text-primary);
}

.hiw-mock__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--allybi-trust);
  margin-bottom: 6px;
}

.hiw-mock__badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--allybi-trust);
}

.hiw-mock__source {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--allybi-text-muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--allybi-border-subtle);
}

/* Confirm mock */
.hiw-mock__confirm {
  margin-top: 14px;
  padding: 14px;
  background: var(--allybi-bg-alt-1);
  border: 1px solid var(--allybi-border-default);
  border-radius: var(--allybi-radius-md);
}

.hiw-mock__confirm-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--allybi-trust);
  margin-bottom: 8px;
}

.hiw-mock__confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hiw-mock__confirm-detail {
  font-size: 12px;
  color: var(--allybi-text-secondary);
  line-height: 1.5;
}

.hiw-mock__confirm-btn {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  background: var(--allybi-trust);
  color: #fff;
  border-radius: var(--allybi-radius-xs);
}

/* Diff mock */
.hiw-mock__diff {
  font-size: 13px;
  line-height: 1.7;
}

.hiw-mock__diff-removed {
  color: #DC2626;
  background: rgba(220, 38, 38, 0.06);
  padding: 1px 3px;
  border-radius: 2px;
  text-decoration: line-through;
}

.hiw-mock__diff-added {
  color: var(--allybi-trust);
  background: var(--allybi-trust-subtle);
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: 600;
}

/* Strip */
.hiw-strip {
  padding: 40px 0;
  background: var(--allybi-bg-alt-1);
  border-top: 1px solid var(--allybi-border-default);
  border-bottom: 1px solid var(--allybi-border-default);
}

.hiw-strip__inner {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.hiw-strip__item {
  text-align: center;
}

.hiw-strip__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--allybi-accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: var(--allybi-accent);
}

.hiw-strip__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--allybi-text-strongest);
}

/* CTA */
.hiw-cta {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--allybi-bg-dark);
  text-align: center;
}

.hiw-cta h2 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.hiw-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hiw-step {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }
  .hiw-step:nth-child(even) .hiw-step__text { order: 1; }
  .hiw-step:nth-child(even) .hiw-step__visual { order: 2; }
}

@media (max-width: 600px) {
  .hiw-hero { padding: 96px 0 48px; }
  .hiw-hero__ctas { flex-direction: column; align-items: center; }
  .hiw-hero__ctas .allybi-btn { width: 100%; max-width: 280px; justify-content: center; }
  .hiw-strip__inner { gap: 24px; }
  .hiw-step { padding: 36px 0; }
}
