/* Final Register — homepage (v2). Sits on top of site.css and keeps its tokens. */

.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; }

/* Hero: the words on the left, a real photo taped into the book on the right */
.h2-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px);
  align-items: center; padding-top: clamp(16px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 96px);
}
.h2-hero h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 0.92; letter-spacing: -0.005em; margin: 0 0 24px; max-width: 11ch;
}
.h2-hero .lede { font-size: 1.2rem; line-height: 1.55; max-width: 38ch; margin: 0 0 28px; }
.h2-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.h2-hero .from { margin: 20px 0 0; color: var(--pencil); }

/* A photo stuck into the exercise book with two strips of tape */
.taped { position: relative; margin: 0; background: var(--chalk); padding: 12px 12px 0; box-shadow: 0 1px 0 var(--rule), 0 14px 30px -18px rgba(27, 35, 80, 0.45); }
.taped img { display: block; width: 100%; height: auto; }
.taped figcaption { padding: 10px 2px 12px; font-size: 0.95rem; color: var(--pencil); }
.taped::before, .taped::after {
  content: ""; position: absolute; top: -14px; width: 112px; height: 30px;
  background: rgba(238, 228, 190, 0.78); box-shadow: 0 1px 2px rgba(27, 35, 80, 0.12);
}
.taped::before { left: 18px; transform: rotate(-6deg); }
.taped::after { right: 18px; transform: rotate(5deg); }
.h2-hero-photo { transform: rotate(1.4deg); max-width: 560px; justify-self: center; width: 100%; }

/* Selling points as a filled-in register: a red tick, the point, the detail */
.register { width: 100%; border-collapse: collapse; margin-top: 8px; }
.register tr { border-bottom: 1px solid var(--rule); }
.register tr:first-child { border-top: 1px solid var(--rule); }
.register th, .register td { text-align: left; vertical-align: baseline; padding: 18px 16px 18px 0; }
.register th { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.05; width: 34%; }
.register td:last-child { max-width: 52ch; }
.register .tick { width: 40px; padding-right: 0; position: relative; }
.register .tick::before {
  content: ""; position: absolute; left: 8px; top: 18px; width: 11px; height: 22px;
  border: solid var(--margin); border-width: 0 4px 4px 0; transform: rotate(42deg);
}

/* See it happen: names fill the list, then the plain hoodie becomes the printed one */
.demo { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.demo-text p { max-width: 38ch; }
.demo-stage { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 20px; align-items: center; }
.demo-list { background: var(--chalk); border: 2px solid var(--ink); border-radius: 6px; padding: 12px 14px; align-self: center; }
.demo-head { margin: 0 0 8px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; font-size: 0.95rem; }
.demo-head span { font-weight: 400; color: var(--pencil); }
.demo-list ol { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; line-height: 1.55; columns: 1; }
.demo-list li { opacity: 0; transform: translateY(4px); transition: opacity 160ms ease, transform 160ms ease; }
.demo-list li.in { opacity: 1; transform: none; }
.demo-hoodie { position: relative; margin: 0; }
.demo-pic { position: relative; overflow: hidden; background: var(--chalk); aspect-ratio: 1 / 1; box-shadow: 0 1px 0 var(--rule), 0 10px 22px -18px rgba(27, 35, 80, 0.5); }
.demo-pic img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; transform: scale(1.3) translateY(4%); }
.demo-pic .printed { opacity: 0; transition: opacity 900ms ease; }
.demo-stage.done .printed { opacity: 1; }
.demo-status { margin: 10px 0 0; min-height: 1.6em; font-weight: 700; color: var(--ink); }
.demo-status::before { content: ""; display: inline-block; width: 7px; height: 13px; margin-right: 10px; border: solid var(--margin); border-width: 0 3px 3px 0; transform: rotate(42deg) translateY(-2px); opacity: 0; }
.demo-stage.done .demo-status::before { opacity: 1; }

/* Section heads with a link on the right */
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; }
.block-head a { font-weight: 700; }

/* Who pays: two ways, side by side, divided like a ruled page */
.two-ways { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 8px; }
.two-ways > div { padding: 4px clamp(20px, 3vw, 40px) 4px 0; }
.two-ways > div + div { border-left: 2px solid var(--margin); padding-left: clamp(20px, 3vw, 40px); }
.two-ways h3 { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.05; margin-bottom: 10px; }
.two-ways p { margin: 0; max-width: 46ch; }

/* Design gallery and garments: photos on white card, label underneath */
.gallery, .garments { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: clamp(14px, 2vw, 24px); }
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.garments { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery li, .garments a { display: block; background: var(--chalk); padding: 10px; box-shadow: 0 1px 0 var(--rule), 0 10px 22px -18px rgba(27, 35, 80, 0.5); }
.gallery img, .garments img { display: block; width: 100%; height: auto; }
.gallery span { display: block; padding: 10px 2px 2px; font-weight: 700; }
.garments a { text-decoration: none; color: var(--ink); height: 100%; }
.garments b { display: block; padding: 10px 2px 0; font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.garments span { display: block; padding: 2px 2px 0; color: var(--pencil); font-size: 0.95rem; }
.garments em { display: block; padding: 6px 2px 2px; font-style: normal; font-weight: 700; }
.garments a:hover b { color: var(--margin); }
.garments a:focus-visible { outline-offset: 4px; }

.about p { font-size: 1.15rem; }
.closing { text-align: left; }
.closing h2 { font-size: clamp(2.6rem, 7vw, 4.6rem); }

@media (max-width: 960px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .garments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .h2-hero { grid-template-columns: minmax(0, 1fr); }
  .h2-hero-photo { max-width: 460px; margin-top: 18px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-ways { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .two-ways > div + div { border-left: 0; border-top: 2px solid var(--margin); padding-left: 0; padding-top: 20px; }
}
@media (max-width: 600px) {
  .register, .register tbody, .register tr { display: block; }
  .register tr { position: relative; padding: 14px 0 14px 40px; }
  .register th, .register td { display: block; padding: 0; width: auto; }
  .register th { margin-bottom: 4px; }
  .register .tick { position: absolute; left: 0; top: 14px; }
  .register .tick::before { top: 0; }
  .demo-stage { grid-template-columns: minmax(0, 1fr); }
  .demo-list ol { columns: 2; }
}
@media (max-width: 520px) {
  .garments { grid-template-columns: minmax(0, 1fr); }
  .h2-hero-photo { transform: rotate(0.8deg); }
}
/* ---- Inner pages (v2) ---- */
.page-head { padding-top: clamp(16px, 4vw, 48px); padding-bottom: clamp(32px, 5vw, 64px); }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 0.95; margin: 0 0 18px; max-width: 14ch; }
.page-head .lede { font-size: 1.2rem; line-height: 1.55; max-width: 46ch; margin: 0 0 24px; }
.page-head .actions { margin: 0; }
.note { color: var(--pencil); }

/* All twelve designs: photo, name, one line */
.designs { list-style: none; margin: 24px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.designs li { background: var(--chalk); padding: 10px 10px 14px; box-shadow: 0 1px 0 var(--rule), 0 10px 22px -18px rgba(27, 35, 80, 0.5); }
.designs img { display: block; width: 100%; height: auto; }
.designs h3 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; margin: 10px 2px 4px; }
.designs p { margin: 0 2px; color: var(--pencil); font-size: 0.98rem; }

/* Table beside a taped photo */
.split-photo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.split-photo p { max-width: 56ch; }
.tilt-left { transform: rotate(-1.2deg); margin-top: 18px; }
.extras-table { width: 100%; border-collapse: collapse; margin: 4px 0 16px; }
.extras-table th, .extras-table td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.extras-table thead th { font-size: 0.95rem; color: var(--pencil); font-weight: 700; border-bottom: 2px solid var(--ink); }
.extras-table tbody th { font-weight: 700; }
.extras-table .num { text-align: right; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 1.3rem; padding-right: 0; }
.extras-table thead .num { font-family: var(--text); font-size: 0.95rem; }

/* Five-step sequence */
.steps.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.about-hero .h2-hero-text p { max-width: 52ch; }

@media (max-width: 960px) {
  .steps.steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .designs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-photo { grid-template-columns: minmax(0, 1fr); }
  .split-photo figure { max-width: 380px; }
  .steps.steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .designs { grid-template-columns: minmax(0, 1fr); }
  .steps.steps-5 { grid-template-columns: minmax(0, 1fr); }
  .extras-table td:nth-child(2) { display: none; }
}

/* How it works: big numbered rows */
.step-rows { list-style: none; margin: 0; padding: 0; counter-reset: row; }
.step-rows > li { counter-increment: row; display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 0.42fr); gap: 0 clamp(20px, 3vw, 48px); align-items: start; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.step-rows > li:first-child { padding-top: 0; }
.step-rows > li::before { content: counter(row); grid-column: 1; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--margin); color: var(--margin); font-family: var(--display); font-weight: 800; font-size: 1.9rem; display: grid; place-items: center; background: var(--paper); }
.step-rows .step-text { grid-column: 2; }
.step-rows > li.no-fig .step-text { grid-column: 2 / 4; }
.step-rows figure { grid-column: 3; max-width: 300px; }
.step-rows h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1; margin: 8px 0 12px; }
.step-rows p { max-width: 60ch; }
.step-rows .two-ways { margin-top: 12px; }
.two-ways h4 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.05; margin: 0 0 8px; }

.who-table { width: 100%; border-collapse: collapse; }
.who-table tr { border-bottom: 1px solid var(--rule); }
.who-table tr:first-child { border-top: 1px solid var(--rule); }
.who-table th, .who-table td { text-align: left; vertical-align: baseline; padding: 16px 16px 16px 0; }
.who-table th { width: 32%; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.who-table th span { display: block; font-family: var(--text); font-weight: 400; font-size: 0.95rem; color: var(--pencil); margin-top: 4px; }

/* Questions page */
.faq-tools { display: grid; gap: 6px; max-width: 520px; margin: 4px 0 22px; }
.faq-tools label { font-weight: 700; }
.faq-tools input { font: inherit; color: var(--ink); background: var(--chalk); border: 2px solid var(--ink); border-radius: 6px; padding: 12px 14px; width: 100%; }
.faq-count { margin: 0; min-height: 1.6em; color: var(--pencil); }
.jump { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.jump a { font-weight: 700; }
section.block.faq-group { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(32px, 4vw, 48px); }
.faq-group h2 { margin-bottom: 10px; }
.faq-group details { max-width: 820px; border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq-group details:first-of-type { border-top: 1px solid var(--rule); }
.faq-group summary { cursor: pointer; font-weight: 700; font-size: 1.12rem; list-style: none; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::before { content: "+"; display: inline-block; width: 1.4em; color: var(--margin); font-weight: 700; }
.faq-group details[open] summary::before { content: "\2013"; }
.faq-group details p { margin: 10px 0 0 1.4em; max-width: 68ch; }
.group-link { margin: 18px 0 0; font-weight: 700; }
.faq-none { padding-bottom: 48px; font-weight: 700; }

@media (max-width: 860px) {
  .step-rows > li { grid-template-columns: 64px minmax(0, 1fr); }
  .step-rows figure { grid-column: 2; margin-top: 18px; max-width: 260px; }
  .step-rows > li.no-fig .step-text { grid-column: 2; }
}
@media (max-width: 520px) {
  .step-rows > li { grid-template-columns: minmax(0, 1fr); }
  .step-rows > li::before { width: 44px; height: 44px; font-size: 1.5rem; }
  .step-rows .step-text, .step-rows figure, .step-rows > li.no-fig .step-text { grid-column: 1; }
  .who-table, .who-table tbody, .who-table tr, .who-table th, .who-table td { display: block; width: auto; }
  .who-table th { padding-bottom: 4px; }
  .who-table td { padding-top: 0; }
  .garments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-photo figure { max-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-list li, .demo-pic .printed { transition: none; }
}

/* How it works video */
.explainer { padding-top: 0; }
.explainer-video { margin: 0; }
.explainer-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
.explainer-video figcaption { margin-top: 8px; font-size: 0.95rem; color: var(--pencil); }
.transcript { margin-top: 14px; max-width: var(--measure); }
.transcript summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 6px 0; }
.transcript p { margin: 0 0 10px; }
.hiw-cap { min-height: 3em; max-width: 46ch; margin: 16px auto 0; padding: 0 12px; text-align: center; text-wrap: balance; font-size: clamp(1.1rem, 0.9rem + 0.75vw, 1.45rem); font-weight: 700; line-height: 1.4; color: var(--ink); }
.hiw-frame { position: relative; width: min(100%, max(480px, calc((100vh - 230px) * 16 / 9))); width: min(100%, max(480px, calc((100svh - 230px) * 16 / 9))); margin: 0 auto; }
.hiw-frame video { width: 100%; }
.hiw-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0; border: 0; border-radius: 10px; background: rgba(27, 35, 80, 0.14); color: var(--ink); font: inherit; cursor: pointer; }
.hiw-play[hidden] { display: none; }
.hiw-play-circle { position: relative; width: clamp(64px, 10vw, 112px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); box-shadow: 0 14px 30px -12px rgba(27, 35, 80, 0.75); transition: transform 0.15s ease, background-color 0.15s ease; }
.hiw-play-circle::after { content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: clamp(12px, 1.9vw, 21px) 0 clamp(12px, 1.9vw, 21px) clamp(20px, 3.2vw, 34px); border-color: transparent transparent transparent var(--chalk); }
.hiw-play-label { padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--chalk); font-weight: 700; font-size: clamp(0.95rem, 0.8rem + 0.4vw, 1.15rem); }
.hiw-play:hover .hiw-play-circle, .hiw-play:focus-visible .hiw-play-circle { transform: scale(1.06); background: var(--margin); }
.hiw-play:focus-visible { outline: 3px solid var(--margin); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hiw-play-circle { transition: none; } }
.explainer-video figcaption { text-align: center; }

/* ---------- Try it with your names (Ben, 3 Nov 2026) ---------- */
.try { padding-top: 8px; }
.try-head p { max-width: 62ch; }
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 12px; }
.try-controls { margin: 0; }
.try-field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.try-field > label, .try-field > legend { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.try-field textarea, .try-field input[type="text"] { width: 100%; font: inherit; font-size: 1rem; line-height: 1.45; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 6px; background: var(--chalk); color: var(--ink); }
.try-field textarea { resize: vertical; min-height: 9.5em; }
.try-help { margin: 8px 0 0; font-size: 0.95rem; color: var(--pencil); }
#try-count.over { color: var(--margin); font-weight: 700; }
.linkish { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--margin); }
.try-designs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.try-design { position: relative; padding: 0; border: 2px solid var(--rule); border-radius: 6px; background: var(--chalk); cursor: pointer; overflow: hidden; aspect-ratio: 1 / 1; }
.try-design img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.55) translateY(4%); }
.try-design span { position: absolute; left: 4px; top: 3px; font-size: 0.78rem; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, 0.88); border-radius: 3px; padding: 0 4px; }
.try-design[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.try-colours { display: grid; grid-template-columns: repeat(7, 36px); gap: 10px; }
.try-swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.18); padding: 0; cursor: pointer; }
.try-swatch.light { border-color: var(--rule); }
.try-swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.try-design:focus-visible, .try-swatch:focus-visible { outline: 3px solid var(--margin); outline-offset: 2px; }
.try-pic { position: relative; overflow: hidden; background: var(--chalk); aspect-ratio: 1 / 1; box-shadow: 0 1px 0 var(--rule), 0 10px 22px -18px rgba(27, 35, 80, 0.5); }
.try-pic img { display: block; width: 100%; height: 100%; transform: scale(1.25) translateY(4%); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.try-status { margin: 12px 0 0; min-height: 1.6em; font-weight: 700; }
.try-status.warn { color: var(--margin); }
.try-notes { margin: 4px 0 0; color: var(--pencil); max-width: 52ch; }
.try-notes:empty { display: none; }
.try-next { margin-top: 16px; }
.try-frame { position: absolute; left: -10000px; top: 0; width: 1200px; height: 1000px; border: 0; }
.try { position: relative; }
@media (max-width: 860px) {
  .try-grid { grid-template-columns: minmax(0, 1fr); }
  .try-designs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.designs .try-this { margin: 8px 2px 0; font-size: 0.98rem; }
.designs .try-this a { font-weight: 700; color: var(--ink); }
.designs .try-this a:hover { color: var(--margin); }
.try-ink { border-radius: 8px; }
.try-more { margin: 6px 0 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--margin); color: var(--ink); max-width: 60ch; font-size: 0.98rem; }

/* Home: all twelve designs (Ben, 3 Nov 2026) */
.gallery.all { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.gallery.all li { padding: 6px; }
.gallery.all span { padding: 7px 2px 0; font-size: 0.86rem; line-height: 1.25; }
@media (max-width: 960px) { .gallery.all { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gallery.all { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .gallery.all span { font-size: 0.78rem; } }
.explainer .hiw-cta { margin: 20px auto 0; max-width: none; text-align: center; }
