/* ============================================================================
   automatedpdf.tools — site.css
   Single source of truth for the entire site's design language (Brutalist Swiss).
   Edit tokens at the top to retheme everything.
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

/* ============================================================================
   1. TOKENS
   ============================================================================ */
:root {
  /* Palette — black/white/cream/red */
  --bg: #f5f3ee;
  --paper: #ffffff;
  --ink: #0c0c0c;
  --ink-soft: #2c2c2a;
  --muted: #6a6a66;
  --dim: #9a9a96;
  --line: #0c0c0c;
  --line-soft: hsl(40, 6%, 82%);
  --soft: #ebe7df;
  --accent: #ff3a1f;
  --accent-warm: #ffb86b;
  --error-bg: hsl(0, 60%, 96%);
  --error-ink: hsl(0, 65%, 32%);
  --tip-bg: hsl(45, 80%, 92%);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Sizing / spacing */
  --max-width: 1180px;
  --max-width-narrow: 980px;
  --radius: 0;
  --rule-thick: 6px;
  --rule-med: 2px;
  --rule-thin: 1px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;

  /* Shadows — hard-edge brutalist drop */
  --shadow-hover: 6px 6px 0 var(--ink);
  --shadow-press: 2px 2px 0 var(--ink);
  --shadow-accent: 6px 6px 0 var(--accent);
}

/* ============================================================================
   2. BASE / RESET
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: var(--rule-med) solid var(--accent);
  outline-offset: 3px;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }

/* Ambient layer — kept on tool pages for subtle texture (legacy hook) */
.ambient { display: none; }

/* Visually hidden */
.visually-hidden,
.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;
}

.hidden { display: none !important; }

/* ============================================================================
   3. LAYOUT WRAPPERS
   ============================================================================ */
.app,
.guide-page,
.landing,
.how-to-hub {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 5rem;
  position: relative;
  z-index: 1;
}

/* ============================================================================
   4. TYPOGRAPHY
   ============================================================================ */
.brand {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  margin-block-end: 1.25rem;
  padding-block: 0.2rem;
  transition: color var(--dur) var(--ease-out);
}
.brand:hover { color: var(--accent); }

header {
  border-top: var(--rule-thick) solid var(--ink);
  border-bottom: var(--rule-med) solid var(--ink);
  padding: 1.25rem 0 1.5rem;
  margin-bottom: 2.5rem;
}

header h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--ink);
}
header h1 em {
  font-style: normal;
  color: var(--accent);
}

.subtitle,
header > p:not(.brand) {
  margin: 0;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 62ch;
}

.subtitle strong,
header > p strong { font-weight: 600; }

.subtitle code,
header code,
.app-faq code,
.filename-placeholder-hint code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.12rem 0.35rem;
  background: var(--soft);
  border: var(--rule-thin) solid var(--line-soft);
}

.tool-try-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 62ch;
}

h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.015em;
}

/* ============================================================================
   5. CARDS / SECTIONS
   ============================================================================ */
.card,
.step-upload,
.step-review,
.step-map,
.progress-card,
.app-who-for,
.app-faq,
.seo-related-guides {
  background: var(--paper);
  border: var(--rule-med) solid var(--ink);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  margin-bottom: 1.25rem;
  transition: box-shadow var(--dur) var(--ease-out);
}
.card:hover { /* subtle — these are passive sections, not interactive */ }

.card h2,
section.card > h2 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  padding-bottom: 0.6rem;
  border-bottom: var(--rule-med) solid var(--ink);
}

.card h3 {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
}

.card p { margin: 0 0 0.85rem; }
.card p:last-child { margin-bottom: 0; }

.card ul, .card ol { padding-left: 1.25rem; margin: 0 0 0.85rem; }

/* ============================================================================
   6. BUTTONS
   ============================================================================ */
.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.95rem 1.25rem;
  min-height: 48px;
  border: var(--rule-med) solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    transform 120ms var(--ease-out);
}

.btn:hover:not(:disabled),
button.btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-hover);
  transform: translate(-2px, -2px);
}
.btn:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-press);
}
.btn:disabled,
.btn[disabled] {
  background: var(--soft);
  color: var(--dim);
  border-color: var(--line-soft);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary,
button.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}
.btn-primary:active:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-press);
}
.btn-primary:disabled {
  background: var(--soft);
  color: var(--dim);
  border-color: var(--line-soft);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

.btn-tiny {
  padding: 0.45rem 0.7rem;
  min-height: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.btn-generate { width: 100%; margin-top: 1.25rem; }
.btn-settings-toggle { width: auto; }
.btn-reset-filename { width: auto; margin-top: 0.75rem; }

/* Step button row */
.step2-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.step2-buttons .btn { flex: 1; min-width: 0; }

/* ============================================================================
   7. UPLOAD BOX
   ============================================================================ */
.upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.upload-row-single,
.upload-row.single {
  grid-template-columns: 1fr;
}
@media (max-width: 520px) {
  .upload-row { grid-template-columns: 1fr; }
}

.upload-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: var(--rule-med) dashed var(--ink);
  background: var(--soft);
  cursor: pointer;
  transition:
    border-style var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.upload-box:hover {
  background: var(--paper);
  border-color: var(--accent);
  border-style: dashed;
}
.upload-box.has-file {
  border-style: solid;
  background: var(--paper);
}

.upload-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.upload-box input[type="file"].file-input-native {
  width: 100%;
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
}

.upload-box input[type="file"].file-input-native::-webkit-file-upload-button,
.upload-box input[type="file"].file-input-native::file-selector-button {
  padding: 0.5rem 0.85rem;
  margin-right: 0.6rem;
  border: var(--rule-med) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
}

.file-name {
  font-size: 0.88rem;
  color: var(--ink);
  word-break: break-all;
}
.upload-box:not(.has-file) .file-name {
  color: var(--muted);
  font-style: italic;
}

/* ============================================================================
   8. FORM INPUTS
   ============================================================================ */
.output-settings-wrap { margin-top: 1rem; }
.output-settings-panel {
  padding: 1rem 0;
  border-top: var(--rule-med) solid var(--ink);
}
.output-settings-panel.hidden { display: none; }
.output-settings-panel h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.output-settings-hint {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.output-settings-row { margin-bottom: 0.85rem; }
.output-settings-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.output-settings-input,
input[type="text"].output-settings-input,
input[type="password"].output-settings-input,
input[type="number"].output-settings-input,
input[type="search"].output-settings-input,
select.output-settings-input,
textarea.output-settings-input {
  width: 100%;
  max-width: 380px;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--paper);
  border: var(--rule-med) solid var(--ink);
  border-radius: 0;
  transition: box-shadow var(--dur) var(--ease-out);
}
.output-settings-input:focus,
input[type="text"].output-settings-input:focus,
input[type="password"].output-settings-input:focus,
input[type="number"].output-settings-input:focus,
input[type="search"].output-settings-input:focus,
select.output-settings-input:focus,
textarea.output-settings-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* full-width templated inputs (split-pdf-into-files filename editor etc.) */
.filename-template-input,
.filename-pattern-editor .filename-template-input {
  width: 100%;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

textarea.output-settings-input { min-height: 6rem; }

/* ============================================================================
   9. RADIO / CHECKBOX (autoprotect legacy + general)
   ============================================================================ */
.ap-fieldset {
  border: var(--rule-med) solid var(--ink);
  background: var(--paper);
  padding: 0.85rem 1rem 1rem;
  margin: 0 0 1.25rem;
}
.ap-legend {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 0.4rem;
  color: var(--muted);
}
.ap-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 1.25rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.ap-radio-label input { accent-color: var(--accent); }
.ap-hint {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.ap-file-summary {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================================
   10. STEP-INDEX (legacy hooks merge/split/etc.)
   ============================================================================ */
.split-settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 520px) { .split-settings-row { grid-template-columns: 1fr; } }

.step-tip {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.split-summary-hint,
.summary-hint,
.step-map .hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================================
   11. ERROR MESSAGE
   ============================================================================ */
.error-message {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  background: var(--error-bg);
  border: var(--rule-med) solid var(--error-ink);
  color: var(--error-ink);
  font-size: 0.9rem;
}
.error-message.hidden { display: none !important; }

/* ============================================================================
   12. PROGRESS
   ============================================================================ */
.progress-card { text-align: left; }
.progress-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
}
.progress-card progress {
  width: 100%;
  height: 12px;
  margin: 0.5rem 0;
  appearance: none;
  background: var(--soft);
  border: var(--rule-med) solid var(--ink);
}
.progress-card progress::-webkit-progress-bar { background: var(--soft); }
.progress-card progress::-webkit-progress-value { background: var(--accent); }
.progress-card progress::-moz-progress-bar { background: var(--accent); }
#progressText {
  margin: 0.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ============================================================================
   13. TABLES (csv-table, summary tables)
   ============================================================================ */
.csv-wrap {
  overflow: auto;
  max-height: 280px;
  border: var(--rule-med) solid var(--ink);
  background: var(--paper);
}
.csv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.csv-table th,
.csv-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: var(--rule-thin) solid var(--line-soft);
  text-align: left;
}
.csv-table th {
  background: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: var(--rule-med) solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 1;
  cursor: pointer;
}
.csv-table th.selected {
  background: var(--ink);
  color: var(--paper);
}
.csv-table tbody tr:hover { background: var(--soft); }

.csv-meta { margin: 0.5rem 0 0; font-size: 0.78rem; color: var(--muted); }

/* ============================================================================
   14. PASSWORD-TABLE (add-password-to-pdf / remove-password-from-pdf)
   ============================================================================ */
.pw-table-wrap {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: var(--rule-med) solid var(--ink);
}
.pw-table-wrap.hidden { display: none !important; }

.pw-bulk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  align-items: end;
  margin-bottom: 1rem;
}
.pw-bulk-row--single { grid-template-columns: 1fr; }
.pw-bulk-row .pw-bulk-clear {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0;
}
@media (max-width: 720px) {
  .pw-bulk-row { grid-template-columns: 1fr; }
}
.pw-bulk-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.pw-bulk-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.pw-bulk-input-row .output-settings-input {
  flex: 1;
  max-width: none;
  min-width: 0;
}
.pw-bulk-input-row .btn-tiny {
  flex-shrink: 0;
  width: auto;
  margin: 0;
}

.pw-table-scroll {
  overflow-x: auto;
  border: var(--rule-med) solid var(--ink);
  background: var(--paper);
}
.pw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.pw-table thead th {
  background: var(--soft);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.65rem 0.85rem;
  border-bottom: var(--rule-med) solid var(--ink);
  vertical-align: top;
}
.pw-table thead th .pw-col-sub {
  display: block;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.62rem;
  color: var(--muted);
}
.pw-table tbody td {
  padding: 0.65rem 0.85rem;
  border-bottom: var(--rule-thin) solid var(--line-soft);
  vertical-align: top;
}
.pw-table tbody tr:last-child td { border-bottom: none; }

.pw-col-file { min-width: 200px; max-width: 340px; }
.pw-col-current, .pw-col-new { min-width: 180px; }
.pw-col-actions { width: 90px; text-align: right; }

.pw-row-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  word-break: break-all;
  line-height: 1.4;
}
.pw-row-note, .pw-row-error {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--muted);
}
.pw-row-error { color: var(--error-ink); }

.pw-input { width: 100%; max-width: 100%; }

.pw-row-remove {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  background: var(--paper);
  color: var(--ink);
  border: var(--rule-thin) solid var(--ink);
  cursor: pointer;
  transition: background var(--dur), color var(--dur);
}
.pw-row-remove:hover {
  background: var(--ink);
  color: var(--paper);
}

.pw-table-hint {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ============================================================================
   15. MERGE FILE LIST (merge-pdf-files etc.)
   ============================================================================ */
.merge-file-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border: var(--rule-med) solid var(--ink);
  background: var(--paper);
}
.merge-list-empty {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.merge-file-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-bottom: var(--rule-thin) solid var(--line-soft);
  font-size: 0.92rem;
}
.merge-file-list__item:last-child { border-bottom: none; }
.merge-file-list__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.merge-file-list__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}
.merge-file-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  flex-shrink: 0;
}
.merge-file-list__pwd-row {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.merge-file-list__pwd-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.merge-file-list__pwd-input {
  width: 100%;
  max-width: 260px;
  padding: 0.4rem 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border: var(--rule-thin) solid var(--ink);
  background: var(--paper);
}
.merge-password-hint {
  margin: 0.5rem 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============================================================================
   16. FILENAME-PATTERN EDITOR (split-pdf-into-files)
   ============================================================================ */
.filename-naming-section {
  padding: 1rem 0 0;
  border-top: var(--rule-med) solid var(--ink);
  margin-top: 1rem;
}
.filename-naming-section.hidden { display: none; }

.filename-preview-wrap { margin-top: 0; }
.filename-preview-label {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.filename-preview-static {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-all;
  background: var(--soft);
  border: var(--rule-med) solid var(--ink);
  color: var(--ink);
}
.filename-pattern-editor { margin-top: 0.25rem; }
.filename-placeholder-hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.filename-pattern-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0.35rem 0 0.75rem;
}
.filename-pattern-chips-label {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.pattern-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border: var(--rule-thin) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur), color var(--dur);
}
.pattern-chip:hover { background: var(--ink); color: var(--paper); }
.pattern-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================================================
   17. CSV MAP / PDF FIELD OVERLAYS (fill-pdf-from-excel-or-csv)
   ============================================================================ */
.csv-section { padding-bottom: 1.25rem; border-bottom: var(--rule-med) solid var(--ink); }
.csv-data-wrap { margin-bottom: 1.5rem; }
.csv-data-title,
.map-section h3,
.pdf-fields-list-wrap h4,
.mappings-list h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-section { margin-bottom: 1.5rem; }
.pdf-section { padding-top: 0.5rem; }
.map-instruction { margin: 0 0 0.75rem; font-size: 0.88rem; color: var(--muted); }
.selected-for-mapping,
.selected-hint {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.8rem;
  background: var(--soft);
  border: var(--rule-thin) solid var(--ink);
  font-size: 0.88rem;
}
.selected-hint .next-step {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}
.pdf-view-wrap {
  border: var(--rule-med) solid var(--ink);
  overflow: auto;
  max-height: 85vh;
  min-height: 560px;
  background: var(--soft);
}
.pdf-canvas-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.pdf-field-overlays {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pdf-field-overlay {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  background: rgba(255, 58, 31, 0.08);
  border: var(--rule-thin) solid var(--accent);
  display: flex;
  align-items: center;
  padding: 2px 4px;
  transition: background var(--dur), border-color var(--dur);
}
.pdf-field-overlay:hover,
.pdf-field-overlay.hover {
  background: rgba(255, 58, 31, 0.18);
  border-color: var(--ink);
}
.pdf-field-preview {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-field-overlay.multiline .pdf-field-preview { white-space: pre-wrap; }

.pdf-fields-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; border: var(--rule-med) solid var(--ink); background: var(--paper); }
.pdf-field-item {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0.75rem;
  border-bottom: var(--rule-thin) solid var(--line-soft);
  font-size: 0.85rem;
}
.pdf-field-item:last-child { border-bottom: none; }
.pdf-field-num {
  flex-shrink: 0;
  width: 1.75rem; height: 1.75rem;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.pdf-field-name {
  flex: 1; min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.btn-map-here {
  padding: 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  border: var(--rule-thin) solid var(--ink);
  cursor: pointer;
}
.btn-map-here:hover { background: var(--ink); color: var(--paper); }

.mappings-list { margin-top: 1rem; padding-top: 1rem; border-top: var(--rule-med) solid var(--ink); }
.mappings-list ul { list-style: none; padding: 0; margin: 0; }
.mappings-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  border-bottom: var(--rule-thin) solid var(--line-soft);
}
.mappings-list li .remove,
.output-columns-list li .remove-column {
  color: var(--error-ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: none; border: none; padding: 0 0.25rem;
}
.mappings-list li .remove:hover { text-decoration: underline; }
.mappings-list li.muted { color: var(--muted); font-style: italic; }

.output-columns-add {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.output-column-select {
  flex: 1;
  max-width: 240px;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  background: var(--paper);
  border: var(--rule-med) solid var(--ink);
}
.btn-add-column {
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  border: var(--rule-med) solid var(--ink);
  cursor: pointer;
}
.btn-add-column:hover { background: var(--ink); color: var(--paper); }
.output-columns-list { margin: 0; padding: 0; list-style: none; min-height: 2rem; }
.output-columns-list li {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  border-bottom: var(--rule-thin) solid var(--line-soft);
}
.output-preview { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--muted); }
.output-preview em { font-style: normal; color: var(--ink); font-weight: 500; }

/* ============================================================================
   18. FAQ / WHO-FOR / RELATED GUIDES
   ============================================================================ */
.app-who-for h2,
.app-faq h2,
.seo-related-guides h2 {
  margin-top: 0;
}
.app-faq h3 {
  margin: 1.25rem 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.seo-related-guides ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}
.seo-related-guides li {
  padding: 0.55rem 0;
  border-bottom: var(--rule-thin) solid var(--line-soft);
}
.seo-related-guides li:last-child { border-bottom: none; }
.seo-related-guides a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: var(--rule-thin) solid transparent;
  transition: border-color var(--dur), color var(--dur);
}
.seo-related-guides a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================================
   19. SUITE FOOTER / SUITE NAV
   ============================================================================ */
.suite-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: var(--rule-thick) solid var(--ink);
}
.suite-nav__intro {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 1.25rem;
}
.suite-nav__intro a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.suite-nav__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
}
.suite-nav__list li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.suite-nav__list li a,
.suite-nav__list li .suite-nav__here {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border: var(--rule-thin) solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: background var(--dur), color var(--dur);
}
.suite-nav__list li a:hover {
  background: var(--ink);
  color: var(--paper);
}
.suite-nav__list li .suite-nav__here {
  background: var(--ink);
  color: var(--paper);
  cursor: default;
}
.suite-nav__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.suite-nav__meta a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  margin-right: 0.5rem;
}
.suite-nav__meta a:hover { color: var(--accent); }

/* ============================================================================
   20. HOME HUB — Brutalist Swiss
   ============================================================================ */
.hub-page header.hub-mast {
  border-top: var(--rule-thick) solid var(--ink);
  border-bottom: var(--rule-med) solid var(--ink);
  padding: 1.25rem 0 0.85rem;
  margin-bottom: 2.5rem;
}
.hub-mast__brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.hub-mast__brand span:last-child { color: var(--muted); }
.hub-mast__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 1.5rem + 8vw, 7.5rem);
  letter-spacing: -0.04em;
  line-height: 0.85;
  margin: 0;
  text-transform: uppercase;
  color: var(--ink);
}
.hub-mast__title em {
  font-style: normal;
  color: var(--accent);
}
.hub-mast__sub {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  align-items: end;
  margin-top: 0.8rem;
  padding-top: 0.5rem;
  border-top: var(--rule-thin) solid var(--ink);
}
@media (max-width: 720px) { .hub-mast__sub { grid-template-columns: 1fr; } }
.hub-mast__sub p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 56ch;
}
.hub-mast__count {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  text-align: right;
  color: var(--ink);
}
.hub-mast__count small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

.hub-section { margin-bottom: 3rem; }
.hub-section__bar {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.4rem 0;
  border-top: var(--rule-med) solid var(--ink);
  border-bottom: var(--rule-thin) solid var(--ink);
  margin-bottom: 0.5rem;
}
.hub-section__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.hub-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 0.95rem + 0.8vw, 1.55rem);
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hub-section__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.hub-tools { display: flex; flex-direction: column; }
.hub-tool {
  display: grid;
  grid-template-columns: 5rem 1fr 1.5fr auto;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: var(--rule-thin) solid var(--ink);
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
  transition: background 150ms var(--ease-out), padding 150ms var(--ease-out);
}
.hub-tool:hover {
  background: var(--soft);
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}
.hub-tool__num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 0.9;
}
.hub-tool__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.35rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}
.hub-tool__hint {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
}
.hub-tool__go {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  justify-self: end;
  white-space: nowrap;
}
.hub-tool:hover .hub-tool__go { color: var(--accent); }
.hub-tool:hover .hub-tool__name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

@media (max-width: 680px) {
  .hub-tool {
    grid-template-columns: 3rem 1fr;
    gap: 0.75rem;
  }
  .hub-tool__hint { grid-column: 1 / -1; padding-left: 3.75rem; }
  .hub-tool__go { grid-column: 2; justify-self: start; }
  .hub-section__bar { grid-template-columns: 3rem 1fr auto; }
}

/* ============================================================================
   21. LANDING / HUB LEGACY (existing classes on index.html)
   These wrap into the new hub design above; preserved for back-compat.
   ============================================================================ */
.landing,
.hub-band,
.hub-band--nav,
.hub-side-list,
.hub-side-item,
.catalog-item {
  /* Legacy hub classes — replaced by .hub-mast / .hub-tool above.
     Kept as no-op so old markup degrades gracefully until index.html is rewritten. */
}

/* ============================================================================
   22. PAYWALL HOOKS
   ============================================================================ */
.paywall-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--paper);
  border: var(--rule-med) solid var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.paywall-cta:hover {
  box-shadow: var(--shadow-hover);
  transform: translate(-2px, -2px);
}

/* ============================================================================
   23. UTILITIES
   ============================================================================ */
.muted { color: var(--muted); }
.text-mono { font-family: var(--font-mono); }
.text-display { font-family: var(--font-display); }

/* End of site.css */

/* ============================================================================
   24. GUIDES — guide pages, hub cards, article reading
   ============================================================================ */
.guide-page {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 5rem;
}
.guide-shell { width: 100%; }

.guide-master__brand {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  margin-block-end: 1.25rem;
  display: inline-block;
}
.guide-master__brand:hover { color: var(--accent); }

.guide-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: var(--rule-thin) solid var(--ink);
}
.guide-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: var(--rule-thin) solid transparent;
}
.guide-breadcrumb a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.guide-breadcrumb__here { color: var(--ink); font-weight: 600; }
.guide-breadcrumb .sep { margin: 0 0.4rem; }

.guide-page h1,
.guide-shell h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.guide-lede {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 62ch;
  margin: 0 0 1.5rem;
}
.guide-lede strong { font-weight: 600; }

.guide-cta-row { margin: 0 0 2.5rem; }
.guide-cta-row .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.guide-cta-row .btn .btn__arrow { font-size: 1rem; }

.guide-cta-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 1rem 0;
}

/* Hub card grid (guide hub pages) */
.guide-hub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: var(--rule-med) solid var(--ink);
}
.guide-hub-list > li { margin: 0; }
.guide-hub-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 1.1rem 0.6rem;
  border-bottom: var(--rule-thin) solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  transition: background 150ms var(--ease-out), padding 150ms var(--ease-out);
}
.guide-hub-card:hover {
  background: var(--soft);
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}
.guide-hub-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-transform: uppercase;
}
.guide-hub-card__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
  grid-column: 1;
}
.guide-hub-card__go {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  justify-self: end;
  align-self: center;
  white-space: nowrap;
}
.guide-hub-card:hover .guide-hub-card__go { color: var(--accent); }

/* Article body */
.guide-prose {
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.65;
}
.guide-prose h2 {
  margin: 2.25rem 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  padding-top: 1rem;
  border-top: var(--rule-thin) solid var(--ink);
}
.guide-prose h3 {
  margin: 1.5rem 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
}
.guide-prose p { margin: 0 0 1rem; }
.guide-prose ul, .guide-prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.guide-prose li { margin: 0 0 0.3rem; }
.guide-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur);
}
.guide-prose a:hover { color: var(--accent); }
.guide-prose code,
.guide-prose pre {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--soft);
  border: var(--rule-thin) solid var(--line-soft);
  padding: 0.12em 0.4em;
}
.guide-prose pre {
  padding: 0.85rem 1rem;
  overflow-x: auto;
  line-height: 1.5;
  margin: 0 0 1rem;
}
.guide-prose blockquote {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  background: var(--soft);
  border-left: var(--rule-thick) solid var(--ink);
  font-style: italic;
}

.guide-audience {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  background: var(--soft);
  border: var(--rule-thin) solid var(--ink);
  font-size: 0.88rem;
}

.guide-disclaimer {
  margin-top: 2.5rem;
  padding: 0.85rem 1rem;
  background: var(--tip-bg);
  border: var(--rule-thin) solid var(--ink);
  font-size: 0.85rem;
  color: var(--ink);
}

/* Related guides block at end of an article */
.guide-related {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: var(--rule-thick) solid var(--ink);
}
.guide-related__heading,
.guide-related__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.guide-related__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.guide-related__list li {
  border-bottom: var(--rule-thin) solid var(--line-soft);
  padding: 0.6rem 0;
}
.guide-related__list li:last-child { border-bottom: none; }
.guide-related__list a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}
.guide-related__list a:hover { color: var(--accent); }
.guide-related__audience {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.15rem;
}

/* How-to / practice guide master pages */
.guide-master,
.how-to-hub {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 5rem;
}
.guide-master__inner { width: 100%; }
.guide-master__header { margin-bottom: 2.5rem; }
.guide-master__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: var(--rule-med) solid var(--ink);
}
.guide-master__grid li {
  border-bottom: var(--rule-thin) solid var(--ink);
  padding: 1rem 0.5rem;
  transition: background 150ms var(--ease-out), padding 150ms var(--ease-out);
}
.guide-master__grid li:hover {
  background: var(--soft);
  padding-left: 1.1rem;
}
.guide-master__grid a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
}
.guide-master__grid .tool-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.guide-master__grid .tool-blurb {
  font-size: 0.88rem;
  color: var(--muted);
  grid-column: 1;
}
.guide-master__grid .tool-go {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  justify-self: end;
  align-self: center;
}
.guide-master__grid li:hover .tool-go { color: var(--accent); }
.guide-master__grid p.tool-blurb a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.guide-master__grid p.tool-blurb a:hover { color: var(--accent); }

.how-to-hub__section {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 2.5rem 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: var(--rule-med) solid var(--ink);
}
.how-to-hub__footer-lede {
  margin-top: 3rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 62ch;
}


/* ============================================================================
   25. HOME HUB v2 — compact icon list (no sub-categories)
   Overrides any earlier .hub-tool / .hub-section rules above.
   ============================================================================ */
.hub-page .app {
  max-width: var(--max-width);
}
.hub-page header.hub-mast {
  border-top: var(--rule-thick) solid var(--ink);
  border-bottom: var(--rule-med) solid var(--ink);
  padding: 1.25rem 0 1.5rem;
  margin-bottom: 2rem;
}
.hub-page .hub-mast__brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.hub-page .hub-hero__wordmark a {
  color: inherit;
  text-decoration: none;
}
.hub-page .hub-hero__wordmark a:hover { color: var(--accent); }

/* List bar (replaces section bars) */
.hub-list { margin-bottom: 3rem; }
.hub-list__bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-top: var(--rule-med) solid var(--ink);
  border-bottom: var(--rule-thin) solid var(--ink);
  margin-bottom: 0;
}
.hub-list__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.hub-list__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* 2-column grid; collapses to 1 column on narrow screens */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-right: var(--rule-thin) solid var(--ink);
}
@media (max-width: 720px) {
  .hub-grid { grid-template-columns: 1fr; border-right: none; }
}

.hub-tool {
  display: grid;
  grid-template-columns: 3rem 1fr 1.25rem;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem 0.85rem 0.85rem 0.5rem;
  border-bottom: var(--rule-thin) solid var(--ink);
  border-right: var(--rule-thin) solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  transition: background 150ms var(--ease-out);
}
.hub-tool:nth-child(2n) { border-right: none; }
@media (max-width: 720px) {
  .hub-tool { border-right: none; grid-template-columns: 2.4rem 1fr 1rem; }
}
.hub-tool:hover {
  background: var(--soft);
}
.hub-tool:hover .hub-tool__icon {
  background: var(--ink);
  color: var(--bg);
}
.hub-tool:hover .hub-tool__go { color: var(--accent); }
.hub-tool:hover .hub-tool__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--accent); }

.hub-tool__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  background: var(--paper);
  color: var(--ink);
  border: var(--rule-med) solid var(--ink);
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .hub-tool__icon { width: 2.2rem; height: 2.2rem; font-size: 1.1rem; }
}

.hub-tool__body {
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.5rem;
  align-items: baseline;
  min-width: 0;
}
@media (max-width: 480px) {
  .hub-tool__body { grid-template-columns: 1fr; }
}
.hub-tool__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  grid-row: 1;
}
.hub-tool__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.2;
  grid-row: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.hub-tool__hint {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.hub-tool__go {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.hub-tool:hover .hub-tool__go { transform: translateX(2px); }

/* Hub mast sub block (lede + count) */
.hub-mast__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 1.5rem + 6vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 0.25rem 0 0.8rem;
  text-transform: uppercase;
}
.hub-mast__title em {
  font-style: normal;
  color: var(--accent);
}
.hub-mast__sub {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  align-items: end;
  padding-top: 0.5rem;
  border-top: var(--rule-thin) solid var(--ink);
}
@media (max-width: 720px) { .hub-mast__sub { grid-template-columns: 1fr; } }
.hub-mast__sub p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 56ch;
}
.hub-mast__count {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  text-align: right;
  color: var(--ink);
}
.hub-mast__count small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ============================================================================
   26. SUBSCRIPTION BLOCK (in hub mast)
   ============================================================================ */
.hub-subscribe {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: var(--rule-med) solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
}
@media (max-width: 720px) {
  .hub-subscribe { grid-template-columns: 1fr; }
}

.hub-subscribe__col { min-width: 0; }
.hub-subscribe__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.hub-subscribe__tiers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hub-subscribe__tiers li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  border: var(--rule-med) solid var(--ink);
  background: var(--paper);
  font-family: var(--font-display);
}
.hub-subscribe__tiers li b {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.hub-subscribe__tiers li small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hub-subscribe__cta-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 14rem;
}

/* ============================================================================
   27. PAYWALL — backdrop, modal, tiers, license, success view
   ============================================================================ */
.paywall-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
}
#paywallBackdrop[hidden] {
  display: none !important;
  pointer-events: none;
}

.paywall-modal {
  width: min(560px, 100%);
  background: var(--paper);
  border: var(--rule-med) solid var(--ink);
  border-radius: 0;
  box-shadow: var(--shadow-hover);
  padding: 1.5rem 1.5rem 1.7rem;
  position: relative;
}
.paywall-modal h2,
.paywall-modal h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0 0 0.85rem;
}

.paywall-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: var(--rule-thin) solid var(--ink);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur), color var(--dur);
}
.paywall-close:hover { background: var(--ink); color: var(--paper); }

.paywall-copy {
  margin: 0.4rem 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.paywall-copy--trial,
.tool-try-note {
  margin: 0.65rem 0;
  padding: 0.65rem 0.8rem;
  background: var(--soft);
  border: var(--rule-thin) solid var(--ink);
  border-left: var(--rule-thick) solid var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
}
.paywall-copy--value {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}
.paywall-list {
  margin: 0 0 1rem;
  padding-left: 1rem;
  font-size: 0.9rem;
}

/* Tier buttons (monthly / yearly / lifetime) */
.paywall-tiers {
  display: flex;
  gap: 0.5rem;
  margin: 0.6rem 0 0.4rem;
}
.paywall-tiers .paywall-tier,
.paywall-modal .paywall-tiers .paywall-tier {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.65rem 0.45rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  background: var(--paper);
  color: var(--ink);
  border: var(--rule-med) solid var(--ink);
  cursor: pointer;
  text-align: center;
  min-height: 3rem;
  transition: background var(--dur), color var(--dur);
}
.paywall-tiers .paywall-tier:hover:not(:disabled),
.paywall-modal .paywall-tiers .paywall-tier:hover:not(:disabled) {
  background: var(--soft);
}
.paywall-tiers .paywall-tier--selected,
.paywall-modal .paywall-tiers .paywall-tier--selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.paywall-modal .paywall-tiers .paywall-tier--selected:hover:not(:disabled) {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.paywall-purchase { margin-top: 0.85rem; }
.paywall-purchase-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.paywall-status {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.paywall-restore,
.paywall-license {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: var(--rule-thin) solid var(--ink);
}
.paywall-restore__title,
.paywall-license__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.paywall-restore__input,
.paywall-license__input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--paper);
  border: var(--rule-med) solid var(--ink);
  resize: vertical;
}
.paywall-restore__input:focus,
.paywall-license__input:focus {
  outline: none;
  border-color: var(--accent);
}
.paywall-restore__actions,
.paywall-license__actions { margin-top: 0.5rem; }
.paywall-license__manage { margin-top: 0.5rem; }
.paywall-license__manage[hidden] { display: none !important; }
.paywall-license__manage-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Success view */
.paywall-success-view__title {
  margin: 0 0 0.5rem;
  padding-right: 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.paywall-success-view__copy {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--ink);
}
.paywall-success-view__label {
  display: block;
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.paywall-success-view__token { margin-bottom: 0.5rem; }
.paywall-success-view__actions { margin-top: 0.4rem; }
.paywall-success-view__copy-btn,
.paywall-success-view__manage-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.paywall-success-view__hint {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}
.paywall-success-view__secondary { margin-top: 0.5rem; }
.paywall-success-view__secondary[hidden] { display: none !important; }

/* Header status dot — squared in brutalist style (the JS toggles --active/--inactive) */
.paywall-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  vertical-align: middle;
}
.paywall-status-dot {
  flex-shrink: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0;
  border: var(--rule-thin) solid var(--ink);
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.paywall-status-dot:hover { transform: scale(1.2); }
.paywall-status-dot:focus-visible {
  outline: var(--rule-med) solid var(--accent);
  outline-offset: 3px;
}
.paywall-status-dot--active {
  background: #16a34a;
  border-color: #14532d;
}
.paywall-status-dot--inactive {
  background: var(--accent);
  border-color: var(--ink);
}

/* Paywall CTA used elsewhere (e.g. tool pages embedding a subscribe block) */
.paywall-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--paper);
  border: var(--rule-med) solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow var(--dur), transform 120ms;
}
.paywall-cta:hover {
  box-shadow: var(--shadow-hover);
  transform: translate(-2px, -2px);
}


/* ============================================================================
   28. TOOL PAGE — editorial spread overrides (matches mockup E)
   Replaces the boxy .card from section 5 with a top-rule + left-label-column
   layout. Step sections auto-number via CSS counter. Applies on tool pages.
   ============================================================================ */

/* Bigger, more dramatic h1 — the mockup's headline is the visual anchor. */
.app > header h1 {
  font-size: clamp(2.6rem, 1.5rem + 5vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.app > header {
  border-top: var(--rule-thick) solid var(--ink);
  border-bottom: var(--rule-med) solid var(--ink);
  padding: 1.25rem 0 1.75rem;
}
.app > header .brand { margin-bottom: 0.6rem; }
.app > header .subtitle {
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.12rem);
  line-height: 1.5;
  margin-top: 0.85rem;
}

/* Reset step counter at the .app level so steps re-number per page. */
.app { counter-reset: tool-step; }

/* Sections become editorial spreads: top rule + label column + body column. */
.app .card,
.app .step-upload,
.app .step-review,
.app .step-map,
.app .progress-card,
.app .app-who-for,
.app .app-faq,
.app .seo-related-guides {
  background: transparent;
  border: 0;
  border-top: var(--rule-med) solid var(--ink);
  padding: 1.65rem 0 1.85rem;
  margin: 0;
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.5rem 1.75rem;
}

/* Last section gets a closing rule for visual termination. */
.app > section:last-of-type,
.app .seo-related-guides {
  border-bottom: var(--rule-med) solid var(--ink);
}

@media (max-width: 720px) {
  .app .card,
  .app .step-upload,
  .app .step-review,
  .app .step-map,
  .app .progress-card,
  .app .app-who-for,
  .app .app-faq,
  .app .seo-related-guides {
    grid-template-columns: 1fr;
    padding: 1.25rem 0 1.5rem;
  }
}

/* All direct children land in the right (content) column. */
.app .card > *,
.app .step-upload > *,
.app .step-review > *,
.app .step-map > *,
.app .progress-card > *,
.app .app-who-for > *,
.app .app-faq > *,
.app .seo-related-guides > * {
  grid-column: 2;
  min-width: 0;
}
@media (max-width: 720px) {
  .app .card > *,
  .app .step-upload > *,
  .app .step-review > *,
  .app .step-map > *,
  .app .progress-card > *,
  .app .app-who-for > *,
  .app .app-faq > *,
  .app .seo-related-guides > * {
    grid-column: 1;
  }
}

/* Step labels — generated by CSS counter for any section that's an interactive step. */
.app .step-upload,
.app .step-review,
.app .step-map {
  counter-increment: tool-step;
}
.app .step-upload::before,
.app .step-review::before,
.app .step-map::before {
  content: "Step " counter(tool-step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  grid-column: 1;
  grid-row: 1 / span 99;
  align-self: start;
  padding-top: 0.15rem;
}

/* Non-step sections get a one-word kicker label so the design language stays consistent. */
.app .progress-card::before        { content: "Process"; }
.app .app-who-for::before          { content: "Who"; }
.app .app-faq::before              { content: "Questions"; }
.app .seo-related-guides::before   { content: "Guides"; }
.app .progress-card::before,
.app .app-who-for::before,
.app .app-faq::before,
.app .seo-related-guides::before {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  grid-column: 1;
  grid-row: 1 / span 99;
  align-self: start;
  padding-top: 0.15rem;
}

@media (max-width: 720px) {
  .app .step-upload::before,
  .app .step-review::before,
  .app .step-map::before,
  .app .progress-card::before,
  .app .app-who-for::before,
  .app .app-faq::before,
  .app .seo-related-guides::before {
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 0.5rem;
    padding-top: 0;
  }
}

/* h2 inside a section: no underline (visual structure comes from the section's top rule). */
.app .card h2,
.app section.card > h2,
.app .step-upload > h2,
.app .step-review > h2,
.app .step-map > h2,
.app .progress-card > h2,
.app .app-who-for > h2,
.app .app-faq > h2,
.app .seo-related-guides > h2 {
  margin: 0 0 0.85rem;
  padding-bottom: 0;
  border-bottom: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 1.05;
}

/* FAQ sub-questions: small mono kickers under the section h2. */
.app .app-faq h3 {
  margin: 1.5rem 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  text-transform: none;
  padding-top: 0.6rem;
  border-top: var(--rule-thin) solid var(--line-soft);
}
.app .app-faq h3:first-of-type {
  padding-top: 0;
  border-top: 0;
  margin-top: 0;
}
.app .app-faq p { color: var(--ink); }

/* Progress bar reads as a brutalist hardware gauge. */
.app .progress-card progress {
  width: 100%;
  height: 18px;
  border: var(--rule-med) solid var(--ink);
  background: var(--paper);
}

/* Related guides list: tighter, brutalist link rows. */
.app .seo-related-guides ul {
  border-top: var(--rule-thin) solid var(--ink);
  margin-top: 0.75rem;
}
.app .seo-related-guides li {
  padding: 0.75rem 0;
  border-bottom: var(--rule-thin) solid var(--ink);
}
.app .seo-related-guides li:last-child { border-bottom: 0; }
.app .seo-related-guides a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  border-bottom: 0;
}
.app .seo-related-guides a:hover { color: var(--accent); }

/* Suite footer at the bottom of each tool — make it feel like a closing colophon. */
.app .suite-footer {
  margin-top: 0;
  border-top: 0; /* the last section already provides the closing rule */
  padding-top: 1.5rem;
}


/* ============================================================================
   29. HUB MAST — brand row tweaks (Local processing tag, hide legacy paywall dot)
   ============================================================================ */
.hub-mast__brand-name {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hub-mast__brand-name:hover { color: var(--accent); }
.hub-mast__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hub-mast__tag::before {
  content: "🔒";
  display: inline-block;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  width: auto;
  height: auto;
}

/* The legacy paywall script tries to insert a status dot next to .hub-hero__wordmark.
   Without that hook on the page now, nothing installs — keep the hide rule as a guard
   in case any other page still has the wordmark class. */
.hub-page .paywall-status-dot,
.hub-page .paywall-brand-wrap { display: none !important; }


/* ============================================================================
   30. HUB v3 — single-line rows, no icons
   Overrides the v2 icon-grid layout from section 25.
   ============================================================================ */
.hub-grid .hub-tool {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto 1.25rem;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-bottom: var(--rule-thin) solid var(--ink);
  border-right: var(--rule-thin) solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  transition: background 150ms var(--ease-out);
  min-width: 0;
}
.hub-grid .hub-tool:nth-child(2n) { border-right: none; }
@media (max-width: 720px) {
  .hub-grid .hub-tool {
    border-right: none;
    grid-template-columns: 2rem 1fr auto;
    gap: 0.75rem;
  }
  .hub-grid .hub-tool__go { display: none; }
}
.hub-grid .hub-tool:hover { background: var(--soft); }
.hub-grid .hub-tool:hover .hub-tool__name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
}
.hub-grid .hub-tool:hover .hub-tool__go { color: var(--accent); }

.hub-grid .hub-tool__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}
.hub-grid .hub-tool__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.hub-grid .hub-tool__hint {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  text-align: right;
}
@media (max-width: 980px) {
  .hub-grid .hub-tool__hint { display: none; }
}
.hub-grid .hub-tool__go {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.hub-grid .hub-tool:hover .hub-tool__go { transform: translateX(2px); }

/* Make sure the legacy .hub-tool__icon (if present) is hidden. */
.hub-tool__icon, .hub-tool__body { display: none !important; }


/* ============================================================================
   31. TIGHTEN VERTICAL RHYTHM — pull sections closer on tools + hub
   ============================================================================ */

/* --- Tool pages --- */
.app > header {
  padding: 1rem 0 1.1rem;
  margin-bottom: 0;
}
.app > header .brand { margin-bottom: 0.4rem; }
.app > header h1 { line-height: 0.9; }

.app .card,
.app .step-upload,
.app .step-review,
.app .step-map,
.app .progress-card,
.app .app-who-for,
.app .app-faq,
.app .seo-related-guides {
  padding: 1rem 0 1.15rem;
  gap: 0.4rem 1.75rem;
}
@media (max-width: 720px) {
  .app .card,
  .app .step-upload,
  .app .step-review,
  .app .step-map,
  .app .progress-card,
  .app .app-who-for,
  .app .app-faq,
  .app .seo-related-guides {
    padding: 0.9rem 0 1rem;
  }
}

.app .card h2,
.app section.card > h2,
.app .step-upload > h2,
.app .step-review > h2,
.app .step-map > h2,
.app .progress-card > h2,
.app .app-who-for > h2,
.app .app-faq > h2,
.app .seo-related-guides > h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 1.1rem + 0.6vw, 1.5rem);
}
.app .card p,
.app .app-who-for p,
.app .app-faq p,
.app .seo-related-guides p {
  margin: 0 0 0.5rem;
}
.app .app-faq h3 { margin: 0.85rem 0 0.3rem; padding-top: 0.5rem; }

.app .upload-row { margin-bottom: 0.85rem; }
.app .output-settings-row { margin-bottom: 0.6rem; }
.app .pw-table-wrap { margin-top: 0.85rem; padding-top: 0.85rem; }
.app .merge-file-list { margin-bottom: 0.85rem; }

.app .suite-footer {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 0;
}
.app .suite-nav__intro { margin-bottom: 0.85rem; }
.app .suite-nav__list { margin-bottom: 0.9rem; }

/* --- Home hub --- */
.hub-page header.hub-mast {
  padding: 1rem 0 1.1rem;
  margin-bottom: 0;
}
.hub-page .hub-mast__brand { margin-bottom: 0.5rem; }
.hub-page .hub-mast__title {
  margin: 0.2rem 0 0.5rem;
  line-height: 0.88;
}
.hub-page .hub-mast__sub {
  padding-top: 0.4rem;
  gap: 0.5rem 1rem;
}
.hub-page .hub-subscribe {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  gap: 0.85rem 2rem;
}

.hub-page .hub-list { margin-top: 0; margin-bottom: 1.5rem; }
.hub-page .hub-list__bar { padding: 0.4rem 0; }

.hub-grid .hub-tool { padding: 0.55rem 0.85rem; }

.hub-page .suite-footer { margin-top: 1rem; padding-top: 1rem; border-top: 0; }


/* ============================================================================
   32. HUB v4 — stacked name+hint per tool, drop intra-mast rules
   ============================================================================ */

/* Drop the rule lines under the h1 and above the subscription block. */
.hub-page .hub-mast__sub {
  border-top: 0;
  padding-top: 0;
  margin-top: 0.4rem;
}
.hub-page .hub-subscribe {
  border-top: 0;
  padding-top: 0;
  margin-top: 0.6rem;
}

/* Tool rows: name on line 1, hint stacked beneath. */
.hub-grid .hub-tool {
  grid-template-columns: 2.4rem 1fr 1.25rem;
  grid-template-rows: auto auto;
  align-items: baseline;
  column-gap: 1rem;
  row-gap: 0.1rem;
  padding: 0.7rem 0.85rem;
}
.hub-grid .hub-tool__num {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}
.hub-grid .hub-tool__name {
  grid-column: 2;
  grid-row: 1;
  text-align: left;
}
.hub-grid .hub-tool__hint {
  grid-column: 2;
  grid-row: 2;
  text-align: left;
  white-space: normal; /* allow wrap if very long */
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.hub-grid .hub-tool__go {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
}
@media (max-width: 720px) {
  .hub-grid .hub-tool {
    grid-template-columns: 2rem 1fr;
    column-gap: 0.75rem;
  }
  .hub-grid .hub-tool__go { display: none; }
}


/* ============================================================================
   33. TOOL PAGES — tighter rhythm + accent H1
   ============================================================================ */

/* Bring the H1 in line with the home hub: orange accent. */
.app > header h1 {
  color: var(--accent);
}

/* Pull every section closer together — minimal vertical breathing room. */
.app > header {
  padding: 0.75rem 0 0.85rem;
}
.app > header .brand { margin-bottom: 0.25rem; }

.app .card,
.app .step-upload,
.app .step-review,
.app .step-map,
.app .progress-card,
.app .app-who-for,
.app .app-faq,
.app .seo-related-guides {
  padding: 0.7rem 0 0.85rem;
  gap: 0.3rem 1.5rem;
}
@media (max-width: 720px) {
  .app .card,
  .app .step-upload,
  .app .step-review,
  .app .step-map,
  .app .progress-card,
  .app .app-who-for,
  .app .app-faq,
  .app .seo-related-guides {
    padding: 0.65rem 0 0.75rem;
  }
}

.app .card h2,
.app section.card > h2,
.app .step-upload > h2,
.app .step-review > h2,
.app .step-map > h2,
.app .progress-card > h2,
.app .app-who-for > h2,
.app .app-faq > h2,
.app .seo-related-guides > h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.05;
}

.app .card p,
.app .app-who-for p,
.app .app-faq p,
.app .seo-related-guides p {
  margin: 0 0 0.35rem;
  line-height: 1.45;
}
.app .app-faq h3 {
  margin: 0.55rem 0 0.2rem;
  padding-top: 0.4rem;
}
.app .app-faq h3:first-of-type { padding-top: 0; margin-top: 0; }

.app .upload-row { margin-bottom: 0.5rem; }
.app .output-settings-row { margin-bottom: 0.4rem; }
.app .pw-table-wrap { margin-top: 0.5rem; padding-top: 0.5rem; }
.app .merge-file-list { margin-bottom: 0.5rem; }

.app .ap-hint,
.app .merge-password-hint,
.app .pw-table-hint {
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

/* Empty <p class="error-message hidden"> shouldn't leave a margin when hidden. */
.app .error-message:not(.hidden) { margin: 0 0 0.5rem; }

.app .step-upload .btn-primary,
.app .step-review .btn-primary,
.app .btn-generate {
  margin-top: 0.5rem;
}


/* ============================================================================
   34. TOOL H1 — revert to black ink; <em> inside gets the accent color
   (Matches the home hub: black phrase + orange accent word.)
   ============================================================================ */
.app > header h1 {
  color: var(--ink);
}
.app > header h1 em {
  font-style: normal;
  color: var(--accent);
}


/* ============================================================================
   35. PAYWALL MODAL — two simpler modes (subscribe-only / restore-only)
   ============================================================================ */

.paywall-modal {
  width: min(520px, 100%);
  padding: 2rem 1.85rem 1.85rem;
}
.paywall-modal h2,
.paywall-modal #paywallTitle {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  padding-right: 2.5rem;
}
.paywall-modal h2 em,
.paywall-modal #paywallTitle em {
  font-style: normal;
  color: var(--accent);
}

.paywall-close {
  top: 0.65rem;
  right: 0.65rem;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.25rem;
  line-height: 1;
}

/* Tighter spacing across modal copy */
.paywall-modal .paywall-copy { margin: 0 0 0.6rem; font-size: 0.95rem; line-height: 1.5; }
.paywall-modal .paywall-copy--trial {
  margin: 0.5rem 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
}
.paywall-modal .paywall-list { margin: 0 0 0.75rem; padding-left: 1.1rem; font-size: 0.88rem; line-height: 1.45; }
.paywall-modal .paywall-list li { margin: 0 0 0.2rem; }
.paywall-modal .paywall-tiers { margin: 0.65rem 0 0.55rem; }
.paywall-modal .paywall-purchase { margin-top: 0.6rem; }
.paywall-modal .paywall-status:empty { display: none; }

/* Restore-section labels */
.paywall-modal .paywall-restore { margin-top: 0; padding-top: 0; border-top: 0; }
.paywall-modal .paywall-restore__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.paywall-modal .paywall-restore__input {
  font-size: 0.85rem;
  line-height: 1.4;
  min-height: 3.5rem;
}
.paywall-modal .paywall-restore__actions { margin-top: 0.65rem; }
.paywall-modal .paywall-restore__actions .btn {
  width: 100%;
  justify-content: center;
}

/* === MODE: SUBSCRIBE — hide restore + existing-license stuff === */
.paywall-modal--subscribe .paywall-restore,
.paywall-modal--subscribe .paywall-license,
.paywall-modal--subscribe .paywall-copy--value,
.paywall-modal--subscribe .paywall-list {
  display: none !important;
}

/* === MODE: RESTORE — hide subscribe stuff (but keep .paywall-status so
   success / error feedback appears after Restore license is clicked) === */
.paywall-modal--restore .paywall-copy,
.paywall-modal--restore .paywall-list,
.paywall-modal--restore .paywall-tiers,
.paywall-modal--restore .paywall-purchase,
.paywall-modal--restore .paywall-license {
  display: none !important;
}
.paywall-modal--restore .paywall-restore { margin-top: 0; }

/* === MODE TABS — segmented Subscribe / Restore at top of marketing view === */
.paywall-mode-tabs {
  display: flex;
  gap: 0;
  margin: 0.4rem 0 0.9rem;
  border: var(--rule-med) solid var(--ink);
}
.paywall-mode-tab {
  flex: 1 1 0;
  padding: 0.6rem 0.4rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-right: var(--rule-thin) solid var(--ink);
  cursor: pointer;
  transition: background var(--dur), color var(--dur);
}
.paywall-mode-tab:last-child { border-right: 0; }
.paywall-mode-tab:hover { background: var(--soft); }
.paywall-mode-tab--active,
.paywall-mode-tab--active:hover {
  background: var(--ink);
  color: var(--paper);
}
/* Hide the tabs only in license/see-license mode (it's not a Subscribe/Restore moment). */
.paywall-modal--license .paywall-mode-tabs { display: none !important; }

/* When the success view is showing, hide everything else regardless of mode. */
.paywall-modal #paywallSuccessView:not([hidden]) ~ #paywallMarketingView,
.paywall-modal #paywallSuccessView:not([hidden]) ~ .paywall-status { display: none; }


/* ============================================================================
   36. HUB v5 — single column, no borders around tools
   ============================================================================ */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 0;
}
.hub-grid .hub-tool {
  border: 0;
  padding: 0.65rem 0;
}
.hub-grid .hub-tool:nth-child(2n) { border: 0; }
.hub-grid .hub-tool:hover { background: var(--soft); padding-left: 0.65rem; padding-right: 0.65rem; }


/* ============================================================================
   37. HUB SUBSCRIBE — collapsed to buttons only (pricing lives in the modal)
   ============================================================================ */
.hub-page .hub-subscribe {
  grid-template-columns: 1fr;
  margin-top: 0.85rem;
  gap: 0.5rem;
}
.hub-page .hub-subscribe__cta-col {
  flex-direction: row;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
}
.hub-page .hub-subscribe__cta-col .btn {
  flex: 0 0 auto;
}
@media (max-width: 520px) {
  .hub-page .hub-subscribe__cta-col { flex-direction: column; }
  .hub-page .hub-subscribe__cta-col .btn { width: 100%; }
}


/* ============================================================================
   38. HUB MAST — heading + 19 count + CTAs in one row, then lede below
   ============================================================================ */

.hub-page .hub-mast__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem 2rem;
  align-items: end;
  margin-top: 0.4rem;
}
@media (max-width: 720px) {
  .hub-page .hub-mast__row { grid-template-columns: 1fr; }
}

.hub-page .hub-mast__title {
  /* tighter than before so it sits beside the aside without overpowering it */
  font-size: clamp(2.2rem, 1.3rem + 4.5vw, 4.2rem);
  line-height: 0.92;
  margin: 0;
}

.hub-page .hub-mast__aside {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: end;
}
@media (max-width: 720px) {
  .hub-page .hub-mast__aside {
    grid-template-columns: auto 1fr;
    justify-content: start;
    width: 100%;
  }
}

.hub-page .hub-mast__count {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 0.9;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.hub-page .hub-mast__count small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
  font-weight: 500;
}

.hub-page .hub-subscribe__cta-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.hub-page .hub-subscribe__cta-col .btn {
  width: 100%;
  white-space: nowrap;
  min-height: 0;
  padding: 0.7rem 1rem;
  font-size: 0.74rem;
}
@media (max-width: 720px) {
  .hub-page .hub-subscribe__cta-col { flex-direction: row; flex-wrap: wrap; }
  .hub-page .hub-subscribe__cta-col .btn { width: auto; flex: 1 1 auto; }
}

.hub-page .hub-mast__lede {
  margin: 0.85rem 0 0;
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}

/* Hide legacy mast sub-grid + subscribe wrapper, now folded into the row. */
.hub-page .hub-mast__sub,
.hub-page .hub-subscribe {
  display: contents;
}


/* ============================================================================
   39. HUB MAST v6 — main column (h1 + lede) and right-aligned CTAs
   plus small "19 Tools" count + search above the grid
   ============================================================================ */
.hub-page .hub-mast__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
  margin-top: 0.4rem;
}
@media (max-width: 720px) {
  .hub-page .hub-mast__row { grid-template-columns: 1fr; }
}

.hub-page .hub-mast__main { min-width: 0; }
.hub-page .hub-mast__title {
  font-size: clamp(2.2rem, 1.3rem + 4.5vw, 4.2rem);
  line-height: 0.92;
  margin: 0 0 0.55rem;
}
.hub-page .hub-mast__lede {
  margin: 1rem 0 0;
  max-width: 720px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

.hub-page .hub-mast__aside {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  min-width: 0;
}
.hub-page .hub-subscribe__cta-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 12rem;
}
.hub-page .hub-subscribe__cta-col .btn {
  width: 100%;
  white-space: nowrap;
  min-height: 0;
  padding: 0.7rem 1rem;
  font-size: 0.74rem;
}
@media (max-width: 720px) {
  .hub-page .hub-subscribe__cta-col {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
  }
  .hub-page .hub-subscribe__cta-col .btn { flex: 1 1 auto; width: auto; }
}

/* Count + search above the tool grid */
.hub-page .hub-list { margin-top: 1.25rem; }
.hub-page .hub-list__topbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.45rem 0;
  border-top: var(--rule-med) solid var(--ink);
  border-bottom: var(--rule-thin) solid var(--ink);
  margin-bottom: 0.25rem;
}
.hub-page .hub-list__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.hub-page .hub-list__search {
  flex: 1;
  display: flex;
  min-width: 0;
}
.hub-page .hub-list__search input {
  width: 100%;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bg);
  border: var(--rule-thin) solid var(--ink);
  border-radius: 0;
  outline: none;
}
.hub-page .hub-list__search input::placeholder {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.hub-page .hub-list__search input:focus {
  box-shadow: var(--shadow-press);
  border-color: var(--ink);
}


/* ============================================================================
   40. TOOL PAGES — aggressive vertical tighten (final pass)
   ============================================================================ */

.app { padding-top: clamp(1rem, 2.5vw, 1.5rem); }

.app > header {
  padding: 0.5rem 0 0.55rem;
}
.app > header .brand { margin-bottom: 0.15rem; }
.app > header h1 {
  margin: 0;
  line-height: 0.9;
}

/* No bottom rule on header — the next section's top rule alone separates them
   so the two heavy rules don't stack with a gap between. */
.app > header { border-bottom: 0; }

.app .card,
.app .step-upload,
.app .step-review,
.app .step-map,
.app .progress-card,
.app .app-who-for,
.app .app-faq,
.app .seo-related-guides {
  padding: 0.5rem 0 0.6rem;
  gap: 0.15rem 1.5rem;
}
@media (max-width: 720px) {
  .app .card,
  .app .step-upload,
  .app .step-review,
  .app .step-map,
  .app .progress-card,
  .app .app-who-for,
  .app .app-faq,
  .app .seo-related-guides {
    padding: 0.45rem 0 0.55rem;
  }
}

.app .card h2,
.app section.card > h2,
.app .step-upload > h2,
.app .step-review > h2,
.app .step-map > h2,
.app .progress-card > h2,
.app .app-who-for > h2,
.app .app-faq > h2,
.app .seo-related-guides > h2 {
  margin: 0 0 0.25rem;
}
.app .card p,
.app .app-who-for p,
.app .app-faq p,
.app .seo-related-guides p {
  margin: 0 0 0.3rem;
}
.app .app-faq h3 {
  margin: 0.5rem 0 0.15rem;
  padding-top: 0.35rem;
}
.app .app-faq h3:first-of-type { padding-top: 0; }
.app .app-faq p { margin-bottom: 0.25rem; }

.app .upload-row { margin-bottom: 0.4rem; }
.app .output-settings-row { margin-bottom: 0.35rem; }
.app .pw-table-wrap { margin-top: 0.4rem; padding-top: 0.4rem; }
.app .merge-file-list { margin-bottom: 0.4rem; }
.app .ap-hint,
.app .merge-password-hint,
.app .pw-table-hint {
  margin: 0 0 0.4rem;
}

.app .step-upload .btn-primary,
.app .step-review .btn-primary,
.app .btn-generate {
  margin-top: 0.35rem;
}

/* Upload box itself — tighter internal padding so the area doesn't dominate. */
.app .upload-box { padding: 0.9rem 1rem; gap: 0.35rem; }

/* Suite-footer at the bottom of tool pages: tighter top space. */
.app .suite-footer { padding-top: 0.6rem; }
.app .suite-nav__intro { margin-bottom: 0.6rem; }
.app .suite-nav__list { margin-bottom: 0.6rem; gap: 0.25rem 0.45rem; }


/* ============================================================================
   41. HUB — strip the duplicate rule below the lede.
   The hub-list topbar's top border is the only divider needed between the
   mast block and the tools list.
   ============================================================================ */
.hub-page header.hub-mast { border-bottom: 0; }


/* ============================================================================
   42. CTA BUTTONS — simpler hover / active states for hub + modal subscribe
   No transform, no offset shadow — just clean colour swaps.
   ============================================================================ */

/* Modal Subscribe button + hub Subscribe + hub Restore */
.paywall-purchase-btn,
.hub-subscribe__cta,
.hub-subscribe__restore {
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out);
  box-shadow: none;
}
.paywall-purchase-btn:hover:not(:disabled),
.hub-subscribe__cta:hover:not(:disabled) {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  box-shadow: none;
  transform: none;
}
.paywall-purchase-btn:active:not(:disabled),
.hub-subscribe__cta:active:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: none;
  transform: none;
}
.paywall-purchase-btn:focus-visible,
.hub-subscribe__cta:focus-visible {
  outline: var(--rule-med) solid var(--accent);
  outline-offset: 3px;
}

.hub-subscribe__restore:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: none;
  transform: none;
}
.hub-subscribe__restore:active:not(:disabled) {
  background: var(--ink-soft);
  color: var(--paper);
  border-color: var(--ink-soft);
  box-shadow: none;
  transform: none;
}
.hub-subscribe__restore:focus-visible {
  outline: var(--rule-med) solid var(--accent);
  outline-offset: 3px;
}


/* ============================================================================
   43. HUB — remove the rules around the tool-list topbar
   ============================================================================ */
.hub-page .hub-list__topbar {
  border-top: 0;
  border-bottom: 0;
  padding: 0.3rem 0 0.55rem;
  margin-bottom: 0;
}


/* ============================================================================
   44. HUB LIST — bordered card with the count chip pinned to the top-right
   like a hang-tag sticking up above the top border.
   ============================================================================ */
.hub-page .hub-list {
  border: var(--rule-med) solid var(--ink);
  margin-top: 2.5rem;
  padding: 0;
  background: var(--paper);
  position: relative;
}
.hub-page .hub-list__topbar {
  padding: 0.7rem 0.85rem;
  border-bottom: var(--rule-thin) solid var(--ink);
  margin-bottom: 0;
  background: var(--ink);   /* dark bar so the search input pops */
}
.hub-page .hub-list__topbar .hub-list__search input {
  background: var(--paper);
  border-color: var(--paper);
}
.hub-page .hub-list__count {
  position: absolute;
  top: 0;
  right: 0.85rem;
  transform: translateY(-100%);
  padding: 0.3rem 0.7rem;
  background: #3d1f6e;          /* deep purple hang-tag */
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: var(--rule-med) solid var(--ink);
  border-bottom: 0;            /* fuses with the list's top border */
  white-space: nowrap;
  z-index: 2;
}
.hub-page .hub-grid { padding: 0.25rem 0.5rem; }
.hub-grid .hub-tool { padding: 0.55rem 0.6rem; }
.hub-grid .hub-tool:hover { padding-left: 0.85rem; padding-right: 0.85rem; }


/* ============================================================================
   45. HUB TOOL HOVER — orange underline on the name
   ============================================================================ */
.hub-grid .hub-tool:hover .hub-tool__name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}


/* ============================================================================
   46. CTA BUTTONS — no hover state, keep active (click) state only
   ============================================================================ */
.paywall-purchase-btn:hover:not(:disabled),
.hub-subscribe__cta:hover:not(:disabled),
.hub-subscribe__restore:hover:not(:disabled) {
  background: inherit;
  color: inherit;
  border-color: var(--ink);
  box-shadow: none;
  transform: none;
}
/* Re-state default appearance explicitly so the inherit above resolves correctly */
.paywall-purchase-btn,
.hub-subscribe__cta {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.hub-subscribe__restore {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.paywall-purchase-btn:hover:not(:disabled),
.hub-subscribe__cta:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.hub-subscribe__restore:hover:not(:disabled) {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}

/* Active (click) state — kept */
.paywall-purchase-btn:active:not(:disabled),
.hub-subscribe__cta:active:not(:disabled) {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.hub-subscribe__restore:active:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}


/* ============================================================================
   47. TOOL PAGES — bordered "tool block" + match hub vertical rhythm
   The active interactive section (.step-upload / .step-review) is wrapped in
   a 2px border with a Step-NN topbar inside, mirroring the home hub list.
   Below it, Who / FAQ / Guides keep the editorial top-rule treatment but
   tighter so sections don't drift apart.
   ============================================================================ */

/* Header→content gap matches the hub (1.25rem) */
.app > header {
  border-bottom: 0;
  margin-bottom: 0;
}

/* Step sections become a self-contained box like the hub-list */
.app .step-upload,
.app .step-review,
.app .step-map {
  display: block;
  grid-template-columns: none;
  border: var(--rule-med) solid var(--ink);
  border-top: var(--rule-med) solid var(--ink);
  background: var(--paper);
  padding: 0;
  margin: 1.25rem 0 0;
  gap: 0;
}

/* The Step-NN counter label moves into a topbar inside the box */
.app .step-upload::before,
.app .step-review::before,
.app .step-map::before {
  display: block;
  padding: 0.5rem 0.85rem;
  border-bottom: 0;
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
  padding-top: 0.5rem;
  background: var(--paper);
}

/* All direct children render full-width inside the box with padding */
.app .step-upload > *,
.app .step-review > *,
.app .step-map > * {
  grid-column: auto;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}
.app .step-upload > h2:first-of-type,
.app .step-review > h2:first-of-type,
.app .step-map > h2:first-of-type {
  padding-top: 0.7rem;
  margin: 0 0 0.4rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}
.app .step-upload > *:last-child,
.app .step-review > *:last-child,
.app .step-map > *:last-child {
  padding-bottom: 0.85rem;
}

/* Non-step content sections — editorial top-rule, but tighter than before */
.app .progress-card,
.app .app-who-for,
.app .app-faq,
.app .seo-related-guides {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.15rem 1.5rem;
  border: 0;
  border-top: var(--rule-med) solid var(--ink);
  padding: 0.55rem 0 0.7rem;
  background: transparent;
  margin: 0;
}
@media (max-width: 720px) {
  .app .progress-card,
  .app .app-who-for,
  .app .app-faq,
  .app .seo-related-guides {
    grid-template-columns: 1fr;
  }
}

/* Stick the first editorial section directly under the bordered tool block */
.app .step-upload + .progress-card,
.app .step-upload + .app-who-for,
.app .step-upload + .app-faq {
  margin-top: 1rem;
}

/* Progress-card stays inside the bordered look when it's the only visible block. */
.app .progress-card {
  border: var(--rule-med) solid var(--ink);
  padding: 0.7rem 0.85rem;
  display: block;
  margin-top: 1.25rem;
}
.app .progress-card::before { display: none; }
.app .progress-card h2 {
  margin: 0 0 0.4rem;
  padding: 0;
  border: 0;
}

/* Suite footer at the bottom of tool pages */
.app .suite-footer { margin-top: 1rem; }


/* ============================================================================
   48. TOOL PAGES — apply the bordered-box treatment to Who / FAQ / Guides
   (same shape as .step-upload from section 47)
   ============================================================================ */

.app .app-who-for,
.app .app-faq,
.app .seo-related-guides {
  display: block;
  grid-template-columns: none;
  border: var(--rule-med) solid var(--ink);
  border-top: var(--rule-med) solid var(--ink);
  background: var(--paper);
  padding: 0;
  margin: 1rem 0 0;
  gap: 0;
}

/* Section-name topbar inside the box (Who / Questions / Guides) */
.app .app-who-for::before,
.app .app-faq::before,
.app .seo-related-guides::before {
  display: block;
  padding: 0.5rem 0.85rem;
  border-bottom: var(--rule-thin) solid var(--ink);
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
  padding-top: 0.5rem;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* All children render inside with horizontal padding */
.app .app-who-for > *,
.app .app-faq > *,
.app .seo-related-guides > * {
  grid-column: auto;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}
.app .app-who-for > h2,
.app .app-faq > h2,
.app .seo-related-guides > h2 {
  padding-top: 0.7rem;
  margin: 0 0 0.4rem;
}
.app .app-who-for > *:last-child,
.app .app-faq > *:last-child,
.app .seo-related-guides > *:last-child {
  padding-bottom: 0.85rem;
}

/* FAQ sub-questions inside their box */
.app .app-faq h3 {
  padding-top: 0.5rem;
  margin: 0 0 0.15rem;
  border-top: var(--rule-thin) solid var(--line-soft);
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}
.app .app-faq h3:first-of-type { border-top: 0; padding-top: 0; }

/* Related-guides list ticks inside the box */
.app .seo-related-guides ul {
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
  border-top: var(--rule-thin) solid var(--line-soft);
}
.app .seo-related-guides ul li {
  padding: 0.55rem 0.85rem;
  border-bottom: var(--rule-thin) solid var(--line-soft);
}
.app .seo-related-guides ul li:last-child { border-bottom: 0; }
.app .seo-related-guides p:last-child {
  padding: 0.5rem 0.85rem 0.85rem;
  margin: 0;
}


/* ============================================================================
   49. TOOL PAGES — bordered suite-footer card (matches Who / FAQ / Guides)
   ============================================================================ */

.app .suite-footer {
  border: var(--rule-med) solid var(--ink);
  background: var(--paper);
  padding: 0;
  margin: 1rem 0 0;
  position: relative;
}

/* Topbar label */
.app .suite-footer::before {
  content: "More tools";
  display: block;
  padding: 0.5rem 0.85rem;
  border-bottom: var(--rule-thin) solid var(--ink);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.app .suite-footer .suite-nav {
  padding: 0.85rem;
}
.app .suite-footer .suite-nav__intro {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
}
.app .suite-footer .suite-nav__intro a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.app .suite-footer .suite-nav__list {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
}
.app .suite-footer .suite-nav__list li {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.app .suite-footer .suite-nav__list li a,
.app .suite-footer .suite-nav__list li .suite-nav__here {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border: var(--rule-thin) solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
}
.app .suite-footer .suite-nav__list li a:hover {
  background: var(--ink);
  color: var(--paper);
}
.app .suite-footer .suite-nav__list li .suite-nav__here {
  background: var(--ink);
  color: var(--paper);
  cursor: default;
}
.app .suite-footer .suite-nav__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.app .suite-footer .suite-nav__meta a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  margin-right: 0.45rem;
}
.app .suite-footer .suite-nav__meta a:hover { color: var(--accent); }


/* ============================================================================
   50. SUITE FOOTER — bordered card aligned with the page content
   Targets the footer at body level (it lives outside .app on tool/guide pages).
   ============================================================================ */

body > .suite-footer {
  max-width: var(--max-width);
  margin: 1rem auto 2rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: transparent;
  border-top: 0;
}

/* Only the variant containing a <nav class="suite-nav"> gets the card treatment.
   Home page footer holds just a meta-link paragraph and stays simple. */
body > .suite-footer > .suite-nav {
  border: var(--rule-med) solid var(--ink);
  background: var(--paper);
  padding: 0;
  position: relative;
}
body > .suite-footer > .suite-nav::before {
  content: "More tools";
  display: block;
  padding: 0.5rem 0.85rem;
  border-bottom: var(--rule-thin) solid var(--ink);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
body > .suite-footer > .suite-nav > * {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}
body > .suite-footer > .suite-nav > .suite-nav__intro {
  padding-top: 0.85rem;
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
}
body > .suite-footer > .suite-nav > .suite-nav__intro a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body > .suite-footer > .suite-nav > .suite-nav__list {
  margin: 0 0 0.85rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
}
body > .suite-footer > .suite-nav > .suite-nav__list li {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body > .suite-footer > .suite-nav > .suite-nav__list li a,
body > .suite-footer > .suite-nav > .suite-nav__list li .suite-nav__here {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border: var(--rule-thin) solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out);
}
body > .suite-footer > .suite-nav > .suite-nav__list li a:hover {
  background: var(--ink);
  color: var(--paper);
}
body > .suite-footer > .suite-nav > .suite-nav__list li .suite-nav__here {
  background: var(--ink);
  color: var(--paper);
  cursor: default;
}
body > .suite-footer > .suite-nav > .suite-nav__meta {
  padding-bottom: 0.85rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
body > .suite-footer > .suite-nav > .suite-nav__meta a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  margin-right: 0.45rem;
}
body > .suite-footer > .suite-nav > .suite-nav__meta a:hover { color: var(--accent); }


/* ============================================================================
   51. HUB PAGE — explicit reset so the section 50 footer-card rules can never
   apply on the home, even if markup later changes.
   ============================================================================ */
.hub-page .suite-footer,
.hub-page .suite-footer > .suite-nav,
.hub-page .suite-footer .suite-nav__meta {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin-top: 1rem;
  max-width: none;
}
.hub-page .suite-footer .suite-nav__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hub-page .suite-footer .suite-nav__meta a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  margin-right: 0.45rem;
}
.hub-page .suite-footer .suite-nav__meta a:hover { color: var(--accent); }
.hub-page .suite-footer::before { content: none !important; }


/* ============================================================================
   52. GUIDES PAGE — per-tool list inside the bordered card
   ============================================================================ */
.guides-page .guide-list { padding: 0; }
.guide-tool {
  display: block;
  padding: 0.75rem 0.85rem 0.85rem;
  border-bottom: var(--rule-thin) solid var(--ink);
}
.guide-tool:last-child { border-bottom: 0; }

.guide-tool__head {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 0.85rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
}
@media (max-width: 600px) {
  .guide-tool__head { grid-template-columns: 1.8rem 1fr; }
  .guide-scenarios { grid-column: 1 / -1; }
}
.guide-tool__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.guide-tool__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.guide-tool__name:hover {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}
.guide-scenarios {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  align-self: center;
}
.guide-scenarios:hover { color: var(--accent); }

.guide-tool__articles {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-tool__articles li {
  padding: 0.35rem 0 0.35rem 2.4rem;
  border-top: var(--rule-thin) dashed var(--line-soft);
}
.guide-tool__articles li:first-child { border-top: 0; }
@media (max-width: 600px) {
  .guide-tool__articles li { padding-left: 1.8rem; }
}
.guide-article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
}
.guide-article__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
}
.guide-article:hover .guide-article__title { color: var(--accent); }
.guide-article__blurb {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 0.1rem;
  grid-column: 1;
}
.guide-tool__empty {
  margin: 0;
  padding-left: 2.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}
@media (max-width: 600px) {
  .guide-tool__empty { padding-left: 1.8rem; }
}


/* ============================================================================
   53. INFO CARDS (about, privacy) — same bordered-card visual as tool sections
   ============================================================================ */
.info-card {
  border: var(--rule-med) solid var(--ink);
  background: var(--paper);
  margin: 1rem 0 0;
}
.info-card__bar {
  padding: 0.5rem 0.85rem;
  border-bottom: var(--rule-thin) solid var(--ink);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-card__body {
  padding: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.info-card__body p { margin: 0 0 0.6rem; }
.info-card__body p:last-child { margin-bottom: 0; }
.info-card__body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.info-card__body a:hover { color: var(--accent); }

/* ============================================================================
   54. GUIDE PAGES — per-tool guide hubs + individual articles
   Make the .guide-page layout match the hub: bordered cards, no boxy borders.
   ============================================================================ */
.guide-page {
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 5rem;
}
.guide-page > .guide-shell { width: 100%; max-width: var(--max-width); margin: 0 auto; }

.guide-page header {
  background: transparent;
  border: 0;
  padding: 0;
  border-top: var(--rule-thick) solid var(--ink);
  padding-top: 0.85rem;
  margin-bottom: 0;
}
.guide-page header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0.35rem 0 0.55rem;
}
.guide-page header h1 em {
  font-style: normal;
  color: var(--accent);
}
.guide-page .guide-breadcrumb {
  border-bottom: 0;
  padding-bottom: 0;
  margin: 0 0 0.4rem;
}
.guide-page .guide-lede {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 62ch;
}
.guide-page .guide-cta-row { margin: 0.85rem 0 0; }

/* Hub list (per-tool guides hub) — boxed list like the home hub */
.guide-page .guide-hub-list {
  border: var(--rule-med) solid var(--ink);
  background: var(--paper);
  margin: 1rem 0 0;
  padding: 0;
}
.guide-page .guide-hub-list > li {
  border-top: 0;
  border-bottom: var(--rule-thin) solid var(--ink);
  margin: 0;
}
.guide-page .guide-hub-list > li:last-child { border-bottom: 0; }
.guide-page .guide-hub-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 0.75rem 0.85rem;
  background: var(--paper);
  transition: background 150ms var(--ease-out);
}
.guide-page .guide-hub-card:hover {
  background: var(--soft);
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}
.guide-page .guide-hub-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.guide-page .guide-hub-card__meta {
  grid-column: 1;
  font-size: 0.78rem;
}

/* Individual article body — wrap prose in a bordered card */
.guide-page .guide-prose {
  border: var(--rule-med) solid var(--ink);
  background: var(--paper);
  padding: 0.85rem 1rem 1.1rem;
  margin: 1rem 0 0;
  max-width: none;
}
.guide-page .guide-prose h2 {
  margin: 1.25rem 0 0.4rem;
  border-top: 0;
  padding-top: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.guide-page .guide-prose h2:first-child { margin-top: 0.25rem; }
.guide-page .guide-prose p { line-height: 1.55; margin: 0 0 0.6rem; }

.guide-page .guide-audience {
  margin: 1rem 0 0;
  padding: 0.5rem 0.85rem;
  background: var(--paper);
  border: var(--rule-thin) solid var(--ink);
  font-size: 0.85rem;
}

.guide-page .guide-disclaimer {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--tip-bg);
  border: var(--rule-thin) solid var(--ink);
  font-size: 0.85rem;
}

/* Related-guides block at the bottom of an article */
.guide-page .guide-related {
  border: var(--rule-med) solid var(--ink);
  background: var(--paper);
  padding: 0;
  margin: 1rem 0 0;
  position: relative;
}
.guide-page .guide-related::before {
  content: "Related guides";
  display: block;
  padding: 0.5rem 0.85rem;
  border-bottom: var(--rule-thin) solid var(--ink);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.guide-page .guide-related__heading { display: none; }
.guide-page .guide-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-page .guide-related__list li {
  border-bottom: var(--rule-thin) solid var(--ink);
  padding: 0;
}
.guide-page .guide-related__list li:last-child { border-bottom: 0; }
.guide-page .guide-related__list a {
  display: block;
  padding: 0.6rem 0.85rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 150ms var(--ease-out);
}
.guide-page .guide-related__list a:hover {
  background: var(--soft);
  color: var(--accent);
}
.guide-page .guide-related__audience {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.15rem;
}


/* ============================================================================
   55. COLLAPSIBLE INFO SECTIONS (Who / Questions / Guides on tool pages)
   When .is-collapsible is set by site.js, the ::before pseudo topbar is
   replaced with a real <button class="collapsible__toggle"> child.
   ============================================================================ */

.app .is-collapsible::before { display: none !important; }

.app .collapsible__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--bg);
  border: 0;
  border-bottom: var(--rule-thin) solid var(--ink);
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: color 150ms var(--ease-out), background 150ms var(--ease-out);
}
.app .collapsible__toggle:hover { color: var(--ink); background: var(--soft); }
.app .collapsible__toggle:focus-visible {
  outline: var(--rule-med) solid var(--accent);
  outline-offset: -2px;
}
.app .collapsible__icon {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.app .is-collapsed .collapsible__toggle { border-bottom: 0; }

.app .collapsible__body { transition: max-height 200ms var(--ease-out); }
.app .is-collapsed .collapsible__body { display: none; }

/* ============================================================================
   56. INTEGRATED STEP PROGRESS BAR (orange fill inside the active step section)
   Built by site.js when the legacy .progress-card becomes visible.
   ============================================================================ */

.app .step-upload .step-progress,
.app .step-review .step-progress,
.app .step-map .step-progress {
  display: none;
  margin: 0;
  border-top: var(--rule-thin) solid var(--ink);
  background: var(--paper);
}
.app .step-progress.is-active { display: block; }
.app .step-progress__track {
  height: 8px;
  width: 100%;
  background: var(--soft);
  overflow: hidden;
}
.app .step-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 200ms var(--ease-out);
}
.app .step-progress__label {
  margin: 0;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.app .step-progress__label:empty { display: none; }

/* Whilst loading, dim the form area to indicate disabled state */
.app .step-upload.is-loading > *,
.app .step-review.is-loading > *,
.app .step-map.is-loading > * {
  opacity: 0.55;
  pointer-events: none;
}
.app .step-upload.is-loading > .step-progress,
.app .step-review.is-loading > .step-progress,
.app .step-map.is-loading > .step-progress,
.app .step-upload.is-loading > .collapsible__toggle,
.app .step-review.is-loading > .collapsible__toggle {
  opacity: 1;
  pointer-events: auto;
}


/* ============================================================================
   57. BUTTONS — final state pass: only two visual states
       1. Default (idle)
       2. Hover / Active / Selected → orange accent
   Applies site-wide. Overrides earlier per-component state rules.
   ============================================================================ */

/* Base buttons */
.btn,
button.btn {
  transition:
    background var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
  box-shadow: none;
  transform: none;
}
.btn:hover:not(:disabled),
.btn:active:not(:disabled),
.btn.is-active:not(:disabled),
.btn[aria-pressed="true"]:not(:disabled),
.btn[aria-checked="true"]:not(:disabled),
button.btn:hover:not(:disabled),
button.btn:active:not(:disabled) {
  background: var(--accent) !important;
  color: var(--paper) !important;
  border-color: var(--accent) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Hub CTAs */
.hub-subscribe__cta,
.hub-subscribe__cta:hover:not(:disabled),
.hub-subscribe__cta:active:not(:disabled),
.hub-subscribe__restore:hover:not(:disabled),
.hub-subscribe__restore:active:not(:disabled),
.paywall-purchase-btn:hover:not(:disabled),
.paywall-purchase-btn:active:not(:disabled) {
  /* hover + active resolve via the .btn rule above to the accent */
}

/* Paywall tier buttons — selected = orange */
.paywall-modal .paywall-tiers .paywall-tier,
.paywall-tiers .paywall-tier {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.paywall-modal .paywall-tiers .paywall-tier:hover:not(:disabled),
.paywall-tiers .paywall-tier:hover:not(:disabled),
.paywall-modal .paywall-tiers .paywall-tier--selected,
.paywall-tiers .paywall-tier--selected,
.paywall-modal .paywall-tiers .paywall-tier--selected:hover:not(:disabled),
.paywall-tiers .paywall-tier--selected:hover:not(:disabled) {
  background: var(--accent) !important;
  color: var(--paper) !important;
  border-color: var(--accent) !important;
}

/* Small per-row buttons (file list, pw-table, merge list, chips) */
.pw-row-remove:hover,
.btn-tiny:hover:not(:disabled),
.btn-tiny:active:not(:disabled),
.pattern-chip:hover,
.merge-file-list__actions button:hover,
.btn-add-column:hover,
.btn-map-here:hover,
.filelist .actions button:hover,
.paywall-close:hover,
.collapsible__toggle:hover,
.hub-tool:hover,
.hub-tool:active {
  /* These all share the same hover → accent treatment */
}
.pw-row-remove,
.btn-tiny,
.pattern-chip,
.merge-file-list__actions button,
.btn-add-column,
.btn-map-here,
.filelist .actions button,
.paywall-close,
.collapsible__toggle {
  transition:
    background var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}
.pw-row-remove:hover,
.pw-row-remove:active,
.btn-tiny:hover:not(:disabled),
.btn-tiny:active:not(:disabled),
.pattern-chip:hover,
.pattern-chip:active,
.btn-add-column:hover,
.btn-add-column:active,
.btn-map-here:hover,
.btn-map-here:active,
.paywall-close:hover,
.paywall-close:active,
.collapsible__toggle:hover {
  background: var(--accent) !important;
  color: var(--paper) !important;
  border-color: var(--accent) !important;
}

/* Suite-nav chips */
body > .suite-footer > .suite-nav > .suite-nav__list li a:hover,
body > .suite-footer > .suite-nav > .suite-nav__list li a:active {
  background: var(--accent) !important;
  color: var(--paper) !important;
  border-color: var(--accent) !important;
}
body > .suite-footer > .suite-nav > .suite-nav__list li .suite-nav__here {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}


/* ============================================================================
   58. TOOL SECTION — extra breathing room inside + larger gap to next section
   ============================================================================ */

/* Internal padding inside the step section */
.app .step-upload > h2:first-of-type,
.app .step-review > h2:first-of-type,
.app .step-map > h2:first-of-type {
  padding-top: 1.1rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  margin: 0 0 0.65rem;
}
.app .step-upload > *,
.app .step-review > *,
.app .step-map > * {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.app .step-upload > *:last-child,
.app .step-review > *:last-child,
.app .step-map > *:last-child {
  padding-bottom: 1.1rem;
}

/* Step topbar — match the new horizontal rhythm */
.app .step-upload::before,
.app .step-review::before,
.app .step-map::before {
  padding: 0.55rem 1.25rem;
}

/* Inline progress bar follows the same horizontal padding */
.app .step-progress__label {
  padding: 0.4rem 1.25rem;
}

/* Larger margin between the active tool section and the next info card */
.app .step-upload + .progress-card,
.app .step-upload + .app-who-for,
.app .step-upload + .app-faq,
.app .step-upload + .seo-related-guides,
.app .step-review + .app-who-for,
.app .step-review + .app-faq,
.app .step-review + .seo-related-guides,
.app .step-map + .app-who-for,
.app .step-map + .app-faq,
.app .step-map + .seo-related-guides {
  margin-top: 2.25rem;
}
@media (max-width: 720px) {
  .app .step-upload + .progress-card,
  .app .step-upload + .app-who-for,
  .app .step-upload + .app-faq,
  .app .step-upload + .seo-related-guides,
  .app .step-review + .app-who-for,
  .app .step-review + .app-faq,
  .app .step-review + .seo-related-guides {
    margin-top: 1.5rem;
  }
}


/* ============================================================================
   59. TOOL SECTION — FINAL spacing pass (the previous pass missed the
   progress-card sibling between step-upload and app-who-for)
   ============================================================================ */

/* Give every info card a large top margin when it appears after a step block.
   General-sibling combinator (~) catches the chain through any hidden
   .progress-card or .step-review nodes. */
.app .step-upload ~ .app-who-for,
.app .step-upload ~ .app-faq,
.app .step-upload ~ .seo-related-guides,
.app .step-review ~ .app-who-for,
.app .step-review ~ .app-faq,
.app .step-review ~ .seo-related-guides {
  margin-top: 2.5rem;
}

/* Consecutive info cards stay tight to each other (1rem) — only the FIRST
   one after the step gets the big gap. */
.app .app-who-for + .app-faq,
.app .app-who-for + .seo-related-guides,
.app .app-faq + .seo-related-guides,
.app .app-faq + .app-who-for,
.app .seo-related-guides + .app-who-for {
  margin-top: 1rem !important;
}

/* Even more breathing room inside the step section */
.app .step-upload > h2:first-of-type,
.app .step-review > h2:first-of-type,
.app .step-map > h2:first-of-type {
  padding-top: 1.35rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin: 0 0 0.85rem;
}
.app .step-upload > *,
.app .step-review > *,
.app .step-map > * {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.app .step-upload > *:last-child,
.app .step-review > *:last-child,
.app .step-map > *:last-child {
  padding-bottom: 1.35rem;
}
.app .step-upload::before,
.app .step-review::before,
.app .step-map::before {
  padding: 0.6rem 1.5rem;
}
.app .step-progress__label {
  padding: 0.45rem 1.5rem;
}

/* Trim the long blank tail at the bottom of every tool page.
   No gap between the final card in .app (About this tool) and the More tools
   footer — they butt up against each other. */
.app { padding-bottom: 0; }
body > .suite-footer { margin-top: 0; }


/* ============================================================================
   60. FOOTER SUITE-NAV — current/active chip stays solid black (not orange)
   ============================================================================ */
body > .suite-footer > .suite-nav > .suite-nav__list li .suite-nav__here,
.app .suite-footer .suite-nav__list li .suite-nav__here {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-color: var(--ink) !important;
}
/* :active (mouse-down) on a footer chip also reads as black */
body > .suite-footer > .suite-nav > .suite-nav__list li a:active {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-color: var(--ink) !important;
}


/* ============================================================================
   61. COLLAPSIBLE TOGGLE — hover renders black (not orange)
   ============================================================================ */
.app .collapsible__toggle:hover,
.app .collapsible__toggle:active {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-color: var(--ink) !important;
}
.app .collapsible__toggle:hover .collapsible__icon,
.app .collapsible__toggle:active .collapsible__icon {
  color: var(--paper);
}


/* ============================================================================
   62. FOOTER SUITE-NAV — hover also renders black (not orange)
   ============================================================================ */
body > .suite-footer > .suite-nav > .suite-nav__list li a:hover,
.app .suite-footer .suite-nav__list li a:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-color: var(--ink) !important;
}


/* ============================================================================
   63. COLLAPSIBLE SECTIONS — drop the redundant inner h2
   The topbar button already labels the section (Who / Questions / Guides).
   ============================================================================ */
.app .is-collapsible .collapsible__body > h2:first-child {
  display: none;
}


/* ============================================================================
   64. STEP TOPBAR — drop "Step 01" label, use a descriptive single-word
   marker per section type (matches the brutalist mono topbars elsewhere).
   ============================================================================ */
.app .step-upload::before { content: "Workspace"; }
.app .step-review::before { content: "Review"; }
.app .step-map::before    { content: "Map fields"; }


/* ============================================================================
   65. INLINE PROGRESS BAR — disabled; the action button shows loading itself
   ============================================================================ */
.app .step-progress { display: none !important; }
.app .step-upload.is-loading > *,
.app .step-review.is-loading > *,
.app .step-map.is-loading > * {
  opacity: 1;       /* don't dim the form during loading */
  pointer-events: auto;
}


/* ============================================================================
   66. STEP SECTION ACTION BUTTON — full width, flush to the section bottom
   The primary action (Continue / Download / Process) spans the section width
   like an integrated bar instead of a small button.
   ============================================================================ */

/* All primary buttons inside a step section render full-width */
.app .step-upload > .btn-primary,
.app .step-review > .btn-primary,
.app .step-map > .btn-primary,
.app .step-upload > .btn,
.app .step-review > .btn,
.app .step-map > .btn,
.app .btn-generate {
  display: flex;
  width: calc(100% + 3rem); /* extend left and right into the section's horizontal padding */
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-bottom: -1.35rem; /* flush to the bottom — eats the section's bottom padding */
  padding: 1rem 1.5rem;
  border-radius: 0;
  border: 0;
  border-top: var(--rule-thin) solid var(--ink);
  min-height: 0;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  justify-content: center;
  gap: 0.45rem;
}

/* Account for the new inset bottom padding (since the button now eats it) */
.app .step-upload > *:last-child,
.app .step-review > *:last-child,
.app .step-map > *:last-child {
  padding-bottom: 0; /* the button already provides the bottom edge */
}
/* For sections whose last child is NOT a .btn, keep the breathing room */
.app .step-upload > *:last-child:not(.btn):not(.btn-primary),
.app .step-review > *:last-child:not(.btn):not(.btn-primary),
.app .step-map > *:last-child:not(.btn):not(.btn-primary) {
  padding-bottom: 1.35rem;
}


/* ============================================================================
   67. STEP SECTION ACTION BUTTON — flush inside the section (fix for v66)
   No negative margins; the button sits as the last child with its own
   horizontal padding and a thin top rule, fully inside the border.
   ============================================================================ */

.app .step-upload > .btn-primary,
.app .step-review > .btn-primary,
.app .step-map > .btn-primary,
.app .step-upload > .btn,
.app .step-review > .btn,
.app .step-map > .btn,
.app .btn-generate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  padding-top: 0.95rem !important;
  padding-bottom: 0.95rem !important;
  border: 0;
  border-top: var(--rule-thin) solid var(--ink);
  border-radius: 0;
  min-height: 0;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  gap: 0.5rem;
}

/* Cancel the generic last-child bottom padding that section 59 applies — the
   button's own padding-bottom is the section's bottom edge now. */
.app .step-upload > .btn-primary:last-child,
.app .step-upload > .btn:last-child,
.app .step-review > .btn-primary:last-child,
.app .step-review > .btn:last-child,
.app .step-map > .btn-primary:last-child,
.app .step-map > .btn:last-child,
.app .btn-generate:last-child {
  padding-bottom: 0.95rem !important;
}


/* ============================================================================
   68. STEP REVIEW — drop the surrounding border (still uses topbar + spacing)
   ============================================================================ */
.app .step-review {
  border: 0 !important;
  background: transparent !important;
}
.app .step-review::before {
  border-bottom: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
.app .step-review > h2:first-of-type,
.app .step-review > * {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.app .step-review > .btn-primary,
.app .step-review > .btn,
.app .step-review .btn-generate {
  border-top: var(--rule-thin) solid var(--ink);
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* ============================================================================
   69. STEP REVIEW — restore the section border; drop the inner csv-wrap border
   (the "output files" table inside the review is what the user wanted unboxed)
   ============================================================================ */

/* Restore the box around .step-review (undoes section 68) */
.app .step-review {
  border: var(--rule-med) solid var(--ink) !important;
  background: var(--paper) !important;
}
.app .step-review::before {
  border-bottom: 0;
  background: var(--paper);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.app .step-review > h2:first-of-type,
.app .step-review > * {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Drop the border on the output-files table inside the review section */
.app .step-review .csv-wrap {
  border: 0;
  background: transparent;
  max-height: none;
  overflow: visible;
}
.app .step-review .csv-table th {
  /* Opaque paper-coloured fill so rows scrolling under the sticky header
     don't show through it — the previous `transparent` made "# PAGES
     OUTPUT FILENAME" appear to overlap the first visible row during scroll. */
  background: var(--paper);
  border-bottom: var(--rule-thin) solid var(--ink);
  z-index: 2;
}
.app .step-review .csv-table th,
.app .step-review .csv-table td {
  padding-left: 0;
  padding-right: 0.75rem;
}


/* ============================================================================
   70. ACTION BUTTON LOADING — orange progress fill grows behind the label
   site.js sets `--btn-progress: NN%` and toggles `.btn--loading`.
   ============================================================================ */
.app .btn--loading {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  cursor: progress;
}
.app .btn--loading {
  isolation: isolate; /* establishes a stacking context so the negative-z fill
                         sits above the button background but below text */
}
.app .btn--loading::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--btn-progress, 0%);
  background: var(--accent);
  /* -1 so the fill paints behind the button's text node. With z-index: 0 the
     ::before paints after inline text (paint step 6 vs 5) and covers labels
     like "Preparing download…" that we set via textContent (no wrapper span). */
  z-index: -1;
  transition: width 200ms var(--ease-out);
  pointer-events: none;
}
.app .btn--loading > * {
  position: relative;
  z-index: 1;
}


/* ============================================================================
   71. CONFIGURE FILE NAME + CHANGE FILE — side by side on desktop, black hover
   ============================================================================ */
.app .step2-buttons--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
@media (max-width: 600px) {
  .app .step2-buttons--pair { grid-template-columns: 1fr; }
}
.app .step2-buttons--pair .btn { width: 100%; margin: 0; }
/* Equalize Change-file (.merge-back-btn — has its own compact padding/font)
   with Configure-file-name (.btn-settings-toggle — inherits base .btn
   sizing). Force both to the default .btn sizing inside the pair grid so
   they match the toggle-button sizing in fill-pdf-from-excel-or-csv. Without these
   overrides the back button renders shorter than the toggle. */
.app .step2-buttons--pair .btn,
.app .step2-buttons--pair .btn.merge-back-btn,
.app .step2-buttons--pair .btn.btn-settings-toggle {
  margin: 0 !important;
  padding: 0.95rem 1.25rem !important;
  font-size: 0.82rem !important;
  min-height: 48px !important;
}

/* Black hover for the configure / change-file pair (overrides the orange
   :hover from section 57 only for these two buttons) */
.app #btnFilenameNaming:hover:not(:disabled),
.app #btnFilenameNaming:active:not(:disabled),
.app #btnFilenameNaming[aria-expanded="true"] {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-color: var(--ink) !important;
}


/* ============================================================================
   72. CONFIGURE FILE NAME PANEL — clean look when open
   - drop the rule above "Current output file name"
   - the Reset button (moved by site.js) styles like a primary action footer
   ============================================================================ */
.app .filename-naming-section {
  border-top: 0;
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}
.app .step-review > .btn-reset-filename {
  /* picks up the .btn-primary/.btn-generate styling from section 67 */
  width: auto;
  margin: 0;
}


/* ============================================================================
   73. RESET BUTTON (when promoted to step-review footer) — full-width footer
   ============================================================================ */
.app .step-review > .btn-reset-filename {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  padding-top: 0.95rem !important;
  padding-bottom: 0.95rem !important;
  border: 0 !important;
  border-top: var(--rule-thin) solid var(--ink) !important;
  border-radius: 0 !important;
  min-height: 0;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  gap: 0.5rem;
}


/* ============================================================================
   74. HEADERS — remove the heavy black rule above every page's header
   ============================================================================ */
header,
.app > header,
.hub-page header.hub-mast,
.guide-page header,
.guide-master__header {
  border-top: 0 !important;
}


/* ============================================================================
   75. HUB TOOLS LIST — white background on rows (was cream)
   ============================================================================ */
.hub-page .hub-list,
.hub-page .hub-grid,
.hub-grid .hub-tool {
  background: var(--paper);
}
.hub-grid .hub-tool:hover { background: var(--soft); }


/* ============================================================================
   76. HUB TOOL ROWS — hover goes solid black, edge-to-edge inside the list
   ============================================================================ */

/* Drop the grid's internal padding so rows can reach the section's borders. */
.hub-page .hub-grid { padding: 0; }

/* Rows keep horizontal padding for content inset, but their background
   spans the full row width — so hover fills from one edge of the list
   border to the other. */
.hub-grid .hub-tool {
  padding: 0.7rem 1rem;
  background: var(--paper);
}
.hub-grid .hub-tool:hover {
  background: var(--ink);
  padding-left: 1rem;
  padding-right: 1rem;
}
.hub-grid .hub-tool:hover .hub-tool__num,
.hub-grid .hub-tool:hover .hub-tool__hint,
.hub-grid .hub-tool:hover .hub-tool__go {
  color: var(--paper);
}
.hub-grid .hub-tool:hover .hub-tool__name {
  color: var(--paper);
  overflow: visible !important;          /* otherwise the underline gets clipped */
  text-decoration: underline !important;
  text-decoration-line: underline !important;
  text-decoration-color: var(--accent) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}


/* ============================================================================
   77. STEP-UPLOAD ACTION BUTTON — more breathing room above it
   except on split-pdf-into-files where the inputs already provide the space.
   ============================================================================ */
.app .step-upload > .btn-primary,
.app .step-upload > .btn,
.app .step-upload > .btn-generate {
  margin-top: 1.75rem !important;
}

/* Split-pdf has .split-settings-row (password + pages-per-chunk) between the
   upload box and the button — keep that section's button tight. */
.app .step-upload:has(.split-settings-row) > .btn-primary,
.app .step-upload:has(.split-settings-row) > .btn,
.app .step-upload:has(.split-settings-row) > .btn-generate {
  margin-top: 0 !important;
}


/* ============================================================================
   78. LOADING / FINISH PINS — CSS overrides for site.js's is-finishing classes.
   Use the same grid layout the card normally has so the pinned section keeps
   its visual layout while loading (no jarring block-flow reshape).
   ============================================================================ */
.app .step-upload.is-finishing,
.app .step-review.is-finishing,
.app .step-map.is-finishing {
  display: grid !important;
}
.app .step-upload.is-finishing-hide,
.app .step-review.is-finishing-hide,
.app .step-map.is-finishing-hide {
  display: none !important;
}

/* ============================================================================
   79. SPLIT-PDF SETTINGS — space between upload and inputs, right-align pages
   ============================================================================ */
.app .step-upload .split-settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  .app .step-upload .split-settings-row { grid-template-columns: 1fr; }
}
/* Both cells fill their column equally — no right-align on the second cell, no
   220px cap on its input. Inputs span their entire grid cell so the two boxes
   look balanced side by side with a tight 1rem gap between them. */
.app .step-upload .split-settings-row > .output-settings-row {
  margin: 0;
  min-width: 0;
}
.app .step-upload .split-settings-row > .output-settings-row .output-settings-input,
.app .step-upload .split-settings-row > .output-settings-row .select-shell {
  max-width: none;
  width: 100%;
}

/* ============================================================================
   80. PAYWALL MODAL — third mode (license-only view)
   ============================================================================ */
.paywall-modal--license .paywall-copy,
.paywall-modal--license .paywall-list,
.paywall-modal--license .paywall-tiers,
.paywall-modal--license .paywall-purchase,
.paywall-modal--license .paywall-restore,
.paywall-modal--license .paywall-status {
  display: none !important;
}
.paywall-modal--license .paywall-license { display: block !important; }
.paywall-modal--license .paywall-license[hidden] { display: block !important; }

/* ============================================================================
   81. HUB — see-license button matches the secondary style
   ============================================================================ */
.hub-subscribe__view { width: 100%; }


/* ============================================================================
   82. PDF FIELD COLUMN DROPDOWN (fill-pdf-from-excel-or-csv)
   JS creates the element with left/top inline styles after positioning.
   ============================================================================ */
.pdf-field-column-dropdown {
  position: fixed;
  z-index: 1000;
  min-width: 160px;
  max-width: 320px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--paper);
  border: var(--rule-med) solid var(--ink);
  box-shadow: var(--shadow-hover);
  padding: 0;
  font-family: var(--font-sans);
}
.pdf-field-column-dropdown.hidden { display: none !important; }

.pdf-field-column-dropdown-option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.85rem;
  text-align: left;
  border: 0;
  border-bottom: var(--rule-thin) solid var(--line-soft);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 120ms var(--ease-out), color 120ms var(--ease-out);
}
.pdf-field-column-dropdown-option:last-child { border-bottom: 0; }
.pdf-field-column-dropdown-option:hover {
  background: var(--ink);
  color: var(--paper);
}
.pdf-field-column-dropdown-option.none {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--soft);
  border-bottom: var(--rule-thin) solid var(--ink);
}
.pdf-field-column-dropdown-option.none:hover {
  background: var(--ink);
  color: var(--paper);
}


/* ============================================================================
   83. PDF FIELD PREVIEW — show mapped value inside the overlay
   (was missing after the design-system migration emptied per-tool CSS)
   ============================================================================ */
.pdf-field-preview {
  display: block;
  width: 100%;
  min-width: 0;
  pointer-events: none;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.2;
  color: #05198d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-field-preview.has-value {
  font-weight: normal;
  color: #05198d;
}
.pdf-field-overlay.multiline .pdf-field-preview {
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

/* TIN/EIN/SSN — 9 boxed digits across the overlay */
.pdf-field-overlay.tin-preview { padding: 1px 2px; }
.pdf-field-preview-tin {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 1px;
  box-sizing: border-box;
  pointer-events: none;
}
.pdf-field-preview-tin .tin-digit {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: normal;
  font-variant-numeric: tabular-nums;
  color: #05198d;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
.pdf-field-preview-tin .tin-digit:last-child { border-right: none; }

/* Checkbox overlays */
.pdf-field-overlay[data-field-type="checkbox"] { padding: 0; }
.pdf-field-overlay[data-field-type="checkbox"] .pdf-field-preview-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.pdf-field-overlay[data-field-type="checkbox"] .pdf-field-preview-checkbox.has-value {
  color: var(--ink);
}


/* ============================================================================
   84. PDF CHECKBOX OVERLAYS — clear unchecked/checked toggle feedback
   Click toggles between checked (orange fill + white ✓) and unchecked
   (light orange tint + orange outline).
   ============================================================================ */
.pdf-field-overlay[data-field-type="checkbox"] {
  cursor: pointer;
  background: rgba(255, 58, 31, 0.08);
  border: var(--rule-med) solid var(--accent);
  padding: 0;
  transition: background 120ms var(--ease-out);
}
.pdf-field-overlay[data-field-type="checkbox"]:hover {
  background: rgba(255, 58, 31, 0.18);
}
.pdf-field-overlay[data-field-type="checkbox"].checkbox-checked {
  background: var(--accent);
  border-color: var(--accent);
}
.pdf-field-overlay[data-field-type="checkbox"] .pdf-field-preview-checkbox {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}
.pdf-field-overlay[data-field-type="checkbox"].checkbox-checked .pdf-field-preview-checkbox {
  color: var(--paper);
}
.pdf-field-overlay[data-field-type="checkbox"] .pdf-field-preview-checkbox::before {
  /* Always render a visible affordance: empty box becomes a faint ✓ */
}
.pdf-field-overlay[data-field-type="checkbox"]:not(.checkbox-checked) .pdf-field-preview-checkbox:empty::before {
  content: "□";
  color: var(--accent);
  font-weight: 600;
  opacity: 0.65;
}


/* ============================================================================
   85. PDF CHECKBOX OVERLAYS — revert orange toggle styling (looks misleading)
   Use the same neutral overlay look as text fields.
   ============================================================================ */
.pdf-field-overlay[data-field-type="checkbox"] {
  background: rgba(255, 58, 31, 0.06);
  border: var(--rule-thin) solid var(--accent);
  padding: 2px 4px;
}
.pdf-field-overlay[data-field-type="checkbox"]:hover {
  background: rgba(255, 58, 31, 0.15);
  border-color: var(--ink);
}
.pdf-field-overlay[data-field-type="checkbox"].checkbox-checked {
  background: rgba(255, 58, 31, 0.06);
}
.pdf-field-overlay[data-field-type="checkbox"] .pdf-field-preview-checkbox {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.pdf-field-overlay[data-field-type="checkbox"].checkbox-checked .pdf-field-preview-checkbox {
  color: var(--ink);
}
/* Drop the placeholder ✓ outline */
.pdf-field-overlay[data-field-type="checkbox"]:not(.checkbox-checked) .pdf-field-preview-checkbox:empty::before {
  content: none;
}


/* ============================================================================
   86. PDF FIELD DROPDOWN — "Set check mark" action option
   Distinct from CSV column entries: top-border separator and accent text.
   ============================================================================ */
.pdf-field-column-dropdown-option--check {
  border-top: var(--rule-thin) solid var(--ink) !important;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--paper);
}
.pdf-field-column-dropdown-option--check:hover {
  background: var(--accent);
  color: var(--paper);
}


/* ============================================================================
   87. CHECKMARK SIZING — fit ✓ inside both PDFCheckBox boxes and text-field
   overlays that the user marked via "Set check mark"
   ============================================================================ */

/* Actual PDFCheckBox preview — keep the ✓ from overflowing tiny form boxes */
.pdf-field-overlay[data-field-type="checkbox"] {
  padding: 0;
  overflow: hidden;
}
.pdf-field-overlay[data-field-type="checkbox"] .pdf-field-preview-checkbox {
  width: 100%;
  height: 100%;
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Text fields with a fixed ✓ value — render the checkmark centered and sized
   so it fits the field's bounding box rather than overflowing it. */
.pdf-field-overlay:not([data-field-type="checkbox"]) .pdf-field-preview.has-value {
  /* Detect the lone-checkmark state: if the preview's only content is "✓" we
     want centered-and-fit rendering. */
}
.pdf-field-overlay .pdf-field-preview.is-checkmark,
.pdf-field-overlay .pdf-field-preview-checkbox.has-value {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: clamp(8px, 80%, 14px);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
}


/* ============================================================================
   88. EDIT PATTERN INPUT — drop the orange shadow on focus
   ============================================================================ */
.app .filename-template-input:focus,
.app input.filename-template-input:focus,
.filename-pattern-editor .output-settings-input:focus,
.filename-pattern-editor input.output-settings-input:focus {
  box-shadow: none !important;
  outline: var(--rule-thin) solid var(--ink);
  outline-offset: 0;
  border-color: var(--ink);
}


/* ============================================================================
   89. PDF FIELD DROPDOWN — anchored to the field (scrolls with the document)
   ============================================================================ */
.pdf-field-column-dropdown {
  position: absolute !important;
}


/* ============================================================================
   90. PDF FIELD DROPDOWN — pinned to viewport (doesn't move with scroll)
   Reverts the absolute-position change from section 89.
   ============================================================================ */
.pdf-field-column-dropdown {
  position: fixed !important;
}


/* ============================================================================
   91. PDF FIELD DROPDOWN — anchored to the field's document position
   (re-overrides section 90; the dropdown scrolls with the field, not the user)
   ============================================================================ */
.pdf-field-column-dropdown {
  position: absolute !important;
}


/* ============================================================================
   92. TOOL HEADER — "←" back hint before the brand link
   ============================================================================ */
.app > header .brand::before {
  content: "← ";
  color: inherit;
  font-weight: inherit;
  margin-right: 0;
}


/* ============================================================================
   93. PDF FIELD DROPDOWN — back to position:fixed; site.js scroll listeners
   keep it anchored to the field. The dropdown lives in document.body, so it
   no longer expands the PDF preview's scrollable area below the page.
   ============================================================================ */
.pdf-field-column-dropdown {
  position: fixed !important;
}


/* ============================================================================
   94. ABOUT THIS TOOL — single combined section replacing Who / FAQ / Guides
   site.js merges the three legacy sections into one .about-tool with a single
   collapsible toggle. Sub-headings inside identify each part.
   ============================================================================ */
.app .about-tool {
  display: block;
  border: var(--rule-med) solid var(--ink);
  background: var(--paper);
  padding: 0;
  margin: 4rem 0 0;
}
.app .about-tool::before { display: none; }
.app .about-tool .collapsible__body { padding: 0; }
.app .about-tool__part {
  padding: 0.6rem 0.85rem 1rem;
  border-bottom: var(--rule-thin) solid var(--line-soft);
}
.app .about-tool__part:last-child { border-bottom: 0; }
.app .about-tool__heading {
  margin: 0.85rem 0.85rem 0.35rem;
  padding-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: var(--rule-thin) solid var(--ink);
}
.app .about-tool__heading:first-child { border-top: 0; padding-top: 0; }
.app .about-tool__part p,
.app .about-tool__part h2,
.app .about-tool__part h3,
.app .about-tool__part ul,
.app .about-tool__part ol {
  margin: 0 0 0.5rem;
}
.app .about-tool__part p:last-child { margin-bottom: 0; }
/* Hide the original h2 headings inside each part — the sub-heading above
   already labels the section. */
.app .about-tool__part > h2 { display: none; }

/* FAQ questions inside */
.app .about-tool__part[data-part="questions"] h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  margin: 0.5rem 0 0.25rem;
}

/* Related guides list inside */
.app .about-tool__part[data-part="guides"] ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.app .about-tool__part[data-part="guides"] li {
  padding: 0.4rem 0;
  border-bottom: var(--rule-thin) solid var(--line-soft);
}
.app .about-tool__part[data-part="guides"] li:last-child { border-bottom: 0; }
.app .about-tool__part[data-part="guides"] a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}
.app .about-tool__part[data-part="guides"] a:hover { color: var(--accent); }


/* ============================================================================
   95. ABOUT THIS TOOL — drop the black rule above each sub-heading
   (the faint grey hairline at the bottom of each part already separates them)
   ============================================================================ */
.app .about-tool__heading {
  border-top: 0 !important;
  padding-top: 0 !important;
}


/* ============================================================================
   96. ABOUT THIS TOOL — "View all guides" button pinned to bottom-right
   ============================================================================ */
.app .about-tool__footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.85rem;
  border-top: var(--rule-thin) solid var(--line-soft);
}
.app .about-tool__view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: var(--rule-med) solid var(--ink);
  transition: background 120ms var(--ease-out), color 120ms var(--ease-out);
}
.app .about-tool__view-all:hover,
.app .about-tool__view-all:active {
  background: var(--ink);
  color: var(--paper);
}


/* ============================================================================
   97. PDF FIELD DROPDOWN — anchored inside .pdf-canvas-wrap (re-enable)
   Position is constrained in JS to never overflow the canvas, so this no
   longer creates extra scrollable space below the PDF.
   ============================================================================ */
.pdf-field-column-dropdown {
  position: absolute !important;
}


/* ============================================================================
   98. PDF CANVAS WRAP — clip overflow so children don't expand the scrollable
   area of .pdf-view-wrap. The dropdown's flip/shift logic keeps it inside the
   canvas bounds, so nothing important gets clipped.
   ============================================================================ */
.pdf-canvas-wrap {
  overflow: hidden;
  /* keep position: relative from section 17 so the dropdown anchors here */
}


/* ============================================================================
   99. CONFIGURE-FILENAME TOGGLE — black active state across all tools
   Generalized over .btn-settings-toggle (any "Configure file name" button).
   ============================================================================ */
.app .btn-settings-toggle:hover:not(:disabled),
.app .btn-settings-toggle:active:not(:disabled),
.app .btn-settings-toggle[aria-expanded="true"] {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-color: var(--ink) !important;
}


/* ============================================================================
   100. SPLIT-PDF SETTINGS — vertical stack on small screens, side-by-side
   only on larger viewports. Right-alignment of the pages field is reset on
   small screens so both inputs left-align in the stacked layout.
   ============================================================================ */
@media (max-width: 720px) {
  .app .step-upload .split-settings-row {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .app .step-upload .split-settings-row > .output-settings-row:nth-child(2) {
    align-items: flex-start !important;
    text-align: left !important;
  }
  .app .step-upload .split-settings-row > .output-settings-row:nth-child(2) .output-settings-input {
    max-width: 380px;
    width: 100%;
  }
}


/* ============================================================================
   101. SPLIT-PDF SETTINGS — full-width inputs on small screens (match the
   PDF dropbox width, drops the 380px cap)
   ============================================================================ */
@media (max-width: 720px) {
  .app .step-upload .split-settings-row .output-settings-input {
    max-width: none !important;
    width: 100% !important;
  }
}


/* ============================================================================
   102. MERGE PDF — drag-and-drop file rows on the review step
   ============================================================================ */
.app .merge-list-hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.app .merge-file-list__item {
  cursor: default;
  transition: background 120ms var(--ease-out), padding 120ms var(--ease-out);
}
/* Only the items merge-pdf-files marks draggable get the grab cursor. */
.app .merge-file-list__item[draggable="true"] {
  cursor: grab;
}
.app .merge-file-list__item.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}
.app .merge-file-list__item.is-drag-over {
  background: var(--soft);
  border-top: var(--rule-med) solid var(--accent);
}
.app .merge-file-list__grip {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--muted);
  cursor: grab;
  user-select: none;
  margin-right: 0.5rem;
}
.app .merge-file-list__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-right: 0.55rem;
}


/* ============================================================================
   103. STEP SECTIONS — add breathing room where the H2 heading used to sit
   The topbar pseudo gets a margin-bottom so content has space above it.
   ============================================================================ */
.app .step-upload::before,
.app .step-review::before,
.app .step-map::before {
  margin-bottom: 1rem;
}


/* ============================================================================
   104. MERGE PDF — borderless list, × remove icon, side-by-side bottom row
   ============================================================================ */

/* Drop the surrounding border on the merge file list */
.app .step-review .merge-file-list,
.app .merge-file-list {
  border: 0 !important;
  background: transparent !important;
}
.app .merge-file-list__item {
  border-bottom: var(--rule-thin) solid var(--line-soft);
  padding: 0.65rem 0;
}
.app .merge-file-list__item:last-child { border-bottom: 0; }

/* Small × remove button at the top-left of each row */
.app .merge-file-list__remove {
  width: 1.4rem;
  height: 1.4rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 120ms var(--ease-out), background 120ms var(--ease-out);
}
.app .merge-file-list__remove:hover {
  color: var(--paper);
  background: var(--accent);
}

/* Bottom row: Change file · Default password · Output file name */
.app .merge-bottom-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 0.85rem 1.25rem;
  align-items: end;
  margin: 1rem 0 0;
}
.app .merge-bottom-row .output-settings-row { margin: 0; min-width: 0; }
.app .merge-bottom-row .output-settings-input { max-width: none; width: 100%; }
.app .merge-bottom-row__back {
  white-space: nowrap;
  padding: 0.55rem 0.95rem;
  min-height: 0;
  font-size: 0.74rem;
  margin: 0;
}
@media (max-width: 720px) {
  .app .merge-bottom-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .app .merge-bottom-row__back {
    width: 100%;
    order: 99; /* push the Change file button below the inputs on mobile */
  }
}


/* ============================================================================
   105. MERGE PDF — equal-sized 3-column row, space above Download, bolder grip
   ============================================================================ */
.app .merge-bottom-row {
  grid-template-columns: 1fr 1fr 1fr;
  margin: 1rem 0 1.75rem;
}
.app .merge-bottom-row__back {
  width: 100%;
  height: 100%;
  /* fill the cell so the button visually matches the input heights */
}
@media (max-width: 720px) {
  .app .merge-bottom-row {
    grid-template-columns: 1fr;
    margin-bottom: 1.25rem;
  }
}

/* Bolder, larger grip icon so the drag affordance reads at a glance */
.app .merge-file-list__grip {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.1em;
  margin-right: 0.4rem;
}


/* ============================================================================
   106. MERGE PDF — 2-col inputs row + Change file above Download
   ============================================================================ */
.app .merge-bottom-row {
  grid-template-columns: 1fr 1fr;
  margin: 1rem 0 1rem;
}
@media (max-width: 720px) {
  .app .merge-bottom-row { grid-template-columns: 1fr; }
}

.app .merge-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 0.75rem !important;
  padding: 0.7rem 1rem !important;
  font-size: 0.75rem;
  min-height: 0;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.app button.btn.merge-back-btn:hover:not(:disabled),
.app button.btn.merge-back-btn:focus-visible:not(:disabled),
.app .merge-back-btn:hover,
.app .merge-back-btn:focus-visible {
  background: #3d1f6e !important;
  color: var(--paper) !important;
  border-color: #3d1f6e !important;
}


/* ============================================================================
   107. UPLOAD BOX — minimal: one centered button per box, label-driven.
   .upload-label is styled as the visible button (text comes from the input's
   aria-label, set by site.js — e.g. "Choose PDF file" / "Choose CSV file").
   The native <input type="file"> chrome is hidden entirely; the wrapping
   <label class="upload-box"> still opens the picker on click.
   The .file-name hint span is hidden (kept in DOM so JS that writes to it
   doesn't break).
   ============================================================================ */
.upload-box {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  min-height: 170px;
  padding: 1.25rem;
}

/* Hide the native file input completely — the label wrapper still triggers it. */
.upload-box .file-input-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Hide the status hint — JS may update its text but we don't show it. */
.upload-box .file-name {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* .upload-label IS the button. Black with mono uppercase, hover flips to accent. */
.upload-box .upload-label {
  display: inline-block;
  max-width: 100%;
  padding: 0.65rem 1.1rem;
  border: var(--rule-med) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-box:hover .upload-label,
.upload-box .upload-label:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

/* "Done" state — file(s) have been added. Inverts to paper bg with accent border
   so the user clearly sees the upload registered. Hovering still flips to accent
   so the user can swap files in. */
.upload-box.has-file .upload-label,
.upload-box .upload-label.upload-label--done {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: none;
}
.upload-box.has-file:hover .upload-label,
.upload-box .upload-label.upload-label--done:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}



/* ============================================================================
   108. SELECT — Brutalist styling for closed AND open states
   The native <select> is wrapped in .select-shell. site.js §0.5 then injects
   a .select-button (closed state) + .select-panel (open dropdown) and hides
   the native <select> via clip-rect. The native element stays accessible to
   form code (read el.value, listen for 'change'); only its chrome is replaced.
   ============================================================================ */
.select-shell {
  position: relative;
  display: block;
  width: 100%;
  max-width: 380px;
}

/* Native <select> stays in the DOM for form value reads — hide it visually */
.select-shell--enhanced select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Closed state — looks like an input, with chevron on the right */
.select-shell .select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 0.85rem;
  padding-right: 2.4rem;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--paper);
  border: var(--rule-med) solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.select-shell .select-button__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-shell .select-button__chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1;
  transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.select-shell .select-button:hover,
.select-shell .select-button:focus {
  outline: none;
  border-color: var(--accent);
}
.select-shell .select-button:hover .select-button__chevron,
.select-shell.is-open .select-button__chevron {
  color: var(--accent);
}
.select-shell.is-open .select-button__chevron {
  transform: translateY(-50%) rotate(180deg);
}
.select-shell.is-open .select-button {
  border-color: var(--accent);
}

/* Open dropdown panel */
.select-shell .select-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% - var(--rule-med));
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--paper);
  border: var(--rule-med) solid var(--ink);
  border-top: var(--rule-thin) solid var(--line-soft);
  max-height: 260px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 120ms var(--ease-out), transform 120ms var(--ease-out), visibility 120ms;
}
.select-shell.is-open .select-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.select-shell .select-option {
  display: block;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--paper);
  border-bottom: var(--rule-thin) solid var(--line-soft);
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.select-shell .select-option:last-child { border-bottom: 0; }
.select-shell .select-option:hover,
.select-shell .select-option:focus {
  background: var(--accent);
  color: var(--paper);
}
.select-shell .select-option.is-selected { font-weight: 700; }
.select-shell .select-option.is-selected::before {
  content: "✓ ";
  font-family: var(--font-mono);
  margin-right: 0.25rem;
}

/* compress-pdf: 2-col grid for preset + default password (matches merge-pdf-files) */
.app .compress-bottom-row {
  grid-template-columns: 1fr 1fr;
  margin: 1rem 0 1rem;
}
.app .compress-bottom-row .output-settings-row { margin: 0; min-width: 0; }
.app .compress-bottom-row .output-settings-input,
.app .compress-bottom-row .select-shell { max-width: none; width: 100%; }
@media (max-width: 720px) {
  .app .compress-bottom-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}



/* ============================================================================
   109. WATERMARK PDF — 2-step flow with direct-manipulation overlays
   Step 1: same shell as split-pdf-into-files (upload box + .split-settings-row containing
   one full-width password input). Step 2: matched text + image toolbar above
   a scrollable stack of all PDF pages. Each page has its own canvas + .wm-layer.
   Selected watermark gets a rotation handle (top center), resize handle (bottom
   right corner), and a floating opacity slider just below the element.
   ============================================================================ */

/* Single full-width row inside .split-settings-row. Works in both .step-upload
   (workspace) and .step-review (review step) so e.g. remove-password-from-pdf's
   default-password row stretches inline with the file list above it.
   Higher-specificity selector ensures we beat the 3-class
   .app .step-upload .split-settings-row rule earlier in the file. */
.app .step-upload .split-settings-row.wm-step1-row,
.app .step-review .split-settings-row.wm-step1-row {
  grid-template-columns: 1fr;
}
.app .step-upload .split-settings-row.wm-step1-row .output-settings-input,
.app .step-review .split-settings-row.wm-step1-row .output-settings-input {
  max-width: none;
  width: 100%;
}

.app .wm-edit-hint {
  margin: 0 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* The .step-review > * padding rule (§69) pads every direct child by 1.5rem
   left/right — for a wrap that should span edge-to-edge, override it.
   Same trick fill-pdf-from-excel-or-csv uses by nesting its wrap in .map-section. */
.app #stepEdit > .pdf-view-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Step 2 toolbar — two equal-height cells: text input + borderless image button.
   No labels above; the input/button placeholders convey their purpose. */
.app .wm-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  margin: 0 0 1rem;
}
@media (max-width: 720px) {
  .app .wm-toolbar { grid-template-columns: 1fr; }
}
/* High enough specificity to beat input[type="text"].output-settings-input
   from §8 (which caps max-width at 380px). */
.app .step-review .wm-toolbar > input.wm-toolbar__input,
.app .step-review input.output-settings-input.wm-toolbar__input {
  max-width: none;
  width: 100%;
  margin: 0;
  height: auto;
}
/* Image picker: borderless click target (no .upload-box class anymore).
   Renders as a black mono button matching the text input height. */
.app .wm-toolbar__imgbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  width: 100%;
  min-width: 0;
  user-select: none;
  transition: background var(--dur), color var(--dur);
}
.app .wm-toolbar__imgbox:hover,
.app .wm-toolbar__imgbox.has-file {
  background: var(--accent);
}
.app .wm-toolbar__imgbox .file-input-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}
.app .wm-toolbar__imgbox .upload-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0;
  white-space: nowrap;
}
.app .wm-toolbar__imgbox .file-name {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(255,255,255,0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 0 1 auto;
}
.app .wm-toolbar__imgbox .file-name:empty { display: none; }
.app .wm-toolbar__imgbox.has-file .upload-label::before {
  content: "✓ ";
}

/* Pager below the canvas */
.app .wm-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}
.app .wm-pager__info {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* Overlay layer over the PDF preview canvas */
.app .wm-layer {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

/* Watermark overlay.
   Opacity is applied to the inner content only (via --wm-opacity custom
   property set by JS). Handles, rotate knob, and the inline opacity slider
   stay at full opacity so they're always readable/clickable. */
.wm-item {
  position: absolute;
  outline: 1px dashed rgba(0,0,0,0.35);
  cursor: move;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transform-origin: center center;
}
.wm-item.is-selected {
  outline: var(--rule-thin) solid var(--accent);
  background: rgba(255, 58, 31, 0.04);
}
.wm-item__text {
  font-family: var(--font-display);
  font-weight: 800;
  color: #2d2d2d;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: var(--wm-opacity, 1);
}
.wm-item__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: var(--wm-opacity, 1);
}

/* Resize handle (bottom-right corner) */
.wm-item__handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: var(--rule-thin) solid var(--paper);
  cursor: nwse-resize;
  z-index: 2;
}
.wm-item:not(.is-selected) .wm-item__handle {
  background: var(--ink);
  opacity: 0.6;
}

/* Delete button (top-right) — visible only when selected */
.wm-item__delete {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: var(--ink);
  border: var(--rule-thin) solid var(--paper);
  border-radius: 50%;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  user-select: none;
}
.wm-item__delete:hover {
  background: var(--accent);
  color: var(--paper);
}
.wm-item:not(.is-selected) .wm-item__delete { display: none; }

/* Rotate handle (top center) — PowerPoint style: small disc with a curved-arrow
   icon, connected by a short stem to the top of the element. */
.wm-item__rotate {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: var(--rule-thin) solid var(--paper);
  border-radius: 50%;
  cursor: grab;
  z-index: 3;
}
.wm-item__rotate::before {
  content: "↻";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper);
  line-height: 1;
}
.wm-item__rotate::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 1px;
  height: 10px;
  background: var(--accent);
  transform: translateX(-50%);
}
.wm-item:not(.is-selected) .wm-item__rotate { display: none; }

/* Inline opacity slider — sits just below the selected watermark element.
   It rotates with the parent because it's inside .wm-item, so we counter-rotate
   to keep it readable regardless of element rotation. */
.wm-item__opacity {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  background: var(--paper);
  border: var(--rule-thin) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  white-space: nowrap;
  cursor: default;
  z-index: 4;
  /* Counter the parent's rotation so the slider always reads upright. */
}
/* JS rotates the .wm-item via transform: rotate(...). To keep the opacity
   slider upright, we apply an inverse rotate via a CSS custom property the JS
   could set; for now we just leave it rotated with the element — when angle is
   small (typical watermarks) it's still usable. Counter-rotation is a future
   refinement. */
.wm-item__opacity-range {
  width: 130px;
  accent-color: var(--accent);
}
.wm-item__opacity-val {
  color: var(--ink);
  min-width: 2.5rem;
  text-align: right;
}



/* ============================================================================
   110. SITE CHECKBOX — Brutalist styled checkbox + label.
   Markup:
     <label class="site-check">
       <input type="checkbox">
       <span class="site-check__box" aria-hidden="true"></span>
       <span class="site-check__text">...</span>
     </label>
   The native input is hidden via clip-rect (still tabbable). The custom box
   shows as a black-bordered square that flips to accent orange with a ✓ when
   checked. The whole label is one clickable row with a black border.
   ============================================================================ */
.site-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 1rem;
}

.site-check > input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.site-check__box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: var(--rule-med) solid var(--ink);
  background: var(--paper);
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  transition: background var(--dur), border-color var(--dur);
}
.site-check > input[type="checkbox"]:checked ~ .site-check__box {
  background: var(--accent);
  border-color: var(--accent);
}
.site-check > input[type="checkbox"]:checked ~ .site-check__box::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.site-check > input[type="checkbox"]:focus-visible ~ .site-check__box {
  outline: var(--rule-thin) solid var(--accent);
  outline-offset: 2px;
}

.site-check__text {
  flex: 1 1 auto;
  min-width: 0;
}
.site-check__text strong { font-weight: 700; }



/* ============================================================================
   111. ADD-PDF-PASSWORD — per-row 2-column password pair inside .merge-file-list
   Each list item has Current + New password side by side. Mobile collapses to
   a single column.
   ============================================================================ */
.app .merge-file-list__item .ap-pw-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin-top: 0.5rem;
}
@media (max-width: 600px) {
  .app .merge-file-list__item .ap-pw-pair {
    grid-template-columns: 1fr;
  }
}
.app .merge-file-list__item .ap-pw-pair .merge-file-list__pwd-row {
  margin: 0;
}

.app .merge-file-list__item .pw-row-error {
  margin: 0.5rem 0 0;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 58, 31, 0.08);
  border-left: var(--rule-thick) solid var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}



/* ============================================================================
   112. REDACT PDF — interactive black-box overlay on the PDF preview.
   Each redaction is an absolutely-positioned .redact-box inside .redact-overlay
   over #pdfCanvas. Click to select (accent outline + × delete + resize handle).
   Drag the body to move; drag the bottom-right corner to resize. The .rubber
   element is the rubber-band rectangle shown while drawing a new box.
   ============================================================================ */
.app #stepRedact > .pdf-view-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.app .pdf-canvas-wrap {
  cursor: crosshair;
}
.app .redact-overlay {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}
.app .redact-box {
  position: absolute;
  background: #000;
  outline: 1px solid #000;
  cursor: move;
  user-select: none;
  box-sizing: border-box;
}
.app .redact-box.is-selected {
  outline: var(--rule-thin) solid var(--accent);
}
.app .redact-box__handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: var(--rule-thin) solid var(--paper);
  cursor: nwse-resize;
  z-index: 2;
  display: none;
}
.app .redact-box.is-selected .redact-box__handle { display: block; }
.app .redact-box__delete {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: var(--ink);
  border: var(--rule-thin) solid var(--paper);
  border-radius: 50%;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
}
.app .redact-box.is-selected .redact-box__delete { display: flex; }
.app .redact-box__delete:hover { background: var(--accent); }

.app .redact-rubber {
  position: absolute;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.18);
  outline: var(--rule-thin) dashed var(--accent);
  z-index: 3;
}
.app .redact-rubber.hidden { display: none; }



/* ============================================================================
   113. TOOL TAGLINE — small description under the main h1 (convert-pdf-to-video etc.)
   ============================================================================ */
.app header .tool-tagline {
  margin: 1rem 0 0;
  max-width: 720px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}



/* ============================================================================
   114. HUB TOOL HINT — compact prose under each tool name.
   Higher specificity than the §96 mono-font rule earlier in the file.
   ============================================================================ */
.app .hub-grid .hub-tool .hub-tool__hint,
body.hub-page .hub-grid .hub-tool__hint {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  margin-top: 0.3rem;
}
/* On hover the row background flips to dark, so the hint switches to paper. */
.app .hub-grid .hub-tool:hover .hub-tool__hint,
body.hub-page .hub-grid .hub-tool:hover .hub-tool__hint {
  color: var(--paper);
}



/* ============================================================================
   115. CHANGE-FILE PURPLE HOVER — final cascade override.
   Placed at the very end + maximum-specificity selector + !important so this
   wins over the global .btn:hover and .btn-secondary:hover rules above.
   ============================================================================ */
html body .app button.btn.merge-back-btn:hover:not(:disabled),
html body .app button.btn.merge-back-btn:focus-visible:not(:disabled),
html body .app button.btn.merge-back-btn:active:not(:disabled) {
  background: #3d1f6e !important;
  color: var(--paper) !important;
  border-color: #3d1f6e !important;
  box-shadow: none !important;
  transform: none !important;
}



/* ============================================================================
   116. TOOL HEADER — 2-col layout mirroring the home hub.
   Brand stays on top; title + tagline + Subscribe/Restore/Licensed sit in a
   single row below. site.js §6a injects the markup so no per-tool HTML edits.
   ============================================================================ */
.app > header { position: relative; }
/* Brand row: matches .hub-page .hub-mast__brand — brand link on the left,
   "Local processing" tag pushed to the far right via space-between. */
.app > header .tool-header__brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 0.75rem;
}
.app > header .tool-header__brand .brand {
  display: inline-flex;
  align-items: center;
}
/* Mirrors .hub-page .hub-mast__row from §39 — 2-col grid (title | aside),
   vertically centered, with the same gaps and margins. */
.app > header .tool-header__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
  margin-top: 0.4rem;
}
.app > header .tool-header__main {
  min-width: 0;
}
.app > header .tool-header__aside {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  min-width: 0;
}
/* Stack the three buttons in a vertical column on the right — same as
   .hub-page .hub-subscribe__cta-col on the hub. */
.app > header .tool-header__aside {
  flex-direction: column;
  gap: 0.45rem;
  min-width: 12rem;
}
.app > header .tool-header__aside .btn {
  width: 100%;
  min-height: 0;
  padding: 0.7rem 1rem;
  font-size: 0.74rem;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .app > header .tool-header__row { grid-template-columns: 1fr; }
  .app > header .tool-header__aside {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
  }
  .app > header .tool-header__aside .btn { width: auto; flex: 1 1 auto; }
}





/* ============================================================================
   118. PAYWALL LICENSE VIEW — Copy license key + Manage subscription buttons.
   Both full-width and same sizing. Copy = white bg / black text (secondary);
   Manage = black bg / white text (primary).
   ============================================================================ */
.paywall-modal #paywallCopyLicenseBtn,
.paywall-modal #paywallManage,
.paywall-modal .paywall-license__manage-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.paywall-modal #paywallCopyLicenseBtn {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border-color: var(--ink) !important;
}
.paywall-modal #paywallCopyLicenseBtn:hover:not(:disabled) {
  background: var(--accent) !important;
  color: var(--paper) !important;
  border-color: var(--accent) !important;
}
.paywall-modal #paywallManage,
.paywall-modal .paywall-license__manage-btn {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-color: var(--ink) !important;
}
.paywall-modal #paywallManage:hover:not(:disabled),
.paywall-modal .paywall-license__manage-btn:hover:not(:disabled) {
  background: var(--accent) !important;
  color: var(--paper) !important;
  border-color: var(--accent) !important;
}
.paywall-modal .paywall-license__actions,
.paywall-modal .paywall-license__manage {
  margin-top: 0.5rem;
}



/* ============================================================================
   119. PAYWALL STATUS — tinted success / error message inside the modal.
   ============================================================================ */
.paywall-status {
  margin-top: 0.85rem;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  border-left: var(--rule-thick) solid transparent;
  background: transparent;
  min-height: 0.6rem;
}
.paywall-status:empty {
  display: none;
}
.paywall-status--success {
  color: #14532d;
  background: rgba(34, 197, 94, 0.1);
  border-left-color: #16a34a;
}
.paywall-status--error {
  color: #7f1d1d;
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #dc2626;
}



/* ============================================================================
   120. SUITE FOOTER COLLAPSIBLE — mirror the .app .is-collapsible rules so the
   "More tools" footer collapses by default just like About this tool above.
   ============================================================================ */
body > .suite-footer > .suite-nav.is-collapsible::before { display: none !important; }
body > .suite-footer > .suite-nav.is-collapsible .collapsible__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--bg);
  border: 0;
  border-bottom: var(--rule-thin) solid var(--ink);
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: color 150ms var(--ease-out), background 150ms var(--ease-out);
}
body > .suite-footer > .suite-nav.is-collapsible .collapsible__toggle:hover {
  color: var(--ink);
  background: var(--soft);
}
body > .suite-footer > .suite-nav.is-collapsible .collapsible__toggle:focus-visible {
  outline: var(--rule-med) solid var(--accent);
  outline-offset: -2px;
}
body > .suite-footer > .suite-nav.is-collapsible .collapsible__icon {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
body > .suite-footer > .suite-nav.is-collapsible.is-collapsed .collapsible__toggle {
  border-bottom: 0;
}
body > .suite-footer > .suite-nav.is-collapsible.is-collapsed .collapsible__body {
  display: none;
}



/* ============================================================================
   121. HEADER BRAND ROW — extra breathing room between the brand row
   (← automatedpdf.tools + Local processing) and the page title on mobile.
   Applies on both the home hub and every tool page.
   ============================================================================ */
@media (max-width: 720px) {
  .hub-page .hub-mast__brand,
  .app > header .tool-header__brand {
    margin-bottom: 2rem;
  }
}



/* ============================================================================
   122. SHEET PICKER (fill-pdf-from-excel-or-csv) — span the full row width
   so it lines up visually with the two upload boxes above it, instead of
   inheriting `.output-settings-input { max-width: 380px }`.
   ============================================================================ */
.app .sheet-picker-row {
  display: block;
}
.app .sheet-picker-row .sheet-picker-shell {
  display: block;
  width: 100%;
}
.app .sheet-picker-row .select-input,
.app .sheet-picker-row .select-button {
  max-width: none;
  width: 100%;
}
