/* How It Works v4 (V62): tested strategies -> signal -> trade plan. Uses the site theme variables (dark + light). */
#page-how-it-works{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
.hw{max-width:1080px;margin:0 auto;padding:0 4px;display:flex;flex-direction:column;gap:64px}
.hw-eyebrow{display:inline-block;font-size:.72rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
.hw h2,.hw h3,.hw h4{color:var(--text);margin:0}
.hw-head{max-width:640px;margin:0 auto 26px;text-align:center;display:flex;flex-direction:column;gap:8px}
.hw-head h3{font:800 clamp(1.4rem,3vw,1.9rem)/1.2 Sora,Inter,sans-serif}
.hw-head p{margin:0;color:var(--text-muted);font-size:.93rem;line-height:1.6}
.hw-center{text-align:center;margin-top:18px}

/* hero */
.hw-hero{text-align:center;padding:28px 0 0;display:flex;flex-direction:column;align-items:center;gap:16px}
.hw-hero h2{font:800 clamp(1.9rem,5vw,3.1rem)/1.12 Sora,Inter,sans-serif;letter-spacing:-.01em}
.hw-hero h2 span{background:linear-gradient(135deg,var(--gold),var(--gold-dark,var(--gold)));-webkit-background-clip:text;background-clip:text;color:transparent}
.hw-hero>p{max-width:640px;margin:0;color:var(--text-muted);font-size:1.02rem;line-height:1.65}
.hw-btns{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:4px}
.hw-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%;max-width:820px;margin-top:22px}
.hw-stats div{padding:18px 14px;border-radius:18px;border:1px solid var(--border);background:var(--bg-card);display:flex;flex-direction:column;gap:4px}
.hw-stats b{font:800 1.6rem Sora,Inter,sans-serif;color:var(--gold);font-variant-numeric:tabular-nums}
.hw-stats span{font-size:.8rem;color:var(--text-muted);line-height:1.4}

/* 3 steps */
.hw-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;counter-reset:hw}
.hw-steps article{position:relative;padding:24px 22px;border-radius:20px;border:1px solid var(--border);background:linear-gradient(180deg,rgba(var(--accent-rgb),.06),transparent 60%),var(--bg-card);display:flex;flex-direction:column;gap:10px}
.hw-num{position:absolute;top:18px;right:20px;font:800 2.4rem Sora,Inter,sans-serif;color:rgba(var(--accent-rgb),.18)}
.hw-ico{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;color:var(--gold);background:rgba(var(--accent-rgb),.12)}
.hw-ico svg{width:24px;height:24px}
.hw-steps h4{font-size:1.08rem}
.hw-steps p{margin:0;color:var(--text-muted);font-size:.9rem;line-height:1.6}

/* anatomy */
.hw-anat{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center}
.hw-sig{position:relative;padding:18px;border-radius:20px;border:1px solid var(--border);background:var(--bg-card);box-shadow:0 20px 50px rgba(0,0,0,.28);display:flex;flex-direction:column;gap:12px}
.hw-sig::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;border-radius:20px 0 0 20px;background:var(--green,#22c55e)}
.hw-tag{position:absolute;top:-11px;right:16px;font-size:.66rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;padding:4px 10px;border-radius:999px;border:1px solid rgba(var(--accent-rgb),.45);background:var(--bg-card);color:var(--gold)}
.hw-sig-top{display:flex;align-items:center;gap:10px}
.hw-sig-top>div{flex:1;display:flex;flex-direction:column}
.hw-sig-top small{font-size:.74rem;color:var(--text-muted)}
.hw-sig-ico{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-weight:800;color:var(--gold);background:rgba(var(--accent-rgb),.14)}
.hw-side{font-size:.74rem;font-weight:800;padding:4px 9px;border-radius:8px;color:#06210f;background:var(--green,#22c55e)}
.hw-kind{font-size:.7rem;font-weight:800;padding:4px 8px;border-radius:8px;border:1px solid var(--border);color:var(--text-muted)}
.hw-sig-st{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;border-radius:12px;background:rgba(var(--accent-rgb),.07);font-size:.84rem}
.hw-sig-st i{width:8px;height:8px;border-radius:50%;background:var(--gold)}
.hw-sig-st span{margin-left:auto;color:var(--text-muted);font-size:.78rem}
.hw-lv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hw-lv div{padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:rgba(var(--tint-rgb,255,255,255),.03);display:flex;flex-direction:column;gap:2px}
.hw-lv small{font-size:.68rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted)}
.hw-lv strong{font:700 1.02rem Inter,sans-serif;font-variant-numeric:tabular-nums;color:var(--text)}
.hw-lv em{font-style:normal;font-size:.72rem;color:var(--text-muted)}
.hw-lv .s strong{color:var(--red,#ef4444)} .hw-lv .t strong{color:var(--green,#22c55e)}
.hw-notes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px;counter-reset:n}
.hw-notes li{position:relative;padding-left:40px;display:flex;flex-direction:column;gap:3px;counter-increment:n}
.hw-notes li::before{content:counter(n);position:absolute;left:0;top:0;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:800;color:var(--on-accent,#1a1305);background:linear-gradient(135deg,var(--gold),var(--gold-dark,var(--gold)))}
.hw-notes b{color:var(--text);font-size:.95rem}
.hw-notes span{color:var(--text-muted);font-size:.88rem;line-height:1.55}

/* trade plan */
.hw-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;position:relative}
.hw-flow div{position:relative;padding:18px 16px;border-radius:18px;border:1px solid var(--border);background:var(--bg-card);display:flex;flex-direction:column;gap:6px}
.hw-flow span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:.85rem;color:var(--gold);border:1px solid rgba(var(--accent-rgb),.5);background:rgba(var(--accent-rgb),.08)}
.hw-flow b{color:var(--text);font-size:.95rem}
.hw-flow p{margin:0;color:var(--text-muted);font-size:.85rem;line-height:1.5}
.hw-flow div:not(:last-child)::after{content:"";position:absolute;top:33px;right:-12px;width:12px;height:1px;background:rgba(var(--accent-rgb),.5)}
.hw-example{margin-top:14px;padding:14px 16px;border-radius:14px;border:1px dashed rgba(var(--accent-rgb),.45);background:rgba(var(--accent-rgb),.05);font-size:.88rem;line-height:1.6;color:var(--text-muted)}
.hw-example b{color:var(--text)}

/* results */
.hw-res{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hw-mk{padding:18px;border-radius:18px;border:1px solid var(--border);background:var(--bg-card);display:flex;flex-direction:column;gap:12px}
.hw-mk-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.hw-mk-h b{color:var(--text);font-size:1rem}
.hw-mk-h span{font-size:.74rem;color:var(--text-muted)}
.hw-mk-big{font:800 1.8rem Sora,Inter,sans-serif;color:var(--green,#22c55e);font-variant-numeric:tabular-nums}
.hw-mk-big small{font:600 .74rem Inter,sans-serif;color:var(--text-muted);margin-left:6px}
.hw-mk-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.hw-mk-row span{padding:8px 6px;border-radius:10px;background:rgba(var(--tint-rgb,255,255,255),.035);text-align:center;font-size:.66rem;color:var(--text-muted);line-height:1.3}
.hw-mk-row b{display:block;color:var(--text);font-size:.92rem;font-variant-numeric:tabular-nums}
.hw-live{margin-top:14px;display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.hw-live span{padding:8px 14px;border-radius:999px;border:1px solid var(--border);font-size:.84rem;color:var(--text-muted)}
.hw-live b{color:var(--text)} .hw-live .pos{color:var(--green,#22c55e)} .hw-live .neg{color:var(--red,#ef4444)}
.hw-fine{margin:14px auto 0;max-width:620px;text-align:center;font-size:.78rem;color:var(--text-muted);line-height:1.55}

/* plans table */
.hw-table-wrap{overflow-x:auto;border-radius:18px;border:1px solid var(--border);background:var(--bg-card)}
.hw-table{width:100%;min-width:560px;border-collapse:collapse;font-size:.88rem}
.hw-table th,.hw-table td{padding:12px 14px;text-align:center;border-bottom:1px solid var(--border);color:var(--text-muted)}
.hw-table tr:last-child td{border-bottom:0}
.hw-table th{color:var(--text);font-weight:800}
.hw-table td:first-child,.hw-table th:first-child{text-align:left;color:var(--text);font-weight:600}
.hw-table .ok{color:var(--green,#22c55e);font-weight:700}
.hw-table .no{opacity:.5}
.hw-table .hw-hi{background:rgba(var(--accent-rgb),.07);color:var(--text)}
.hw-table th.hw-hi{color:var(--gold)}

/* get / not promised */
.hw-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hw-box{padding:20px 22px;border-radius:18px;border:1px solid var(--border);background:var(--bg-card)}
.hw-box h4{margin-bottom:12px;font-size:1rem}
.hw-box ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.hw-box li{position:relative;padding-left:26px;color:var(--text-muted);font-size:.9rem;line-height:1.5}
.hw-box li::before{position:absolute;left:0;top:0;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:.7rem;font-weight:800}
.hw-box.ok li::before{content:"✓";color:var(--green,#22c55e);background:rgba(34,197,94,.12)}
.hw-box.no li::before{content:"✕";color:var(--red,#ef4444);background:rgba(239,68,68,.12)}

/* FAQ */
.hw-faq{max-width:780px;margin:0 auto;width:100%}

/* final */
.hw-final{text-align:center;padding:40px 22px;border-radius:24px;border:1px solid rgba(var(--accent-rgb),.35);background:radial-gradient(600px 220px at 50% 0%,rgba(var(--accent-rgb),.16),transparent 70%),var(--bg-card);display:flex;flex-direction:column;align-items:center;gap:12px}
.hw-final h3{font:800 clamp(1.4rem,3vw,1.9rem) Sora,Inter,sans-serif}
.hw-final p{margin:0;color:var(--text-muted)}
.hw-final small{color:var(--text-muted);font-size:.76rem}
.hw-final a{color:var(--gold)}

@media (max-width:860px){
  .hw{gap:48px}
  .hw-steps,.hw-res{grid-template-columns:1fr}
  .hw-anat{grid-template-columns:1fr}
  .hw-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hw-flow div::after{display:none}
}
@media (max-width:560px){
  .hw-stats{grid-template-columns:1fr}
  .hw-stats div{flex-direction:row;align-items:baseline;gap:10px}
  .hw-stats b{font-size:1.3rem;min-width:84px}
  .hw-two{grid-template-columns:1fr}
  .hw-flow{grid-template-columns:1fr}
}
.hw-swipe{display:none;margin:8px 0 0;text-align:center;font-size:.76rem;color:var(--text-muted)}
@media (max-width:640px){
  .hw-swipe{display:block}
  .hw-table{min-width:520px;font-size:.8rem}
  .hw-table th,.hw-table td{padding:10px 9px}
  .hw-table td:first-child,.hw-table th:first-child{position:sticky;left:0;z-index:1;background:var(--bg-card)}
}
