:root {
  --paper: #F6F6F3;
  --card: #FFFFFF;
  --ink: #12173A;
  --ink-soft: #4B5173;
  --line: rgb(18 23 58 / .16);
  --brand: #1524B0;
  --on-brand: #FFFFFF;
  --mark: #F2E529;
  --on-mark: #12173A;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-card: 18px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1126;
    --card: #171B3A;
    --ink: #ECEDF7;
    --ink-soft: #A7ADCB;
    --line: rgb(236 237 247 / .2);
    --brand: #8F9BFF;
    --on-brand: #0E1126;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  accent-color: var(--brand);
  caret-color: var(--brand);
}

::selection { background: var(--mark); color: var(--on-mark); }

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

.top, .page, .foot {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 20px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -0.01em;
  background: var(--mark);
  color: var(--on-mark);
  padding: 6px 12px;
  border-radius: 999px;
}

.top-note { font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }

.hero { padding-block: 28px 44px; }

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 8.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  max-width: 13ch;
  overflow-wrap: anywhere;
  font-kerning: none;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
  max-width: 46ch;
  margin: 0;
}

.layout {
  display: grid;
  gap: 48px;
  padding-bottom: 72px;
}

@media (min-width: 940px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 72px;
    align-items: start;
  }
  .fund { grid-column: 2; grid-row: 1; }
  .story { grid-column: 1; grid-row: 1; }
}

.fund {
  position: relative;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
}

.meter {
  height: 14px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 100%;
  background: var(--brand);
  transform-origin: left center;
  transform: scaleX(.41);
  transition: transform 500ms var(--ease-out);
}

.meter-note {
  margin: 8px 0 0;
  font-size: .85rem;
  color: var(--ink-soft);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 24px;
}

.stats div { display: flex; flex-direction: column-reverse; }

.stats dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stats dt { font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }

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

legend {
  padding: 0;
  margin-bottom: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
}

.tier {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 2px;
  align-items: baseline;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}

.tier > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tier-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tier-name { font-weight: 700; text-align: right; }

.tier-desc, .tier-meta { grid-column: 1 / -1; }

.tier-desc { margin-top: 4px; }

.tier-meta { font-size: .85rem; color: var(--ink-soft); }

.tier:active { transform: scale(.985); }

@media (hover: hover) and (pointer: fine) {
  .tier:hover { border-color: var(--brand); }
}

.tier:has(> input:checked) {
  background: var(--mark);
  border-color: var(--brand);
  color: var(--on-mark);
}

.tier:has(> input:checked) .tier-meta { color: var(--on-mark); }

.tier:has(> input:focus-visible) {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.tier-custom .tier-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

#custom-amount {
  width: 6.2em;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  padding: 0 0 2px;
  -moz-appearance: textfield;
  appearance: textfield;
}

#custom-amount::-webkit-outer-spin-button,
#custom-amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

#custom-amount::placeholder { color: inherit; opacity: .6; }

#custom-amount:focus-visible { outline: none; box-shadow: 0 2px 0 currentColor; }

.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  margin-top: 18px;
  padding: 12px 24px;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 160ms var(--ease-out);
}

.cta:active { transform: scale(.97); }

.status {
  margin: 12px 0 0;
  font-size: .95rem;
  min-height: 1.5em;
}

.status:empty { display: none; }

.story { max-width: 62ch; }

.story h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 56px 0 14px;
  text-wrap: balance;
}

.story h2:first-child { margin-top: 0; }

.story p { margin: 0 0 14px; }

.changes { list-style: none; margin: 0; padding: 0; }

.changes li { padding-block: 10px; }

.changes li + li { border-top: 2px solid var(--line); }

.changes b {
  background: var(--mark);
  color: var(--on-mark);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
}

details { border-top: 2px solid var(--line); }

details:last-of-type { border-bottom: 2px solid var(--line); }

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 200ms var(--ease-out);
}

details[open] summary::after { transform: rotate(45deg); }

details p { margin: 0 0 16px; }

.foot {
  padding-block: 28px 120px;
  border-top: 2px solid var(--line);
  font-size: .9rem;
  color: var(--ink-soft);
}

.foot p { margin: 0; max-width: 60ch; }

.bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin-inline: auto;
  padding: 8px 8px 8px 20px;
  background: var(--card);
  border: 2px solid var(--brand);
  border-radius: 999px;
  transform: translateY(calc(100% + 24px));
  visibility: hidden;
  transition: transform 260ms var(--ease-out), visibility 0s linear 260ms;
}

.bar.is-on {
  transform: translateY(0);
  visibility: visible;
  transition: transform 260ms var(--ease-out), visibility 0s;
}

.bar-text {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-small {
  min-height: 44px;
  margin-top: 0;
  padding: 8px 18px;
  font-size: .85rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .bar-text { display: none; }
  .bar { padding-left: 8px; }
  .cta-small { flex: 1; }
}

.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .meter-fill, .tier, .cta, .bar, .bar.is-on, summary::after { transition: none; }
}

.ver {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transform-origin: left center;
}

.pay-wrap { position: relative; }

.stamp {
  position: absolute;
  top: -30px;
  right: -6px;
  z-index: 2;
  padding: 8px 14px;
  background: var(--mark);
  color: var(--on-mark);
  border: 3px solid var(--on-mark);
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: .9rem;
  transform: rotate(-8deg);
  visibility: hidden;
  pointer-events: none;
}

.stamp.is-on { visibility: visible; }

.anim .hero, .anim .fund { visibility: hidden; }

.gsap .meter-fill { transition: none; }

.gsap .tier { transition: background-color 160ms ease, border-color 160ms ease; }

.tier { background: var(--card); }

.cta { white-space: nowrap; }

.cta:not(.cta-small) {
  padding-inline: 16px;
  font-size: clamp(.82rem, 4.1vw, 1rem);
}

@media (max-width: 939px) {
  .fund {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .tier { grid-template-columns: 1fr; }
  .tier-name { text-align: left; }
  .tier-price { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  .top-note { display: none; }
}

.top { padding-block: 28px 0; }

.hero { padding-top: 28px; }

.tier {
  padding: 16px;
  row-gap: 4px;
  margin-bottom: 12px;
}

.tier-desc { margin-top: 4px; }

.tier-meta { margin-top: 2px; }

#pay { margin-top: 12px; }

@media (max-width: 939px) {
  .hero { padding-bottom: 40px; }
  h1 { margin-bottom: 16px; }
  .stats { margin: 24px 0 32px; }
  .layout { gap: 56px; padding-bottom: 56px; }
  .story h2 { margin: 56px 0 16px; }
  .changes li { padding-block: 12px; }
  .foot { padding-block: 24px 104px; }
}

h1, .tier-price, summary::after { color: var(--brand); }

.tier:has(> input:checked) .tier-price { color: var(--on-mark); }

.wordmark { color: #1524B0; }

.story h2, legend, .tier-price, .cta, summary::after {
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0;
}

.story h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); letter-spacing: -0.01em; }

legend { font-size: 1.2rem; }

.tier-price { font-size: 1.25rem; }

.cta:not(.cta-small) { font-size: clamp(1rem, 4.6vw, 1.1rem); }

.cta-small { font-size: .95rem; }
