/* Shared shell for the three post-signup pages: /survey, /founder, /terms.
   Same type scale and greens as privacy.html; the site's own CSS is far heavier
   than these pages need. */
@font-face { font-family: Urbanist; src: url(/Urbanist-variable.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #111;
  --body: #343434;
  --muted: #6b6b6b;
  --green: #2ccea5;
  --green-dark: #0f6f57;
  --green-link: #2a957a;
  --line: #e2e6e4;
  --card: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f6f6f6; color: var(--body); font: 400 17px/1.6 Urbanist, Arial, sans-serif; }
main { max-width: 640px; margin: 0 auto; padding: 32px 16px 80px; }
main.wide { max-width: 760px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-header > a { display: inline-block; line-height: 0; }
h1 { color: var(--ink); font-size: 34px; font-weight: 600; line-height: 1.2; margin: 32px 0 8px; }
h2 { color: var(--ink); font-size: 21px; font-weight: 600; margin: 32px 0 6px; }
p, li { margin: 0 0 12px; }
ul { padding-left: 20px; }
a { color: var(--green-link); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 3px; }
.muted { color: var(--muted); font-size: 15px; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* Buttons ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 14px 28px; font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: none; }
.btn--primary { background: var(--green); color: #08110e; }
.btn--primary:hover { filter: brightness(1.05); }
.btn--primary[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.btn--ghost { background: transparent; color: var(--muted); padding: 14px 12px; }
.btn--block { width: 100%; }
.actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.actions .spacer { flex: 1; }

/* Survey ----------------------------------------------------------- */
.progress { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 24px 0 8px; }
.progress__bar { height: 100%; width: 0; background: var(--green); transition: width .25s ease; }
.progress__label { font-size: 14px; color: var(--muted); }
.screen { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin-top: 16px; }
.screen h2 { margin-top: 0; font-size: 24px; }
.screen__hint { color: var(--muted); font-size: 15px; margin-top: -4px; }

.choices { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; background: #fff; }
.choice:hover { border-color: #b9c6c1; }
.choice input { accent-color: var(--green-dark); width: 18px; height: 18px; margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--green-dark); box-shadow: inset 0 0 0 1px var(--green-dark); }
.other-text { margin-top: 12px; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; }
textarea.other-text { min-height: 110px; resize: vertical; }
.screen__err { color: #b3261e; font-size: 15px; min-height: 1.6em; margin: 12px 0 0; }

/* Founder offer ---------------------------------------------------- */
.offer { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 8px 0 4px; }
.price__now { font-size: 46px; font-weight: 700; color: var(--ink); line-height: 1; }
.price__was { font-size: 20px; color: var(--muted); text-decoration: line-through; }
.price__note { font-size: 15px; color: var(--muted); }
.seats { font-size: 15px; color: var(--muted); margin-top: 4px; }
.seats strong { color: var(--ink); }


.invite-box { display: flex; gap: 8px; margin-top: 10px; }
.invite-box input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff; }
.share { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.share a { line-height: 0; }
.terms-row { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0 0; font-size: 15px; }
.terms-row input { margin-top: 4px; accent-color: var(--green-dark); width: 18px; height: 18px; flex: none; }
.stat-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; font-size: 15px; color: var(--muted); }
.stat-row strong { display: block; font-size: 22px; color: var(--ink); }

/* The referral ladder: one block, cycling the four cases. Bigger and centred,
   with the two numbers as brand-green chips. */
.ladder-cycle {
  margin: 28px 0 0;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7fbfa;
  text-align: center;
  /* Fixed height so the card does not jump as the lines change length. */
  min-height: 120px;
  display: grid;
  place-items: center;
}
.ladder-cycle__line {
  margin: 0;
  font-size: 26px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
  max-width: 30ch;
  text-wrap: balance;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .26s ease, transform .26s ease;
}
.ladder-cycle__line.is-out { opacity: 0; transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
  .ladder-cycle__line { transition: none; }
}
.chip {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 14px;
  margin: 0 2px;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .ladder-cycle__line { font-size: 22px; }
  .ladder-cycle { min-height: 148px; padding: 24px 14px; }
}

/* Exposed to screen readers only: the four cases, once, not re-announced. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
