/* Bright, welcoming palette (2026-10-29): warm white paper, deep ink,
   lively blue for actions. Light only, by founder request. */
:root {
  --ground: #FFFCF7;
  --surface: #FFFFFF;
  --surface-2: #F0ECE6;
  --ink: #1F1D3A;
  --ink-2: #555270;
  --house: #3345E8;
  --on-house: #FFFFFF;
  --house-soft: #E6E9FF;
  --line-strong: #8E8AA3;
  --danger: #C2261D;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
button, label, a { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.5 "Atkinson Hyperlegible Next", system-ui, sans-serif;
}
::selection { background: var(--house-soft); }
:focus-visible { outline: 2px solid var(--house); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* Survey header */
.top {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.mark {
  font: 400 1.5625rem/1 "Young Serif", Georgia, serif;
  color: var(--house);
  text-decoration: none;
}
.progress {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar { height: 100%; width: 0; background: var(--house); transition: width 240ms ease; }

/* Home: the living field, the name, one button. */
.hero {
  position: relative;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  display: grid;
  place-items: center;
  touch-action: pan-y;
}
/* Morning sky, one warm sun that breathes, one small friend that circles it. */
.hero { background: linear-gradient(180deg, #E9F3FF 0%, #FFF5EA 62%, var(--ground) 100%); }
.sky {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  --size: min(80vw, 76vh, 680px);
}
.sun, .orbit { grid-area: 1 / 1; width: var(--size); aspect-ratio: 1; }
.sun {
  border-radius: 50%;
  background: radial-gradient(circle, #FFE58F 0%, #FFCB6E 34%, rgb(255 168 112 / 0.5) 56%, rgb(255 168 112 / 0) 71%);
  animation: breathe 9s ease-in-out infinite;
}
.orbit { position: relative; animation: circle 60s linear infinite; }
.friend {
  position: absolute;
  top: 6%;
  left: 50%;
  width: 26%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 150 192 / 0.95) 0%, rgb(255 140 185 / 0.45) 38%, rgb(255 140 185 / 0) 68%);
  filter: blur(6px);
  mix-blend-mode: multiply;
  animation: breathe 7s ease-in-out infinite reverse;
}
@keyframes breathe { 50% { transform: scale(1.07); } }
@keyframes circle { to { transform: rotate(360deg); } }
.hero-center {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 28px;
  pointer-events: none;
}
.hero-center > * { pointer-events: auto; }
.wordmark {
  margin: 0;
  font: 400 clamp(4.5rem, 2rem + 13vw, 12rem)/0.9 "Young Serif", Georgia, serif;
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: arrive 700ms cubic-bezier(.2,.7,.2,1) both;
}
.tagline {
  margin: -8px 0 4px;
  font: 400 clamp(1.25rem, 1rem + 1.2vw, 1.75rem)/1.3 "Atkinson Hyperlegible Next", system-ui, sans-serif;
  color: var(--ink-2);
  animation: arrive 700ms 100ms cubic-bezier(.2,.7,.2,1) both;
}
/* The live number, quiet at the bottom of the screen. */
.people-count {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.people-count strong { color: var(--ink); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.hero-center .primary { animation: arrive 700ms 200ms cubic-bezier(.2,.7,.2,1) both; }
.hero-center { text-align: center; padding: 24px 32px; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
/* Survey */
main {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 16px var(--gutter) 48px;
}
.screen { animation: in 220ms ease; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }

.screen h1, .screen h2 {
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  margin: 20px 0 12px;
}
.screen h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); }
.screen h2 { font-size: clamp(1.75rem, 5vw, 2.25rem); }
h2:focus { outline: none; }
.lede { font-size: 1.25rem; margin: 0 0 16px; }
.meta, .hint { color: var(--ink-2); margin: 0 0 24px; }
.step { color: var(--ink-2); font-size: 0.875rem; margin: 24px 0 0; }

.options { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; border: 0; }
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1.5px solid var(--surface-2);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.0625rem;
}
@media (hover: hover) { .option:hover { border-color: var(--line-strong); } }
.option:has(input:checked) { border-color: var(--house); background: var(--house-soft); }
.option:has(input:focus-visible) { outline: 2px solid var(--house); outline-offset: 2px; }
.option input { accent-color: var(--house); width: 20px; height: 20px; margin: 0; flex: none; }
.option:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }

textarea, input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  caret-color: var(--house);
}
textarea { min-height: 120px; resize: vertical; }
.count { text-align: right; color: var(--ink-2); font-size: 0.875rem; margin: 4px 0 24px; }
label.field { display: block; font-weight: 600; margin: 0 0 8px; }
.subq { margin: 8px 0 12px; font: 600 1.125rem/1.3 "Atkinson Hyperlegible Next", system-ui, sans-serif; }
label.check { display: flex; gap: 10px; align-items: center; margin: 16px 0 32px; font-size: 1.0625rem; cursor: pointer; }
label.check input { width: 20px; height: 20px; accent-color: var(--house); }
#story { margin-bottom: 24px; }

.nav { display: flex; gap: 12px; align-items: center; }
button {
  font: 600 1rem/1 "Atkinson Hyperlegible Next", system-ui, sans-serif;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  cursor: pointer;
}
.primary { background: var(--house); color: var(--on-house); border: 0; }
.primary:hover { filter: brightness(1.08); }
.primary:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.hero .primary { min-height: 56px; padding: 0 32px; font-size: 1.125rem; }
.ghost { background: transparent; color: var(--ink-2); border: 1.5px solid var(--surface-2); }
.link { background: none; border: 0; color: var(--house); padding: 0 8px; text-decoration: underline; }
.error { color: var(--danger); margin: 0 0 16px; }
.privacy { color: var(--ink-2); font-size: 0.8125rem; margin: 0 0 20px; }
.privacy a { color: var(--house); }
.support { margin: 48px 0 0; padding-top: 16px; border-top: 1px solid var(--surface-2); color: var(--ink-2); font-size: 0.9375rem; }
.support a { color: var(--house); }

@media (prefers-reduced-motion: reduce) {
  .screen, .wordmark, .tagline, .hero-center .primary, .sun, .orbit, .friend { animation: none; }
  .bar { transition: none; }
}

/* Honeypot: hidden from people, visible to simple bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.foot {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.foot p { max-width: 60em; margin: 0; }
.foot a { color: var(--house); }

/* Phones: buttons sit at the bottom, within thumb reach. */
@media (max-width: 719px) {
  main { padding-bottom: 112px; }
  .screen h2 { font-size: 1.625rem; margin-top: 8px; }
  .step { margin-top: 8px; }
  .option { min-height: 52px; padding: 10px 14px; font-size: 1rem; }
  #survey .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--ground) 92%, transparent);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--surface-2);
  }
  #survey .nav .primary { margin-left: auto; min-width: 120px; }
  .top { padding-top: 14px; padding-bottom: 6px; }
}
