/* ============================================================
   USA Tuition Workflow — page-unique visuals only.
   Loaded after styles.css, tbos-homepage.css, homepage-redesign.css
   on usa-tuition-workflow.html ONLY. Hero, buttons, FAQ accordion and
   final CTA reuse the shared .hero / .hero-visual / .faq-* / .final-cta
   components that homepage-redesign.css already styles under
   body.tbos-home. This file adds: the hero "7 scenarios" board visual,
   the 5-step setup timeline, and the 7-scenario card grid with mode
   chips — adapted from workflow-singapore.css's orbit/step pattern,
   re-themed for 7 scenarios instead of 4 cohorts.
   ============================================================ */

/* ---------- hero scenario board (sits inside the shared .hero-visual box) ---------- */
.wf-board {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 44px -10px rgba(11, 21, 51, 0.18);
  padding: 18px 18px 16px;
}
.wf-board-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.wf-board-head img { width: 26px; height: 26px; border-radius: 7px; }
.wf-board-head strong { font-size: 13px; color: var(--ink); font-weight: 800; }
.wf-board-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.wf-board-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2, #f8fafc);
  border-radius: 9px;
  padding: 6px 8px;
}
.wf-board-row i {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 10px;
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
}
.wf-board-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-2);
  text-align: center;
}

/* ---------- setup step timeline (single column, reveal on scroll) ---------- */
.wf-steps-section {
  padding: 72px var(--tbos-page-gutter) 56px;
  max-width: var(--tbos-content-max);
  margin: 0 auto;
}
.wf-steps { position: relative; margin-top: 44px; padding-left: 76px; }
.wf-steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.wf-step {
  position: relative;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.wf-step:last-child { margin-bottom: 0; }
.wf-step.is-in { opacity: 1; transform: translateY(0); }
.wf-step-num {
  position: absolute;
  left: -76px;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-faint);
  box-shadow: 0 6px 16px -6px rgba(11, 21, 51, 0.18);
  transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
}
.wf-step.is-in .wf-step-num {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--brand-2));
  color: #fff;
}
.wf-step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: 0 2px 10px -4px rgba(11, 21, 51, 0.08);
}
.wf-step-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-2);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 999px;
}
.wf-step-card h2 { margin: 0 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.wf-step-card p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-muted); }

/* ---------- 7-scenario card grid ---------- */
.wf-scenario-section {
  padding: 56px var(--tbos-page-gutter) 72px;
  max-width: var(--tbos-content-max);
  margin: 0 auto;
}
.wf-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.wf-scenario-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 2px 10px -4px rgba(11, 21, 51, 0.08);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.wf-scenario-card.is-in { opacity: 1; transform: translateY(0); }
.wf-scenario-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wf-scenario-icon {
  display: flex;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--accent-light);
  flex-shrink: 0;
}
.wf-scenario-card h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.wf-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.wf-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.wf-chip--online  { background: #e6edff; color: var(--brand-2); }
.wf-chip--offline { background: #fff3e0; color: #b45309; }
.wf-chip--venue   { background: #e7f8ef; color: #15803d; }
.wf-chip--geo     { background: #ffe4ec; color: #be185d; }
.wf-chip--team    { background: #f1f0fe; color: #5b21b6; }
.wf-chip--plan    { background: var(--surface-2, #f1f5f9); color: var(--ink-muted); }
.wf-scenario-card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-muted); }

@media (max-width: 420px) {
  .wf-steps { padding-left: 58px; }
  .wf-steps::before { left: 20px; }
  .wf-step-num { left: -58px; width: 42px; height: 42px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-step, .wf-scenario-card { opacity: 1; transform: none; transition: none; }
}
