:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6fb;
  color: #172033;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 18rem;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, #e8eeff 0, transparent 34rem),
    #f4f6fb;
}

button,
input {
  font: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.25rem;
}

.card {
  width: min(100%, 40rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid #dce2ef;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 1.25rem 4rem rgba(25, 42, 78, 0.1);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: #4055a8;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 16ch;
  margin: 0;
  color: #11192a;
  font-size: clamp(2rem, 7vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.supporting-text {
  max-width: 34rem;
  margin: 1rem 0 1.75rem;
  color: #4c5870;
  font-size: 1rem;
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #9da8bd;
  border-radius: 0.7rem;
  background: #ffffff;
  color: #172033;
}

.field input::placeholder {
  color: #69758b;
}

.field input:hover {
  border-color: #69758b;
}

.primary-button {
  width: 100%;
  min-height: 3.25rem;
  border: 0;
  border-radius: 0.7rem;
  background: #3046a2;
  color: #ffffff;
  cursor: pointer;
  font-weight: 750;
  box-shadow: 0 0.55rem 1.25rem rgba(48, 70, 162, 0.2);
}

#prepare-button {
  margin-top: 1.4rem;
}

.primary-button:hover:not(:disabled) {
  background: #253987;
}

.primary-button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

button:focus-visible,
input:focus-visible {
  outline: 0.2rem solid #d97706;
  outline-offset: 0.18rem;
}

.progress-panel {
  display: flex;
  min-height: 3.25rem;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid #d8def0;
  border-radius: 0.7rem;
  background: #f7f8fc;
  color: #26324a;
}

.progress-panel[hidden],
.primary-button[hidden] {
  display: none;
}

.progress-panel p {
  margin: 0;
  line-height: 1.45;
}

.spinner {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  border: 0.16rem solid #c8d0e6;
  border-top-color: #3046a2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner[hidden] {
  display: none;
}

#download-button {
  margin-top: 1rem;
}

.notices {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid #e2e6ef;
  color: #59647a;
  font-size: 0.85rem;
  line-height: 1.55;
}

.notices h2 {
  margin: 0;
  color: #323d53;
  font-size: 0.9rem;
}

.notices ul {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
}

.notices li + li {
  margin-top: 0.22rem;
}

.notices p {
  margin: 0.7rem 0 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 1.6s;
  }
}

@media (max-width: 32rem) {
  .page-shell {
    align-items: start;
    padding: 0;
  }

  .card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
