:root {
  color-scheme: light;
  --brand-50: #ecfdf5;
  --brand-100: #dcfce9;
  --brand-500: #10b981;
  --brand-600: #059669;
  --brand-700: #047857;
  --brand-800: #065f46;
  --brand-900: #064e3b;
  --ink-50: #f8fafc;
  --ink-100: #f1f5f9;
  --ink-200: #e2e8f0;
  --ink-300: #cbd5e1;
  --ink-500: #64748b;
  --ink-700: #334155;
  --ink-800: #1e293b;
  --ink-900: #0f172a;
  --white: #ffffff;
  --amber-500: #f59e0b;
  --indigo-500: #6366f1;
  --card-shadow: 0 4px 24px -4px rgb(15 23 42 / 6%), 0 1px 3px rgb(15 23 42 / 4%);
  --button-shadow: 0 4px 14px -2px rgb(5 150 105 / 40%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(4rem + env(safe-area-inset-top));
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink-900);
  background-color: var(--ink-50);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgb(16 185 129 / 12%), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgb(59 130 246 / 6%), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgb(16 185 129 / 8%), transparent);
  font-family: "DM Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: calc(0.5rem + env(safe-area-inset-top));
  left: 0.75rem;
  z-index: 1000;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  color: var(--white);
  background: var(--ink-900);
  font-size: 0.875rem;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.top-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  color: var(--brand-50);
  background: var(--brand-900);
  box-shadow: 0 1px 0 rgb(255 255 255 / 8%);
}

.top-bar p {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.top-bar strong {
  margin-left: 0.3rem;
  color: var(--white);
  font-weight: 800;
}

#liveUsers {
  margin-right: 0.3rem;
}

.top-bar__separator {
  margin: 0 0.65rem;
  color: rgb(236 253 245 / 72%);
}

.hero {
  padding: calc(5rem + env(safe-area-inset-top)) 1.25rem 3rem;
  text-align: center;
}

.hero__inner {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  color: var(--brand-800);
  background: var(--brand-100);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
}

.eyebrow span {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--brand-500);
}

.hero h1 {
  margin: 0 0 1rem;
  color: var(--ink-900);
  font-size: clamp(1.875rem, 8vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero h1 span {
  display: block;
  color: var(--brand-600);
}

.hero__lead {
  max-width: 24rem;
  margin: 0 auto 2rem;
  color: var(--ink-500);
  font-size: 1rem;
  line-height: 1.625;
}

.currency-list,
.trust-list {
  list-style: none;
  padding: 0;
}

.currency-list {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 2.25rem;
}

.currency-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 4.9rem;
  min-height: 2.875rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--ink-200);
  border-radius: 0.75rem;
  color: var(--ink-700);
  background: var(--white);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  font-size: 0.875rem;
  font-weight: 700;
}

.currency-symbol {
  color: var(--brand-600);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.currency-symbol--btc {
  color: var(--amber-500);
}

.currency-symbol--eth {
  color: var(--indigo-500);
}

.currency-symbol--usdc {
  color: var(--brand-600);
}

.primary-button,
.secondary-button,
.option-button,
.option-btn,
.reward-chip,
.legal-nav button,
.icon-button {
  border: 0;
  -webkit-tap-highlight-color: transparent;
}

.primary-button {
  min-height: 3.25rem;
  padding: 0.875rem 2.5rem;
  border-radius: 0.75rem;
  color: var(--white);
  background: var(--brand-600);
  box-shadow: var(--button-shadow);
  font-size: 1rem;
  font-weight: 800;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.primary-button:hover {
  background: var(--brand-700);
  box-shadow: 0 6px 20px -2px rgb(5 150 105 / 45%);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:disabled {
  opacity: 0.65;
  box-shadow: none;
  transform: none;
}

.hero__button {
  min-width: 12.95rem;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0;
  color: var(--ink-500);
  font-size: 0.75rem;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.trust-list svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: var(--brand-500);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.survey {
  position: relative;
  z-index: 1;
  padding: 0 0 5rem;
  scroll-margin-top: calc(3.5rem + env(safe-area-inset-top));
}

.survey__inner {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 0.875rem;
  margin: 0 0 2rem;
}

.step-dot {
  position: relative;
  width: 0.625rem;
  height: 0.625rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink-300);
  transition: background-color 200ms ease, transform 200ms ease;
}

.step-dot + .step-dot {
  margin-left: 1rem;
}

.step-dot + .step-dot::before {
  position: absolute;
  top: 50%;
  left: -1.0625rem;
  width: 0.75rem;
  height: 1px;
  background: var(--ink-200);
  content: "";
  transform: translateY(-50%);
}

.step-dot.is-active,
.step-dot.active {
  background: var(--brand-600);
  transform: scale(1.25);
}

.step-dot.is-complete,
.step-dot.done {
  background: var(--brand-500);
}

.step-line {
  width: 0.75rem;
  height: 1px;
  flex: 0 0 auto;
  background: var(--ink-200);
}

.card {
  border: 1px solid var(--ink-200);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--card-shadow);
}

.question-card {
  padding: 1.5rem;
}

.question-panel {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.question-panel legend {
  display: block;
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 0;
  color: var(--ink-900);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.question-panel legend > span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--brand-600);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
}

.question-panel legend > small {
  display: block;
  margin-top: 0.375rem;
  color: var(--ink-500);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
}

.question-card > .question-kicker {
  margin: 0 0 0.5rem;
  color: var(--brand-600);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
}

.question-card > h2 {
  margin: 0 0 1.5rem;
  color: var(--ink-900);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.question-card > .question-hint {
  margin: -1.125rem 0 1.5rem;
  color: var(--ink-500);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.option-list {
  display: grid;
  gap: 0.625rem;
}

.option-button,
.option-btn {
  width: 100%;
  min-height: 3.125rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--ink-200);
  border-radius: 0.75rem;
  color: var(--ink-800);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.option-button:hover,
.option-btn:hover {
  border-color: var(--brand-500);
  background: #f0fdf6;
  transform: translateY(-1px);
}

.option-button.is-selected,
.option-button.selected,
.option-button[aria-pressed="true"],
.option-btn.is-selected,
.option-btn.selected,
.option-btn[aria-pressed="true"] {
  border-color: var(--brand-600);
  background: var(--brand-50);
  box-shadow: 0 0 0 3px rgb(16 185 129 / 15%);
}

.result,
.result-in {
  padding: 1.5rem;
  text-align: center;
  animation: fade-up 450ms ease both;
}

.result__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  color: var(--brand-600);
  background: var(--brand-100);
}

.result__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.result h2 {
  margin: 0 0 0.25rem;
  color: var(--ink-900);
  font-size: 1.5rem;
  line-height: 2rem;
}

.result > p {
  margin: 0 0 1.5rem;
  color: var(--ink-500);
  font-size: 0.875rem;
}

.reward-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.reward-chip {
  min-width: 0;
  min-height: 4.625rem;
  padding: 0.75rem;
  border: 1.5px solid var(--ink-200);
  border-radius: 0.75rem;
  color: var(--ink-700);
  background: var(--white);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.reward-chip .currency-symbol {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

.reward-chip strong {
  display: block;
  font-size: 0.75rem;
}

.reward-chip:hover,
.reward-chip.is-selected,
.reward-chip.selected,
.reward-chip[aria-checked="true"] {
  border-color: var(--brand-600);
  background: var(--brand-50);
  box-shadow: 0 0 0 3px rgb(16 185 129 / 12%);
}

.claim-form {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.claim-form input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink-200);
  border-radius: 0.75rem;
  color: var(--ink-900);
  background: var(--ink-50);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.claim-form input::placeholder {
  color: var(--ink-500);
  opacity: 1;
}

.claim-form input:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgb(16 185 129 / 15%);
}

.claim-form .primary-button {
  width: 100%;
  font-size: 0.875rem;
}

.privacy-note,
.claim-status {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
}

.claim-status:not(:empty) {
  min-height: 2rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.625rem;
  color: var(--brand-800);
  background: var(--brand-50);
  font-weight: 700;
}

.claim-status[data-kind="error"] {
  color: #991b1b;
  background: #fef2f2;
}

.claim-status[data-kind="success"] {
  color: var(--brand-800);
  background: var(--brand-50);
}

.claim-complete .primary-button[data-mode="share"] {
  background: var(--brand-700);
}

.site-footer {
  border-top: 1px solid var(--ink-200);
  color: var(--ink-500);
  background: var(--ink-50);
  font-size: 0.75rem;
  line-height: 1rem;
  text-align: center;
}

.site-footer__notice {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.site-footer__notice p {
  margin: 0;
}

.site-footer__notice p + p {
  margin-top: 0.25rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 1rem 1rem calc(1.75rem + env(safe-area-inset-bottom));
  background: var(--brand-900);
}

.legal-nav button {
  min-height: auto;
  padding: 0.375rem 0.125rem;
  color: var(--brand-600);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: rgb(220 252 233 / 55%);
  text-underline-offset: 3px;
}

.legal-nav button:hover {
  color: var(--brand-500);
}

.legal-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(32.5rem, calc(100% - 1.75rem));
  max-height: min(78vh, 40rem);
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 1px solid #a7f3d0;
  border-radius: 1rem;
  color: #134e4a;
  background: var(--white);
  box-shadow: 0 24px 80px rgb(15 23 42 / 30%);
  transform: translate(-50%, -50%);
}

.legal-modal[hidden] {
  display: none !important;
}

.legal-modal[open],
.legal-modal[aria-hidden="false"] {
  display: block;
}

.modal-open {
  overflow: hidden;
}

.legal-modal::backdrop {
  background: rgb(0 0 0 / 55%);
  backdrop-filter: blur(2px);
}

.legal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.375rem 1.25rem 0;
}

.legal-modal__header h2 {
  margin: 0 2.25rem 0.625rem 0;
  color: #134e4a;
  font-size: 1.25rem;
}

.icon-button {
  position: absolute;
  top: 0.25rem;
  right: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--brand-700);
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
}

.icon-button:hover {
  background: var(--brand-50);
}

.legal-modal__body {
  max-height: none;
  padding: 0 1.25rem 1.125rem;
  overflow: visible;
  color: #134e4a;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.legal-modal__body p {
  margin: 0;
}

.legal-modal__body p + p {
  margin-top: 0.75rem;
}

.share-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(27.5rem, calc(100% - 1.75rem));
  max-height: min(86vh, 42rem);
  margin: 0;
  padding: 1.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  overflow: auto;
  border: 1px solid #a7f3d0;
  border-radius: 1rem;
  color: var(--ink-900);
  background: var(--white);
  box-shadow: 0 24px 80px rgb(15 23 42 / 30%);
  text-align: center;
  transform: translate(-50%, -50%);
}

.share-modal[hidden] {
  display: none !important;
}

.share-modal[open],
.share-modal[aria-hidden="false"] {
  display: block;
}

.share-modal::backdrop {
  background: rgb(0 0 0 / 58%);
  backdrop-filter: blur(2px);
}

.share-modal > .icon-button {
  position: absolute;
  top: 0.25rem;
  right: 0.35rem;
}

.share-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.875rem;
  border-radius: 50%;
  color: var(--brand-600);
  background: var(--brand-100);
}

.share-modal__icon svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.share-modal__eyebrow {
  margin: 0 0 0.375rem;
  color: var(--brand-600);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.share-modal h2 {
  margin: 0 1.75rem 0.625rem;
  color: var(--ink-900);
  font-size: 1.5rem;
  line-height: 1.25;
}

.share-modal__message {
  max-width: 23rem;
  margin: 0 auto 1.25rem;
  color: var(--ink-500);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.625rem;
  align-items: stretch;
}

.share-link-row input {
  min-width: 0;
  min-height: 2.875rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--ink-200);
  border-radius: 0.75rem;
  color: var(--ink-700);
  background: var(--ink-50);
  font-size: 0.75rem;
  outline: none;
}

.share-link-row input:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgb(16 185 129 / 15%);
}

.copy-link-button {
  min-height: 2.875rem;
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.copy-status {
  min-height: 1.25rem;
  margin: 0.625rem 0 0;
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 700;
}

.copy-status[data-kind="error"] {
  color: #991b1b;
}

.share-modal__note {
  margin: 0.625rem 0 0;
  color: var(--ink-500);
  font-size: 0.6875rem;
  line-height: 1.45;
}

.secondary-button {
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--ink-200);
  border-radius: 0.65rem;
  color: var(--ink-700);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
}

.secondary-button:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
  background: var(--brand-50);
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(99 102 241 / 55%);
  outline-offset: 3px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-in {
  animation: fade-up 360ms ease both;
}

.card-out {
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

@media (min-width: 40rem) {
  .option-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .top-bar p {
    min-height: 40px;
    font-size: 0.875rem;
  }

  .hero {
    padding-top: calc(7rem + env(safe-area-inset-top));
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: 2.25rem;
    line-height: 1.12;
  }

  .hero__lead {
    font-size: 1.125rem;
  }

  .question-card,
  .result {
    padding: 2rem;
  }
}

@media (max-width: 23.5rem) {
  .top-bar p {
    padding-inline: 0.55rem;
    font-size: 0.6875rem;
  }

  .top-bar__separator {
    margin-inline: 0.4rem;
  }

  .hero,
  .survey__inner {
    padding-inline: 1rem;
  }

  .currency-list {
    gap: 0.5rem;
  }

  .currency-list li {
    min-width: 0;
    padding-inline: 0.75rem;
  }

  .question-card,
  .result {
    padding: 1.25rem;
  }
}

@media (max-width: 25rem) {
  .share-link-row {
    grid-template-columns: 1fr;
  }

  .copy-link-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
