:root {
  color-scheme: light;
  --ink: #112f34;
  --muted: #5e6d70;
  --teal: #177e89;
  --teal-dark: #0f5962;
  --line: #d9e4e5;
  --surface: #ffffff;
  --background: #edf4f3;
  --background-deep: #dcebea;
  --error: #a6262e;
  --focus: #f1b54a;
  --shadow: 0 30px 80px rgba(17, 47, 52, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, rgba(23, 126, 137, 0.17), transparent 27rem),
    radial-gradient(circle at 88% 82%, rgba(15, 47, 52, 0.09), transparent 24rem),
    linear-gradient(145deg, var(--background), var(--background-deep));
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
  padding: 42px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-name strong {
  color: var(--teal);
}

.card {
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro {
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h1 {
  max-width: 13ch;
  font-size: clamp(42px, 10vw, 68px);
}

h2 {
  font-size: 38px;
}

.lead {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.field {
  margin-bottom: 25px;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 9px;
  font-size: 15px;
  font-weight: 750;
}

#description-count {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #fbfdfd;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input {
  height: 56px;
  padding: 0 17px;
}

textarea {
  min-height: 178px;
  padding: 16px 17px;
  resize: vertical;
  line-height: 1.55;
}

input:hover,
textarea:hover {
  border-color: #a8bec0;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 126, 137, 0.13);
}

[aria-invalid="true"] {
  border-color: var(--error);
}

[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(166, 38, 46, 0.11);
}

.hint,
.error,
.privacy-note,
.form-message {
  font-size: 13px;
  line-height: 1.5;
}

.hint {
  margin: 7px 0 0;
  color: var(--muted);
}

.error {
  min-height: 20px;
  margin: 3px 0 0;
  color: var(--error);
  font-weight: 650;
}

.submit-button,
.secondary-button {
  min-height: 55px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 780;
  transition:
    transform 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.home-link {
  display: inline-grid;
  margin-top: 24px;
  padding-inline: 24px;
  place-items: center;
  text-decoration: none;
}

.submit-button {
  position: relative;
  display: grid;
  width: 100%;
  place-items: center;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 13px 28px rgba(17, 47, 52, 0.18);
}

.submit-button:hover {
  background: var(--teal-dark);
  box-shadow: 0 16px 34px rgba(15, 89, 98, 0.22);
  transform: translateY(-1px);
}

.submit-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-spinner {
  position: absolute;
  width: 21px;
  height: 21px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: spin 700ms linear infinite;
}

.is-loading .button-label {
  opacity: 0;
}

.is-loading .button-spinner {
  opacity: 1;
}

.privacy-note {
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
}

.form-message {
  min-height: 20px;
  margin-top: 13px;
  color: var(--error);
  text-align: center;
  font-weight: 700;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.success {
  padding: 16px 0 5px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 31px;
  font-weight: 900;
  box-shadow: 0 13px 32px rgba(23, 126, 137, 0.23);
}

.success > p:not(.eyebrow) {
  margin: 18px 0 8px;
  color: var(--muted);
}

.issue-id {
  display: block;
  margin: 0 auto 28px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 850;
  letter-spacing: 0.04em;
}

.secondary-button {
  padding: 0 22px;
  color: var(--ink);
  background: var(--background);
}

.secondary-button:hover {
  background: var(--background-deep);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 6px 0;
  color: var(--muted);
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

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

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 760px);
    padding-top: 18px;
  }

  .brand {
    margin-left: 8px;
  }

  .card {
    border-radius: 22px;
  }

  h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 16px;
  }

  footer {
    flex-direction: column;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
