:root {
  --indigo: #2C264A;
  --indigo-soft: #3a335e;
  --lavender: #D9E2FE;
  --light-gray: #F0F2FA;
  --dark-gray: #3D3D3D;
  --black: #222222;
  --sterling: #CACCD5;
  --white: #FFFFFF;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--dark-gray);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 100;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--indigo);
  transition: width 400ms var(--ease);
}

/* Shell */
.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 32px 96px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brandbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sterling);
}

.wordmark {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--indigo);
  text-transform: uppercase;
}

.step-indicator {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--sterling);
  text-transform: uppercase;
}

/* Screen */
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: fadeIn 280ms var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typography */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--sterling);
  text-transform: uppercase;
  margin-bottom: 20px;
}

h1 {
  font-weight: 600;
  font-size: 38px;
  line-height: 1.15;
  color: var(--indigo);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

h2 {
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  color: var(--indigo);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 16px;
  color: var(--dark-gray);
}

.lede {
  font-size: 18px;
  color: var(--dark-gray);
  margin-bottom: 40px;
  max-width: 580px;
}

.sublabel {
  font-size: 15px;
  color: var(--dark-gray);
  opacity: 0.75;
  margin-bottom: 28px;
  max-width: 580px;
}

.meta-row {
  font-size: 14px;
  color: var(--sterling);
  margin-bottom: 40px;
}

/* Form fields */
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--indigo);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 17px;
  color: var(--black);
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--sterling);
  padding: 10px 0;
  outline: none;
  transition: border-color 200ms var(--ease);
  resize: none;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--indigo);
}
.field textarea {
  min-height: 160px;
  line-height: 1.55;
}

/* Buttons */
.actions {
  margin-top: auto;
  padding-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms var(--ease);
  background: none;
}

.btn-primary {
  background: var(--indigo);
  color: var(--white);
  border-color: var(--indigo);
}
.btn-primary:hover:not(:disabled) {
  background: var(--indigo-soft);
  border-color: var(--indigo-soft);
}
.btn-primary:disabled {
  background: var(--sterling);
  border-color: var(--sterling);
  color: var(--white);
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--indigo);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--light-gray);
}
.btn-ghost:disabled {
  color: var(--sterling);
  cursor: not-allowed;
}

.actions-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.hint {
  font-size: 13px;
  color: var(--sterling);
}

/* Review screen */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}
.review-item {
  border-left: 2px solid var(--lavender);
  padding-left: 20px;
}
.review-item .q {
  font-size: 15px;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 10px;
  line-height: 1.4;
}
.review-item .a {
  font-size: 16px;
  color: var(--dark-gray);
  white-space: pre-wrap;
  margin-bottom: 8px;
}
.review-item .a:empty::after {
  content: "No response";
  color: var(--sterling);
  font-style: italic;
}
.review-edit {
  font-size: 13px;
  color: var(--indigo);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.review-edit:hover {
  color: var(--indigo-soft);
}

/* Confirmation */
.confirmation {
  text-align: left;
  padding-top: 24px;
}
.confirmation .checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}
.confirmation .checkmark svg {
  width: 24px;
  height: 24px;
  stroke: var(--indigo);
  stroke-width: 2.5;
  fill: none;
}
.export-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Mobile */
@media (max-width: 640px) {
  .shell {
    padding: 32px 24px 80px;
  }
  .brandbar {
    margin-bottom: 56px;
  }
  h1 {
    font-size: 30px;
  }
  h2 {
    font-size: 22px;
  }
  .actions {
    padding-top: 32px;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .actions-right {
    margin-left: 0;
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}
