:root {
  --swd-green-50: #edffe3;
  --swd-green-100: #dbffc7;
  --swd-green-400: #73db43;
  --swd-green-550: #36aa00;
  --swd-green-700: #1d7916;
  --swd-dark-800: #02472e;
  --swd-dark-900: #0c3525;
  --swd-blue-700: #005fa5;
  --swd-neutral-0: #ffffff;
  --swd-neutral-50: #f3f3f3;
  --swd-neutral-100: #e3e3e3;
  --swd-neutral-200: #c8c9c9;
  --swd-neutral-600: #5a5c5e;
  --swd-neutral-950: #1a1a1a;
  --swd-page-bg: #f6f9fc;
  --swd-radius-card: 42px;
  --font-body: ZedTextFont, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: ZedTextSemiWideFont, ZedTextFont, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--swd-page-bg);
  color: var(--swd-neutral-950);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100%;
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  min-height: 220px;
  padding: 28px 24px;
  overflow: hidden;
  position: relative;
  border-radius: 0 0 var(--swd-radius-card) var(--swd-radius-card);
  background: var(--swd-dark-800);
  color: var(--swd-neutral-0);
  box-shadow: 0 18px 42px rgba(2, 71, 46, 0.18);
}

.hero::after {
  content: "";
  position: absolute;
  right: -86px;
  bottom: -82px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: var(--swd-green-550);
  opacity: 0.2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--swd-green-400);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--swd-green-700);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  color: var(--swd-neutral-0);
  font-size: clamp(2.3rem, 15vw, 4.4rem);
  line-height: 0.96;
}

h2 {
  color: var(--swd-dark-800);
  font-size: 1.45rem;
  line-height: 1.12;
}

.hero__copy {
  max-width: 29ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.45;
}

.vote-count {
  z-index: 1;
  width: max-content;
  min-width: 116px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px 4px 26px 4px;
  background: rgba(255, 255, 255, 0.1);
}

.vote-count span {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.vote-count small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
}

.view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding: 6px;
  border: 1px solid var(--swd-neutral-100);
  border-radius: 14px;
  background: var(--swd-neutral-0);
  box-shadow: 0 14px 34px rgba(2, 71, 46, 0.08);
}

.view-tab {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--swd-neutral-600);
  font-weight: 850;
}

.view-tab--active {
  border-color: rgba(29, 121, 22, 0.22);
  background: var(--swd-dark-800);
  color: var(--swd-neutral-0);
  box-shadow: 0 10px 24px rgba(2, 71, 46, 0.18);
}

.app-view.is-hidden {
  display: none;
}

.poll-card,
.results {
  margin-top: 14px;
  padding: 22px 18px;
  border: 1px solid var(--swd-neutral-100);
  border-radius: var(--swd-radius-card);
  background: var(--swd-neutral-0);
  box-shadow: 0 20px 50px rgba(2, 71, 46, 0.1);
}

.poll-card__head,
.results__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.step-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--swd-green-50);
  color: var(--swd-green-700);
  font-size: 0.75rem;
  font-weight: 800;
}

.question-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin: 0 0 28px;
}

.question-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--swd-neutral-100);
  border-radius: 8px;
  background: var(--swd-page-bg);
  color: var(--swd-neutral-600);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.question-nav__item[aria-current="step"] {
  border-color: rgba(29, 121, 22, 0.3);
  background: var(--swd-green-50);
  color: var(--swd-green-700);
}

.question-nav__item.is-complete {
  color: var(--swd-dark-800);
}

.questions {
  display: grid;
  gap: 30px;
}

.question {
  display: grid;
  gap: 20px;
  scroll-margin-top: 18px;
}

.question__title {
  margin: 0;
  color: var(--swd-neutral-950);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.options {
  display: grid;
  gap: 10px;
}

.options--stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
}

.option {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--swd-neutral-100);
  border-radius: 8px;
  background: var(--swd-page-bg);
  color: var(--swd-neutral-950);
  font-weight: 750;
  cursor: pointer;
}

.option--star {
  display: flex;
  justify-content: center;
  width: 52px;
  min-height: 58px;
  padding: 10px;
  font-size: 1.8rem;
  line-height: 1;
}

.option--star .option__mark {
  display: none;
}

.option--star span:last-child {
  color: var(--swd-neutral-200);
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option__mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--swd-neutral-200);
  border-radius: 50%;
  background: var(--swd-neutral-0);
}

.option:has(input:checked) {
  border-color: rgba(29, 121, 22, 0.35);
  background: var(--swd-green-50);
  color: var(--swd-dark-800);
}

.option--star:has(input:checked) span:last-child,
.option--star:has(input:checked) ~ .option--star span:last-child {
  color: var(--swd-green-700);
}

.option:has(input:checked) .option__mark {
  border: 6px solid var(--swd-green-700);
}

.option:focus-within {
  outline: 3px solid rgba(0, 95, 165, 0.28);
  outline-offset: 2px;
}

.feedback-textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid var(--swd-neutral-100);
  border-radius: 8px;
  background: var(--swd-page-bg);
  color: var(--swd-neutral-950);
  padding: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.feedback-textarea:focus {
  outline: 3px solid rgba(0, 95, 165, 0.28);
  outline-offset: 2px;
  border-color: rgba(0, 95, 165, 0.35);
}

.primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  background: var(--swd-green-700);
  color: var(--swd-neutral-0);
  font-weight: 850;
  cursor: pointer;
}

.primary-button:disabled {
  background: var(--swd-neutral-200);
  color: var(--swd-neutral-600);
  cursor: not-allowed;
}

.form-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--swd-blue-700);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.results-list {
  display: grid;
  gap: 18px;
}

.result-group {
  display: grid;
  gap: 10px;
}

.result-group h3 {
  color: var(--swd-neutral-950);
  font-size: 1rem;
  line-height: 1.25;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.result-row__label {
  min-width: 0;
  color: var(--swd-neutral-600);
  font-size: 0.86rem;
  font-weight: 750;
}

.result-row__value {
  color: var(--swd-dark-800);
  font-size: 0.82rem;
  font-weight: 850;
}

.result-stars {
  color: var(--swd-green-700);
  font-size: 1.05rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.meter {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--swd-neutral-50);
}

.meter__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--swd-green-550);
  transition: width 220ms ease;
}

.feedback-answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--swd-neutral-100);
  border-radius: 8px;
  background: var(--swd-page-bg);
  color: var(--swd-neutral-950);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.4;
}

.feedback-answer p {
  margin: 0;
}

.feedback-answer__rating {
  width: fit-content;
  color: var(--swd-green-700);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.feedback-answer--empty {
  color: var(--swd-neutral-600);
}

@media (min-width: 700px) {
  .app-shell {
    padding: 28px;
  }

  .hero {
    grid-template-columns: 1fr auto;
    align-items: end;
    min-height: 280px;
    padding: 42px;
    border-radius: var(--swd-radius-card);
  }

  h1 {
    font-size: 4.8rem;
  }

  .poll-card,
  .results {
    padding: 30px;
  }
}
