/* OneJob design system: "Press".
   A two-ink risograph print shop: fluorescent orange and blue on off-white
   paper, Anybody for display type, Atkinson Hyperlegible for reading.
   Every page uses these tokens. Printed output (bingo cards, Bunco sheets)
   does not: it keeps its own colours and type, see "printed output" below. */

/* ---------- fonts (self-hosted, SIL Open Font License, see /lib/fonts/) ---------- */
@font-face {
  font-family: "Anybody";
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 50% 150%;
  font-display: swap;
  src: url("/lib/fonts/anybody-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/lib/fonts/atkinson-hyperlegible-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/lib/fonts/atkinson-hyperlegible-700-latin.woff2") format("woff2");
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  /* Inks and paper. Text pairs checked at 4.5:1 or better:
     ink, ink-2 and blue-text on paper and sheet; sheet on ink and blue-text;
     ink on orange; orange-text on paper and sheet; on-ink and on-ink-2 on ink. */
  --paper: #edeee9;        /* the stock everything is printed on */
  --sheet: #fbfbf8;        /* a fresh sheet lying on the paper */
  --ink: #1c1d22;          /* black ink: text, rules, primary buttons */
  --ink-2: #474952;        /* secondary text */
  --blue: #0078bf;         /* riso blue: large type, fills, focus ring */
  --blue-text: #0062a0;    /* riso blue for small text */
  --blue-light: #2e9bda;   /* blue on the dark section, decorative */
  --orange: #ff6c2f;       /* fluorescent orange: fills, dabs, highlights */
  --orange-text: #a33508;  /* orange for small text and stamps */
  --rule-soft: #8a8c93;    /* dashed perforations, decorative */
  --on-ink: #edeee9;       /* text on black ink */
  --on-ink-2: #c9cbd1;     /* secondary text on black ink */
  --good: #1d6b44;
  --warn: #a33508;

  /* Type */
  --font-display: "Anybody", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --stretch-poster: 58%;   /* hero headline */
  --stretch-head: 62%;     /* section headings */
  --stretch-narrow: 80%;
  --stretch-wide: 120%;    /* labels and eyebrows */
  --stretch-xwide: 130%;   /* wordmark */
  --text-xs: 13px;
  --text-sm: 15px;
  --text-md: 17px;
  --text-lg: 19px;
  --text-xl: 22px;
  --text-2xl: 30px;
  --text-3xl: clamp(34px, 4vw, 54px);
  --text-4xl: clamp(48px, 7vw, 104px);
  --text-hero: clamp(64px, 10.4vw, 158px);
  --text-tool: clamp(44px, 6vw, 84px);
  --leading-tight: 0.86;
  --leading-body: 1.55;
  --tracking-label: 0.12em;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 104px;
  --gutter: 24px;
  --page-max: 1320px;
  --tool-max: 1200px;
  --measure: 62ch;
  --tap: 44px;             /* smallest touch target */

  /* Shape */
  --radius: 2px;           /* ink corners are near square */
  --radius-round: 999px;
  --rule: 2px solid var(--ink);
  --rule-dashed: 2px dashed var(--rule-soft);
  --shadow-sheet: 0 1px 0 rgb(28 29 34 / 0.12), 0 20px 30px -24px rgb(28 29 34 / 0.45);
  --shadow-lift: 0 1px 0 rgb(28 29 34 / 0.12), 0 30px 40px -24px rgb(28 29 34 / 0.45);
  --shadow-offset: 6px 6px 0 var(--orange);
  --focus-ring: 3px solid var(--blue);

  /* Textures */
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .1 0 0 0 0 .12 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-dots-orange: radial-gradient(circle, var(--orange) 34%, transparent 37%) 0 0 / 14px 14px;
  --tex-dots-blue: radial-gradient(circle, var(--blue) 30%, transparent 33%) 0 0 / 10px 10px;
  --tex-dots-paper: radial-gradient(circle, rgb(251 251 248 / 0.35) 30%, transparent 33%) 0 0 / 10px 10px;

  /* Motion */
  --ease-press: cubic-bezier(0.2, 0.9, 0.2, 1);
  --ease-feed: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-quick: 0.2s;
  --dur-card: 0.35s;
  --dur-shift: 0.45s;
  --dur-feed: 1.2s;
  --dur-register: 1.6s;
  --dur-roll: 26s;

  /* Older names, kept so shared and template code keeps working. */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-2);
  --line: var(--ink);
  --panel: var(--sheet);
  --accent: var(--blue-text);
  --accent-fg: var(--sheet);
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-md); line-height: var(--leading-body);
  overflow-x: hidden;
}
/* Paper grain over the whole page, like ink sitting in uncoated stock. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: var(--tex-grain); mix-blend-mode: multiply; opacity: 0.4;
}
a { color: var(--ink); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--blue-text); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: var(--focus-ring); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shared type styles, applied by class so printed output never picks them up. */
.display { font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch-head); line-height: var(--leading-tight); text-transform: uppercase; letter-spacing: -0.005em; margin: 0; }
.label, .eyebrow {
  font-family: var(--font-display); font-weight: 700; font-stretch: var(--stretch-wide);
  font-size: var(--text-xs); letter-spacing: var(--tracking-label); text-transform: uppercase;
}
.eyebrow { margin: 0; color: var(--blue-text); font-size: 14px; }

/* ---------- masthead and footer ---------- */
.masthead { position: relative; border-bottom: var(--rule); }
.masthead-in {
  max-width: var(--page-max); margin: 0 auto; padding: var(--space-3) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-5);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch-xwide); font-size: 23px; letter-spacing: -0.02em;
}
.wordmark:hover { color: var(--ink); }
.logo { position: relative; flex: none; width: 34px; height: 34px; }
.logo-dot, .logo-sq { position: absolute; mix-blend-mode: multiply; }
.logo-dot { left: 0; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); }
.logo-sq { left: 7px; top: 0; width: 26px; height: 26px; background: var(--blue); }
.wordmark.small { font-size: 18px; }
.wordmark.small .logo { transform: scale(0.8); transform-origin: left center; margin-right: -6px; }
.topnav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-5); font-weight: 700; font-size: 16px; }
.topnav a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.topnav a:hover { text-decoration: underline; }
@media (max-width: 560px) { .topnav { gap: 0 14px; font-size: 14px; } }

.site-foot { border-top: var(--rule); margin-top: var(--space-9); }
.site-foot-in {
  max-width: var(--page-max); margin: 0 auto; padding: var(--space-5) var(--gutter) var(--space-7);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); font-size: var(--text-sm);
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.site-foot nav a { display: inline-flex; align-items: center; min-height: var(--tap); }
.site-foot p { margin: 0; color: var(--ink-2); flex-basis: 100%; }

.test-banner { position: relative; z-index: 61; background: var(--orange); color: var(--ink); text-align: center; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); font-weight: 700; border-bottom: var(--rule); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--tap); padding: 0 20px;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  border: var(--rule); border-radius: var(--radius); background: var(--sheet); color: var(--ink);
  transition: transform var(--dur-quick), box-shadow var(--dur-quick), background-color var(--dur-quick);
}
.btn:hover { color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.primary:hover { color: var(--on-ink); }
.btn.ghost { background: transparent; border-style: dashed; }
.btn.big { min-height: 58px; padding: 0 28px; font-size: 18px; }
.btn:not(:disabled):hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-offset); }
.btn:not(:disabled):active { transform: none; box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn .arrow { flex: none; }
.linkish {
  background: none; border: none; padding: 0; font: inherit; font-weight: 700; color: inherit;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; cursor: pointer;
}
.linkish:hover { color: var(--blue-text); }

/* ---------- stamps, crop marks, halftones ---------- */
/* A rubber stamp: proofs, "Unlocked", "Coming soon". */
.stamp, .badge {
  display: inline-block; padding: 4px 10px; border: 2px solid currentColor; color: var(--orange-text); background: rgb(251 251 248 / 0.86);
  font-family: var(--font-display); font-weight: 800; font-stretch: var(--stretch-wide); font-size: var(--text-xs);
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.3; transform: rotate(-4deg); white-space: nowrap;
}
.badge { color: var(--blue-text); }
/* Printer's crop marks just outside each corner of the box. */
.crop {
  --crop: var(--ink); --crop-len: 14px; --crop-gap: 18px;
  padding: var(--crop-gap);
  background:
    linear-gradient(var(--crop), var(--crop)) 0 var(--crop-gap) / var(--crop-len) 1.5px,
    linear-gradient(var(--crop), var(--crop)) var(--crop-gap) 0 / 1.5px var(--crop-len),
    linear-gradient(var(--crop), var(--crop)) 100% var(--crop-gap) / var(--crop-len) 1.5px,
    linear-gradient(var(--crop), var(--crop)) calc(100% - var(--crop-gap)) 0 / 1.5px var(--crop-len),
    linear-gradient(var(--crop), var(--crop)) 0 calc(100% - var(--crop-gap)) / var(--crop-len) 1.5px,
    linear-gradient(var(--crop), var(--crop)) var(--crop-gap) 100% / 1.5px var(--crop-len),
    linear-gradient(var(--crop), var(--crop)) 100% calc(100% - var(--crop-gap)) / var(--crop-len) 1.5px,
    linear-gradient(var(--crop), var(--crop)) calc(100% - var(--crop-gap)) 100% / 1.5px var(--crop-len);
  background-repeat: no-repeat;
}
/* L-shaped corner brackets drawn on the box itself (proof sheets). */
.corners {
  --c: var(--ink); --c-len: 18px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--c-len) 2px, linear-gradient(var(--c), var(--c)) 0 0 / 2px var(--c-len),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--c-len) 2px, linear-gradient(var(--c), var(--c)) 100% 0 / 2px var(--c-len),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--c-len) 2px, linear-gradient(var(--c), var(--c)) 0 100% / 2px var(--c-len),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--c-len) 2px, linear-gradient(var(--c), var(--c)) 100% 100% / 2px var(--c-len),
    rgb(251 251 248 / 0.45);
  background-repeat: no-repeat;
}
.dots-orange { background: var(--tex-dots-orange); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 70%); }
.dots-blue { background: var(--tex-dots-blue); -webkit-mask-image: linear-gradient(100deg, #000 10%, transparent 80%); mask-image: linear-gradient(100deg, #000 10%, transparent 80%); }
.ink { mix-blend-mode: multiply; }

/* ---------- misregistered headline ---------- */
/* Two printings of the same words: blue on top, orange underneath and a hair
   off. On load both plates slide in and settle almost in register. */
.reg { position: relative; }
.reg-b, .reg-o {
  margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch-poster);
  font-size: var(--reg-size, var(--text-tool)); line-height: var(--leading-tight); letter-spacing: -0.005em; text-transform: uppercase;
  mix-blend-mode: multiply; overflow-wrap: normal; hyphens: manual;
}
.reg-b { position: relative; color: var(--blue); animation: reg-b var(--dur-register) var(--ease-press) 0.15s both; }
.reg-o {
  position: absolute; inset: 0; color: var(--orange); pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0 34%, #000 34% 100%); mask-image: linear-gradient(180deg, transparent 0 34%, #000 34% 100%);
  animation: reg-o var(--dur-register) var(--ease-press) 0.15s both;
}
@keyframes reg-o { 0% { transform: translate(-26px, 14px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(3px, 2px); opacity: 1; } }
@keyframes reg-b { 0% { transform: translate(22px, -12px); opacity: 0; } 30% { opacity: 1; } 100% { transform: none; opacity: 1; } }

/* ---------- paper feed ticker ---------- */
.ticker { border-top: var(--rule); border-bottom: var(--rule); background: var(--blue); color: var(--sheet); overflow: hidden; }
.ticker-roll {
  display: flex; width: max-content; padding: 14px 0; margin: 0; list-style: none;
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap;
  animation: roll var(--dur-roll) linear 4;
}
.ticker:hover .ticker-roll { animation-play-state: paused; }
.ticker-roll li { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.ticker-roll li::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.ticker-roll small { font-size: 0.6em; letter-spacing: 0.12em; padding: 2px 6px; border: 2px solid currentColor; }
@keyframes roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- tool pages: layout ---------- */
.tool-page main { max-width: var(--tool-max); margin: 0 auto; padding: 0 var(--gutter); }
.tool-hero { position: relative; padding: var(--space-7) 0 var(--space-5); display: grid; gap: var(--space-4); }
.tool-hero::before {
  content: ""; position: absolute; z-index: -1; right: -4%; top: 8px; width: min(420px, 60vw); aspect-ratio: 1;
  background: var(--tex-dots-orange); opacity: 0.55; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 68%); mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 68%);
}
.tool-hero .reg { max-width: 1040px; }
.tool-hero .reg-b, .tool-hero .reg-o { text-wrap: balance; }
/* Tool headlines are shorter and must read at a glance: the whole orange plate
   sits under the blue one, a hair off, instead of overprinting it. */
.tool-hero .reg-b { z-index: 1; mix-blend-mode: normal; }
.tool-hero .reg-o { -webkit-mask-image: none; mask-image: none; mix-blend-mode: normal; }
.lede { margin: 0; max-width: var(--measure); font-size: var(--text-lg); line-height: 1.5; }
.ticks { list-style: none; padding: 0; margin: var(--space-1) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-weight: 700; font-size: 16px; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 3px -2px 0 -1px var(--blue); }

.notice { margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); border: var(--rule); border-left-width: 10px; border-radius: var(--radius); background: var(--sheet); font-weight: 700; }
.notice.good { border-left-color: var(--blue); }
.notice.warn { border-left-color: var(--orange); }
.notice p { margin: 0; }
.notice p + p { margin-top: var(--space-2); }
.notice a { overflow-wrap: anywhere; }

.studio { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: var(--space-7); margin-top: var(--space-5); align-items: start; }
@media (max-width: 900px) { .studio { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }

/* The controls: a sheet on the bed, with the blue plate printed a little off underneath. */
.panel {
  position: relative; min-width: 0; display: grid; gap: var(--space-4); padding: var(--space-5);
  background: var(--sheet); border: var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sheet);
}
.panel::before {
  content: ""; position: absolute; z-index: -1; inset: 12px -12px -12px 12px; background: var(--tex-dots-blue); opacity: 0.6; pointer-events: none;
}
@media (max-width: 560px) { .panel { padding: var(--space-4); } .panel::before { inset: 8px -6px -8px 8px; } }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; }
.field > label:not(.check), .field > .label, .field > legend {
  font-family: var(--font-display); font-weight: 800; font-stretch: 100%; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); padding: 0;
}
.field > label:not(.check) .hint, .field > legend .hint { font-family: var(--font-body); font-stretch: normal; letter-spacing: 0; text-transform: none; font-weight: 400; }
.hint { margin: 0; color: var(--ink-2); font-size: 14px; font-weight: 400; line-height: 1.45; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }

.input, .panel input[type="text"], .panel input[type="number"], .panel input[type="date"], .panel input[type="email"], .panel select, .panel textarea,
.restore-row input {
  width: 100%; min-width: 0; min-height: var(--tap); padding: 9px 12px; font: inherit; font-size: 16px; line-height: 1.4;
  border: var(--rule); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.panel select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%231c1d22' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.panel textarea { resize: vertical; }
.panel input[type="file"] { font: inherit; font-size: 15px; min-height: var(--tap); }
.panel input[type="file"]::file-selector-button { font: inherit; font-weight: 700; min-height: 40px; margin-right: 10px; padding: 0 14px; border: var(--rule); border-radius: var(--radius); background: var(--sheet); color: var(--ink); cursor: pointer; }
.check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); font-size: 16px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.check .hint { display: inline; }

/* Segmented control: the chosen option is printed in black ink with an orange plate. */
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--rule); border-radius: var(--radius); background: #fff; }
.segmented label { position: relative; display: block; }
.segmented label + label { border-left: var(--rule); }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 6px; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: 15px; letter-spacing: 0.04em; color: var(--ink);
}
.segmented input:checked + span { background: var(--ink); color: var(--orange); }
.segmented input:focus-visible + span { outline: var(--focus-ring); outline-offset: 2px; position: relative; z-index: 1; }

.preview-col { position: sticky; top: var(--space-4); display: grid; gap: var(--space-3); min-width: 0; }
@media (max-width: 900px) { .preview-col { position: static; } }
/* The preview sheet sits inside crop marks, like a proof pulled from the press. */
.proof { justify-self: center; width: min(100%, 600px); display: grid; }
.proof > .paper { width: 100%; justify-self: stretch; }
.preview-meta { margin: 0; color: var(--ink-2); font-size: var(--text-sm); text-align: center; }
.cta { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-2); }

/* ---------- the upsell: a notched ticket ---------- */
.upsell {
  position: relative; margin-top: var(--space-3); background: var(--orange); color: var(--ink); text-align: left;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; box-shadow: var(--shadow-lift); transform: rotate(-1deg);
}
.upsell::before, .upsell::after {
  content: ""; position: absolute; top: calc(50% - 14px); width: 28px; height: 28px; border-radius: 50%; background: var(--paper);
}
.upsell::before { left: -14px; }
.upsell::after { right: -14px; }
.upsell-body { padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6); display: grid; gap: var(--space-3); justify-items: start; border-right: 3px dashed rgb(28 29 34 / 0.55); }
.upsell-stub { display: flex; align-items: center; justify-content: center; padding: var(--space-5) 12px; }
.upsell-stub span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch-xwide); font-size: 20px; letter-spacing: 0.06em; }
.upsell-kicker { margin: 0; font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.upsell-title { margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch-narrow); font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.upsell-text { margin: 0; font-size: 16px; line-height: 1.5; }
.upsell .btn.primary { min-height: 52px; font-size: 17px; }
.upsell .btn.primary:not(:disabled):hover { box-shadow: 6px 6px 0 var(--blue); }
.upsell-soon { margin: 0; font-weight: 700; }
.upsell-restore { margin: 0; font-size: var(--text-sm); }
@media (max-width: 560px) {
  .upsell { transform: none; }
  .upsell-body { padding: var(--space-5) var(--space-4) var(--space-5) var(--space-5); }
  .upsell-stub { padding: var(--space-4) 8px; }
  .upsell-stub span { font-size: 16px; }
  .upsell-title { font-size: 22px; }
}

.restore-box, .restore { padding: var(--space-4) var(--space-5); background: var(--sheet); border: var(--rule); border-radius: var(--radius); font-size: var(--text-sm); display: grid; gap: var(--space-2); }
.restore { border-color: var(--blue); box-shadow: 6px 6px 0 -2px var(--blue); }
.restore-box p, .restore p { margin: 0; }
.restore-box-title { font-family: var(--font-display); font-weight: 800; font-stretch: var(--stretch-wide); text-transform: uppercase; letter-spacing: 0.06em; }
.restore-row { display: flex; gap: var(--space-2); }
.restore-row input { flex: 1; font-size: 15px; }

/* ---------- tool pages: sections ---------- */
.section { margin-top: var(--space-9); }
.section > h2, .section-title {
  margin: 0 0 var(--space-5); font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch-head);
  font-size: var(--text-4xl); line-height: var(--leading-tight); text-transform: uppercase; letter-spacing: -0.005em;
}
.section h3 { margin: var(--space-6) 0 var(--space-2); font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1.15; }
.section-lede { margin: 0 0 var(--space-5); max-width: var(--measure); font-size: var(--text-lg); }
.prose { max-width: 760px; }
.prose p, .prose li { font-size: var(--text-md); }
.prose li { margin-bottom: 6px; }

/* Numbered steps: each numeral printed twice, slightly out of register. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--space-6) var(--space-7); }
.steps li { counter-increment: step; display: grid; align-content: start; gap: var(--space-2); padding-top: var(--space-4); border-top: var(--rule); font-size: 16px; }
.steps li::before {
  content: counter(step); font-family: var(--font-display); font-weight: 900; font-stretch: 140%; font-size: 72px; line-height: 0.95;
  color: var(--blue); text-shadow: 4px 3px 0 var(--orange);
}
.steps strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1.15; margin-bottom: 2px; }

/* Ready-made sets: little printed tags. */
.set-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: var(--space-3); }
.set-links a {
  display: flex; align-items: center; min-height: 52px; padding: 10px 14px; background: var(--sheet); border: var(--rule); border-radius: var(--radius);
  font-weight: 700; text-decoration: none; transition: transform var(--dur-quick), box-shadow var(--dur-quick);
}
.set-links a:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--orange); }
.set-links a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }

/* FAQ */
.faq details { max-width: 860px; border-top: var(--rule); }
.faq details:last-of-type { border-bottom: var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 60px; padding: var(--space-3) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: var(--rule); border-radius: 50%;
  font-family: var(--font-body); font-weight: 700; font-size: 22px; line-height: 1; transition: transform var(--dur-quick), background-color var(--dur-quick);
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--orange); }
.faq summary:hover { color: var(--blue-text); }
.faq details p { margin: 0 0 var(--space-4); max-width: var(--measure); color: var(--ink-2); }

.table-scroll { overflow-x: auto; max-width: 760px; }
.guide-table { border-collapse: collapse; font-size: var(--text-sm); min-width: 420px; background: var(--sheet); }
.guide-table th, .guide-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--ink); }
.guide-table th { font-family: var(--font-display); font-weight: 800; font-stretch: var(--stretch-wide); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--text-xs); border-bottom: var(--rule); }
.twist-card { max-width: 760px; padding: var(--space-4) var(--space-5); background: var(--sheet); border: var(--rule); border-left: 10px solid var(--orange); }
.twist-card p { margin: 6px 0 0; }

/* ---------- caller (shared by the bingo tool's dialog and the free caller) ---------- */
.caller-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; font-family: var(--font-display); font-weight: 800; font-stretch: var(--stretch-wide); letter-spacing: 0.06em; text-transform: uppercase; font-size: 14px; }
.caller-tools { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-family: var(--font-body); font-stretch: normal; letter-spacing: 0; text-transform: none; }
.caller-current { min-height: 26vh; display: grid; place-items: center; text-align: center; margin: var(--space-3) 0; gap: var(--space-2); }
.caller-word {
  font-family: var(--font-display); font-weight: 900; font-stretch: 70%; font-size: clamp(56px, 11vw, 140px); line-height: 0.95;
  color: var(--card-head, var(--blue)); text-transform: uppercase; overflow-wrap: anywhere;
}
.caller-wait { font-family: var(--font-display); font-weight: 800; font-stretch: var(--stretch-wide); font-size: var(--text-xl); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
.caller-caption { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.caller-buttons { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.caller-buttons .btn { min-height: 56px; font-size: 18px; padding: 0 30px; }
.caller-hint { text-align: center; color: var(--ink-2); font-size: 14px; margin: var(--space-2) 0 var(--space-4); }
.caller-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px; }
.caller-board.numbers { grid-template-columns: 34px repeat(15, minmax(0, 1fr)); }
.tile { padding: 6px 4px; border: 1.5px solid var(--ink); border-radius: var(--radius); text-align: center; font-size: 13px; font-weight: 700; background: #fff; color: var(--ink-2); overflow-wrap: anywhere; }
.tile.row-label { background: var(--card-head, var(--blue-text)); color: var(--card-head-ink, var(--sheet)); font-family: var(--font-display); font-weight: 900; border-color: transparent; }
.tile.called { background: var(--card-free, var(--orange)); color: var(--card-ink, var(--ink)); border-color: var(--ink); }
.tile.latest { background: var(--card-head, var(--blue-text)); color: var(--card-head-ink, var(--sheet)); }
@media (max-width: 700px) {
  .caller-board { gap: 2px; }
  .caller-board.numbers { grid-template-columns: 24px repeat(15, minmax(0, 1fr)); }
  .tile { font-size: 11px; padding: 4px 0; border-width: 1px; }
  .caller-board.numbers .tile { overflow-wrap: normal; letter-spacing: -0.03em; }
}

/* ---------- small pages (/unlocked/, 404, the tool template) ---------- */
.plain-page main { max-width: 760px; margin: 0 auto; padding: var(--space-8) var(--gutter); }
.plain-page h1 { margin: 0 0 var(--space-4); font-family: var(--font-display); font-weight: 900; font-stretch: var(--stretch-head); font-size: var(--text-4xl); line-height: var(--leading-tight); text-transform: uppercase; }
.tagline, .privacy, #status { color: var(--ink-2); }
.panes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-4); }
@media (max-width: 640px) { .panes { grid-template-columns: 1fr; } }
.actions { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); flex-wrap: wrap; }
.buy { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 18px; margin-right: var(--space-2); background: var(--ink); color: var(--on-ink); font-weight: 700; text-decoration: none; border-radius: var(--radius); }
.tools { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.tools a { display: block; padding: var(--space-4); border: var(--rule); background: var(--sheet); text-decoration: none; }
.tools small { display: block; color: var(--ink-2); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- printed output ----------
   Bingo cards and Bunco sheets keep the look they had before this design:
   their own fonts and colours, plain white paper, no grain. */
.paper, .sheet { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1c1b19; letter-spacing: normal; }
@media print {
  body { background: #fff; color: #1c1b19; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
  body::after, .masthead, .site-foot, .test-banner { display: none !important; }
}
