/* ============================================================
   TAX CYCLE — Vertical Timeline Layout
   ============================================================ */
.tax-cycle { padding: var(--section-y) 0 20px; background: var(--white); }

.tax-cycle .s-tag {
  background: var(--green-50); border-color: var(--green-100);
  color: var(--green-700);
}

/* Two-column layout: timeline left, panel right */
.tc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}

/* === Vertical Timeline === */
.tc-timeline {
  position: relative; padding-left: 36px;
}
/* Gray baseline */
.tc-timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: #e5e9f0; z-index: 0;
}
/* Green progress fill */
.tc-line-fill {
  position: absolute; left: 15px; top: 0;
  width: 2px; height: 0;
  background: #059669;
  border-radius: 2px; z-index: 0;
  transition: height 0.65s cubic-bezier(.4,0,.2,1);
}

.tc-step {
  position: relative; padding: 16px 20px; margin-bottom: 6px;
  border-radius: 12px; cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}
.tc-step:last-child { margin-bottom: 0; }
.tc-step:hover { background: rgba(16,185,129,0.03); }

/* Timeline dot */
.tc-step::before {
  content: ''; position: absolute;
  left: -27px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid #d1d5db;
  z-index: 1; transition: all 0.3s;
}
.tc-step.active::before {
  background: #059669; border-color: #059669;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.15);
}

/* Done state — passed steps keep green dot */
.tc-step.done::before {
  background: #059669; border-color: #059669;
  box-shadow: none;
}
.tc-step.done .tc-num {
  background: #a7f3d0; color: #065f46;
}
.tc-step.done .tc-step-hdr h4 { color: #065f46; }

/* Step number badge */
.tc-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: #f1f5f9; color: #8e99ae;
  font-size: 10px; font-weight: 800;
  margin-right: 10px; transition: all 0.3s;
}
.tc-step.active .tc-num {
  background: #059669; color: #fff;
}

/* Step header row */
.tc-step-hdr {
  display: flex; align-items: center; margin-bottom: 4px;
}
.tc-step-hdr h4 {
  font-size: 13.5px; font-weight: 700; color: var(--text-900);
  transition: color 0.3s;
}
.tc-step.active .tc-step-hdr h4 { color: var(--green-700); }

.tc-step p {
  font-size: 12px; color: var(--text-400); line-height: 1.5;
  margin-left: 32px;
}

/* Active step highlight */
.tc-step.active {
  background: rgba(16,185,129,0.04);
  border: 1px solid rgba(16,185,129,0.12);
}

/* === Right Panel === */
.tc-panel {
  background: var(--white); border: 1.5px solid var(--border-200);
  border-radius: var(--radius-lg); padding: 36px 32px;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.3s;
  align-self: center;
}
.tc-panel:hover { box-shadow: var(--shadow-md); }

.tc-panel-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 16px;
  background: var(--green-50); border: 1px solid var(--green-100);
  font-size: 10px; font-weight: 700; color: var(--green-700);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.tc-panel-tag svg { width: 12px; height: 12px; fill: var(--green-600); }

.tc-panel h3 {
  font-size: 20px; font-weight: 700; color: var(--text-900); margin-bottom: 12px;
}
.tc-panel p {
  font-size: 14px; color: var(--text-500); line-height: 1.75; margin-bottom: 24px;
}

.tc-panel .btn-demo {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  background: var(--green-50); color: var(--green-700);
  border: 1px solid var(--green-100);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: all 0.25s; font-family: var(--font);
}
.tc-panel .btn-demo:hover {
  background: var(--green-600); color: #fff; border-color: var(--green-600);
}
.tc-panel .btn-demo svg { width: 14px; height: 14px; fill: currentColor; }

/* === Responsive === */
@media (max-width: 768px) {
  .tc-grid { grid-template-columns: 1fr; }
  .tc-panel { position: static; }
}