/* Page sections, top to bottom */

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.1875rem; text-decoration: none; }
.wordmark img { inline-size: 36px; block-size: 36px; }
@media (max-width: 479px) { .masthead .btn { display: none; } }

/* Hero: headline, button, then the editor with the example; the hedgehog stands on the editor's edge */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: clamp(8px, 2vw, 24px) var(--space); position: relative; }
.hero > * { min-inline-size: 0; }
.hero h1 { font-size: var(--step-3); line-height: 1.05; max-inline-size: 20ch; }
.lede { margin-block: 14px 24px; font-size: var(--step-1); color: var(--ink-2); max-inline-size: 38ch; }
.levels { margin-block: -12px 22px; font-weight: 600; color: var(--brand-ink); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.cta-note { font-size: var(--small); color: var(--ink-2); max-inline-size: 30ch; }
.hero-art { display: flex; align-items: flex-end; gap: 4px; }
.hero-art img { inline-size: clamp(84px, 14vw, 190px); }
@media (max-width: 899px) {
  /* Phone and tablet: a small hedgehog beside the headline, the bubble waits for wider screens. */
  .hero-art { position: absolute; inset-block-start: clamp(8px, 3vw, 40px); inset-inline-end: 0; }
  .hero-art .bubble { display: none; }
  .hero h1 { max-inline-size: min(16ch, calc(100% - 84px)); }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; row-gap: 0; }
  .hero-text { padding-block-end: 28px; }
  .hero-art { align-self: end; margin-block-end: -10px; position: relative; z-index: 1; padding-inline-end: 24px; }
  .hero-art .bubble { max-inline-size: 24ch; margin-block-end: 120px; }
  .editor { grid-column: 1 / -1; }
}

/* How it works: the one colour block, the video large, three steps under it */
.how { background: var(--brand); color: var(--on-brand); padding-block: var(--space); }
.how .page { display: grid; gap: var(--head-gap); }
.how h2 { color: inherit; }
.how .player { padding: 8px; background: var(--surface); border-radius: var(--radius-lg); border-block-end: 5px solid var(--brand-edge); }
.steps { display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
.step-n { grid-row: span 2; inline-size: 52px; block-size: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.375rem;
  background: var(--on-brand); color: var(--blue-11); box-shadow: 0 4px 0 var(--brand-edge); }
.steps h3 { font-size: 1.25rem; align-self: end; }
.steps p { opacity: 0.95; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); column-gap: 32px; } }

/* What the check covers (founder round 5, items 9-10): three cards in one row on wide screens, a compact stack on phones */
.covers { padding-block: var(--space); display: grid; gap: var(--head-gap); }
.cover-list { display: grid; gap: 12px; }
.cover-list li { display: grid; align-content: start; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.cover-list h3 { font-size: 1.25rem; }
.cover-list p { color: var(--ink-2); }
.cover-list .sample { margin-block-end: 4px; block-size: 40px; }
/* One chip style for the three card heads, so the headings under them line up */
.cover-list .sample b, .cover-list .score-sample { display: inline-flex; align-items: center; gap: 0.3em; block-size: 36px; padding: 0 10px; border-radius: 8px; font-size: 1.125rem; font-weight: 650; }
.sample { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step-1); font-weight: 550; }
.sample .err { cursor: default; }
.score-sample { padding: 4px 14px; border-radius: 999px; font-size: var(--small); font-weight: 650; }
.sample b { font-weight: 650; color: var(--brand-ink); background: var(--brand-soft); border-radius: 6px; padding: 1px 6px; }
.covers-more { color: var(--ink-2); max-inline-size: 60ch; }
@media (min-width: 760px) { .cover-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .cover-list li { padding: 20px 22px; gap: 8px; } }

/* Waitlist with the price question */
.signup { background: var(--tint); padding-block: var(--space); border-block: 1px solid var(--line); }
.signup .page { display: grid; gap: var(--head-gap); }
.signup-head { display: grid; gap: 12px; align-content: start; }
.signup-head p { color: var(--ink-2); max-inline-size: 34ch; }
.signup-head img { inline-size: clamp(110px, 16vw, 200px); }
.form { display: grid; padding: clamp(18px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); align-self: start; }
.step { display: grid; gap: 24px; justify-items: start; }
.step > * { justify-self: stretch; }
.step > .btn { justify-self: start; }
.step:focus { outline: none; }
.step[hidden] { display: none; }
/* Before the module script runs, keep the optional step out of view on JS pages; without JS it shows. */
.js .step-more[data-wait] { display: none; }
html:not(.js) .more-actions { display: none; }
.thanks { display: flex; align-items: center; gap: 16px; }
.thanks img, .step-done img { inline-size: 96px; block-size: 96px; flex: none; }
.thanks-title { font-size: var(--step-1); font-weight: 650; color: var(--brand-ink); }
.thanks h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; margin-block-start: 2px; }
.more-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.step-done { justify-items: center; text-align: center; padding-block: 12px; }
.step-done img { inline-size: 140px; block-size: 140px; }
.privacy { font-size: 0.875rem; line-height: 1.55; color: var(--ink-2); max-inline-size: 58ch; }
@media (min-width: 900px) {
  .signup .page { grid-template-columns: 4fr 7fr; column-gap: 56px; }
}

.faq { padding-block: var(--space); display: grid; gap: var(--head-gap); }
.faq-list { border-block-start: 1px solid var(--line); }
@media (min-width: 900px) { .faq { grid-template-columns: 4fr 8fr; column-gap: 32px; } }

.footer { padding-block: 28px 40px; border-block-start: 1px solid var(--line); font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); }
.footer .credit { margin-block-start: 6px; font-size: 0.8125rem; }

/* 404 and privacy pages, and the Worker's form pages for visitors without JavaScript */
.notice { display: grid; gap: 20px; justify-items: start; padding-block: 48px 80px; max-inline-size: 40rem; margin-inline: max(var(--gutter), (100% - 1200px) / 2); }
.notice h1 { font-size: var(--step-2); line-height: 1.1; }
.notice h2 { font-size: 1.25rem; line-height: 1.3; margin-block-start: 12px; margin-block-end: -8px; }
.notice img { inline-size: 120px; block-size: 120px; }
/* Spam check: zero height until Turnstile needs a click (site/js/page.js) */
.cf-turnstile.is-shown { margin-block-start: 12px; }
