/* Jamlings landing page.
   Dot-matrix, after the Nothing design language: monochrome surfaces, borderless cards on a sparse
   dot field, Doto for display type, Geist Mono for labels, and colour used only where it means
   something — the six characters, and the one action we want taken.

   Light rather than dark, because the audience is families and the illustration is a sunny room.
   The instrument stays dark, so the brightest, most colourful thing on the page is the toy itself. */

:root {
  /* monochrome surfaces */
  --bg: #f2f2f2;
  --surface: #ffffff;
  --surface-2: #ebebeb;
  --ink: #171717;
  --ink-2: #5a5a5a;
  --ink-3: #8c8c8c;
  --hair: #e2e2e2;
  --night: #0d0d0f;

  /* the one signal colour, and the band */
  --signal: #f04a48;
  /* The six Jamlings, sampled off the concept render. */
  --drum: #f04a48;
  --bass: #f5b52e;
  --key:  #35b8ec;
  --vox:  #ab6ef0;
  --loop: #3fdda6;
  /* FXling is chrome on the black table; on paper it needs weight to be seen at all. */
  --fx:   #8ea6b8;
  --flame: var(--signal);
  --gold: var(--bass);

  --r: 20px;
  --max: 1000px;

  --display: "Doto", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  /* the sparse dot field the whole language sits on */
  /* an RGB LED panel at rest: six colours of dot in a repeating 3x2 cell */
  background-image:
    radial-gradient(color-mix(in srgb, var(--drum) 34%, transparent) 1.4px, transparent 1.5px),
    radial-gradient(color-mix(in srgb, var(--bass) 38%, transparent) 1.4px, transparent 1.5px),
    radial-gradient(color-mix(in srgb, var(--key) 36%, transparent) 1.4px, transparent 1.5px),
    radial-gradient(color-mix(in srgb, var(--vox) 32%, transparent) 1.4px, transparent 1.5px),
    radial-gradient(color-mix(in srgb, var(--loop) 32%, transparent) 1.4px, transparent 1.5px),
    radial-gradient(color-mix(in srgb, var(--fx) 30%, transparent) 1.4px, transparent 1.5px);
  background-size: 66px 44px;
  background-position: 0 0, 22px 0, 44px 0, 11px 22px, 33px 22px, 55px 22px;
  font: 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.18;
  margin: 0 0 18px;
}
h1 { font-size: clamp(30px, 5vw, 54px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 {
  font-family: var(--mono);
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  margin: 0 0 10px;
}
p { margin: 0 0 16px; }
a { color: inherit; }

section { max-width: var(--max); margin: 0 auto; padding: 78px 20px; }
/* The nav is sticky, so an anchor jump would otherwise land with the section's label underneath it. */
section[id] { scroll-margin-top: 78px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── nav ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px;
  background: rgba(242, 242, 242, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.wordmark { display: flex; align-items: center; text-decoration: none; }
/* the wordmark is keyed transparent, so it sits on the dot field with no paper box around it */
.wordmark img { height: 22px; width: auto; display: block; }
footer .wordmark img { height: 26px; filter: invert(1) brightness(1.2); }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em; color: var(--ink-2); text-decoration: none; }
.nav nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--bg) !important;
  padding: 9px 16px; border-radius: 999px;
}
.nav-cta:hover { background: #000; }
@media (max-width: 720px) { .nav nav a:not(.nav-cta) { display: none; } }

/* Every section owns one of the six character colours; --sec is set on the section itself.
   The dot field it sits on takes a trace of that colour, like a lit panel. */
section { --sec: var(--signal); }

/* ── labels and ledes ──────────────────────────────────────────── */
.eyebrow, .section-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 16px;
}
.eyebrow::before, .section-eyebrow::before {
  content: attr(data-n) " ";
  color: var(--sec);
}
.lede, .section-lede {
  font-size: clamp(16px, 1.8vw, 18.5px); color: var(--ink-2);
  max-width: 600px; margin: 0 auto 32px;
}
.section-lede.narrow { max-width: 660px; }

/* ── hero: the instrument is the only bright thing ─────────────── */
.hero { padding-top: 56px; text-align: center; }
.stage { margin: 10px 0 28px; }
.stage-frame {
  position: relative; background: var(--night);
  border-radius: 26px; padding: 10px; overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.6);
}
.stage-frame::before {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(closest-side, rgba(245, 183, 49, 0.18), transparent 70%);
  pointer-events: none;
}
#game {
  display: block; width: 100%; height: min(78vh, 720px);
  min-height: 460px; border: 0; border-radius: 17px; background: var(--night);
}
.stage-note { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin: 16px 0 0; }
.stage-note a { color: var(--sec); }

/* ── forms ─────────────────────────────────────────────────────── */
.inline-signup { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 28px 0 10px; }
input[type=email] {
  flex: 1 1 260px; max-width: 340px;
  padding: 14px 18px; font: inherit; font-size: 16px;
  border: 1px solid var(--hair); border-radius: 999px;
  background: var(--surface); color: var(--ink);
}
input[type=email]::placeholder { color: var(--ink-3); }
input[type=email]:focus { outline: none; border-color: var(--sec); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sec) 22%, transparent); }
.inline-signup button, .stacked-signup button {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 14px 24px; cursor: pointer;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--bg);
}
.inline-signup button:hover, .stacked-signup button:hover { background: #000; }
.stacked-signup { display: grid; gap: 10px; }
.stacked-signup.wide input { max-width: none; }
.form-msg { flex-basis: 100%; margin: 8px 0 0; font-size: 13.5px; color: var(--ink-3); min-height: 1.2em; }
.form-msg.ok { color: #1f7a4d; }
.form-msg.err { color: var(--signal); }
.microcopy { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-3); margin: 0; }

/* ── cards: borderless, on the dot field ───────────────────────── */
.cards { display: grid; gap: 14px; margin-top: 32px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card { background: var(--surface); border-radius: var(--r); padding: 26px 24px; }
.card.plain { background: var(--surface); }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
/* the three moves take three of the band's colours, so the section is not one flat hue */
.card .num { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--sec); margin-bottom: 14px; }
.cards.three .card:nth-child(1) { --sec: var(--drum); box-shadow: inset 0 3px 0 var(--drum); }
.cards.three .card:nth-child(2) { --sec: var(--bass); box-shadow: inset 0 3px 0 var(--bass); }
.cards.three .card:nth-child(3) { --sec: var(--key); box-shadow: inset 0 3px 0 var(--key); }

.band-strip { background: transparent; }
.promise { background: color-mix(in srgb, var(--sec) 7%, var(--surface-2)); max-width: none; }
.promise > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* ── the band: the only place colour is allowed to shout ───────── */
.crew { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.crew li {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px 12px;
  background: color-mix(in srgb, var(--c) 6%, var(--surface));
  border-radius: var(--r); padding: 20px 22px;
}
.crew .dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 16%, transparent);
}
.crew b { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: 0.02em; color: color-mix(in srgb, var(--c) 50%, var(--ink)); }
.crew i { font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.crew em { grid-column: 1 / -1; font-style: normal; font-size: 14.5px; color: var(--ink-2); }

.secret {
  margin-top: 36px; padding: 30px 28px; border-radius: var(--r);
  background: var(--night); color: #ededed;
}
.secret h3 { color: var(--ink-3); }
.secret p { color: #a8a8a8; margin-bottom: 20px; font-size: 15.5px; }
.ghost-cta {
  display: inline-block; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 999px; border: 1px solid #3a3a3a; color: #fff; text-decoration: none;
}
.ghost-cta:hover { background: #fff; color: var(--night); border-color: #fff; }

/* ── the table ─────────────────────────────────────────────────── */
.shot { margin: 32px 0 0; }
.shot img { width: 100%; display: block; border-radius: var(--r); }
.shot figcaption { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-3); margin-top: 14px; text-align: center; }
.note-box {
  margin-top: 20px; padding: 22px 24px; border-radius: var(--r);
  background: var(--surface); border-left: 3px solid var(--sec);
  font-size: 15.5px; color: var(--ink-2);
}
.note-box b { color: var(--ink); }
.sub { margin-top: 48px; }

/* ── founder ───────────────────────────────────────────────────── */
.founder-story { background: color-mix(in srgb, var(--sec) 7%, var(--surface-2)); max-width: none; }
.founder-story > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.story p { font-size: 17px; }
.sig { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ink); }

/* ── the ask ───────────────────────────────────────────────────── */
.founder-cta { text-align: center; }
.founder-cta .section-lede { margin-bottom: 32px; }
.funnel { max-width: 500px; margin: 0 auto; text-align: left; }
.step { background: var(--surface); border-radius: var(--r); padding: 28px 26px; }
.step.offer { box-shadow: inset 0 0 0 2px var(--signal); }
.done { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #1f7a4d; margin: 0 0 10px; }
.step h3 { font-family: var(--display); font-size: 21px; font-weight: 600; text-transform: none; letter-spacing: 0.01em; margin-bottom: 12px; }
.offer-lede { color: var(--ink-2); font-size: 15.5px; }
.step ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.step li { padding-left: 22px; position: relative; font-size: 15px; color: var(--ink-2); }
.step li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--sec); }
.buy {
  display: block; text-align: center;
  font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 17px 20px; border-radius: 999px; text-decoration: none;
  background: var(--signal); color: #fff;
}
.buy:hover { background: #d3352b; }
.buy[data-stripe-pending] { background: var(--ink-3); cursor: not-allowed; }
.decline {
  display: block; width: 100%; margin-top: 12px; padding: 12px;
  background: none; border: 0; color: var(--ink-3); font: inherit; font-size: 14.5px;
  text-decoration: underline; cursor: pointer;
}
.decline:hover { color: var(--ink); }
.fineprint { font-size: 12.5px; color: var(--ink-3); margin: 16px 0 0; }

/* One-tap answers. Every extra screen costs people, so these are big targets that advance on a
   single touch: no radio buttons, no submit, nothing to type. */
.choices { margin-bottom: 8px !important; }
.choices li { padding-left: 0 !important; }
.choices li::before { display: none; }
.choices button {
  display: block; width: 100%; text-align: left;
  padding: 15px 18px; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--hair);
  transition: border-color .12s, background .12s;
}
.choices button:hover { border-color: var(--sec); background: color-mix(in srgb, var(--sec) 8%, var(--surface)); }
.choices button:focus-visible { outline: 2px solid var(--sec); outline-offset: 2px; }
.choices button[aria-pressed="true"] { border-color: var(--sec); box-shadow: inset 0 0 0 1px var(--sec); }
.tailored {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink-2); margin: 0 0 14px; padding-left: 13px;
  border-left: 3px solid var(--sec);
}

/* ── faq ───────────────────────────────────────────────────────── */
.faq { max-width: 720px; }
.faq details { border-bottom: 1px solid var(--hair); }
/* The padding belongs to the summary, not the details, so the whole row is the tap target. On the
   details it left a 26px-tall strip to hit, which is half what a thumb needs. */
.faq summary { cursor: pointer; font-size: 16px; list-style: none; padding: 17px 0; min-height: 26px; }
.faq details[open] summary { padding-bottom: 4px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--sec); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }

/* ── footer ────────────────────────────────────────────────────── */
footer {
  background: var(--night); color: #8c8c8c; text-align: center;
  padding: 52px 20px; font-size: 14px;
}
footer p { margin: 0 0 10px; }
footer .legal { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; margin-top: 18px; }
/* Footer links sat 15px tall. Padding them out costs nothing and makes them reachable with a thumb. */
footer a { display: inline-block; padding: 8px 2px; }
footer a { color: #ededed; }

@media (max-width: 640px) {
  section { padding: 56px 18px; }
  #game { height: 72vh; min-height: 420px; }
  .stage-frame { border-radius: 20px; }
}
