/* Homepage process-section polish. Email and application logic remain in script.js. */

.home-feature-section {
  position: relative;
  padding: 32px 0 56px;
  border-top: 1px solid #c9ddec;
  background: #f5f9fc;
  box-shadow: inset 0 10px 22px rgba(16, 73, 124, 0.04);
}

.home-feature-section::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 86px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #16a34a;
}

.home-process-heading {
  max-width: 610px;
  margin: 0 auto 24px;
  text-align: center;
}

.home-process-heading h2 {
  margin: 0 0 10px;
  color: #0f2347;
  font-size: 1.8rem;
  letter-spacing: 0;
}

.home-process-heading h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #145da0;
}

.home-process-heading p {
  max-width: 520px;
  margin: 0 auto;
  color: #42566d;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.6;
}

.home-process-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.home-process-panel::before {
  content: "";
  position: absolute;
  top: 70px;
  left: 16%;
  right: 16%;
  height: 3px;
  background: linear-gradient(90deg, #145da0, #16a34a);
  opacity: 0.42;
}

.home-process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-process-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: 142px;
  height: 142px;
  margin: 0 auto 15px;
  padding: 21px 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #78b5df;
  border-radius: 50%;
  background: #f4f9fd;
  box-shadow: 0 10px 22px rgba(16, 73, 124, 0.13);
  text-align: center;
}

.home-process-step:nth-child(2) .home-process-copy {
  border-color: #6acb98;
  background: #f2fbf6;
}

.home-process-number {
  display: block;
  margin-bottom: 7px;
  color: #145da0;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.home-process-number::after {
  content: "";
  display: block;
  width: 22px;
  height: 3px;
  margin: 7px auto 0;
  border-radius: 999px;
  background: #145da0;
}

.home-process-step:nth-child(2) .home-process-number {
  color: #087a45;
}

.home-process-step:nth-child(2) .home-process-number::after {
  background: #16a34a;
}

.home-process-step h3 {
  margin: 0;
  color: #0f2347;
  font-size: 0.98rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.home-process-copy p {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  width: min(290px, calc(100vw - 48px));
  margin: 0;
  padding: 8px 10px 8px 12px;
  transform: translateX(-50%);
  border-left: 3px solid #78b5df;
  border-radius: 0 8px 8px 0;
  color: #42566d;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
}

.home-process-step:nth-child(2) .home-process-copy p {
  border-left-color: #43b77a;
}

.home-process-preview {
  flex: 1;
  min-height: 142px;
  margin-top: 112px;
  padding: 15px;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 73, 124, 0.07);
}

.paycheck-process-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
}

.paycheck-process-preview .process-dashboard-title {
  grid-column: 1 / -1;
}

.process-paycheck-title > span {
  color: #166534;
  background: #dcfce7;
}

.process-summary-row,
.process-debt-stats > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #f8fafc;
}

.home-process-preview span,
.home-process-preview small {
  display: block;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 800;
}

.home-process-preview strong {
  display: block;
  margin-top: 3px;
  color: #0f2347;
  font-size: 0.82rem;
}

.process-positive,
.process-stat-positive {
  border-color: #bbf7d0 !important;
  background: #f0fdf4 !important;
}

.process-positive strong,
.process-stat-positive strong {
  color: #166534;
}

.process-bill-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.process-bill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #ffffff;
}

.process-bill-row span {
  overflow: hidden;
  color: #0f2347;
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-bill-row strong {
  margin: 0;
  font-size: 0.78rem;
}

.process-bill-row em {
  padding: 4px 7px;
  border-radius: 999px;
  color: #145da0;
  background: #e8f2fb;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.process-bill-paid em {
  color: #166534;
  background: #dcfce7;
}

.process-allocation {
  grid-column: 1 / -1;
  display: flex;
  height: 9px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.process-allocation-bills {
  width: 63%;
  background: #145da0;
}

.process-allocation-available {
  width: 37%;
  background: #16a34a;
}

.process-allocation-key {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 0 !important;
}

.process-dashboard-title,
.process-focus-heading,
.process-goal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.process-dashboard-title {
  margin-bottom: 10px;
}

.process-dashboard-title strong,
.process-focus-heading strong {
  margin: 0;
  font-size: 0.88rem;
}

.process-dashboard-title > span,
.process-focus-heading em {
  padding: 4px 8px;
  border-radius: 999px;
  color: #145da0;
  background: #e8f2fb;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
}

.process-debt-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.process-dashboard-message,
.process-goal-message {
  margin-top: 10px !important;
  color: #64748b !important;
  font-size: 0.65rem !important;
  font-weight: 800;
  line-height: 1.45 !important;
}

.process-focus-heading {
  align-items: flex-start;
}

.process-focus-heading span,
.process-focus-heading strong {
  display: block;
}

.process-focus-heading span {
  color: #145da0;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.process-focus-heading strong {
  margin-top: 3px;
}

.process-focus-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #bbf7d0;
  border-radius: 9px;
  background: #f0fdf4;
}

.process-focus-box > b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: #ffffff;
  background: #16a34a;
  font-size: 0;
}

.process-focus-box > b::after {
  content: "+";
  font-size: 0.8rem;
}

.process-focus-box strong {
  margin: 0 0 3px;
  font-size: 0.76rem;
}

.process-focus-box span {
  font-size: 0.61rem;
  line-height: 1.4;
}

.process-goal-top {
  margin-top: 10px;
}

.process-goal-top strong {
  margin: 0;
  color: #145da0;
  font-size: 0.68rem;
}

.process-goal-track {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.process-goal-track span {
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: #16a34a;
}

.process-focus-tip {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #dbe5ef;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .home-process-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-process-panel::before {
    top: 72px;
    bottom: 72px;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
  }

  .home-process-copy p {
    top: calc(100% + 16px);
    width: min(310px, calc(100vw - 48px));
  }

  .home-process-preview {
    position: relative;
    z-index: 1;
    margin-top: 106px;
  }
}

@media (max-width: 560px) {
  .paycheck-process-preview {
    grid-template-columns: 1fr;
  }

  .process-summary-row,
  .process-bill-list,
  .process-allocation,
  .process-allocation-key {
    grid-column: 1;
  }

  .process-debt-stats {
    grid-template-columns: 1fr;
  }
}
