/* Wide Awake, borrowed from hey-jerome.com (jerome/apps/web/src/styles/site.css):
   flat red, green, yellow and blue; black ink outlines; squares knocked off true;
   a condensed shout of a headline. No logo, bird or screenshots here: this page
   is about the problem, not the product. */
:root {
  --red: #D94A3B;
  --green: #4E9A2E;
  --yellow: #E8BF14;
  --blue: #4A86C8;
  --orange: #C9742E;
  --ink: #111111;
  --paper: #F4EFE6;
  --ui: 'Lexend', system-ui, sans-serif;
  --shout: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --hand: 'Shadows Into Light Two', 'Comic Sans MS', cursive;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --line: 4px solid var(--ink);
  --wrap: min(1200px, 100% - 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--ui); color: var(--ink); background: var(--red); line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; }
/* Keep the footer on the floor: short pages (the survey's thank-you) push it to the bottom. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > nav, body > footer { flex: none; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--yellow); color: var(--ink); }
[hidden] { display: none !important; }

.wrap { width: var(--wrap); margin: 0 auto; }
.shout { font-family: var(--shout); font-weight: 400; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.92; }
.hand { font-family: var(--hand); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.25; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
/* The sticker: paper with an ink outline and a hard ink shadow. Hero and sign-up only. */
.loud { color: var(--paper); -webkit-text-stroke: 0.032em var(--ink); paint-order: stroke fill; text-shadow: 0.055em 0.055em 0 var(--ink); line-height: 0.97; }

/* Buttons: ink pills, a hard shadow, a shove on hover. */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1 var(--ui); padding: 15px 24px; border-radius: 999px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 5px 5px 0 var(--ink); transition: transform 0.12s ease, box-shadow 0.12s ease; cursor: pointer; }
button:hover, .btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
button:active, .btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
button:disabled { opacity: 0.7; cursor: default; transform: none; box-shadow: 5px 5px 0 var(--ink); }

/* Sign-up form */
form[data-waitlist] { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
form[data-waitlist] input { font: 500 18px/1 var(--ui); padding: 16px 22px; border-radius: 999px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); width: min(380px, 100%); outline: none; }
form[data-waitlist] input:focus { box-shadow: 0 0 0 4px var(--blue); }
.fine { font-size: 15px; font-weight: 450; margin-top: 18px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 110px; }
.hero .eyebrow { display: inline-block; margin-bottom: 28px; padding: 6px 12px; border: 3px solid var(--ink); background: var(--yellow); transform: rotate(-2deg); }
.hero h1 { font-size: clamp(52px, 9vw, 140px); max-width: 10em; }
.hero .lead { margin-top: 34px; font-size: clamp(19px, 2vw, 25px); font-weight: 500; line-height: 1.35; max-width: 32em; text-wrap: balance; }

/* ---------- sections ---------- */
section { position: relative; padding: 110px 0; border-top: var(--line); }
section.green { background: var(--green); }
section.yellow { background: var(--yellow); }
section.blue { background: var(--blue); }
section.paper { background: var(--paper); }
h2.shout { font-size: clamp(42px, 6vw, 92px); max-width: 14em; color: var(--ink); }
/* The sign-up's sticker heading: paper fill, beats the flat-ink h2 above (as on hey-jerome). */
h2.shout.loud { color: var(--paper); line-height: 0.97; }

/* Pain points: cards dealt across the table. */
.pains { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.pains li { border: var(--line); padding: 26px 26px 30px; box-shadow: 8px 8px 0 var(--ink); display: flex; flex-direction: column; gap: 12px; transition: transform 0.2s ease; }
.pains li:nth-child(1) { background: var(--orange); transform: rotate(-2deg); }
.pains li:nth-child(2) { background: var(--paper); transform: rotate(1.5deg) translateY(14px); }
.pains li:nth-child(3) { background: var(--blue); transform: rotate(1deg); }
.pains li:nth-child(4) { background: var(--red); transform: rotate(-1.5deg) translateY(14px); }
.pains li:hover { transform: rotate(0) translateY(-6px); }
.pains strong { font: 400 clamp(28px, 3vw, 40px)/0.95 var(--shout); text-transform: uppercase; }
.pains span { font-size: 17px; font-weight: 450; }

/* Early access: the yellow square, knocked off true. */
.join { display: grid; place-items: center; }
.join .square { width: min(820px, 100%); background: var(--yellow); border: var(--line); padding: 70px 60px 60px; transform: rotate(-3deg); box-shadow: 14px 14px 0 var(--ink); text-align: left; }
.join h2.shout { font-size: clamp(44px, 6.4vw, 96px); margin: 0; }
.join .square p.sub { font-size: 19px; margin-top: 18px; font-weight: 450; }
.join form[data-waitlist] { justify-content: flex-start; }

/* Nav: just the lockup, as on hey-jerome.com. */
.nav { display: flex; align-items: center; padding: 22px 0; }
.logo { display: inline-flex; text-decoration: none; color: inherit; }
.logo img { display: block; height: 64px; width: auto; margin: -6px 0 -6px -4px; }
.nav + main .hero, .nav + main.survey-wrap { padding-top: 32px; }

/* Footer: small and quiet. The logo on the left, the fine print on the right. */
footer.site { border-top: var(--line); background: var(--red); padding: 26px 0; }
footer.site .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
footer.site .logo img { height: 50px; }
footer.site .legal { display: flex; align-items: baseline; gap: 22px; font-size: 14px; font-weight: 500; line-height: 1; }
footer.site .legal a { text-decoration: none; }
footer.site .legal a:hover { text-decoration: underline 2px; text-underline-offset: 4px; }
footer.site .copy { font-size: 13px; }

/* ---------- survey ---------- */
.survey-wrap { padding: 72px 0 110px; }
.survey-wrap .hero { padding: 0 0 56px; }
.survey { display: grid; gap: 28px; max-width: 760px; }
.q { background: var(--paper); border: var(--line); box-shadow: 8px 8px 0 var(--ink); padding: 24px 24px 26px; display: grid; gap: 14px; }
fieldset.q { margin: 0; min-width: 0; }
.q > legend, .q > label.title { float: left; width: 100%; font: 700 20px/1.25 var(--ui); padding: 0; margin: 0 0 2px; }
.q .hint { font-size: 14px; margin-top: -6px; }
.opts { display: grid; gap: 10px; }
.opts label { display: flex; gap: 12px; align-items: flex-start; border: 3px solid var(--ink); border-radius: 12px; padding: 12px 14px; background: #fff; cursor: pointer; font-weight: 450; transition: background 0.12s ease; }
.opts label:hover { background: var(--yellow); }
.opts label:has(input:checked) { background: var(--yellow); }
.opts input { accent-color: var(--ink); margin-top: 4px; width: 18px; height: 18px; flex: none; }
.q textarea { width: 100%; min-height: 140px; padding: 14px 16px; font: 450 16px/1.5 var(--ui); border: 3px solid var(--ink); border-radius: 12px; background: #fff; resize: vertical; outline: none; }
.q textarea:focus { box-shadow: 0 0 0 4px var(--blue); }
/* One question at a time (survey.js adds .stepped). */
.survey.stepped .q { display: none; }
.survey.stepped { position: relative; }
.survey.stepped .q.is-current { display: grid; align-content: start; min-height: var(--step-h, 0); animation: step-in 0.22s ease both; }
/* Measuring pass: lay each question out off screen to find the tallest. */
.survey.stepped .q.measuring, .survey.stepped .q.measuring[hidden] { display: grid !important; position: absolute; left: 0; right: 0; top: 0; visibility: hidden; min-height: 0; animation: none; }
.survey.stepped .q:focus { outline: none; }
.survey.stepped .q > legend, .survey.stepped .q > label.title { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; margin-bottom: 6px; }
@keyframes step-in { from { opacity: 0; } to { opacity: 1; } }
.opts kbd { flex: none; display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; margin-top: 1px; font: 500 12px/1 var(--mono); border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); }
.opts label:has(input:checked) kbd { background: var(--ink); color: var(--paper); }
.survey.stepped .opts input[type="radio"], .survey.stepped .opts input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.survey.stepped .opts label { position: relative; align-items: center; }
.survey.stepped .opts label:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--blue); }
/* Long option lists (7+) go two-up on wider screens, so no card gets too tall. */
@media (min-width: 641px) {
  .survey.stepped .opts:has(> label:nth-child(7)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.survey-nav { display: grid; gap: 18px; }
.survey:not(.stepped) .survey-nav [data-next], .survey:not(.stepped) .survey-nav [data-back] { display: none; }
.survey-buttons { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.survey-buttons .back { background: transparent; box-shadow: none; border-color: transparent; padding-left: 4px; padding-right: 4px; text-decoration: underline 2px; text-underline-offset: 5px; }
.survey-buttons .back:hover, .survey-buttons .back:active { transform: none; box-shadow: none; }
.survey-buttons .quiet { background: transparent; }
.progress { display: flex; align-items: center; gap: 14px; max-width: 760px; }
.progress-bar { flex: 1; height: 14px; border: 3px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.3s ease; }
.progress .label { flex: none; min-width: 5.5em; text-align: right; }
.key-hint { font-size: 14px; font-weight: 450; min-height: 1.5em; }
/* Phones: keep Back and Next pinned in reach at the bottom of the screen. */
@media (max-width: 640px) {
  /* The card keeps its own height; the space under it is held instead, so
     the page height never changes and the pinned buttons never move. */
  .survey.stepped { grid-template-rows: auto minmax(var(--step-h, 0), auto) auto; }
  .survey.stepped .q.is-current { min-height: 0; align-self: start; }
  .survey.stepped .survey-nav { position: sticky; bottom: 0; z-index: 2; margin: 0 -24px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); background: var(--red); border-top: var(--line); }
  .survey.stepped .key-hint { display: none; }
}
.key-hint kbd { font: 500 12px/1 var(--mono); border: 2px solid var(--ink); border-radius: 6px; padding: 3px 6px; background: var(--paper); }
@media (hover: none) { .key-hint, .opts kbd { display: none !important; } }
.done { padding: 0 0 110px; }
.done .square { max-width: 760px; background: var(--yellow); border: var(--line); padding: 50px 40px; transform: rotate(-2deg); box-shadow: 14px 14px 0 var(--ink); }
.done h2.shout { font-size: clamp(40px, 5vw, 72px); }
.done p { font-size: 19px; margin-top: 16px; font-weight: 450; }

/* ---------- smaller screens ---------- */
@media (max-width: 760px) {
  .pains { grid-template-columns: minmax(0, 1fr); }
  .pains li { transform: none !important; }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .hero { padding: 48px 0 80px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 52px); }
  .hero .lead { margin-top: 26px; }
  .join .square { padding: 50px 24px 40px; transform: rotate(-1.5deg); }
  .q { padding: 20px 18px 22px; box-shadow: 6px 6px 0 var(--ink); }
  .done .square { padding: 36px 22px; transform: rotate(-1deg); }
  .logo img { height: 48px; }
  footer.site .legal { flex-direction: column; align-items: flex-end; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Who's asking: the team, as umamii and communiti did it. */
.team-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.team-copy h2.shout { font-size: clamp(38px, 4.4vw, 64px); margin-top: 18px; }
.team-copy p:not(.label) { font-size: 19px; font-weight: 450; margin-top: 28px; max-width: 30em; }
.team-art { margin: 0; border: var(--line); box-shadow: 12px 12px 0 var(--ink); transform: rotate(2deg); overflow: hidden; background: var(--ink); }
.team-art img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .team-art { transform: rotate(1deg); }
}
