/* ============================================================
   MeMachine — /beta, the page's own layout.

   Loads AFTER landing.css and form.css. form.css owns the
   application sheet itself (shared with the homepage embed); this
   file owns everything around it: the blueprint hero with the
   application riding shotgun, the what-it-is section, the
   feedback-loop drawing, the producer section, and the rhythm
   between them.

   No color, type or radius is redeclared here — every value reads
   through --paper/--ink/--pen/--mono/etc from landing.css, so a
   change to the brand tokens there still reaches this page.
   ============================================================ */

.beta-body { background-color: var(--paper); }

/* ------------------------- hero: blueprint ------------------------- */

.beta-hero {
  position: relative;
  padding-block: 34px 54px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: center top;
}

.beta-fig {
  display: inline-block;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--graphite-2);
  border: 1px solid var(--rule); border-radius: 2px;
  padding: 5px 9px; margin-top: 18px;
}

/* the full-width move: words left, the application right, no dead margin.
   The right column is the page's reason to exist, so it gets real width. */
.beta-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-top: 34px;
}

.beta-h1 { margin-top: 18px; font-size: clamp(42px, 5.4vw, 74px); }

/* the one promise, right under the H1 — a spec line in the drawing's own
   mono voice, pen-red so it reads as the page's signature statement */
.beta-free {
  margin-top: 16px;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--pen);
}

.beta-sub { margin-top: 18px; max-width: 32em; }
.beta-hero-cta { margin-top: 28px; }

.beta-handnote {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 34px; color: var(--pen);
}
.beta-hand-arrow { width: 58px; height: 44px; flex: none; margin-top: 4px; }
.beta-hand-arrow path {
  vector-effect: non-scaling-stroke;
}
.beta-hand { font-size: 24px; transform: rotate(-1.2deg); max-width: 20ch; }

.beta-eligibility {
  margin-top: 26px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--graphite-2);
  border-top: 1px dashed var(--rule); padding-top: 14px;
  max-width: 44ch;
}

/* the sheet arrives with the application in it; #apply carries the anchor */
.beta-hero-right { min-width: 0; }
#apply { scroll-margin-top: 92px; }

/* -------------------------- section rhythm -------------------------- */

.beta-node { padding-block: 54px; border-top: 1px solid var(--rule-soft); }
.beta-node-head { padding-bottom: 24px; }
.beta-node[hidden] { display: none; }

/* --------------------- 01: the feedback loop --------------------- */

.beta-loopart { margin: 8px 0 0; }
.beta-loop-svg { display: block; width: 100%; height: auto; color: var(--ink); }
.bl-hair { stroke: var(--rule); stroke-width: 1; }
.bl-return { color: var(--pen); stroke: var(--pen); }
.beta-loop-svg .bl-return + path { stroke: var(--pen); }
.bl-num {
  font-family: var(--mono); font-size: 17px; font-weight: 600;
  fill: var(--ink); letter-spacing: .04em;
}
.bl-lab {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; fill: var(--graphite-2);
}
.bl-ret {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; fill: var(--pen);
}
.beta-loop-cap {
  margin-top: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--graphite-2);
  display: flex; justify-content: center;
}

/* the same loop, in words — three quiet rows, not cards */
.beta-loop-list {
  list-style: none; margin-top: 30px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule); background: var(--stock);
}
.beta-loop-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-right: 1px solid var(--rule-soft);
}
.beta-loop-list li:last-child { border-right: 0; }
/* THE OFF-CENTER-NUMBER FIX (Jason's second review). Two causes, both here:
   (1) the old `.beta-loop-list span` selector (0,1,1) outranked `.bll-n`
   (0,1,0) and forced display:block onto the badge, silently discarding the
   flex centering — the badge selector now carries the list class so it wins,
   and the text rule below is scoped to the description spans inside the div;
   (2) the inherited line box is taller than the digits, so even a centered
   line box drew them low — line-height 1 makes the line box the glyphs. */
.beta-loop-list .bll-n {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  line-height: 1;
  color: var(--pen); border: 1.5px solid var(--pen); border-radius: 50%;
  width: 26px; height: 26px; flex: none; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 0; padding: 0; text-align: center;
}
.beta-loop-list b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.beta-loop-list div span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }

.beta-loop-hand { margin-top: 22px; font-size: 23px; transform: rotate(-0.8deg); }

/* ----------------------- 01: what memachine is ----------------------- */

.beta-what-lede {
  font-size: clamp(19px, 2vw, 24px); line-height: 1.4;
  color: var(--ink); letter-spacing: -.012em; max-width: 30em;
}
.beta-what .btn { margin-top: 22px; }

/* --------------------- 03: the producer --------------------- */

.beta-talk-wrap { max-width: 440px; }
.beta-talk-wrap .device { margin: 0; }

/* topbar CTA: real 44px tap height, same reasoning as mvp.css */
.beta-topbar .btn-sm { min-height: 44px; }

.beta-foot { padding-bottom: 44px; }

/* --------------------------- breakpoints --------------------------- */

@media (max-width: 1000px) {
  .beta-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .beta-hero-right { max-width: 640px; }
}

@media (max-width: 820px) {
  .beta-loop-list { grid-template-columns: minmax(0, 1fr); }
  .beta-loop-list li { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .beta-loop-list li:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .beta-hero { padding-block: 26px 38px; background-size: 26px 26px; }
  .beta-fig { margin-top: 14px; }
  .beta-node { padding-block: 38px; }
  .beta-handnote { margin-top: 26px; }
}
