/* ============================================================
   how_it_works.css  —  LiftBot · How It Works page styles
   Rebuilt on the same visual system as features.css
   Prefix: hiw-
   ============================================================ */

/* ── Full-width override ── */
main:has(.lb) {
  max-width: none;
  width: 100%;
  padding: 0;
}

/* ── CSS custom properties (local mirror of brand tokens) ── */
.lb {
  --brand:      #4b3aff;
  --signal:     #1fce7a;
  --pop:        #ff4d8d;
  --ink:        #15161b;
  --paper-dim:  #f3f2ee;
  --paper-line: #e7e5de;
  --mono:       'IBM Plex Mono', monospace;
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   PULSE KEYFRAME  (used by hero badge dot)
   ============================================================ */
@keyframes hiw-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31,206,122,0.5); }
  50%      { box-shadow: 0 0 0 4px rgba(31,206,122,0); }
}

/* ============================================================
   HERO  (mirrors .feat-hero)
   ============================================================ */
.hiw-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 56px;
  text-align: center;
  background: #f3f2ee;
}

.hiw-hero__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.hiw-hero__glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 460px;
  background: radial-gradient(ellipse at center, rgba(75,58,255,0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hiw-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
}

/* Badge */
.hiw-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #4b3aff;
  background: #eeecff;
  border: 1px solid rgba(75,58,255,0.2);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hiw-hero__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1fce7a;
  box-shadow: 0 0 0 2px rgba(31,206,122,0.3);
  animation: hiw-pulse 1.8s ease-in-out infinite;
}

/* H1 */
.hiw-hero__h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 22px;
  color: #15161b;
}

.hiw-hero__h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #4b3aff 0%, #ff4d8d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtext */
.hiw-hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #53555f;
  max-width: 56ch;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* CTA row */
.hiw-hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   STEPS SECTION  (mirrors .feat-grid-section / .feat-card)
   ============================================================ */
.hiw-steps {
  background: #f3f2ee;
  padding: 64px 24px;
  border-top: 1px solid #e7e5de;
  border-bottom: 1px solid #e7e5de;
}

.hiw-steps__inner {
  max-width: 1180px;
  margin-inline: auto;
}

.hiw-steps__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
}

/* Card grid */
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hiw-card {
  background: #fff;
  border: 1px solid #e7e5de;
  border-radius: 18px;
  padding: 28px;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.hiw-card:hover {
  border-color: #4b3aff;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px -16px rgba(75,58,255,0.22);
}

.hiw-card__num {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hiw-card__num--1 { background: #eeecff; color: #4b3aff; }
.hiw-card__num--2 { background: #e6fbf0; color: #0f8a52; }
.hiw-card__num--3 { background: #ffeaf2; color: #d63074; }
.hiw-card__num--4 { background: #fff8e5; color: #a67608; }
.hiw-card__num--5 { background: #f0f4ff; color: #3654c9; }
.hiw-card__num--6 { background: #f5f0ff; color: #7a3ad1; }
.hiw-card__num--7 { background: #e8f4f8; color: #1381a3; }

.hiw-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: #15161b;
}

.hiw-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #53555f;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   WORKFLOW BAND  (mirrors .feat-statement / .feat-pill)
   ============================================================ */
.hiw-workflow {
  background: #f3f2ee;
  padding: 64px 24px;
  border-bottom: 1px solid #e7e5de;
  text-align: center;
}
.hiw-workflow__inner {
  max-width: 640px;
  margin-inline: auto;
}

.hiw-workflow__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #4b3aff;
  margin-bottom: 16px;
  display: block;
}

.hiw-workflow__h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #15161b;
}

.hiw-workflow__sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: #53555f;
  margin: 0 0 40px;
}

.hiw-workflow__panel {
  background: #15161b;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hiw-workflow__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.05);
}

.hiw-workflow__pill::before {
  content: '\2713';
  color: #1fce7a;
  font-size: 12px;
}

/* ============================================================
   FINAL CTA SECTION  (mirrors .feat-cta)
   ============================================================ */
.hiw-cta {
  background: #f3f2ee;
  color: #15161b;
  padding: 72px 24px;
  text-align: center;
}

.hiw-cta__inner {
  max-width: 680px;
  margin-inline: auto;
}

.hiw-cta__h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 18px 0 18px;
  color: #15161b;
}

.hiw-cta__sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: #53555f;
  margin: 0 0 38px;
  line-height: 1.65;
}

.hiw-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE — 860px
   ============================================================ */
@media (max-width: 860px) {
  .hiw-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — 560px
   ============================================================ */
@media (max-width: 560px) {
  .hiw-hero { padding: 56px 20px 40px; }
  .hiw-steps { padding: 48px 20px; }
  .hiw-workflow { padding: 48px 20px; }
  .hiw-cta { padding: 48px 20px; }

  .hiw-grid { grid-template-columns: 1fr; }

  .hiw-hero__cta,
  .hiw-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .hiw-workflow__panel { gap: 10px; padding: 24px; }
}