:root {
  --ink: #1f1f21;
  --paper: #ffffff;
  --lime: #e3fc02;
  --teal: #00b59a;
  --teal-dark: #246d62;
  --muted: #f1f3f0;
  --warning: #fff3bd;
  --error: #ffdddd;
  color: var(--ink);
  background: var(--paper);
  font-family: Figtree, Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(135deg, rgba(227, 252, 2, .13) 0, rgba(227, 252, 2, 0) 22rem),
    var(--paper);
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 72px;
}

.intro {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border: 3px solid var(--ink);
  border-radius: 4px;
  color: var(--paper);
  background: var(--ink);
}

.intro::after {
  position: absolute;
  right: -56px;
  bottom: -106px;
  width: 220px;
  height: 220px;
  border: 25px solid var(--lime);
  border-radius: 50%;
  content: "";
}

.badge,
.kicker,
.prototype-pill {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 11px;
  color: var(--ink);
  background: var(--lime);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
}

.intro h1,
.screen h2,
.contact-gate h2,
.contact-section h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .98;
}

.intro > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin: 17px 0 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.shortcuts,
.assistant {
  padding: clamp(20px, 3vw, 32px);
  border: 3px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}

.shortcuts {
  position: sticky;
  top: 18px;
}

.shortcuts h2 {
  margin: 0 0 14px;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.shortcut-list {
  display: grid;
  gap: 10px;
}

.shortcut-list a,
.shortcut-list button {
  display: grid;
  width: 100%;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: center;
  min-height: 62px;
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--lime);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.shortcut-list a:hover,
.shortcut-list button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--teal);
}

.shortcut-list a span,
.shortcut-list button span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-size: .7rem;
  font-weight: 900;
}

.shortcut-list a strong,
.shortcut-list button strong {
  font-size: .9rem;
  line-height: 1.25;
}

.test-note {
  margin-top: 22px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--muted);
  font-size: .82rem;
}

.test-note strong {
  text-transform: uppercase;
}

.test-note p {
  margin: 5px 0 0;
}

.search-wrap > label,
.contact-section label > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.search-field {
  position: relative;
}

.search-field input,
.contact-section input,
.contact-section textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 48px 13px 14px;
  border: 3px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
}

.contact-section textarea {
  min-height: 155px;
  padding-right: 14px;
  resize: vertical;
}

.search-field > span {
  position: absolute;
  top: 50%;
  right: 16px;
  font-size: 1.7rem;
  transform: translateY(-50%);
}

.hint {
  margin: 7px 0 0;
  color: rgba(31, 31, 33, .7);
  font-size: .84rem;
}

.search-results {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
}

.search-result {
  width: 100%;
  padding: 11px 13px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  background: var(--muted);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.progress {
  height: 9px;
  margin: 28px 0 14px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--muted);
}

.progress span {
  display: block;
  width: 15%;
  height: 100%;
  background: var(--teal);
  transition: width .2s ease;
}

.nav-row {
  display: flex;
  min-height: 30px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.text-button {
  padding: 2px 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.screen > .kicker,
.contact-gate .kicker {
  margin-bottom: 14px;
  background: var(--teal);
}

.screen h2,
.contact-gate h2,
.contact-section h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.screen > p:not(.kicker),
.contact-gate > p:not(.kicker),
.contact-section > p:not(.prototype-pill) {
  max-width: 760px;
  margin: 14px 0 22px;
  font-size: 1.05rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice {
  display: flex;
  min-height: 92px;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 16px;
  border: 3px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--lime);
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.choice:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--teal);
}

.choice strong {
  font-size: 1.03rem;
  line-height: 1.25;
}

.choice small {
  color: rgba(31, 31, 33, .68);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.35;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 23px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 56px;
  padding: 14px 16px 14px 59px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--muted);
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: 10px;
  left: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  content: counter(step);
  font-size: .82rem;
  font-weight: 900;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 3px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.contact-gate,
.contact-section {
  margin-top: 20px;
  padding: clamp(20px, 3vw, 32px);
  border: 3px solid var(--ink);
  border-radius: 4px;
}

.contact-gate {
  background: var(--warning);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  font-weight: 800;
  cursor: pointer;
}

.check-row input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--teal-dark);
}

.contact-gate .button {
  margin-top: 12px;
}

.contact-section .button {
  margin-top: 12px;
}

.contact-section {
  background: var(--muted);
}

.contact-section h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.contact-section form,
.contact-section fieldset {
  min-width: 0;
  margin: 0;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin-bottom: 22px;
}

.contact-fields .full-width {
  grid-column: 1 / -1;
}

.contact-section label {
  display: block;
  min-width: 0;
  text-align: left;
}

.contact-section label small,
.contact-section legend small {
  font-size: .78rem;
  font-weight: 500;
}

.contact-section .hint {
  display: block;
  line-height: 1.45;
}

.contact-section input {
  min-width: 0;
  padding-right: 14px;
}

.context-fieldset {
  padding: 0;
  border: 0;
}

.context-fieldset legend {
  padding: 0 0 14px;
  font-size: 1rem;
  font-weight: 900;
}

.contact-section > .contact-topic {
  padding: 12px;
  border-left: 4px solid var(--teal-dark);
  background: var(--paper);
  font-size: .9rem;
  font-weight: 800;
}

.contact-status:not(:empty) {
  padding: 12px;
  border: 2px solid var(--teal-dark);
  background: var(--paper);
  font-size: .9rem;
}

.contact-status[data-state="success"] {
  color: #155748;
  background: #e7f5ed;
}

.contact-status[data-state="error"] {
  border-color: #9c3434;
}

.captcha-note a {
  color: inherit;
  text-decoration: underline;
}

:focus-visible {
  outline: 4px solid var(--teal);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .shortcuts {
    position: static;
    order: 2;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .intro,
  .shortcuts,
  .assistant,
  .contact-gate,
  .contact-section {
    padding: 20px;
  }

  .intro::after {
    right: -105px;
    bottom: -130px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .contact-fields {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 16px;
  }

  .choice {
    min-height: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
