/* How It Works landing page — layout from howitworks-alpha.vercel.app, affiliate.bd tokens */

.hiwlp-page { background: var(--white); }

.hiwlp-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.hiwlp-eyebrow {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.hiwlp-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}

.hiwlp-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.75;
}

.hiwlp-header { margin-bottom: 52px; }
.hiwlp-header.center { text-align: center; }
.hiwlp-header.center .hiwlp-sub { margin: 0 auto; }

/* Hero */
.hiwlp-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #2a1a5e 100%);
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}
.hiwlp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hiwlp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
}
.hiwlp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,.14);
  border: 1px solid rgba(245,166,35,.35);
  color: var(--gold);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  padding: 7px 16px;
  margin-bottom: 20px;
}
.hiwlp-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hiwlp-hero h1 em {
  font-style: italic;
  color: var(--orange);
}
.hiwlp-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 28px;
}
.hiwlp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.hiwlp-trust {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
}
.hiwlp-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.72);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.hiwlp-trust-item svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  color: var(--orange);
  flex-shrink: 0;
  display: block;
}

.hiwlp-earn-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hiwlp-earn-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hiwlp-earn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.hiwlp-earn-item {
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
}
.hiwlp-earn-label { font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
.hiwlp-earn-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}
.hiwlp-earn-value.highlight { color: var(--orange); }
.hiwlp-earn-note {
  font-size: .75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.hiwlp-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  margin-right: 6px;
  animation: hiwlp-pulse 1.8s infinite;
}
@keyframes hiwlp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

/* Stats bar */
.hiwlp-stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.hiwlp-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hiwlp-stat {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.hiwlp-stat:last-child { border-right: none; }
.hiwlp-stat-num {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.hiwlp-stat-label { font-size: .88rem; color: var(--muted); }

/* Sections */
.hiwlp-section { padding: 80px 0; }
.hiwlp-section.surface { background: var(--surface); }

/* Who cards — colorful premium */
#hiwlp-who {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255,107,43,.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(30,47,110,.08), transparent 50%),
    var(--surface);
}
.hiwlp-who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.hiwlp-who-card {
  --card-accent: var(--orange);
  --card-bg: linear-gradient(145deg, #fff 0%, #fffaf7 100%);
  --card-glow: rgba(255,107,43,.12);
  --tag-bg: linear-gradient(135deg, #ff6b2b, #ff8f5a);
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 22px;
  padding: 28px 26px 24px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(11,20,55,.06);
}
.hiwlp-who-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 60%, white));
  opacity: .95;
}
.hiwlp-who-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--card-glow);
  pointer-events: none;
  transition: transform .35s ease;
}
.hiwlp-who-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(11,20,55,.12);
  border-color: color-mix(in srgb, var(--card-accent) 25%, white);
}
.hiwlp-who-card:hover::after { transform: scale(1.15); }
.hiwlp-who-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 18%, white), color-mix(in srgb, var(--card-accent) 8%, white));
  border: 1px solid color-mix(in srgb, var(--card-accent) 22%, white);
  box-shadow: 0 8px 20px var(--card-glow);
  position: relative;
  z-index: 1;
}
.hiwlp-who-icon {
  font-size: 1.65rem;
  line-height: 1;
}
.hiwlp-who-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.hiwlp-who-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
  min-height: 2.8em;
  position: relative;
  z-index: 1;
}
.hiwlp-who-card .hiwlp-tag {
  display: inline-block;
  background: var(--tag-bg);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px var(--card-glow);
  position: relative;
  z-index: 1;
}
.hiwlp-who-blue { --card-accent: #3B82F6; --card-glow: rgba(59,130,246,.18); --tag-bg: linear-gradient(135deg, #3B82F6, #60A5FA); --card-bg: linear-gradient(145deg, #fff 0%, #f0f7ff 100%); }
.hiwlp-who-indigo { --card-accent: #6366F1; --card-glow: rgba(99,102,241,.18); --tag-bg: linear-gradient(135deg, #6366F1, #818CF8); --card-bg: linear-gradient(145deg, #fff 0%, #f5f3ff 100%); }
.hiwlp-who-green { --card-accent: #10B981; --card-glow: rgba(16,185,129,.18); --tag-bg: linear-gradient(135deg, #10B981, #34D399); --card-bg: linear-gradient(145deg, #fff 0%, #f0fdf8 100%); }
.hiwlp-who-gold { --card-accent: #F59E0B; --card-glow: rgba(245,158,11,.2); --tag-bg: linear-gradient(135deg, #F59E0B, #FBBF24); --card-bg: linear-gradient(145deg, #fff 0%, #fffbeb 100%); }
.hiwlp-who-violet { --card-accent: #8B5CF6; --card-glow: rgba(139,92,246,.18); --tag-bg: linear-gradient(135deg, #8B5CF6, #A78BFA); --card-bg: linear-gradient(145deg, #fff 0%, #faf5ff 100%); }
.hiwlp-who-orange { --card-accent: #FF6B2B; --card-glow: rgba(255,107,43,.2); --tag-bg: linear-gradient(135deg, #FF6B2B, #FF8F5A); --card-bg: linear-gradient(145deg, #fff 0%, #fff5f0 100%); }

/* Products */
.hiwlp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.hiwlp-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .18s;
}
.hiwlp-tab:hover,
.hiwlp-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.hiwlp-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hiwlp-product-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .22s;
}
.hiwlp-product-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.hiwlp-product-card[hidden] { display: none; }
.hiwlp-product-icon { font-size: 1.8rem; margin-bottom: 12px; }
.hiwlp-product-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.hiwlp-product-use {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.hiwlp-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hiwlp-product-count { font-size: .78rem; font-weight: 600; color: var(--muted); }
.hiwlp-comm {
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.hiwlp-comm-high { background: #FFF3D6; color: #9A6600; }
.hiwlp-comm-premium { background: #E8F5E9; color: #1B5E20; }
.hiwlp-comm-normal { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

/* Steps */
.hiwlp-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.hiwlp-steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0, var(--orange) 12px, transparent 12px, transparent 24px);
  z-index: 0;
}
.hiwlp-step-card {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.hiwlp-step-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(255,107,43,.2);
}
.hiwlp-step-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.hiwlp-step-card p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Models */
.hiwlp-models-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.hiwlp-model {
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}
.hiwlp-model.featured {
  border-color: var(--orange);
  background: linear-gradient(135deg, rgba(255,107,43,.05) 0%, rgba(255,107,43,.01) 100%);
}
.hiwlp-model-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hiwlp-badge-affiliate { background: rgba(11,20,55,.08); color: var(--navy); }
.hiwlp-badge-partner { background: var(--orange-l); color: var(--orange-d); }
.hiwlp-model h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.hiwlp-model-tagline {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.hiwlp-model-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hiwlp-model-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .86rem;
  color: var(--muted);
}
.hiwlp-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange-l);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.hiwlp-check svg { width: 11px; height: 11px; color: var(--orange-d); }
.hiwlp-model-best {
  font-size: .82rem;
  color: var(--muted);
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 22px;
}
.hiwlp-model-best strong { color: var(--navy); }
.hiwlp-btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Support */
.hiwlp-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hiwlp-support-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all .2s;
}
.hiwlp-support-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.hiwlp-sup-icon { font-size: 1.8rem; flex-shrink: 0; }
.hiwlp-sup-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.hiwlp-sup-desc {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.6;
}

/* FAQ */
.hiwlp-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hiwlp-faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hiwlp-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hiwlp-faq-q:hover { background: var(--surface); }
.hiwlp-faq-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .25s;
}
.hiwlp-faq-item.open .hiwlp-faq-arrow {
  background: var(--orange);
  color: #fff;
}
.hiwlp-faq-item.open .hiwlp-faq-arrow svg { transform: rotate(180deg); }
.hiwlp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .25s;
  padding: 0 20px;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.7;
}
.hiwlp-faq-item.open .hiwlp-faq-a {
  max-height: 200px;
  padding: 0 20px 18px;
}

/* Final CTA */
.hiwlp-final {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2a1a5e 100%);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hiwlp-final::before {
  content: 'আয়';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 800;
  color: rgba(255,255,255,.03);
  pointer-events: none;
  line-height: 1;
}
.hiwlp-final h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
}
.hiwlp-final > .hiwlp-container > p {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.75;
  position: relative;
}
.hiwlp-final-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 28px;
}
.hiwlp-btn-gold {
  padding: 14px 28px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-weight: 800;
  transition: all .2s;
}
.hiwlp-btn-gold:hover {
  background: #e8961a;
  transform: translateY(-2px);
}
.hiwlp-btn-outline {
  padding: 14px 28px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-weight: 700;
  transition: all .2s;
}
.hiwlp-btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}
.hiwlp-final-contact {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  position: relative;
}
.hiwlp-final-contact a {
  color: rgba(255,255,255,.65);
}
.hiwlp-final-contact a:hover { color: #fff; }

.hiwlp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: var(--orange);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(255,107,43,.4);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(16px);
  transition: all .25s;
  pointer-events: none;
}
.hiwlp-float.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hiwlp-float:hover { background: var(--orange-d); }

.hiwlp-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.hiwlp-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hiwlp-hero-grid { grid-template-columns: 1fr; }
  .hiwlp-earn-card { max-width: 440px; }
  .hiwlp-who-grid,
  .hiwlp-product-grid,
  .hiwlp-support-grid { grid-template-columns: repeat(2, 1fr); }
  .hiwlp-steps-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .hiwlp-steps-grid::before { display: none; }
  .hiwlp-faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hiwlp-section { padding: 56px 0; }
  .hiwlp-hero { padding: 40px 0 56px; }
  .hiwlp-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hiwlp-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hiwlp-stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .hiwlp-who-grid,
  .hiwlp-product-grid,
  .hiwlp-support-grid,
  .hiwlp-steps-grid,
  .hiwlp-models-grid { grid-template-columns: 1fr; }
}
