@font-face { font-family: 'Geist'; src: url('/fonts/geist-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #121214; --ink: #eeede9; --mute: #9a9ba1; --rule: #2b2c31; --tile: #1e1f23; --on-form: #17171a;
  /* The two ends of the form: out of it, and in it. */
  --low: oklch(0.56 0.06 262); --mid: oklch(0.66 0.135 318); --high: oklch(0.76 0.21 15);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #fbfaf8; --ink: #232327; --mute: #6f7076; --rule: #e4e3df; --tile: #f0efec; --on-form: #17171a;
  --low: oklch(0.5 0.06 262); --mid: oklch(0.6 0.135 318); --high: oklch(0.7 0.21 15);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.5; letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
canvas { display: block; }
:focus-visible { outline: 2px solid var(--high); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }
.dim { color: var(--mute); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.02em; }
.brand svg { width: 1.7rem; height: 1.7rem; color: var(--high); transition: rotate 0.7s var(--ease); }
.brand:hover svg { rotate: 45deg; }
.top-right { display: flex; align-items: center; gap: 0.5rem; }
.pill { display: inline-flex; align-items: center; gap: 0.45rem; height: 2.25rem; padding: 0 0.85rem; border-radius: 999px; background: var(--tile); font-size: 0.875rem; font-weight: 500; text-decoration: none; border: 0; cursor: pointer; transition: scale 0.2s var(--ease); }
.pill:active { scale: 0.95; }
.pill.soon::before { content: ''; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--high); animation: pulse 2.4s ease-in-out infinite; }
.pill.theme { width: 2.25rem; padding: 0; display: grid; place-items: center; }
.pill.theme svg { grid-area: 1 / 1; width: 17px; height: 17px; transition: opacity 0.3s, rotate 0.5s var(--ease), scale 0.4s var(--ease); }
.to-dark { opacity: 0; rotate: 90deg; scale: 0.5; }
:root[data-theme='light'] .to-dark { opacity: 1; rotate: 0deg; scale: 1; }
:root[data-theme='light'] .to-light { opacity: 0; rotate: -90deg; scale: 0.5; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* The form you can drag, with its answer written on it. */
.form { position: relative; width: 100%; aspect-ratio: 1; }
.form canvas { width: 100%; height: 100%; cursor: grab; border-radius: 24px; }
.form canvas.is-held { cursor: grabbing; }
.form-word { position: absolute; left: 50%; top: 0; translate: -50% -50%; pointer-events: none; color: var(--on-form); font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; font-size: clamp(1.125rem, 3.4vw, 1.75rem); will-change: top, scale; }

/* Buttons and the sign-up */
.button { display: inline-flex; align-items: center; gap: 0.5rem; height: 3rem; padding: 0 1.4rem; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-weight: 500; text-decoration: none; cursor: pointer; transition: scale 0.2s var(--ease); }
.button:active { scale: 0.96; }
.button.is-quiet { background: var(--tile); color: var(--ink); }
.signup { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; max-width: 30rem; }
.field { display: flex; gap: 0.4rem; padding: 0.35rem; border-radius: 999px; background: var(--tile); transition: box-shadow 0.2s; }
.field:focus-within { box-shadow: 0 0 0 2px var(--high); }
.field input[type='email'] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 0.9rem; height: 2.75rem; outline: 0; font-size: 1rem; }
.field input::placeholder { color: var(--mute); }
.field button { border: 0; border-radius: 999px; height: 2.75rem; padding: 0 1.15rem; background: var(--ink); color: var(--bg); font-weight: 500; font-size: 0.9375rem; cursor: pointer; white-space: nowrap; transition: scale 0.2s var(--ease), opacity 0.2s; }
.field button:active { scale: 0.96; }
.field button[disabled] { opacity: 0.6; cursor: default; }
.note { font-size: 0.875rem; color: var(--mute); padding-left: 1.25rem; }
.note.is-error { color: oklch(0.7 0.17 28); }
.honey { position: absolute; left: -999rem; }
.done { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1.25rem; border-radius: 18px; background: var(--high); color: var(--on-form); font-weight: 500; max-width: 30rem; animation: rise 0.6s var(--ease); }
.done svg { width: 1.4rem; height: 1.4rem; flex: none; }
@keyframes rise { from { opacity: 0; translate: 0 0.5rem; } }

.foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding: 1.5rem 0 2rem; border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--mute); font-weight: 500; }
.foot a { color: var(--ink); }

@media (max-width: 44rem) { .field button { padding: 0 0.9rem; font-size: 0.875rem; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* The slider under the form: sharp at one end, soft at the other. */
/* It sits above the form's square, which overlaps it from above. */
.dial { position: relative; z-index: 1; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem; align-items: center; gap: 0.5rem; }
.dial canvas { width: 2.25rem; height: 2.25rem; }
.dial input { -webkit-appearance: none; appearance: none; width: 100%; height: 2.75rem; margin: 0; background: transparent; cursor: pointer; touch-action: none; }
.dial input:focus { outline: 0; }
.dial input::-webkit-slider-runnable-track { height: 0.75rem; border-radius: 999px; background: linear-gradient(90deg, var(--low), var(--mid) 55%, var(--high)); }
.dial input::-moz-range-track { height: 0.75rem; border-radius: 999px; background: linear-gradient(90deg, var(--low), var(--mid) 55%, var(--high)); }
.dial input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 2rem; height: 2rem; margin-top: -0.625rem; border-radius: 50%; background: var(--ink); border: 0.3rem solid var(--bg); box-shadow: 0 2px 10px rgb(0 0 0 / 0.35); transition: scale 0.2s var(--ease); }
.dial input::-moz-range-thumb { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ink); border: 0.3rem solid var(--bg); box-shadow: 0 2px 10px rgb(0 0 0 / 0.35); }
.dial input:active::-webkit-slider-thumb { scale: 1.12; }
.dial input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--high); outline-offset: 2px; }
.dial input:focus-visible::-moz-range-thumb { outline: 2px solid var(--high); outline-offset: 2px; }
.dial-ends { display: flex; justify-content: space-between; padding: 0 2.75rem; margin-top: -0.35rem; font-size: 0.8125rem; font-weight: 500; color: var(--mute); }

/* A cause: a button that fills with the colour of the form when it applies. */
.cause { display: inline-flex; align-items: center; gap: 0.4rem; height: 2.5rem; padding: 0 0.9rem 0 0.7rem; border: 0; border-radius: 999px; background: var(--tile); color: var(--ink); font-size: 0.9375rem; font-weight: 500; cursor: pointer; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--rule); transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, translate 0.3s var(--ease), scale 0.3s var(--ease); }
.cause svg { width: 1.1rem; height: 1.1rem; color: var(--mute); transition: color 0.25s, rotate 0.5s var(--ease), scale 0.5s var(--ease); }
.cause:hover { translate: 0 -2px; }
.cause:active { scale: 0.94; }
.cause[aria-pressed='true'] { background: var(--form, var(--high)); color: var(--on-form); box-shadow: inset 0 0 0 1px transparent, 0 6px 18px -8px var(--form, var(--high)); }
.cause[aria-pressed='true'] svg { color: var(--on-form); rotate: -10deg; scale: 1.12; }

/* The bar under the form: what you have said, and the way on. */
.bar { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 0.9rem 0.9rem 1.4rem; border-radius: 999px; background: var(--tile); }
.bar div { flex: 1; min-width: 0; }
.bar b { display: block; font-weight: 500; letter-spacing: -0.02em; font-size: 1.125rem; transition: color 0.3s; }
.bar span { display: block; color: var(--mute); font-size: 0.875rem; line-height: 1.3; }
.bar button, .bar .bar-go { flex: none; width: 3.5rem; height: 3.5rem; border: 0; border-radius: 50%; background: var(--ink); color: var(--bg); cursor: pointer; display: grid; place-items: center; transition: scale 0.2s var(--ease); }
.bar button:active, .bar .bar-go:active { scale: 0.92; }
.bar button svg, .bar .bar-go svg { width: 1.5rem; height: 1.5rem; }
.bar { text-align: left; }
a.bar-go, .bar button { text-decoration: none; }
