/* slowclap.io. Warm paper and ink, with a spotlight of gold. */

:root {
  --cream: #fbf7ef;
  --paper: #ffffff;
  --ink: #1b1830;
  --ink-2: #4a4660;
  --muted: #6b6780;
  --line: #e8e1d2;
  --gold: #f4b53f;
  --gold-wash: #fdf0d2;
  --violet: #5b3df0;
  --violet-ink: #4529cf;
  --jd: #2740d8;
  --jd-wash: #e8ecff;
  --chud: #2b2b2b;
  --chud-wash: #ecece6;
  --accent: var(--jd);
  --accent-wash: var(--jd-wash);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 18px/1.6 var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.1; }
p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
main { flex: 1; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 40; background: var(--paper); padding: 8px 12px; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 640px) {
  .nav nav a:not(:first-child) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; font-size: 16px;
}
.btn:hover { background: var(--violet-ink); border-color: var(--violet-ink); }

/* Hero */
.hero {
  padding: 48px 0 64px;
  background: radial-gradient(70% 60% at 75% 20%, var(--gold-wash), transparent 70%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.pill {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-weight: 800; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
/* Sized so "Get the slow clap." stays on one line in its column (about 8em wide). */
h1 { margin-top: 18px; font-size: clamp(34px, 10.4vw, 64px); font-weight: 850; letter-spacing: -0.04em; }
.lede { margin-top: 22px; max-width: 34em; font-size: 20px; color: var(--ink-2); }
.hero-note { margin-top: 18px; font-weight: 700; }
.hero-cta { margin-top: 24px; }
@media (min-width: 920px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.2fr 0.9fr; gap: 56px; }
  h1 { font-size: clamp(48px, 6.2vw, 68px); }
}

/* Demo */
.demo {
  --accent: var(--jd);
  --accent-wash: var(--jd-wash);
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 20px; box-shadow: 0 18px 40px -24px rgba(27, 24, 48, 0.35);
  scroll-margin-top: 16px;
}
.demo[data-persona="chud"] { --accent: var(--chud); --accent-wash: var(--chud-wash); }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo h2 { font-size: 24px; }
.picker { display: flex; gap: 8px; }
.pick {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--paper);
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.pick img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #fff; }
.pick[data-persona="chud"] img { object-fit: contain; }
.pick[aria-pressed="true"] { border-color: var(--ink); background: var(--cream); }
.pick:hover { border-color: var(--ink-2); }

.tasks { margin-top: 14px; }
.tasks li { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; }
.tasks li:last-child { border-bottom: 0; }
.tasks li.done span { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }

.check {
  position: relative; flex: none; width: 32px; height: 32px; padding: 0;
  border: 2.5px solid var(--ink-2); border-radius: 50%; background: var(--paper); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.check:hover { border-color: var(--accent); }
.check::after {
  content: ""; position: absolute; left: 9px; top: 4px; width: 8px; height: 15px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform 0.15s;
}
.check[aria-checked="true"] { background: var(--accent); border-color: var(--accent); animation: pop 0.35s ease-out; }
.check[aria-checked="true"]::after { transform: rotate(45deg) scale(1); }
@keyframes pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

.stage { display: flex; align-items: flex-start; gap: 14px; margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--accent-wash); min-height: 132px; }
.stage-face { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #fff; border: 3px solid var(--accent); }
.demo[data-persona="chud"] .stage-face { object-fit: contain; }
.bubble { min-width: 0; }
.bubble-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.bubble-text { margin-top: 4px; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.bubble.say .bubble-title, .bubble.say .bubble-text { animation: rise 0.3s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.claps { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.claps:empty { display: none; }
.claps span { animation: rise 0.2s ease-out; }
.again {
  margin-top: 12px; padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper); font-weight: 700; font-size: 15px; cursor: pointer;
}
.again:hover { background: var(--ink); color: #fff; }
.again[hidden] { display: none; }

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

/* Sections */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(30px, 5vw, 44px); max-width: 24em; text-wrap: balance; }
.section-lede { margin-top: 12px; color: var(--ink-2); font-size: 20px; }
.features { margin-top: 36px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.card h3 { font-size: 21px; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 17px; }
.card .quick { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--cream); border: 1px dashed var(--line); }
.quick-said { display: block; font-weight: 700; color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.quick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { padding: 2px 12px; border-radius: 999px; background: var(--gold-wash); border: 1px solid var(--gold); color: var(--ink); font-size: 14px; font-weight: 700; }

.crew-section { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.crew { margin-top: 36px; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.crew-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--cream); display: flex; flex-direction: column; }
.crew-face { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 35%; background: var(--jd); }
.crew-face-art { object-fit: contain; object-position: center; background: #fff; padding: 12px; }
.crew-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; flex: 1; }
.crew-body h3 { font-size: 30px; }
.crew-tag { font-weight: 700; color: var(--ink-2); }
.quotes { display: grid; gap: 10px; color: var(--ink-2); font-size: 17px; }
.quotes li { padding-left: 14px; border-left: 4px solid var(--gold); }
.quotes strong { color: var(--ink); }
.crew-body .btn { margin-top: auto; }
.surprise { margin-top: 28px; font-weight: 700; color: var(--ink-2); }

.closing { padding: 72px 0; background: var(--ink); color: #fff; text-align: center; }
.closing h2 { font-size: clamp(30px, 5vw, 44px); }
.closing > .wrap > p { margin-top: 10px; color: #cfcbe0; font-size: 20px; }
.closing :focus-visible { outline-color: var(--gold); }

/* Newsletter signup (sent to Formspree) */
.signup { margin: 28px auto 0; max-width: 520px; text-align: left; }
.signup-row { display: flex; gap: 10px; }
.signup input[type="email"] {
  flex: 1; min-width: 0; padding: 13px 20px; border: 2px solid transparent; border-radius: 999px;
  background: #fff; color: var(--ink); font: 17px/1.4 var(--font);
}
.signup input[type="email"]::placeholder { color: var(--muted); }
.btn-gold { flex: none; background: var(--gold); border-color: var(--gold); color: var(--ink); cursor: pointer; }
.btn-gold:hover { background: #ffc85c; border-color: #ffc85c; }
.btn:disabled { opacity: 0.7; cursor: default; }
.signup .fine { margin-top: 12px; font-size: 14px; color: #cfcbe0; text-align: center; }
.signup .fine a { color: #fff; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 16px; text-align: center; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #e9f7ee; color: #14532d; }
.form-status.err { background: #fdecea; color: #8a1c1c; }
.signup.sent .signup-row, .signup.sent .fine { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The honeypot: off-screen, so people never see it and bots fill it in. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) {
  .signup-row { flex-direction: column; }
}

.site-footer { padding: 24px 0; font-size: 15px; color: var(--muted); background: var(--cream); }

/* The privacy notice and other plain documents */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.doc h1 { margin: 0 0 10px; font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.03em; }
.doc .updated { margin-bottom: 36px; font-size: 16px; color: var(--muted); }
.doc h2 { margin: 38px 0 12px; font-size: 24px; }
.doc p, .doc li { font-size: 17px; color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; list-style: disc; }
.doc li + li { margin-top: 10px; }
.doc strong { color: var(--ink); }
.doc a { overflow-wrap: anywhere; }

/* 404 */
.missing { min-height: 100vh; display: grid; place-content: center; gap: 18px; text-align: center; padding: 24px; justify-items: center; }
.missing h1 { margin: 0; font-size: 36px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
