/* The Protein Number — Slab's lead magnet. Three doors, one room.
   Generated pages: protein-to-lose-fat, protein-to-build-muscle,
   protein-on-a-glp1. See build/generate.py.

   This file is HAND-MAINTAINED, like styles.css and modal.js. The generator
   only ever writes .html.

   The page speaks THIS site's language — cream, ink rules, hard shadows,
   Space Grotesk. The one exception is the stack drawing, which carries Slab's
   six food-family colours: those are the product's actual output, not
   decoration, and the whole point of the page is that the answer looks like
   the app that gives it. */

.pn { max-width: 760px; margin: 0 auto; padding: 0 20px 96px; }
.pn h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.1; margin: 48px 0 16px; }
.pn h3 { font-size: clamp(19px, 2.4vw, 24px); margin: 34px 0 12px; }
.pn p { line-height: 1.65; }

/* ── the opener ─────────────────────────────────────────────── */
.pn-top { padding: 40px 0 8px; }
.pn-top h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.02; margin: 0 0 18px; }
.pn-lede p { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 0 0 10px; }
.pn-lede strong { color: var(--ink); }

/* ── the calculator ─────────────────────────────────────────── */
.pn-calc {
  border: 2px solid var(--ink); border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-sm); padding: 24px; margin: 28px 0 24px;
}
.pn-field + .pn-field { margin-top: 22px; }
.pn-field label, .pn-label {
  display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px;
}
.pn-weight { display: flex; gap: 10px; flex-wrap: wrap; }
.pn-weight input {
  flex: 1 1 140px; min-width: 0; font: inherit; font-size: 26px; font-weight: 700;
  padding: 10px 14px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--cream); color: var(--ink);
}
.pn-weight input:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.pn-units { display: flex; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.pn-units button {
  font: inherit; font-weight: 700; font-size: 14px; letter-spacing: .06em;
  padding: 0 18px; border: 0; background: var(--cream); color: var(--muted); cursor: pointer;
}
.pn-units button + button { border-left: 2px solid var(--ink); }
.pn-units button.is-on { background: var(--ink); color: var(--cream); }

.pn-goals { display: grid; gap: 8px; }
@media (min-width: 560px) { .pn-goals { grid-template-columns: 1fr 1fr; } }
.pn-goal {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 10px; padding: 11px 13px;
  background: var(--cream); font-size: 15px; font-weight: 500;
}
.pn-goal input { accent-color: var(--coral); width: 17px; height: 17px; margin: 0; }
.pn-goal:has(input:checked) { background: var(--coral-tint); box-shadow: var(--shadow-xs); }
.pn-goal:has(input:focus-visible) { outline: 3px solid var(--coral); outline-offset: 2px; }
.pn-hint { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; }

/* ── the answer ─────────────────────────────────────────────── */
.pn-answer {
  border: 2px solid var(--ink); border-radius: 14px; background: var(--coral-tint);
  box-shadow: var(--shadow-sm); padding: 26px; margin-bottom: 8px;
}
.pn-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 6px;
}
.pn-big { font-size: clamp(46px, 11vw, 78px); font-weight: 700; line-height: .95; margin: 0;
          font-variant-numeric: tabular-nums; }
.pn-big .pn-unit { font-size: .34em; font-weight: 600; }
.pn-sub { font-size: 15px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.pn-sub strong { color: var(--ink); }

/* the stack — Slab's own drawing, Slab's own colours */
/* Top padding is clearance for the target label, not spacing. The line sits
   at the target and the stack goes ~4% past it, so without room above the
   label lands on the top block. */
.pn-stack { position: relative; margin: 26px 0 0; padding: 26px 0 0; }
.pn-blocks { display: flex; flex-direction: column-reverse; gap: 4px; }
.pn-block {
  border-radius: 8px; position: relative; min-height: 15px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 11px; font-size: 12.5px; font-weight: 600; color: #1A1712;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.13);
}
.pn-block .g { font-variant-numeric: tabular-nums; font-weight: 700; }
.pn-block .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.pn-block.is-small { font-size: 0; }
.pn-target { position: absolute; left: -6px; right: -6px; border-top: 3px solid var(--ink); }
.pn-target span {
  position: absolute; right: 0; top: -23px; font-size: 10px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}
.pn-caption { font-size: 13.5px; color: var(--muted); margin: 14px 0 34px; line-height: 1.5; }
.pn-more { display: inline-block; margin-top: 4px; color: var(--ink); font-weight: 600; text-decoration: underline; }

/* ── the argument ───────────────────────────────────────────── */
.pn-body p { margin: 0 0 14px; }
.pn-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
.pn-table th, .pn-table td { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.pn-table th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pn-table .pn-num { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pn-table tr[data-goal].is-yours { background: var(--coral-tint); }
.pn-note { font-size: 14.5px; color: var(--muted); }
.pn-pull {
  margin: 26px 0; padding: 18px 22px; border-left: 6px solid var(--coral);
  background: #fff; border-radius: 0 12px 12px 0; font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 700; line-height: 1.25;
}
.pn-sources { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ── the close ──────────────────────────────────────────────── */
.pn-close {
  border: 2px solid var(--ink); border-radius: 14px; background: #fff;
  box-shadow: var(--shadow); padding: 30px; margin-top: 52px;
}
.pn-close h2 { margin-top: 0; }
.pn-sell { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.pn-sell li { font-size: 15.5px; color: var(--muted); }
.pn-sell strong { color: var(--ink); }
.pn-guarantee {
  font-weight: 700; font-size: clamp(17px, 2.3vw, 21px); line-height: 1.3;
  border-top: 2px solid var(--ink); padding-top: 20px; margin: 24px 0 22px;
}
.pn-cta { margin: 0; }
.pn-fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.pn-disclaimer { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 34px 0 0; }

@media (prefers-reduced-motion: reduce) { .pn * { transition: none !important; } }
