@domandigital/craft 0.22.0 → 0.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/CHARACTER.md +134 -3
  3. package/COPY.md +10 -3
  4. package/PRINCIPLES.md +9 -0
  5. package/README.md +6 -0
  6. package/design-review.schema.json +156 -0
  7. package/dist/{audit-LQ2TDISV.js → audit-CDMZ6JHT.js} +3 -3
  8. package/dist/audit.cjs +258 -10
  9. package/dist/audit.js +258 -10
  10. package/dist/{chunk-6DRBFDWT.js → chunk-D6TAYXOS.js} +1 -1
  11. package/dist/{chunk-G47ZCBD5.js → chunk-IAU4ZAIU.js} +2 -2
  12. package/dist/{chunk-RBQCGDQQ.js → chunk-ICEG4S56.js} +5 -5
  13. package/dist/{chunk-ZS7PQNJU.js → chunk-JT2NLOQI.js} +4 -4
  14. package/dist/{chunk-6PZG4MJS.js → chunk-KH56TEFK.js} +5 -5
  15. package/dist/{chunk-DE2ZAV4G.js → chunk-MLYHSPF7.js} +166 -3
  16. package/dist/{chunk-ONA73THJ.js → chunk-NV6FKMID.js} +93 -8
  17. package/dist/{chunk-OVWVKMPS.js → chunk-WTR77PEM.js} +14 -14
  18. package/dist/{cli-T7A3BU5J.js → cli-223CUNU3.js} +9 -9
  19. package/dist/{cli-7DL4BKA7.js → cli-3QV4FKM4.js} +6 -6
  20. package/dist/{cli-SZ4SZLUN.js → cli-4PXDNTZX.js} +4 -4
  21. package/dist/{cli-7QL26YPR.js → cli-6SMNHOCJ.js} +1 -1
  22. package/dist/{cli-AM4FLXGM.js → cli-7PPDBN6N.js} +5 -5
  23. package/dist/{cli-WZA5IXSR.js → cli-CQUORKMC.js} +6 -6
  24. package/dist/{cli-YNIJOEJK.js → cli-FKWJF4V4.js} +3 -3
  25. package/dist/{cli-R2HBESHI.js → cli-IQ5U76AZ.js} +5 -5
  26. package/dist/cli.js +3 -3
  27. package/dist/index.cjs +261 -10
  28. package/dist/index.d.cts +49 -3
  29. package/dist/index.d.ts +49 -3
  30. package/dist/index.js +260 -10
  31. package/dist/{viewports-cli-F7KJIVZL.js → viewports-cli-H6UIUMBC.js} +3 -3
  32. package/package.json +1 -1
  33. package/word-lists.json +11 -2
package/dist/audit.cjs CHANGED
@@ -228,7 +228,17 @@ var REVIEW_PHRASES = [
228
228
  "by far the most",
229
229
  "hands down the",
230
230
  "arguably the best",
231
- "bar none"
231
+ "bar none",
232
+ // "plain" as a self-description, the way "clear" is: say what the reader gets.
233
+ "plain answer",
234
+ "plain answers",
235
+ "plain recommendation",
236
+ "plain explanation",
237
+ "plain explanations",
238
+ "plain advice",
239
+ "plain guidance",
240
+ "plain-speaking",
241
+ "plain speaking"
232
242
  ];
233
243
  var SALES_TAGLINES = [
234
244
  /\bwhere it (?:really |truly )?(?:counts|matters)(?: most)?\b/i,
@@ -284,6 +294,34 @@ var CLIPPED = [
284
294
  // "Alright Carlo, built you a proper site": the "I" left out
285
295
  /(?<=^|[\n>"“]|[.!?—–-]\s*|,\s+)(?:[Bb]uilt|[Mm]ade|[Pp]ut together|[Kk]nocked up)\s+(?:you|your\s+\w+|the\s+\w+)\s+an?\b/
286
296
  ];
297
+ var PLAIN_FAMILY = [
298
+ /\b(?:plain english|explained plainly|plainly explained)\b/i,
299
+ /\bplainly\b(?!\s+marked\b)/i,
300
+ /\bin\s+plain\s+(?:terms|language|words|speak)\b/i
301
+ ];
302
+ var CONFESSION = [
303
+ // "What this is and is not:", "what we are and aren't"
304
+ /\bwhat\s+(?:this|it|we|our\s+\w+)\s+(?:is|are)\s+and\s+(?:is\s+not|isn['’]t|are\s+not|aren['’]t)\b/i,
305
+ // "What we are not", a label on its own; not "what we are not responsible for"
306
+ /(?<!\band\s)\bwhat\s+we(?:\s+are|['’]re)\s+not\b(?!\s+(?:responsible|liable|able|allowed|sure)\b)/i,
307
+ /\bwhat\s+we\s+(?:don['’]t|do\s+not)\s+do\b/i,
308
+ // "We have not yet built and run", "we haven't yet worked with"
309
+ /\bwe(?:\s+have|['’]ve)\s+not\s+yet\s+(?:built|run|done|worked|delivered|shipped|launched)\b/i,
310
+ /\bwe\s+haven['’]t\s+(?:yet\s+)?(?:built|run|done|worked\s+with|delivered)\b/i,
311
+ /\bwhat\s+we\s+have\s+and\s+(?:haven['’]t|have\s+not)\s+(?:done|built|run)\b/i,
312
+ // "Our clinic experience so far is one practice"
313
+ /\bour\s+(?:[\w-]+\s+){0,3}experience\s+so\s+far\s+(?:is|has\s+been|covers)\b/i,
314
+ /\bso\s+far\s+(?:is|has\s+been)\s+(?:one|a\s+single|just\s+one)\b/i,
315
+ /\bwhere\s+our\s+experience\s+(?:applies|ends|stops|runs\s+out)\b/i,
316
+ /\bwhat\s+we\s+(?:would|['’]d|will|still)\s+need\s+to\s+learn\b/i,
317
+ // "what we would and wouldn't take on", "what we won't take on"
318
+ /\b(?:would|will)\s+and\s+(?:wouldn['’]t|would\s+not|won['’]t|will\s+not)\s+take\s+on\b/i,
319
+ /\bwhat\s+we\s+(?:won['’]t|wouldn['’]t|would\s+not|will\s+not)\s+take\s+on\b/i,
320
+ // "Who we don't work with", "who this is not for", "we're not for everyone"
321
+ /\bwho\s+we\s+(?:don['’]t|do\s+not|won['’]t|will\s+not)\s+(?:work\s+with|serve|help|take\s+on)\b/i,
322
+ /\bwho\s+(?:this|it|we)\s+(?:is|are|['’]re)\s+not\s+for\b|\bwho\s+(?:this|it)\s+isn['’]t\s+for\b/i,
323
+ /\b(?:we|this)\s+(?:are|is|['’]re|['’]s)\s+not\s+(?:for\s+everyone|the\s+right\s+fit\s+for)\b/i
324
+ ];
287
325
  var NEGATION = [
288
326
  // "It's not just a haircut, it's an experience."
289
327
  /\b(?:it['’]?s|it is|this is|this isn['’]t|we['’]re|we are|they['’]re)\s+(?:not|more than)\s+(?:just|only|merely|simply)?\s*[^.!?\n]{1,60}?[,;.—-]\s*(?:it['’]?s|it is|this is|we['’]re|we are|they['’]re)\b/i,
@@ -413,12 +451,25 @@ var COPY_TELLS = [
413
451
  generation: 2,
414
452
  severity: "warn",
415
453
  surface: "copy",
416
- why: "Told to avoid jargon, a model announces that it is avoiding jargon. 'Explained plainly' swaps a synonym and keeps the tell.",
417
- fix: "Use the house replacement, 'properly explained', or drop the claim and let the copy show it.",
418
- detect: phrases([/\b(?:plain english|explained plainly|plainly explained)\b/i], quoted),
454
+ why: "Told to avoid jargon, a model announces that it is avoiding jargon: 'in plain English', 'stated plainly', 'we'll tell you plainly', 'in plain terms'. The founder bans the whole family (20 October 2026); a reader takes it as filler.",
455
+ fix: "Drop the adverb and say the thing: 'Our prices, stated plainly' becomes 'Our prices'. Where the claim matters, the house replacement for 'plain English' is 'properly explained'.",
456
+ detect: phrases(PLAIN_FAMILY, quoted),
419
457
  fixtures: {
420
- flag: [f("content/home.md", "Your options, in plain English.")],
421
- pass: [f("content/home.md", "Your options, properly explained.")]
458
+ flag: [
459
+ f("content/home.md", "Your options, in plain English."),
460
+ // Eunice Ordor's draft lines, Pastel 986559 #12 and #13 (her diagnosis taken, her wording not).
461
+ f("content/clinics.md", "Tell us what's happening and we'll say plainly what we would take on."),
462
+ f("content/pricing.md", "DD's payment terms, plainly stated."),
463
+ f("content/clinics.md", "We explain our findings in plain terms."),
464
+ f("content/clinics.md", "We share findings in plain language.")
465
+ ],
466
+ pass: [
467
+ f("content/home.md", "Your options, properly explained."),
468
+ f("content/pricing.md", "Our payment terms: 30% when you sign, the rest at launch."),
469
+ // The Apache and zlib licence wording, copied into a repo as it is.
470
+ f("LICENSE.txt", "Altered source versions must be plainly marked as such."),
471
+ f("content/menu.md", "Plain or seeded bagels, and plain-language allergen notes.")
472
+ ]
422
473
  }
423
474
  },
424
475
  {
@@ -469,11 +520,11 @@ var COPY_TELLS = [
469
520
  generation: 1,
470
521
  severity: "warn",
471
522
  surface: "copy",
472
- why: "Truly, genuinely, clear, ultimately, 'the single most', 'bar none': normal English once, and a tell when they stack. The house rules keep them for review, never blocking.",
523
+ why: "Truly, genuinely, clear, ultimately, 'a plain recommendation', 'the single most', 'bar none': normal English once, and a tell when they stack. The house rules keep them for review, never blocking.",
473
524
  fix: "Keep the one that lands hardest and cut the rest. 'What is genuinely excellent' reads better as 'what is excellent'.",
474
525
  detect: phrases([new RegExp(`(?:^|\\b)(?:${[...REVIEW_PHRASES].sort((a, b) => b.length - a.length).map((p) => escape(p).replace(/^(\w)/, "\\b$1").replace(/(\w)$/, "$1\\b")).join("|")})`, "i")], quoted),
475
526
  fixtures: {
476
- flag: [f("content/home.md", "We are truly proud of it."), f("content/home.md", "You leave with a clear next step.")],
527
+ flag: [f("content/home.md", "We are truly proud of it."), f("content/home.md", "You leave with a clear next step."), f("content/process.md", "You get a plain recommendation and someone who knows your systems.")],
477
528
  pass: [f("content/home.md", "We have fitted 400 boilers since 2009."), f("content/home.md", "Keep a safe clearance around the meter.")]
478
529
  }
479
530
  },
@@ -554,6 +605,40 @@ var COPY_TELLS = [
554
605
  ]
555
606
  }
556
607
  },
608
+ {
609
+ id: "confession-line",
610
+ name: "Confession line",
611
+ generation: 2,
612
+ severity: "warn",
613
+ surface: "copy",
614
+ why: "'What this is and is not', 'we have not yet built', 'our experience so far is one practice', 'what we would and wouldn't take on': a model scopes a business by confessing its limits. It reads as small print, and it turns a buyer away before they make contact.",
615
+ fix: "Scope by being precise about what is true, and leave the door open: 'Built and run by us for Sensphere, a practice whose clinicians work across several sites.' Keep contractual facts (eligibility, who runs what) and say them as what the buyer gets.",
616
+ detect: phrases(CONFESSION, quoted),
617
+ fixtures: {
618
+ flag: [
619
+ // Each one from the DD site, as Eunice Ordor flagged it (Pastel 986559 #8, #12, #13).
620
+ f("content/clinics.md", "What this is and is not: a practice portal we built and run for one practice."),
621
+ f("content/clinics.md", "We have not yet built and run the digital systems of a practice with several clinicians."),
622
+ f("content/home.md", "Including the client portal we run for Sensphere. Our clinic experience so far is one practice."),
623
+ f("content/clinics.md", "Tell us what's happening and we'll say what we would and wouldn't take on."),
624
+ f("content/clinics.md", "We will say what carries over from this work and what we would need to learn first."),
625
+ f("content/clinics.md", "We will tell you where our experience applies directly and where it is close."),
626
+ f("content/about.md", "What we are not"),
627
+ f("content/about.md", "Who we don't work with: anyone who needs a site this week."),
628
+ f("content/mobile.md", "Mobile is our newest line, so we tell you what we have and haven't done.")
629
+ ],
630
+ pass: [
631
+ f("content/clinics.md", "Built and run by us for Sensphere, a growing practice whose clinicians work remotely."),
632
+ f("content/home.md", "The client portal we run for Sensphere."),
633
+ // Contractual facts, said as they are.
634
+ f("content/pricing.md", "Pay monthly is open to UK residents aged 18 and over, subject to status."),
635
+ f("content/pricing.md", "Your monthly payments do not buy the site; the buy-out price does."),
636
+ f("content/terms.md", "What we are responsible for, and what we are not responsible for, is in clause 4."),
637
+ f("content/insurance.md", "Ask what your policy does and does not cover."),
638
+ f("emails/deposit.md", "We have not yet received your deposit, so the date is still open.")
639
+ ]
640
+ }
641
+ },
557
642
  {
558
643
  id: "hollow-imperative",
559
644
  name: "Hollow imperative",
@@ -1955,6 +2040,69 @@ function eyebrowChipHits(ctx) {
1955
2040
  }
1956
2041
  return hits;
1957
2042
  }
2043
+ var HERO_OPEN = /<(section|header|div|main|article|Section|Container)\b[^>]*?\b(?:class|className|id)\s*=\s*(?:"|'|\{\s*[`"']?)[^"'`>]*?(?<![a-z])hero(?![a-z])[^>]*>/gi;
2044
+ function closeOf(text, tag, from) {
2045
+ const re = new RegExp(`<(/?)${tag}\\b[^>]*?(/?)>`, "g");
2046
+ re.lastIndex = from;
2047
+ let depth = 0;
2048
+ for (let m = re.exec(text); m; m = re.exec(text)) {
2049
+ if (m[2] === "/") continue;
2050
+ depth += m[1] === "/" ? -1 : 1;
2051
+ if (depth === 0) return m.index + m[0].length;
2052
+ if (m.index - from > 8e3) break;
2053
+ }
2054
+ return Math.min(text.length, from + 4e3);
2055
+ }
2056
+ function heroSpans(path, text) {
2057
+ if (/(?:^|[\\/])[\w-]*hero[\w-]*\.(?:astro|tsx|jsx|vue|svelte)$/i.test(path)) return [[0, text.length]];
2058
+ const spans = [];
2059
+ for (const m of text.matchAll(HERO_OPEN)) {
2060
+ const at = m.index ?? 0;
2061
+ if (spans.some(([a, b]) => at >= a && at < b)) continue;
2062
+ spans.push([at, closeOf(text, m[1], at)]);
2063
+ }
2064
+ if (spans.length > 0) return spans;
2065
+ const h1 = text.search(/<h1\b/);
2066
+ if (h1 === -1) return [];
2067
+ const rest = text.slice(h1);
2068
+ const end = rest.search(/<\/(?:section|header)>|<section\b/);
2069
+ return [[h1, h1 + Math.min(end === -1 ? rest.length : end, 1500)]];
2070
+ }
2071
+ var CONTROL = /<(a|button|Button|ButtonLink|LinkButton|Link|Cta|CTA|CallToAction)\b([^>]*)>([\s\S]{0,300}?)<\/\1>/g;
2072
+ var BUTTON_COMPONENT = /^(?:Button|ButtonLink|LinkButton|Cta|CTA|CallToAction)$/;
2073
+ var BUTTON_CLASS = /(?<![a-z])(?:btn|button|cta)(?![a-z])/i;
2074
+ var TOGGLE = /\baria-(?:expanded|controls|haspopup)\b|\btype\s*=\s*["']submit["']/;
2075
+ var NOT_A_LANDING = /(?:^|[\\/])(?:error|global-error|not-found|404|500)\.\w+$|[\\/](?:admin|portal|dashboard|account|\(qa\)|\(app\)|qa)[\\/]/i;
2076
+ function buttonLabel(attrs, inner) {
2077
+ const text = inner.replace(/<[^>]*>/g, " ").replace(/\{[^}]*\}/g, " ").replace(/\s+/g, " ").trim();
2078
+ if (text && !/[{}()=]/.test(text)) return text.slice(0, 40);
2079
+ return attrs.match(/\bhref\s*=\s*["'{`$]*\{?([^"'}`\s]+)/)?.[1] ?? "a button";
2080
+ }
2081
+ function heroCtaPairHits(ctx) {
2082
+ const hits = [];
2083
+ for (const file of ctx.files) {
2084
+ if (file.kind !== "markup" || NOT_A_LANDING.test(file.path)) continue;
2085
+ const text = file.text.replace(/\\"/g, ' "');
2086
+ for (const [start, end] of heroSpans(file.path, text)) {
2087
+ const span = text.slice(start, end).replace(/<(nav|form)\b[\s\S]*?<\/\1>/gi, (s) => " ".repeat(s.length));
2088
+ const buttons = [];
2089
+ for (const m of span.matchAll(CONTROL)) {
2090
+ const [, tag, attrs, inner] = m;
2091
+ if (TOGGLE.test(attrs)) continue;
2092
+ const cls = attrs.match(/\b(?:class|className|variant)\s*=\s*(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})/g)?.join(" ") ?? "";
2093
+ const tw = /\bpx-\d/.test(cls) && /\bpy-\d/.test(cls) && /\b(?:bg-|border\b|border-|rounded)/.test(cls);
2094
+ if (BUTTON_COMPONENT.test(tag) || BUTTON_CLASS.test(cls) || tw || /\brole\s*=\s*["']button["']/.test(attrs)) {
2095
+ buttons.push({ label: buttonLabel(attrs, inner), offset: start + (m.index ?? 0) });
2096
+ }
2097
+ }
2098
+ if (buttons.length >= 2) {
2099
+ const names = buttons.slice(0, 3).map((b) => `"${b.label}"`).join(", ");
2100
+ hits.push({ path: file.path, offset: buttons[1].offset, message: `${buttons.length} buttons side by side in the hero: ${names}` });
2101
+ }
2102
+ }
2103
+ }
2104
+ return hits;
2105
+ }
1958
2106
  function iconTiles(file) {
1959
2107
  return file.classUnits.filter((unit) => {
1960
2108
  const sized = has(unit, /^size-(?:8|9|10|11|12|14)$/) || (find(unit, /^h-(?:8|9|10|11|12|14)$/) ?? "x").slice(2) === (find(unit, /^w-(?:8|9|10|11|12|14)$/) ?? "y").slice(2);
@@ -2405,6 +2553,75 @@ const inter = Inter({ subsets: ["latin"] });`),
2405
2553
  <span className="inline-flex rounded-full border px-3 py-1 text-xs">Tag</span>`)]
2406
2554
  }
2407
2555
  },
2556
+ {
2557
+ id: "hero-cta-pair",
2558
+ name: "Two buttons in the hero",
2559
+ generation: 1,
2560
+ severity: "warn",
2561
+ surface: "source",
2562
+ why: "A filled button beside an outline or ghost one ('Get a free quote' / 'See our plans') is in 140 of 140 heroes Claude builds for a brief. Two equal asks make the visitor choose before they know anything, and say nobody decided what the page is for.",
2563
+ fix: "Keep one button, the ask the page exists for. Put the second route in the copy as a text link ('or see the work first'), or lower down where it answers a question.",
2564
+ detect: heroCtaPairHits,
2565
+ fixtures: {
2566
+ flag: [
2567
+ // Eunice Ordor's #5 and #36 (Pastel 986559): the DD site's own hero and process close.
2568
+ f3(
2569
+ "src/components/Hero.astro",
2570
+ `<section class="hero">
2571
+ <h1>We run the systems behind your website</h1>
2572
+ <a href="/contact" class="btn btn-primary">Get in touch</a>
2573
+ <a href="/work" class="btn btn-ghost">See our work</a>
2574
+ </section>`
2575
+ ),
2576
+ // The null build's hero, verbatim in shape (calibration/null/rmp/pages/05.html).
2577
+ f3(
2578
+ "index.html",
2579
+ `<nav><a class="btn" href="#contact">Quote</a></nav>
2580
+ <section id="hero" class="hero">
2581
+ <h1>Electricians in Uxbridge</h1>
2582
+ <a href="#contact" class="btn btn-primary">Book a Free Quote</a>
2583
+ <a href="tel:+441895555210" class="btn btn-outline">Call 01895 555 210</a>
2584
+ </section>`
2585
+ ),
2586
+ f3(
2587
+ "app/page.tsx",
2588
+ `<section className="relative py-24">
2589
+ <h1 className="text-5xl">Nails in Brackley</h1>
2590
+ <div className="flex gap-4">
2591
+ <Button asChild><a href="/book">Book now</a></Button>
2592
+ <Button variant="outline">View treatments</Button>
2593
+ </div>
2594
+ </section>`
2595
+ )
2596
+ ],
2597
+ pass: [
2598
+ // One button, and the second route as a text link in the sentence.
2599
+ f3(
2600
+ "src/components/Hero.astro",
2601
+ `<section class="hero">
2602
+ <h1>We run the systems behind your website</h1>
2603
+ <p>Tell us what's going on, or <a href="/work">see the work first</a>.</p>
2604
+ <a href="/contact" class="btn btn-primary">Get in touch</a>
2605
+ </section>`
2606
+ ),
2607
+ // A button in the nav and a search form are not the hero's ask.
2608
+ f3(
2609
+ "index.html",
2610
+ `<header class="hero">
2611
+ <nav><a class="btn" href="/book">Book</a></nav>
2612
+ <h1>Barbers in Manchester</h1>
2613
+ <a class="btn" href="/book">Book a cut</a>
2614
+ <form><button class="btn" type="submit">Search</button></form>
2615
+ </header>`
2616
+ ),
2617
+ f3("app/page.tsx", `<section className="py-24">
2618
+ <h1 className="text-5xl">Nails in Brackley</h1>
2619
+ <a className="rounded bg-ink px-5 py-3" href="/book">Book now</a>
2620
+ </section>
2621
+ <section><a className="rounded bg-ink px-5 py-3" href="/prices">Prices</a></section>`)
2622
+ ]
2623
+ }
2624
+ },
2408
2625
  {
2409
2626
  id: "icon-tile-stack",
2410
2627
  name: "Icon in a tinted tile",
@@ -3158,7 +3375,9 @@ var HOUSE = {
3158
3375
  "no-x-badge": { tier: "block", label: 'standalone "No X" badge. Reads as a slapped-on kicker, and worse when reused across pieces' },
3159
3376
  "ai-phrase": { tier: "block", label: "AI tell" },
3160
3377
  "plainer-word": { tier: "block", label: "a plainer word exists. Name the mechanism instead" },
3161
- "plain-english": { tier: "block", label: 'use "properly explained"' },
3378
+ // Widened 2026-10-20 (founder) to bare "plainly" and "in plain terms/language/words";
3379
+ // estate hits read first (DOM-1058), nearly all the stock "stated plainly".
3380
+ "plain-english": { tier: "block", label: 'the plain-English family. Drop the adverb and say the thing, or use "properly explained"' },
3162
3381
  buzzword: { tier: "block", label: "forbidden phrase" },
3163
3382
  "negative-reassurance": { tier: "block", label: "negative reassurance, say what they get" },
3164
3383
  // Evidence of a pasted chat reply, not a matter of style. Moved from review
@@ -3172,6 +3391,8 @@ var HOUSE = {
3172
3391
  "stock-email-line": { tier: "review", label: "stock email line, start with the reason for writing and end with the next step" },
3173
3392
  // New 2026-10-19 (founder): review first, like every new tell, until estate hits are read.
3174
3393
  "matey-register": { tier: "review", label: "matey register, write plain and complete British English" },
3394
+ // New 2026-10-20 (founder, from Eunice Ordor's review): review first, like every new tell.
3395
+ "confession-line": { tier: "review", label: "confession line, scope the work by saying precisely what is true" },
3175
3396
  "ai-vocabulary": { tier: "review", label: "AI vocabulary" },
3176
3397
  "stock-phrase": { tier: "review", label: "stock phrase" },
3177
3398
  "hollow-imperative": { tier: "review", label: "hollow imperative" },
@@ -3397,6 +3618,33 @@ var RENDERED_PATHS = {
3397
3618
  detect: (s) => s.effects.eyebrowChip ? [hit(s, "a small bordered pill sits above the headline")] : [],
3398
3619
  fixtures: { flag: [makeSnapshot({ effects: { eyebrowChip: true } })], pass: [makeSnapshot()] }
3399
3620
  },
3621
+ "hero-cta-pair": {
3622
+ // Version 2 geometry counts buttons and button-styled links per section. A
3623
+ // header painted inside the hero's box adds its own button, which the
3624
+ // source path can tell apart and this one cannot; a ghost button with no
3625
+ // fill or border is not counted, so this path under-reports.
3626
+ detect: (s) => {
3627
+ const first = s.sections[0];
3628
+ const controls = first?.geometry?.controls ?? 0;
3629
+ return first && (first.role ?? first.kind) === "hero" && controls >= 2 ? [hit(s, `${controls} buttons in the hero`, first.label)] : [];
3630
+ },
3631
+ fixtures: {
3632
+ flag: [
3633
+ {
3634
+ ...makeSnapshot(),
3635
+ sections: makeSnapshot().sections.map((x, i) => i === 0 ? { ...x, role: "hero", geometry: { centredShare: 0.2, mirrorSymmetry: 0.6, whitespaceRatio: 0.6, contentWidthRatio: 0.8, background: "rgb(255, 255, 255)", controls: 2 } } : x)
3636
+ }
3637
+ ],
3638
+ pass: [
3639
+ makeSnapshot(),
3640
+ // One button, with the second route as a text link: one control.
3641
+ {
3642
+ ...makeSnapshot(),
3643
+ sections: makeSnapshot().sections.map((x, i) => i === 0 ? { ...x, role: "hero", geometry: { centredShare: 0.2, mirrorSymmetry: 0.6, whitespaceRatio: 0.6, contentWidthRatio: 0.8, background: "rgb(255, 255, 255)", controls: 1 } } : x)
3644
+ }
3645
+ ]
3646
+ }
3647
+ },
3400
3648
  "icon-tile-grid": {
3401
3649
  detect: (s) => s.sections.filter((x) => x.cards >= 3 && x.iconCards >= 3).map((x) => hit(s, `${x.iconCards} icon cards in a row`, x.label)),
3402
3650
  fixtures: {
@@ -3913,7 +4161,7 @@ var IMAGERY_TELLS = [
3913
4161
  ];
3914
4162
 
3915
4163
  // src/character/check.ts
3916
- var CATALOGUE_VERSION = "2026.10.4";
4164
+ var CATALOGUE_VERSION = "2026.10.5";
3917
4165
  var CATALOGUE = [
3918
4166
  ...[...SOURCE_TELLS, ...COPY_TELLS, ...RESEARCH_TELLS, ...DENSITY_TELLS].map((t) => RENDERED_PATHS[t.id] ? { ...t, rendered: RENDERED_PATHS[t.id] } : t),
3919
4167
  ...SPECIFICITY_COPY_TELLS,