/* /assets/css/how-it-works.css
   Professional visual upgrade for /how-it-works.php.
   UTF-8, no BOM.
*/

/* ------------------------------------------------------------
   Page foundation
------------------------------------------------------------ */

.how-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(124, 58, 237, .18), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(236, 72, 153, .14), transparent 28%),
    radial-gradient(circle at 75% 100%, rgba(249, 115, 22, .08), transparent 32%),
    linear-gradient(135deg, #fff7fb 0%, #f8fafc 46%, #f5f3ff 100%);
  color: #12091f;
}

.how-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------ */

.how-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(26px, 5vw, 56px);
  border-radius: 42px;
  background:
    radial-gradient(circle at 92% 10%, rgba(236,72,153,.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.84));
  border: 1px solid rgba(255,255,255,.92);
  box-shadow:
    0 34px 100px rgba(15,23,42,.13),
    inset 0 1px 0 rgba(255,255,255,.96);
}

.how-hero::before {
  content: "";
  position: absolute;
  right: -110px;
  top: -130px;
  width: 390px;
  height: 390px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,58,237,.16), rgba(236,72,153,.14));
}

.how-hero::after {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16,185,129,.10), rgba(249,115,22,.10));
}

.how-hero__main,
.how-hero__side {
  position: relative;
  z-index: 2;
}

.how-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(124,58,237,.10);
  color: #6d28d9;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.how-hero h1 {
  max-width: 820px;
  margin: 18px 0 0;
  color: #12091f;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: .98;
  letter-spacing: -.08em;
}

.how-hero__main > p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.78;
}

.how-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.how-hero__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(226,232,240,.78);
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.how-hero__actions,
.how-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.how-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 950;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.how-page .btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #12091f, #7c3aed 55%, #ec4899);
  box-shadow: 0 20px 46px rgba(124,58,237,.24);
}

.how-page .btn--secondary {
  color: #12091f;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(226,232,240,.88);
  box-shadow: 0 12px 28px rgba(15,23,42,.07);
}

.how-page .btn:hover {
  transform: translateY(-2px);
}

.how-hero__micro {
  margin-top: 22px;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

/* ------------------------------------------------------------
   Summary card
------------------------------------------------------------ */

.how-summary-card {
  height: 100%;
  padding: 24px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 0%, rgba(124,58,237,.13), transparent 34%),
    rgba(255,255,255,.92);
  border: 1px solid rgba(226,232,240,.86);
  box-shadow:
    0 24px 70px rgba(15,23,42,.12),
    inset 0 1px 0 rgba(255,255,255,.88);
}

.how-summary-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.how-summary-card__eyebrow {
  color: #7c3aed;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.how-summary-card h2 {
  margin: 6px 0 0;
  color: #12091f;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.055em;
}

.how-summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(16,185,129,.12);
  color: #047857;
  font-size: 12px;
  font-weight: 950;
}

.how-summary-list {
  display: grid;
  gap: 10px;
}

.how-summary-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(226,232,240,.82);
  box-shadow: 0 10px 26px rgba(15,23,42,.045);
}

.how-summary-item span {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(124,58,237,.20);
}

.how-summary-item strong {
  color: #12091f;
  font-size: 14px;
  font-weight: 950;
}

.how-summary-note {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 20px;
  background: rgba(124,58,237,.08);
  color: #475569;
  line-height: 1.6;
  font-weight: 750;
}

/* ------------------------------------------------------------
   Steps
------------------------------------------------------------ */

.how-steps,
.how-explain,
.how-cta {
  margin-top: 24px;
}

.how-grid {
  display: grid;
  gap: 18px;
}

.how-grid--steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.how-grid--explain {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.how-card,
.how-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,232,240,.82);
  box-shadow:
    0 20px 58px rgba(15,23,42,.08),
    inset 0 1px 0 rgba(255,255,255,.88);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.how-card:hover,
.how-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(124,58,237,.24);
  box-shadow: 0 30px 78px rgba(124,58,237,.14);
}

.how-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #7c3aed, #ec4899);
  opacity: .78;
}

.how-card::after,
.how-panel::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(124,58,237,.08);
}

.how-card__num {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #12091f, #7c3aed 58%, #ec4899);
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(124,58,237,.24);
}

.how-card h2,
.how-panel h3 {
  position: relative;
  z-index: 2;
  margin: 18px 0 10px;
  color: #12091f;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.how-card h2 {
  font-size: 24px;
}

.how-panel h3 {
  font-size: 23px;
}

.how-card p,
.how-panel p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #475569;
  line-height: 1.68;
}

.how-panel p + p {
  margin-top: 12px;
}

.how-panel__icon {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124,58,237,.13), rgba(236,72,153,.11));
  font-size: 28px;
}

/* ------------------------------------------------------------
   CTA
------------------------------------------------------------ */

.how-cta__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 10%, rgba(236,72,153,.18), transparent 34%),
    linear-gradient(135deg, #12091f, #3b0764 50%, #7c3aed);
  color: #fff;
  box-shadow: 0 30px 86px rgba(15,23,42,.22);
}

.how-cta__card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.how-cta__card p {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.84);
  line-height: 1.65;
}

.how-cta__card .btn--primary {
  background: #fff;
  color: #12091f;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.how-cta__card .btn--secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.26);
}

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */

@media (max-width: 980px) {
  .how-hero,
  .how-grid--steps,
  .how-grid--explain,
  .how-cta__card {
    grid-template-columns: 1fr;
  }

  .how-cta__card {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .how-shell {
    width: min(100% - 20px, 1180px);
    padding: 18px 0 38px;
  }

  .how-hero,
  .how-card,
  .how-panel,
  .how-summary-card,
  .how-cta__card {
    border-radius: 28px;
  }

  .how-hero {
    padding: 22px;
  }

  .how-hero h1 {
    font-size: 36px;
  }

  .how-hero__main > p {
    font-size: 15.5px;
  }

  .how-hero__chips {
    display: grid;
    grid-template-columns: 1fr;
  }

  .how-hero__actions,
  .how-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .how-page .btn {
    width: 100%;
  }

  .how-card,
  .how-panel,
  .how-summary-card,
  .how-cta__card {
    padding: 20px;
  }
}

/* ------------------------------------------------------------
   Dark mode
------------------------------------------------------------ */

html[data-theme="dark"] .how-page,
body.theme-dark.how-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(124,58,237,.24), transparent 32%),
    #0f172a;
}

html[data-theme="dark"] .how-hero,
body.theme-dark .how-hero,
html[data-theme="dark"] .how-summary-card,
body.theme-dark .how-summary-card,
html[data-theme="dark"] .how-card,
body.theme-dark .how-card,
html[data-theme="dark"] .how-panel,
body.theme-dark .how-panel,
html[data-theme="dark"] .how-summary-item,
body.theme-dark .how-summary-item {
  background: #111827;
  border-color: rgba(255,255,255,.08);
}

html[data-theme="dark"] .how-hero h1,
body.theme-dark .how-hero h1,
html[data-theme="dark"] .how-summary-card h2,
body.theme-dark .how-summary-card h2,
html[data-theme="dark"] .how-summary-item strong,
body.theme-dark .how-summary-item strong,
html[data-theme="dark"] .how-card h2,
body.theme-dark .how-card h2,
html[data-theme="dark"] .how-panel h3,
body.theme-dark .how-panel h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .how-hero__main > p,
body.theme-dark .how-hero__main > p,
html[data-theme="dark"] .how-summary-note,
body.theme-dark .how-summary-note,
html[data-theme="dark"] .how-card p,
body.theme-dark .how-card p,
html[data-theme="dark"] .how-panel p,
body.theme-dark .how-panel p {
  color: #cbd5e1;
}
