/* Opt-in page */

body {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
}

.page {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

/* Progress */
.progress-label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin: 0 0 14px;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.progress-track {
  flex: 1;
  height: 14px;
  background: var(--track);
  border-radius: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--blue-dark);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.35) 0px,
    rgba(255, 255, 255, 0.35) 10px,
    transparent 10px,
    transparent 20px
  );
  background-size: 28px 28px;
  border-radius: 8px;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  animation: stripe-move 1s linear infinite, flash-pulse 1.4s ease-in-out infinite;
}

@keyframes stripe-move {
  from { background-position: 0 0; }
  to { background-position: 28px 0; }
}

@keyframes flash-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

.progress-fill.animate {
  width: var(--target-width, 90%);
}

.progress-pct {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
  min-width: 56px;
  text-align: right;
}

/* Headline */
h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--navy);
}

.subhead {
  font-size: 30px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.25;
  margin: 0 0 28px;
}

.body-copy {
  font-size: 20px;
  color: var(--gray-text);
  line-height: 1.5;
  margin: 0 auto 40px;
  max-width: 520px;
}

.body-copy em {
  font-style: italic;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
}

.field svg {
  position: absolute;
  left: 20px;
  width: 22px;
  height: 22px;
  color: var(--placeholder);
  pointer-events: none;
}

.field input {
  width: 100%;
  padding: 20px 20px 20px 56px;
  font-size: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: var(--placeholder);
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 84, 240, 0.15);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 24px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease;
}

.cta:hover {
  background: var(--blue-dark);
}

.cta:active {
  transform: translateY(1px);
}

.cta svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 700px) {
  h1 {
    font-size: 60px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 38px;
  }

  .subhead {
    font-size: 22px;
  }

  .body-copy {
    font-size: 17px;
  }

  .progress-pct {
    font-size: 18px;
    min-width: 46px;
  }

  .progress-label {
    font-size: 14px;
  }
}
