/* =========================================================================
   It's a Dollar — design system
   One idea, one accent, one CTA. Everything else is whitespace.
   ========================================================================= */

/* ---------- Tokens ------------------------------------------------------ */

:root {
  /* Surfaces */
  --white: #ffffff;
  --parchment: #f5f3ee;
  --near-black: #111113;
  --black: #000000;

  /* Ink */
  --ink: #111113;
  --ink-quiet: #6e6e73;
  --ink-invert: #ffffff;
  --ink-invert-quiet: rgba(255, 255, 255, 0.62);

  /* The single accent. Interactive only — never decorative. */
  --accent: #0066cc;
  --accent-press: #0055ad;

  /* Hairlines */
  --line: rgba(0, 0, 0, 0.12);
  --line-invert: rgba(255, 255, 255, 0.16);

  /* Type */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
    Roboto, sans-serif;

  --display-1: clamp(4.5rem, 20vw, 15rem);
  --display-2: clamp(3.25rem, 12vw, 9rem);
  --display-3: clamp(2.25rem, 6vw, 4.5rem);
  --title: clamp(1.5rem, 3vw, 2.25rem);
  --body-lg: clamp(1.0625rem, 1.6vw, 1.375rem);
  --body: 1.0625rem;
  --caption: 0.8125rem;

  /* Rhythm */
  --gutter: clamp(1.5rem, 6vw, 6rem);
  --section-y: clamp(7rem, 18vh, 14rem);
  --measure: 34ch;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.9s;

  --header-h: 60px;
}

/* ---------- Reset ------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
figure,
blockquote,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

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

.section--dark :focus-visible,
.header.is-inverted :focus-visible {
  outline-color: #ffffff;
}

::selection {
  background: var(--ink);
  color: var(--white);
}

/* ---------- Utility ----------------------------------------------------- */

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

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transform: translate(-50%, -110%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

.shell {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography -------------------------------------------------- */

.display-1,
.display-2,
.display-3 {
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.display-1 {
  font-size: var(--display-1);
  letter-spacing: -0.055em;
}

.display-2 {
  font-size: var(--display-2);
}

.display-3 {
  font-size: var(--display-3);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.title {
  font-size: var(--title);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  font-size: var(--body-lg);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-quiet);
  max-width: var(--measure);
}

.section--dark .lede {
  color: var(--ink-invert-quiet);
}

.eyebrow {
  font-size: var(--caption);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

.section--dark .eyebrow {
  color: var(--ink-invert-quiet);
}

/* ---------- Sections ---------------------------------------------------- */

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--light {
  background: var(--white);
}

.section--parchment {
  background: var(--parchment);
}

.section--dark {
  background: var(--near-black);
  color: var(--ink-invert);
}

.section--black {
  background: var(--black);
  color: var(--ink-invert);
}

.section--full {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
}

.section--center {
  text-align: center;
}

.stack > * + * {
  margin-top: var(--stack-gap, 1.5rem);
}

/* ---------- Buttons ----------------------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover {
  opacity: 0.86;
}

.btn:active {
  transform: scale(0.97);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.btn--lg {
  min-height: 62px;
  padding: 0 2.75rem;
  font-size: 1.1875rem;
}

.btn--invert {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
}

.btn--block {
  width: 100%;
}

.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}

.section--dark .btn--quiet,
.section--black .btn--quiet {
  --btn-fg: var(--ink-invert);
  border-color: var(--line-invert);
}

/* A text link that reads as a link, in the one accent colour we allow. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section--dark .link,
.section--black .link {
  color: #6db3ff;
}

.link .chev {
  transition: transform 0.2s var(--ease);
}

.link:hover .chev {
  transform: translateX(3px);
}

/* ---------- Header ------------------------------------------------------ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--ink);
  transition: color 0.4s var(--ease), background-color 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}

.header.is-inverted {
  color: var(--ink-invert);
}

.header.is-inverted.is-stuck {
  background: rgba(17, 17, 19, 0.72);
  border-bottom-color: var(--line-invert);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

.brand:hover {
  opacity: 0.6;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  opacity: 1;
}

.header__cta {
  min-height: 36px;
  padding: 0 1.125rem;
  font-size: 0.875rem;
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
}

.header.is-inverted .header__cta {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger — only ever visible on small screens. */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  place-items: center;
}

.menu-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 10px;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.32s var(--ease), top 0.32s var(--ease);
}

.menu-toggle__bars::before {
  top: 0;
}

.menu-toggle__bars::after {
  top: 8.5px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* ---------- Mobile menu ------------------------------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--header-h) var(--gutter) 4rem;
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    visibility 0.4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu__link {
  padding-block: 0.5rem;
  font-size: clamp(2.25rem, 11vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.mobile-menu__foot {
  margin-top: 2.5rem;
}

body.is-locked {
  overflow: hidden;
}

/* ---------- Hero -------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 5rem;
  text-align: center;
}

.hero__headline {
  font-size: var(--display-1);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.hero__sub {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--body-lg);
  color: var(--ink-quiet);
  letter-spacing: -0.01em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* The only decorative element on the first screen. */
.scroll-cue {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 0.75rem;
  color: var(--ink-quiet);
  font-size: var(--caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, currentColor, transparent);
  opacity: 0.5;
  animation: cue 2.6s var(--ease) infinite;
  transform-origin: top;
}

@keyframes cue {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  40% {
    opacity: 0.5;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* ---------- Idea section ------------------------------------------------ */

.idea {
  text-align: center;
}

.idea__headline {
  font-size: var(--display-2);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.idea__body {
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  max-width: 40ch;
  font-size: var(--body-lg);
  color: var(--ink-invert-quiet);
  letter-spacing: -0.01em;
}

.idea__actions {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* ---------- Movement section -------------------------------------------- */

.movement {
  overflow: hidden;
}

.movement__lines {
  --stack-gap: clamp(0.25rem, 1vw, 0.75rem);
  max-width: 22ch;
}

.movement__line {
  font-size: var(--display-3);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.movement__line--quiet {
  color: var(--ink-quiet);
}

/* A field of people, drawn in type instead of stock photography. */
.field {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(26px, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  will-change: transform;
}

.field__dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.1;
  transform: scale(0.55);
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

.field.is-visible .field__dot {
  transform: scale(1);
  opacity: 0.14;
}

.field.is-visible .field__dot--on {
  opacity: 1;
  color: var(--accent);
}

/* ---------- Steps ------------------------------------------------------- */

.steps {
  display: grid;
  gap: clamp(3rem, 7vw, 5rem);
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  grid-template-columns: repeat(3, 1fr);
}

.step__num {
  font-size: var(--caption);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-quiet);
  font-variant-numeric: tabular-nums;
}

.step__label {
  margin-top: 1rem;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.step__note {
  margin-top: 0.75rem;
  max-width: 26ch;
  color: var(--ink-quiet);
}

/* ---------- Final CTA --------------------------------------------------- */

.final {
  text-align: center;
}

.final__headline {
  font-size: var(--display-2);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.final__sub {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: var(--body-lg);
  color: var(--ink-invert-quiet);
}

.final__actions {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.final__fine {
  margin-top: 1.5rem;
  font-size: var(--caption);
  color: var(--ink-invert-quiet);
}

/* ---------- Editorial pages (about / impact) ---------------------------- */

.page-head {
  padding: calc(var(--header-h) + clamp(6rem, 16vh, 11rem)) 0
    clamp(4rem, 9vh, 7rem);
}

.page-head__title {
  font-size: var(--display-2);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  max-width: 14ch;
}

.page-head__lede {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: var(--body-lg);
  color: var(--ink-quiet);
  max-width: 42ch;
}

.prose {
  max-width: 60ch;
  font-size: var(--body-lg);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.prose > * + * {
  margin-top: 1.5rem;
}

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: start;
}

.split__aside {
  position: sticky;
  top: calc(var(--header-h) + 3rem);
}

.stat-row {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(3rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
}

.section--dark .stat-row,
.section--black .stat-row {
  border-top-color: var(--line-invert);
}

.stat__value {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-top: 0.875rem;
  font-size: var(--caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

.section--dark .stat__label,
.section--black .stat__label {
  color: var(--ink-invert-quiet);
}

.faq {
  display: grid;
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.75rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.faq__sign {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--ink-quiet);
}

.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.32s var(--ease);
}

.faq__sign::after {
  transform: rotate(90deg);
}

.faq__q[aria-expanded="true"] .faq__sign::after {
  transform: rotate(0deg);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s var(--ease);
}

.faq__a[data-open="true"] {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  max-width: 62ch;
  padding-bottom: 1.75rem;
  color: var(--ink-quiet);
}

/* ---------- Footer ------------------------------------------------------ */

.footer {
  padding-block: clamp(4rem, 9vw, 7rem) 3rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}

.footer__word {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.footer__nav a {
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink-quiet);
  transition: color 0.2s var(--ease);
}

.footer__nav a:hover {
  color: var(--ink);
}

.footer__bottom a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__bottom a:hover {
  color: var(--ink);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: var(--caption);
  color: var(--ink-quiet);
}

/* ---------- Checkout ---------------------------------------------------- */

.checkout-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--header-h);
}

.checkout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(3rem, 10vh, 6rem)) var(--gutter)
    clamp(3rem, 8vh, 5rem);
}

.checkout__inner {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

.progress {
  display: flex;
  gap: 6px;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.progress__seg {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.progress__seg::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.progress__seg.is-done::after {
  transform: scaleX(1);
}

.step-panel[hidden] {
  display: none;
}

.step-panel__title {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.step-panel__note {
  margin-top: 1rem;
  color: var(--ink-quiet);
}

.form {
  margin-top: clamp(2.5rem, 5vh, 3.25rem);
}

.field-group {
  display: grid;
  gap: 1.25rem;
}

.field-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
}

.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  height: 56px;
  padding: 1.375rem 1rem 0.375rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.input:hover {
  border-color: rgba(0, 0, 0, 0.28);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.input::placeholder {
  color: transparent;
}

.input-label {
  position: absolute;
  top: 50%;
  left: 1.0625rem;
  transform: translateY(-50%);
  color: var(--ink-quiet);
  pointer-events: none;
  transition: transform 0.2s var(--ease), font-size 0.2s var(--ease);
}

.input:focus + .input-label,
.input:not(:placeholder-shown) + .input-label {
  transform: translateY(-152%);
  font-size: 0.75rem;
}

.input[aria-invalid="true"] {
  border-color: #c0392b;
}

.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.error {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--caption);
  color: #c0392b;
}

.error:empty {
  display: none;
}

/* The one number that matters, restated before payment. */
.amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.amount__label {
  color: var(--ink-quiet);
  font-size: 0.9375rem;
}

.amount__value {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.amount__value small {
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-quiet);
}

.fee-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--ink-quiet);
  cursor: pointer;
}

.fee-toggle input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.0625rem;
  accent-color: var(--accent);
}

.fine {
  margin-top: 1.25rem;
  font-size: var(--caption);
  line-height: 1.5;
  color: var(--ink-quiet);
  text-align: center;
}

.form__actions {
  margin-top: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.5rem;
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--ink-quiet);
  cursor: pointer;
}

.back-link:hover {
  color: var(--ink);
}

.btn.is-busy {
  pointer-events: none;
  opacity: 0.72;
}

.form-notice {
  margin-bottom: 2rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9375rem;
  color: var(--ink-quiet);
  text-align: center;
}

.spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto clamp(2rem, 5vh, 2.75rem);
  border: 2.5px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.confirm {
  text-align: center;
}

.confirm__mark {
  width: 56px;
  height: 56px;
  margin: 0 auto clamp(2rem, 5vh, 2.75rem);
  color: var(--accent);
}

.confirm__mark circle {
  stroke-dasharray: 163;
  stroke-dashoffset: 163;
  animation: draw 0.7s var(--ease) forwards;
}

.confirm__mark path {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: draw 0.4s var(--ease) 0.5s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.confirm__title {
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.confirm__note {
  margin: 1.25rem auto 0;
  max-width: 32ch;
  color: var(--ink-quiet);
  font-size: var(--body-lg);
}

.confirm__actions {
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
}

.confirm__share {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.share-row {
  display: flex;
  gap: 0.75rem;
}

.share-row .input {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  color: var(--ink-quiet);
}

.share-row .btn {
  flex: none;
  min-height: 56px;
}

/* ---------- Vote causes -------------------------------------------------- */

.cause-list {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.cause-option {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.cause-option:hover {
  border-color: rgba(0, 0, 0, 0.28);
}

.cause-option.is-selected {
  border-color: var(--ink);
  background: var(--parchment);
}

.cause-option__name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cause-option__desc {
  font-size: 0.875rem;
  color: var(--ink-quiet);
}

.boost {
  margin: 2rem auto 0;
  max-width: 32ch;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.boost__row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.boost__row .input {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.boost__row .btn {
  flex: none;
  min-height: 56px;
}

/* ---------- Donations / proof list --------------------------------------- */

.donation-list {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
}

.donation-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.donation-row__when {
  flex: none;
  width: 9ch;
  font-size: 0.8125rem;
  color: var(--ink-quiet);
}

.donation-row__what {
  flex: 1;
  min-width: 200px;
  font-weight: 500;
}

/* ---------- Admin --------------------------------------------------------- */

.admin__shell {
  padding-block: calc(var(--header-h) + clamp(3rem, 8vh, 5rem)) 6rem;
  max-width: 640px;
}

.admin__subhead {
  margin-top: clamp(3rem, 6vw, 4rem);
}

.admin-dashboard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-panel {
  margin-top: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--parchment);
}

.admin-panel h2,
.admin-panel h3 {
  margin-bottom: 0.25rem;
}

.admin-panel .form {
  margin-top: 1.25rem;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

.admin-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-quiet);
}

.admin-status.is-open {
  color: var(--accent);
}

.admin-status.is-open::before {
  background: var(--accent);
}

.tally-list {
  display: grid;
  gap: 0.875rem;
  margin-top: 1rem;
}

.tally-row {
  display: grid;
  gap: 0.375rem;
}

.tally-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.tally-row__name {
  font-weight: 600;
}

.tally-row.is-leading .tally-row__name::after {
  content: "Leading";
  margin-left: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.tally-row__meta {
  flex: none;
  font-size: 0.8125rem;
  color: var(--ink-quiet);
  font-variant-numeric: tabular-nums;
}

.tally-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.tally-bar__fill {
  height: 100%;
  background: var(--ink);
  border-radius: inherit;
  transition: width 0.4s var(--ease);
}

.tally-row.is-leading .tally-bar__fill {
  background: var(--accent);
}

.admin-past-row {
  display: grid;
  gap: 0.375rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.admin-past-row:last-child {
  border-bottom: 0;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  text-align: left;
  padding: 0 0.75rem 0.75rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-top: 1px solid var(--line);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.admin-table td:first-child,
.admin-table th:first-child {
  padding-left: 0;
}

.admin-table tr.is-unsubscribed td {
  color: var(--ink-quiet);
}

/* ---------- Reveal ------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.js .reveal {
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* No JS: never hide content. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive -------------------------------------------------- */

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

  .split__aside {
    position: static;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 8vw, 3.5rem);
  }

  .step {
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
  }

  .stat-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 720px) {
  :root {
    --section-y: clamp(5.5rem, 14vh, 8rem);
  }

  .nav,
  .header__cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer__top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 721px) {
  .mobile-menu {
    display: none;
  }
}

/* ---------- Motion preferences ------------------------------------------ */

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .field__dot {
    transform: scale(1);
  }
}

@media print {
  .header,
  .mobile-menu,
  .scroll-cue {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
