/* ==================================================================
   Attendance Tracking — "Attendance-to-Payroll Loop" section
   Numbered vertical timeline + framed device panel.
   Uses Design DNA tokens from shared.css.
   ================================================================== */

.loop-section {
  background: linear-gradient(180deg, var(--gutsy-cream) 0%, #F4EFE0 100%);
}

.loop-section .loop-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.loop-section .loop-head h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  color: var(--gutsy-green);
  margin: 18px 0 12px;
}

.loop-section .loop-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--gutsy-purple);
}

.loop-section .loop-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.loop-section .loop-track {
  position: relative;
  display: grid;
  gap: 28px;
}

.loop-section .loop-track::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(155, 95, 250, 0.5), rgba(155, 95, 250, 0.1));
}

.loop-section .loop-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}

.loop-section .loop-num {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gutsy-purple);
  color: var(--gutsy-cream);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 22px rgba(155, 95, 250, 0.28);
}

.loop-section .loop-copy h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--gutsy-green);
  margin: 9px 0 6px;
}

.loop-section .loop-copy p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #3F5560;
  margin: 0;
}

.loop-section .loop-visual {
  display: flex;
  justify-content: center;
}

.loop-section .loop-visual-panel {
  width: 100%;
  max-width: 420px;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(155, 95, 250, 0.16);
  background:
    radial-gradient(circle at 50% 18%, rgba(155, 95, 250, 0.16), rgba(155, 95, 250, 0) 62%),
    var(--gutsy-cream);
  box-shadow: 0 26px 60px rgba(6, 60, 74, 0.10);
}

.loop-section .loop-visual-panel img {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .loop-section .loop-head {
    margin-bottom: 36px;
  }

  .loop-section .loop-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .loop-section .loop-visual-panel {
    max-width: 340px;
    padding: 22px;
    border-radius: 24px;
  }

  .loop-section .loop-copy h3 {
    margin-top: 6px;
  }
}