/* ============================================================
   How It Works — betpinnacle-how-it-works-desktop (1440)
                  betpinnacle-how-betting-works-mobile (390)
   ============================================================ */

/* ---------- editorial masthead ---------- */
.hiw-hero { background: var(--paper); overflow: hidden; }
.hiw-hero-wrap { position: relative; padding: 56px 0; }
.hiw-bgword {
  position: absolute; left: 0; top: 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 100px;
  line-height: 1; color: var(--ink); opacity: 0.05;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.hiw-title { position: relative; display: flex; flex-direction: column; gap: 2px; }
.hiw-title span {
  font-family: var(--font-display); font-weight: 700; font-size: 48px;
  line-height: 1; letter-spacing: -1px;
}
.hiw-title .ht-top { color: var(--ink); }
.hiw-title .ht-bottom { color: var(--brown); }
.hiw-lede { position: relative; font-size: 14px; line-height: 1.5; color: var(--ink); margin-top: 12px; }
@media (min-width: 992px) {
  .hiw-hero-wrap {
    padding: 96px 0; min-height: 520px;
    display: flex; flex-direction: column; justify-content: center;
  }
  .hiw-bgword { top: 138px; font-size: 220px; line-height: 0.85; letter-spacing: -8px; opacity: 0.06; }
  .hiw-title { gap: 8px; }
  .hiw-title span { font-size: 96px; letter-spacing: -2px; }
  .hiw-lede {
    font-family: var(--font-display); font-weight: 400;
    font-size: 16px; margin-top: 24px; color: var(--ink-2);
  }
}

/* ---------- steps ---------- */
.hiw-step { padding: 56px 0; border-bottom: 1px solid var(--line); }
.hiw-step.is-white { background: var(--card); }
.hiw-step.is-paper { background: var(--paper); }
.hiw-step.is-dark { background: var(--ink-2); border-bottom: 0; }

.hiw-step-wrap { display: flex; flex-direction: column; gap: 24px; }
.hiw-instruction { display: contents; }

.hiw-num {
  width: 80px; height: 80px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  font-family: var(--font-display); font-weight: 700; font-size: 44px;
  line-height: 1; color: var(--ink);
}
.is-dark .hiw-num { border: 2px solid #ffffff; }
.hiw-step-title {
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  line-height: 1; color: var(--ink);
}
.is-dark .hiw-step-title { color: #ffffff; }
.hiw-step-text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.is-dark .hiw-step-text { color: var(--slate); }

/* helper (step 01): mobile = yellow pill, desktop = num box + label */
.hiw-helper {
  align-self: flex-start; display: inline-flex; align-items: center;
  background: var(--accent); border-radius: 2px; padding: 6px 12px;
}
.hh-label {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  line-height: 1; color: var(--ink);
}
@media (min-width: 992px) {
  .hiw-step { padding: 96px 0; border-bottom: 0; }
  .hiw-step-wrap { flex-direction: row; align-items: center; gap: 40px; }
  .hiw-instruction { display: flex; flex-direction: column; gap: 16px; width: 480px; flex: none; }
  .hiw-num { width: 120px; height: 120px; font-size: 64px; }
  .hiw-step-title { font-size: 24px; line-height: 30px; color: var(--ink-2); }
  .is-dark .hiw-step-title { color: #ffffff; }
  .hiw-step-text { font-family: var(--font-display); line-height: 22px; color: #4a5568; }
  .is-dark .hiw-step-text { color: var(--slate); }
  .hiw-helper { align-self: stretch; background: transparent; border-radius: 0; padding: 0; gap: 10px; }
  .hh-num {
    width: 28px; height: 28px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent);
    font-family: var(--font-mono); font-weight: 900; font-size: 14px;
    line-height: 1; color: var(--ink);
  }
  .hh-label { font-size: 14px; color: var(--ink-2); }
}

/* ---------- market panel mockup ---------- */
.hiw-panel {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.hp-header { display: flex; justify-content: space-between; align-items: center; }
.hp-left { display: flex; align-items: center; gap: 8px; }
.hp-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); flex: none; }
.hp-icon {
  width: 28px; height: 28px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
}
.hp-icon svg { width: 16px; height: 16px; }
.hp-league {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  line-height: 1; color: var(--ink);
}
.hp-round { font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--muted); }
.hp-viewall { font-family: var(--font-ui); font-weight: 700; font-size: 12px; color: var(--ink); }
.hp-eventrow { display: flex; align-items: center; }
.hp-meta { font-family: var(--font-mono); font-weight: 700; font-size: 11px; color: var(--muted); }
.hp-badge { margin-left: auto; font-family: var(--font-mono); font-weight: 700; font-size: 11px; color: var(--brown); }
.hp-market-d { margin-left: auto; font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--ink-2); }
.hp-title {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  line-height: 1.2; color: var(--ink);
}
.hp-market-m { font-size: 13px; line-height: 1; color: var(--muted); }

.hiw-panel .odds-row { gap: 8px; }
.hiw-panel .odds-btn { min-height: 48px; padding: 8px 12px; }
.hiw-panel .odds-btn .odds-label { font-weight: 800; font-size: 12px; }
.hiw-panel .odds-btn .odds-price { font-size: 13px; }
.hiw-panel .odds-btn.is-demo { background: var(--accent); border-color: var(--accent); }

.hp-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); padding: 6px 10px;
}
.hp-tag-num { font-family: var(--font-mono); font-weight: 900; font-size: 12px; line-height: 1; color: var(--ink); }
.hp-tag-label { font-family: var(--font-display); font-weight: 700; font-size: 12px; line-height: 1; color: var(--ink); }

@media (min-width: 992px) {
  .hiw-panel { padding: 24px; gap: 16px; flex: 1 1 0; min-width: 0; }
  .hp-left { gap: 12px; }
  .hp-league { font-family: var(--font-ui); font-weight: 800; color: var(--ink-2); }
  .hp-round { font-weight: 800; color: var(--ink-2); }
  .hp-viewall { font-size: 13px; color: var(--ink-2); }
  .hp-meta { font-size: 12px; color: var(--ink-2); }
  .hp-badge { margin-left: 12px; font-size: 12px; color: var(--ink-2); }
  .hp-title { font-family: var(--font-ui); font-weight: 800; font-size: 24px; color: var(--ink-2); }
  .hiw-panel .odds-btn { min-height: 56px; }
  .hiw-panel .odds-btn .odds-label { color: var(--ink-2); }
  .hiw-panel .odds-btn .odds-price { font-size: 14px; color: var(--ink-2); }
  .hiw-panel .odds-btn.is-demo .odds-label,
  .hiw-panel .odds-btn.is-demo .odds-price,
  .hiw-panel .odds-btn.is-active .odds-label,
  .hiw-panel .odds-btn.is-active .odds-price { color: var(--ink); }
  .hp-tag { position: absolute; left: 24px; top: 24px; z-index: 2; border-radius: 999px; }
}

/* ---------- checklist (step 04) ---------- */
.hiw-checklist {
  background: var(--card); border: 1px solid var(--line); padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.hc-title {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  line-height: 1.35; color: var(--ink);
}
.hc-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 400; font-size: 14px;
  line-height: 1.35; color: var(--muted);
}
.hc-check { width: 14px; height: 14px; flex: none; }
.hc-check path { stroke-width: 2.9; }
@media (min-width: 992px) {
  .hiw-checklist { background: transparent; border: 0; padding: 0; gap: 10px; flex: 1 1 0; }
  .hc-title { color: var(--ink-2); }
  .hc-item { color: #4a5568; }
  .hc-check { width: 16px; height: 16px; }
  .hc-check path { stroke-width: 2; }
}

/* ---------- responsible wagering ---------- */
.responsible { background: var(--card); }
.responsible .section-title { font-size: 26px; line-height: 1.1; letter-spacing: 0; }
.rw-text { font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 20px; }
.rw-divider { height: 1px; background: var(--line); margin-top: 40px; }
.tools { margin-top: 20px; }
.tool { border-top: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.tool:last-child { border-bottom: 1px solid var(--line); }
.tool-num { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--muted); }
.tool-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.tool-text { font-size: 13px; line-height: 1.25; color: var(--muted); }
.tool-link { font-family: var(--font-ui); font-weight: 800; font-size: 13px; color: var(--ink); margin-top: 4px; }
@media (min-width: 992px) {
  .responsible.section { padding: 60px 0 96px; }
  .responsible .section-title { font-size: 72px; line-height: 1; letter-spacing: -2px; }
  .rw-text { font-size: 16px; line-height: 1.5; max-width: 760px; color: var(--ink); margin-top: 40px; }
  .tools { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
  .tool { border-top: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; gap: 12px; }
  .tool:last-child { border-bottom: 0; padding-bottom: 0; }
  .tool-num { font-size: 14px; letter-spacing: 1px; color: var(--ink-2); text-transform: uppercase; }
  .tool-title { font-size: 24px; }
  .tool-text { font-size: 14px; line-height: 1.5; color: var(--ink); }
  .tool-link { margin-top: 0; }
}

/* ---------- loss warning ---------- */
.loss-warning { background: var(--accent); padding: 40px 0; }
.lw-wrap { display: flex; flex-direction: column; gap: 24px; }
.lw-kicker { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.lw-title {
  font-family: var(--font-display); font-weight: 700; font-size: 36px;
  line-height: 1.05; color: var(--ink); margin-top: 12px; text-transform: uppercase;
}
.lw-line1 { font-size: 13px; line-height: 1.4; color: var(--ink); margin-top: 12px; }
.lw-line2 { font-weight: 700; font-size: 13px; color: var(--ink); margin-top: 12px; }
.betstop-module {
  background: var(--ink); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.bm-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: #ffffff; }
.bm-text { font-size: 13px; line-height: 1.4; color: #ffffff; opacity: 0.9; }
.bm-link { font-family: var(--font-ui); font-weight: 800; font-size: 13px; color: var(--accent); }
@media (min-width: 992px) {
  .loss-warning { padding: 96px 0; }
  .lw-wrap { flex-direction: row; gap: 24px; }
  .lw-left { flex: 1; }
  .lw-title { font-size: 64px; margin-top: 16px; }
  .lw-line1 { font-size: 14px; line-height: 1; margin-top: 16px; }
  .lw-line2 { font-size: 14px; margin-top: 16px; }
  .betstop-module { width: 360px; flex: none; border-radius: 24px; padding: 24px; gap: 12px; }
  .bm-title { font-size: 44px; letter-spacing: -1px; }
  .bm-text { font-size: 14px; line-height: 1.2; opacity: 1; }
  .bm-link { color: #ffffff; }
}
