/* Word Search Maker. Phone first. Colours from the brief:
   paper #FBF7F0, navy ink #1F2A44, coral #FF6B5B, sunflower #FFC93C, teal #14B8A6.
   The main button uses a slightly deeper coral so white text meets WCAG AA. */

:root {
  --paper: #FBF7F0;
  --ink: #1F2A44;
  --muted: #4E5870;
  --coral: #FF6B5B;
  --coral-deep: #E2503D;
  --coral-shadow: #B33A2A;
  --sun: #FFC93C;
  --teal: #14B8A6;
  --focus: #0B6E64;
  --line: #E4DCCD;
  --card: #FFFFFF;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(31, 42, 68, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 42, 68, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
h1, h2, legend, summary, .brand { font-family: 'Fredoka', 'Inter', sans-serif; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { padding: 16px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 22px; font-weight: 600; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 7px; }
.brand-mark i { border-radius: 3px; }
.brand-mark i:nth-child(1) { background: var(--coral); }
.brand-mark i:nth-child(2) { background: var(--sun); }
.brand-mark i:nth-child(3) { background: var(--teal); }
.brand-mark i:nth-child(4) { background: #8B6CEF; }

.site-nav { display: none; gap: 24px; font-weight: 600; font-size: 15px; }
.site-nav a { text-decoration: none; padding: 10px 0; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding: 8px 0 28px; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.pill { display: inline-block; margin: 0 0 14px; padding: 5px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
h1 { font-size: clamp(34px, 7vw, 60px); line-height: 1.05; font-weight: 700; margin: 0 0 12px; max-width: 15ch; }
h1 mark { background: linear-gradient(transparent 55%, var(--sun) 55%); color: inherit; padding: 0 2px; }
.intro { color: var(--muted); font-size: 18px; margin: 0 0 16px; max-width: 46ch; }
.hero-ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 20px; font-weight: 600; font-size: 15px; }
.hero-ticks li::before, .trust-list li::before, .tick-list li::before {
  content: ''; display: inline-block; width: 9px; height: 5px; margin-right: 8px;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg) translateY(-3px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.btn-hero { width: auto; margin-top: 0; padding: 0 26px; text-decoration: none; }
.btn-sample { min-height: 58px; padding: 0 22px; border-radius: 14px; background: #fff; text-decoration: none; font-family: 'Fredoka', sans-serif; font-size: 19px; box-shadow: 0 5px 0 var(--ink); }
.btn-sample:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.hero-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* A fan of real rendered pages: cover in front, two puzzles behind. */
.hero-fan { position: relative; height: 280px; max-width: 460px; width: 100%; margin: 0 auto; }
.fan-page { position: absolute; top: 10px; width: 46%; background: #fff; border-radius: 4px; box-shadow: 0 10px 28px rgba(31, 42, 68, 0.22); overflow: hidden; }
.fan-page svg, .fan-page img { display: block; width: 100%; height: auto; }
.fan-page:nth-child(1) { left: 4%; transform: rotate(-9deg); }
.fan-page:nth-child(2) { left: 50%; transform: rotate(8deg); top: 22px; }
.fan-page:nth-child(3) { left: 27%; transform: rotate(-1deg); top: 0; z-index: 2; }
.fan-badge { position: absolute; z-index: 3; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 15px; white-space: nowrap; }
.fan-badge.a { background: var(--sun); left: 0; bottom: 6px; transform: rotate(-4deg); }
.fan-badge.b { background: #D5F3EF; right: 0; top: 0; transform: rotate(4deg); }

/* Builder */
.builder { display: grid; gap: 28px; align-items: start; }
.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink); }
.tool { padding: 20px 18px; }
.step { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.step legend, .step summary { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; flex: none; }
.count { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: var(--muted); }
.hint { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.hint:empty { display: none; }
.optional { font-weight: 400; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; font-size: 15px;
  cursor: pointer; user-select: none; transition: background-color .15s, border-color .15s;
}
.chip:hover span { border-color: #B9AE9A; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip.type span { border-color: var(--accent); }
.chip.type input:checked + span { background: var(--soft); border-color: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.chip.type input:checked + span::before { content: ''; width: 10px; height: 6px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg) translateY(-2px); }

.typed-theme { width: 100%; margin-top: 12px; min-height: 46px; padding: 0 14px; border: 2px dashed #B9AE9A; border-radius: 12px; background: #FAF8F4; color: var(--muted); }

.word-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; min-height: 36px; }
.word-chips li { display: inline-flex; align-items: center; gap: 2px; padding-left: 12px; border-radius: 10px; background: #F1EEE7; font-weight: 600; font-size: 14px; }
.word-chips li.custom { background: #E6F6F3; }
.word-chips button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.word-chips button:hover { color: var(--ink); background: rgba(31, 42, 68, 0.08); }
.word-chips .empty { background: none; padding: 0; font-weight: 400; color: var(--muted); }

.add-word { display: grid; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select { min-height: 46px; padding: 0 12px; border: 2px solid #D4CBBB; border-radius: 12px; background: #fff; width: 100%; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }

/* Your words: the main way in. */
.your-words textarea { width: 100%; min-height: 96px; padding: 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font: inherit; font-size: 17px; line-height: 1.4; resize: vertical; }
.your-words textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field-label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.count.full { color: var(--coral-deep); font-weight: 700; }
.hold-note { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #FFE4E0; border: 2px solid var(--coral-deep); font-weight: 600; }
.chip-note { font-weight: 500; font-size: 13px; opacity: .85; }
.young-only[hidden] { display: none; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.problems { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.problems:empty { display: none; }
.problems li { padding: 8px 12px; border-radius: 10px; background: #FFE4E0; font-size: 14px; font-weight: 500; }
.title-field { margin-top: 14px; }
.clue-panel { margin-top: 12px; }
.clue-panel summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.clue-panel summary { list-style: none; }
.clue-panel summary::-webkit-details-marker { display: none; }
.clue-panel summary::after { content: '+'; margin-left: auto; font-size: 22px; line-height: 1; }
.clue-panel[open] summary::after { content: '\2212'; }
.clue-row { margin-top: 8px; }
.sub-head { font-size: 16px; margin: 16px 0 8px; }
.theme-note.off { background: #FFF1C7; padding: 6px 10px; border-radius: 8px; color: var(--ink); }

/* Folding steps (theme, page options): closed on phones for quick mode. */
.fold summary { cursor: pointer; list-style: none; min-height: 44px; margin-bottom: 0; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: '+'; margin-left: auto; font-size: 24px; line-height: 1; }
.fold[open] summary::after { content: '\2212'; }
.fold[open] summary { margin-bottom: 12px; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.options-grid .wide { grid-column: 1 / -1; }
.toggles { display: grid; gap: 4px; margin-top: 14px; }
.toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--ink); margin: 0; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; font-weight: 600; cursor: pointer; }
.btn-small { align-self: end; }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost:disabled { opacity: .45; cursor: default; border-color: var(--line); }
.btn-primary {
  width: 100%; min-height: 58px; margin-top: 4px; border: 0; border-radius: 14px;
  background: var(--coral-deep); color: #fff; font-family: 'Fredoka', sans-serif; font-size: 21px; font-weight: 600;
  box-shadow: 0 5px 0 var(--coral-shadow); transition: transform .1s, box-shadow .1s;
}
.btn-primary:hover { background: #D6452F; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--coral-shadow); }
.small-note { text-align: center; font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.btn-primary[aria-busy="true"] { opacity: .75; cursor: progress; }
.downloads { display: grid; gap: 8px; margin-top: 14px; padding: 14px; border-radius: 14px; background: #E6F6F3; }
.downloads[hidden] { display: none; }
.share { display: grid; gap: 8px; margin-top: 10px; padding: 14px; border-radius: 14px; background: #FFF1C7; }
.share[hidden], .copies-row[hidden], .share-note[hidden] { display: none; }
.share input { min-height: 44px; width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 2px solid var(--line, #9AA3B5); border-radius: 10px; background: #fff; color: var(--ink); }
.share .hint, .share .hold-note { margin: 0; }
.share-note { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #E6F6F3; border: 2px solid #14B8A6; font-weight: 600; }
.make-mode { border: 0; margin: 16px 0 0; padding: 0; }
.make-mode .hint { margin: 6px 0 0; }
.page-count { margin: 10px 0 8px; font-weight: 600; }
.key-note { margin: -4px 0 10px; }
.key-note[hidden] { display: none; }
.copies-row { display: flex; align-items: center; gap: 12px; }
.copies-row input { width: 90px; min-height: 44px; font: inherit; padding: 6px 10px; border: 2px solid #9AA3B5; border-radius: 10px; }
.class-set .hint { margin: 4px 0 0; }
.downloads p { margin: 0; font-weight: 600; }
.downloads a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); }

/* Preview */
.preview { padding: 16px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.preview-head h2 { font-size: 20px; margin: 0; }
.preview-actions { display: flex; gap: 8px; }
.close-preview { display: none; }
.page-frame { background: #ECE6DA; border-radius: 14px; padding: 14px; display: flex; justify-content: center; min-height: 200px; }
.page-frame svg, .page-frame img { display: block; width: 100%; max-width: 520px; height: auto; background: #fff; box-shadow: 0 6px 18px rgba(31, 42, 68, 0.18); border-radius: 2px; }
.page-frame .message { align-self: center; text-align: center; color: var(--muted); padding: 40px 10px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pager p { margin: 0; font-size: 14px; font-weight: 600; text-align: center; }
.preview-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.preview-note:empty { display: none; }

/* Sections below the tool */
.maker { padding-bottom: 36px; }
.trust { padding: 8px 0 36px; }
.trust-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; padding: 0; margin-block: 0; font-size: 15px; color: var(--muted); font-weight: 500; }
.section { padding: 48px 0; }
.band-soft { background: rgba(255, 201, 60, 0.12); border-block: 1px solid var(--line); }
.section-title { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.1; text-align: center; margin: 0 0 10px; }
.section-intro { text-align: center; color: var(--muted); font-size: 17px; max-width: 56ch; margin: 0 auto 28px; }

.equation { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-bottom: 32px; }
.eq-page { width: 92px; background: #fff; border-radius: 3px; box-shadow: 0 6px 16px rgba(31, 42, 68, 0.18); overflow: hidden; }
.eq-page svg, .eq-page img { display: block; width: 100%; height: auto; }
.eq-page.pack { width: 116px; transform: rotate(3deg); }
.eq-sign { font-family: 'Fredoka', sans-serif; font-size: 34px; font-weight: 700; color: var(--coral-deep); }
.eq-label { flex-basis: 100%; text-align: center; font-weight: 600; margin: 4px 0 0; }

.steps { list-style: none; display: grid; gap: 16px; padding: 0; margin: 0; }
.step-card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c); color: var(--ink); font-family: 'Fredoka', sans-serif; font-weight: 700; }
.step-card h3, .who-card h3, .price-card h3, .theme-card h3 { font-size: 21px; margin: 12px 0 6px; }
.step-card p { margin: 0; color: var(--muted); }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.theme-card { display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px; }
.theme-card svg, .theme-card img { width: 100%; height: auto; border-radius: 12px; }
.theme-card h3 { margin-top: 8px; }
.theme-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; flex: 1; }
.theme-card .btn { width: 100%; }
.theme-card.soon { border-style: dashed; background: #FAF8F4; }

.who-grid { display: grid; gap: 20px; }
.who-card { padding: 22px; }
.who-card h3 { margin-top: 0; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tick-list li { padding-left: 22px; text-indent: -22px; }

.draft-note { text-align: center; margin: -12px auto 20px; width: fit-content; padding: 4px 12px; border-radius: 8px; background: #FFF1C7; font-size: 14px; font-weight: 600; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.price-card { padding: 20px; box-shadow: none; }
.price-card.featured { box-shadow: 8px 8px 0 var(--coral-deep); }
.price-card h3 { margin-top: 0; }
.price { font-family: 'Fredoka', sans-serif; font-size: 36px; font-weight: 700; margin: 0 0 8px; }
.price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-card p:last-child { margin: 0; color: var(--muted); }
.cancel-note { text-align: center; font-weight: 600; margin: 22px auto 0; max-width: 60ch; }

.faq { max-width: 760px; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: 14px; margin: 10px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; min-height: 52px; padding: 10px 44px 10px 16px; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; font-size: 24px; color: var(--coral-deep); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

.cta-card { background: var(--ink); color: #fff; border-radius: 24px; padding: 32px 24px; text-align: center; }
.cta-card h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; }
.cta-card p { margin: 0 0 20px; color: #D7DCE6; }

.site-footer { padding: 24px 0 96px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Phone: preview opens as a full-screen sheet from a sticky button */
.preview-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 20; display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff;
  font-family: 'Fredoka', sans-serif; font-size: 18px; font-weight: 600; box-shadow: 0 6px 18px rgba(31, 42, 68, 0.3); cursor: pointer;
}
.fab-icon { width: 14px; height: 18px; border: 2px solid #fff; border-radius: 2px; }

@media (max-width: 899px) {
  .preview { display: none; }
  .preview.open {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 40;
    border: 0; border-radius: 0; box-shadow: none; overflow-y: auto; padding: 14px 16px 20px;
  }
  .preview.open .close-preview { display: inline-flex; }
  .preview.open .page-frame { padding: 8px; }
  body.preview-open { overflow: hidden; }
  body.preview-open .preview-fab { display: none; }
}

@media (min-width: 560px) {
  .add-word { grid-template-columns: 1fr 1.4fr auto; align-items: end; }
  .toggles { grid-template-columns: 1fr 1fr; }
  .tool { padding: 24px; }
  .hero-fan { height: 340px; }
  .eq-page { width: 120px; }
  .eq-page.pack { width: 150px; }
  .steps, .who-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .hero { padding: 12px 0 28px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px; }
  .hero-fan { height: 380px; }
  .builder { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr); }
  .preview { position: sticky; top: 16px; }
  .site-header { padding: 12px 0 4px; }
  .preview-fab { display: none; }
  .site-footer { padding-bottom: 24px; }
  .section { padding: 64px 0; }
}

.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 16px); z-index: 60;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

/* ---------- Free launch: email box, feedback box, cookie banner, footer ---------- */
.small-box { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 18px 50px rgba(31, 42, 68, .25); }
.small-box::backdrop { background: rgba(31, 42, 68, .45); }
.small-box h2 { margin: 0 0 14px; font-family: 'Fredoka', sans-serif; font-size: 22px; line-height: 1.2; }
.small-box form > label:not(.toggle) { display: block; font-weight: 600; margin-bottom: 6px; }
.small-box input[type="email"], .small-box textarea { width: 100%; min-height: 44px; font: inherit; padding: 10px 12px; border: 2px solid #9AA3B5; border-radius: 10px; color: var(--ink); background: #fff; }
.small-box textarea { min-height: 110px; resize: vertical; }
.small-box .toggle { align-items: flex-start; padding: 8px 0; }
.small-box .toggle input { margin-top: 2px; }
.small-box .hint { margin: 8px 0 0; }
.small-box .hold-note { margin: 10px 0 0; }
.box-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.box-actions .btn { min-height: 44px; }
.email-hint { padding: 10px 12px; border-radius: 10px; background: #FFF1C7; color: var(--ink); }
.link-button { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.person-line { margin: 6px 0 0; font-size: 14px; }
.person-line[hidden] { display: none; }
.person-line .link-button, .downloads .link-button { min-height: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.footer-links a, .footer-links .link-button { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a { color: inherit; }
.cookie-banner { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 12px 36px rgba(31, 42, 68, .22); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 12px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; min-height: 44px; }
/* Plain pages: privacy, terms, stop emails, admin. */
.plain-page { max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; }
.plain-page h1 { font-family: 'Fredoka', sans-serif; font-size: clamp(30px, 6vw, 42px); line-height: 1.1; margin: 0 0 8px; }
.plain-page h2 { font-family: 'Fredoka', sans-serif; font-size: 23px; margin: 28px 0 8px; }
.plain-page p, .plain-page li { line-height: 1.6; }
.plain-page .updated { color: #5B6478; margin: 0 0 20px; }
.plain-page .placeholder { background: #FFF1C7; padding: 0 4px; border-radius: 4px; }
.plain-form { display: grid; gap: 10px; max-width: 420px; margin-top: 12px; }
.plain-form input { min-height: 44px; font: inherit; padding: 10px 12px; border: 2px solid #9AA3B5; border-radius: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.stat b { display: block; font-family: 'Fredoka', sans-serif; font-size: 30px; }
.feedback-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.feedback-list li { padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; white-space: pre-wrap; }

/* Empty-words warning and its theme twin: a red label on the box, red border. */
.warn-wrap { position: relative; }
.field-warning { position: absolute; top: -11px; right: 12px; margin: 0; padding: 2px 10px; border-radius: 999px; background: #B3261E; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; line-height: 1.5; pointer-events: none; }
.field-warning[hidden], .warning-hint[hidden] { display: none; }
.your-words textarea[aria-invalid="true"] { border: 3px solid #B3261E; background: #FFF5F4; }
.theme-warn-wrap.invalid { padding: 14px 10px 10px; border: 3px solid #B3261E; border-radius: 12px; background: #FFF5F4; margin-top: 16px; }
.warning-hint { margin: 6px 0 0; color: #B3261E; font-weight: 600; }

/* Cloudflare Turnstile: empty (and invisible) unless Cloudflare asks for a tick. */
.turnstile-box { margin: 0 0 8px; }
.turnstile-box:empty { display: none; }
