/* ============================================================
   Singapore Tuition Centre Workflow — page-unique visuals only.
   Loaded after styles.css, tbos-homepage.css, homepage-redesign.css
   on singapore-tuition-centre-workflow.html ONLY. Everything else
   on the page (hero, buttons, FAQ accordion, final CTA) reuses the
   shared .hero / .hero-visual / .faq-* / .final-cta components that
   homepage-redesign.css already styles under body.tbos-home — this
   file only adds the hero "cohort orbit" diagram and the step-path
   timeline, adapted from tuitiondesk-journey.css's ecosystem/step
   pattern and re-themed with the redesign's palette and fonts.
   ============================================================ */

/* ---------- hero cohort orbit (sits inside the shared .hero-visual box) ---------- */
.wf-orbit { position: relative; width: 100%; height: 100%; }
.wf-orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wf-orbit-line {
  fill: none;
  stroke: var(--brand-2);
  stroke-width: 1.5;
  stroke-opacity: 0.4;
  stroke-dasharray: 4 6;
  animation: wf-dash 16s linear infinite;
}
@keyframes wf-dash { to { stroke-dashoffset: -200; } }

.wf-orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 118px;
  height: 118px;
  border-radius: 26px;
  background: linear-gradient(145deg, #fff, var(--accent-light));
  border: 1px solid var(--border);
  box-shadow: 0 20px 44px -10px rgba(11, 21, 51, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  z-index: 2;
}
.wf-orbit-core img { width: 40px; height: 40px; border-radius: 10px; }
.wf-orbit-core strong { font-size: 11.5px; color: var(--ink); font-weight: 800; }
.wf-orbit-core span { font-size: 10px; color: var(--ink-muted); }

.wf-orbit-node {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 14px 28px -12px rgba(11, 21, 51, 0.24);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  animation: wf-bob 6s ease-in-out infinite;
}
.wf-orbit-node i {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
}
@keyframes wf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.wf-orbit-node[data-pos="online"]  { left: 0;   top: 4%; }
.wf-orbit-node[data-pos="walkin"]  { right: 0;  top: 20%;  animation-delay: -1.5s; }
.wf-orbit-node[data-pos="home"]    { left: 2%;  bottom: 20%; animation-delay: -3s; }
.wf-orbit-node[data-pos="hybrid"]  { right: 2%; bottom: 2%;  animation-delay: -4.5s; }
.wf-orbit-node[data-pos="sgd"]     { left: 32%; top: -2%;  animation-delay: -2.2s; }

@media (prefers-reduced-motion: reduce) {
  .wf-orbit-node, .wf-orbit-line { animation: none; }
}

/* ---------- step path (single-column timeline, reveal on scroll) ---------- */
.wf-steps-section {
  padding: 72px var(--tbos-page-gutter) 80px;
  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); }

@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 { opacity: 1; transform: none; transition: none; }
}
