
:root {
  font-family: Inter, Arial, sans-serif;
  color: #1f2937;
  background: #f4f7f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, #e5f5eb 0, transparent 36%),
    #f4f7f5;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.app-shell {
  width: min(100% - 32px, 620px);
  margin: 0 auto;
  padding: 34px 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 30px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: #087443;
  font-size: 28px;
  font-weight: 800;
}

.brand h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 750;
}

.brand p {
  margin: 5px 0 0;
  color: #66736c;
  font-size: 13px;
}

.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
}

.progress-step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid #d4ded7;
  border-radius: 50%;
  color: #6b7280;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.progress-step.active {
  border-color: #087443;
  color: #fff;
  background: #087443;
}

.progress-line {
  width: 54px;
  height: 2px;
  background: #d4ded7;
}

.panel {
  padding: 30px;
  border: 1px solid #e1e8e3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgb(23 55 35 / 6%);
}

.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: appear 0.18s ease-out;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #087443;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

h2 {
  margin: 0 0 12px;
  color: #17231b;
  font-size: clamp(23px, 4vw, 29px);
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.description {
  margin: 0 0 24px;
  color: #647067;
  font-size: 14px;
  line-height: 1.7;
}

.description.small {
  margin: 16px 0 20px;
  font-size: 12px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin: 0 0 8px;
  color: #37463b;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #d5ded7;
  border-radius: 10px;
  outline: none;
  color: #17231b;
  background: #fff;
}

input:focus {
  border-color: #087443;
  box-shadow: 0 0 0 3px rgb(8 116 67 / 10%);
}

input::placeholder {
  color: #9aa59d;
}

.primary,
.secondary {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
}

.primary {
  color: #fff;
  background: #087443;
}

.primary:hover:not(:disabled) {
  background: #065e36;
}

.secondary {
  border: 1px solid #d5ded7;
  color: #344239;
  background: #fff;
}

.secondary:hover:not(:disabled) {
  background: #f4f7f5;
}

.button-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.text-button {
  margin-top: 14px;
  padding: 10px;
  border: 0;
  color: #087443;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.notice {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid #f1c7c7;
  border-radius: 10px;
  color: #922c2c;
  background: #fff3f3;
  font-size: 13px;
  line-height: 1.55;
}

.hidden {
  display: none !important;
}

.email-summary {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 20px 0;
  padding: 13px 15px;
  border-radius: 10px;
  background: #f3f7f4;
}

.email-summary span {
  color: #6b786f;
  font-size: 11px;
}

.email-summary strong {
  overflow-wrap: anywhere;
  color: #243b2b;
  font-size: 14px;
}

.consent-copy {
  padding: 18px;
  border: 1px solid #e0e8e2;
  border-radius: 12px;
  background: #fbfdfb;
}

.consent-copy p {
  margin: 0;
  color: #36443a;
  font-size: 14px;
  line-height: 1.85;
}

.consent-copy a {
  color: #087443;
  font-weight: 700;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.summary {
  margin: 20px 0;
  border: 1px solid #e0e8e2;
  border-radius: 12px;
  overflow: hidden;
}

.summary div {
  padding: 14px 16px;
  border-bottom: 1px solid #e8eee9;
}

.summary div:last-child {
  border-bottom: 0;
}

.summary dt {
  margin-bottom: 6px;
  color: #68766c;
  font-size: 12px;
}

.summary dd {
  margin: 0;
  color: #1c2d21;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #087443;
  background: #e6f5eb;
  font-size: 28px;
  font-weight: 800;
}

.result-icon.error {
  color: #a13c27;
  background: #fff0e8;
}

.result-id {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #cfe6d6;
  border-radius: 12px;
  background: #f0faf3;
}

.result-id span {
  color: #52705a;
  font-size: 12px;
}

.result-id strong {
  color: #075e35;
  font-size: 28px;
  overflow-wrap: anywhere;
}

footer {
  padding: 22px 8px 0;
  color: #849087;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 480px) {
  .app-shell {
    width: min(100% - 22px, 620px);
    padding-top: 22px;
  }

  .brand {
    margin-bottom: 24px;
  }

  .panel {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .progress {
    margin-bottom: 18px;
  }

  .progress-line {
    width: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
