/* conta-digital.html: cadastro de abertura de conta, sobre o sistema page-rich */

/* HERO + FORMULÁRIO */
.cd-hero { padding: 184px 0 56px; }
.cd-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px; align-items: start;
}
.cd-hero h1 { font-size: clamp(38px, 4.6vw, 68px); max-width: 17ch; }
.cd-hero .lead { max-width: 46ch; }

/* indicação de rolagem: fica ao lado do texto, visível na primeira tela de qualquer notebook */
.cd-scroll {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 44px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55); transition: color 160ms;
}
.cd-scroll:hover { color: #EE7508; }
.cd-scroll-ic {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.cd-scroll-ic svg { width: 18px; height: 18px; animation: cd-scroll-bounce 1.8s ease-in-out infinite; }
@keyframes cd-scroll-bounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .cd-scroll-ic svg { animation: none; } }

.cd-form-card {
  background: #fff; color: #14141A;
  border-radius: 20px; border-top: 4px solid #EE7508;
  padding: 34px 32px 30px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  scroll-margin-top: 110px;
}
.cd-field { margin-bottom: 18px; }
.cd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.cd-field label {
  display: block; margin-bottom: 6px;
  font-size: 15px; font-weight: 600; color: #14141A;
}
.cd-field label .req { color: #EE7508; }
.cd-field input {
  width: 100%; padding: 13px 16px;
  font: inherit; font-size: 16px; color: #14141A;
  background: #fff; border: 1px solid rgba(20, 20, 26, 0.2); border-radius: 12px;
  transition: border-color 160ms, box-shadow 160ms;
}
.cd-field input:focus {
  outline: none; border-color: #EE7508;
  box-shadow: 0 0 0 4px rgba(238, 117, 8, 0.18);
}
.cd-field input[aria-invalid="true"] { border-color: #B3261E; }
.cd-field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.16); }
.cd-help { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: #5C5C66; }
.cd-help .nw { white-space: nowrap; }
.cd-err { margin: 8px 0 0; font-size: 13.5px; font-weight: 500; color: #B3261E; }
.cd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.cd-submit { width: 100%; margin-top: 6px; }
.cd-submit[disabled] { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }
.cd-status { margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: #B3261E; }
.cd-status a { color: #14141A; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.cd-ok { text-align: center; padding: 40px 12px; }
.cd-ok:focus { outline: none; }
.cd-ok .ic {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; background: rgba(238, 117, 8, 0.12); color: #EE7508;
}
.cd-ok .ic svg { width: 28px; height: 28px; }
.cd-ok p { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: #14141A; }

/* ETAPAS */
.cd-steps { padding: 96px 0 24px; }
.cd-steps .head { margin-bottom: 56px; }
.cd-steps-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.cd-steps-list li { position: relative; text-align: center; }
.cd-steps-list li:not(:last-child)::after {
  content: ""; position: absolute; top: 56px; height: 2px;
  left: calc(50% + 56px); right: calc(-50% - 24px + 56px);
  background: rgba(20, 20, 26, 0.2);
}
.cd-step-dot {
  position: relative; z-index: 1;
  width: 112px; height: 112px; margin: 0 auto 24px;
  display: grid; place-items: center;
  border: 3px solid #EE7508; border-radius: 50%; background: #fff;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: #14141A;
}
.cd-step-n {
  display: block; margin-bottom: 8px;
  font-size: 15px; font-weight: 700; color: #EE7508;
}
.cd-step-text p { margin: 0 auto; max-width: 26ch; font-size: 15.5px; line-height: 1.55; color: #3A3A42; }

/* BENEFÍCIOS */
.cd-benefits-section { padding: 40px 0 32px; }
.cd-benefits-section .head { margin-bottom: 40px; }
.cd-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cd-benefits .rich-card { padding: 32px 28px; }
.cd-benefits .rich-card .ic { margin-bottom: 20px; }
.cd-benefits .rich-card h3 { margin: 0; }

@media (max-width: 960px) {
  .cd-hero { padding: 132px 0 72px; }
  .cd-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cd-hero h1 { max-width: 20ch; }
  .cd-scroll { display: none; }
  .cd-benefits { grid-template-columns: repeat(2, 1fr); }
  .cd-steps-list { grid-template-columns: 1fr; gap: 28px; }
  .cd-steps-list li { display: flex; align-items: center; gap: 20px; text-align: left; }
  .cd-steps-list li:not(:last-child)::after { display: none; }
  .cd-step-dot { flex: none; width: 96px; height: 96px; margin: 0; font-size: 15px; }
  .cd-step-text p { margin: 0; max-width: none; }
}
@media (max-width: 560px) {
  .cd-row { grid-template-columns: 1fr; }
  .cd-form-card { padding: 32px 22px 28px; }
  .cd-steps { padding: 72px 0 16px; }
  .cd-benefits-section { padding: 32px 0 24px; }
  .cd-benefits { grid-template-columns: 1fr; }
}

/* FLUXO DOS PASSOS: um brilho percorre a linha e acende o passo seguinte (ciclo de 4,8 s) */
.cd-steps-list li:not(:last-child)::before {
  content: ""; position: absolute; top: 55px; height: 4px; z-index: 1; border-radius: 2px;
  left: calc(50% + 56px); right: calc(-50% - 24px + 56px);
  background: linear-gradient(90deg, rgba(238, 117, 8, 0), #EE7508) no-repeat;
  background-size: 40% 100%;
  animation: cd-fluxo 4.8s infinite both;
}
.cd-steps-list li:nth-child(2)::before { animation-delay: 1.2s; }
.cd-steps-list li:nth-child(3)::before { animation-delay: 2.4s; }
.cd-step-dot { animation: cd-acende 4.8s infinite both; }
.cd-steps-list li:nth-child(1) .cd-step-dot { animation-delay: -0.2s; }
.cd-steps-list li:nth-child(2) .cd-step-dot { animation-delay: 1s; }
.cd-steps-list li:nth-child(3) .cd-step-dot { animation-delay: 2.2s; }
.cd-steps-list li:nth-child(4) .cd-step-dot { animation-delay: 3.4s; }
@keyframes cd-fluxo {
  0% { background-position: -70% 0; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  21%, 100% { background-position: 170% 0; }
}
@keyframes cd-acende {
  0% { box-shadow: 0 0 0 0 rgba(238, 117, 8, 0.45), inset 0 0 0 56px rgba(238, 117, 8, 0); animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  6% { box-shadow: 0 0 0 4px rgba(238, 117, 8, 0.35), inset 0 0 0 56px rgba(238, 117, 8, 0.1); }
  25%, 100% { box-shadow: 0 0 0 16px rgba(238, 117, 8, 0), inset 0 0 0 56px rgba(238, 117, 8, 0); }
}
@media (max-width: 960px) { .cd-steps-list li:not(:last-child)::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .cd-steps-list li:not(:last-child)::before, .cd-steps-list .cd-step-dot { animation: none; } }
