:root {
  --bg: #FAFAF8; --fg: #1A1A18; --fg-muted: #6B6B66; --fg-faint: #9C9C96;
  --accent: #1B6B4A; --accent-light: #E8F5EE; --accent-hover: #14553A;
  --border: #E2E2DC; --border-strong: #CDCDC7; --drop-bg: #FFFFFF;
  --radius: 14px;
  /* Standardised ACTION colours (dark green stays the brand colour):
     orange = PDF generation actions, blue = analysis actions.
     Verdict colours are separate: a brighter green for "consistent" so it
     cannot be read as the brand green. */
  --action-generate: #F0871E; --action-generate-hover: #DE7710; --action-generate-light: #FDEEDC;
  --action-analysis: #2F6FAE; --action-analysis-hover: #27578A; --action-analysis-light: #E8F0F7;
  --ok: #2F9E44; --ok-bg: #E9F7EC;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--fg); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }

nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 40px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 100; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: -0.5px; color: var(--fg); text-decoration: none; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--fg-muted); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.sol-signin { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border-strong); font-weight: 600; font-size: 13px; transition: all 0.15s; }
.nav-links a.sol-signin:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
/* Persistent "start here" button — jumps straight to the configurator. */
.nav-links a.nav-cta { background: var(--action-generate); color: #fff; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 130px; box-sizing: border-box; transition: background 0.2s; }  /* min-width: the two action buttons (Create PDF / DeepCheck) render the same width */
.nav-links a.nav-cta:hover { background: var(--action-generate-hover); color: #fff; }
.nav-links a.nav-cta svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-links a.nav-analysis { background: var(--action-analysis); }
.nav-links a.nav-analysis:hover { background: var(--action-analysis-hover); }
/* Compare action: mid green with white text, the same weight as the orange and blue
   actions (Andy, 10 Oct 2026; replaces the pale 08 Oct tint). Distinct from the dark brand
   green (#14372B, brand only) and the brighter yellow-green verdict green (#2F9E44). */
:root { --action-compare: #3A8F62; --action-compare-hover: #2F7651; --action-compare-light: #E2F1E8; --action-compare-ink: #2F7651; }
.nav-links a.nav-cta.nav-compare, .cw-page .nav-links a.nav-cta.nav-compare { background: var(--action-compare); color: #fff; }
.nav-links a.nav-cta.nav-compare:hover, .cw-page .nav-links a.nav-cta.nav-compare:hover { background: var(--action-compare-hover); color: #fff; }
.account-dropdown a.ad-compare { color: var(--action-compare-ink); font-weight: 600; }

/* First-timer explanations on the two action CTAs: appear only after a full
   second of hover (a quick pass-over shows nothing), no icon needed. */
.nav-links a.nav-cta[data-tip] { position: relative; }
.nav-links a.nav-cta[data-tip]::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 10px); right: 0; width: 280px;
  background: var(--fg); color: var(--bg);
  padding: 10px 13px; border-radius: 8px;
  font-size: 12px; font-weight: 400; line-height: 1.55; letter-spacing: 0; text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(-3px);
  transition: opacity 0.18s ease 0s, transform 0.18s ease 0s, visibility 0s linear 0.18s;
  pointer-events: none; white-space: normal; z-index: 300;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.nav-links a.nav-cta[data-tip]:hover::after {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.18s ease 1s, transform 0.18s ease 1s, visibility 0s linear 1s;
}

/* Account dropdown — the signed-in account chip opens this menu. Shared across
   every page (homepage, configurator, pricing, dashboard) so the behaviour is
   identical wherever the account name appears. */
.account-menu { position: relative; display: inline-block; }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 10px); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 32px rgba(0,0,0,0.14); min-width: 240px; padding: 8px; z-index: 1000; }
.account-dropdown .ad-head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.account-dropdown .ad-name { font-weight: 700; font-size: 14px; }
.account-dropdown .ad-firm { font-size: 12px; color: var(--fg-muted); margin-top: 3px; }
.account-dropdown a.ad-generate { color: var(--action-generate); font-weight: 600; }
.account-dropdown a.ad-generate:hover { background: #FDEEDC; }
.account-dropdown a.ad-analysis { color: var(--action-analysis); font-weight: 600; }
.account-dropdown a.ad-analysis:hover { background: var(--action-analysis-light); }
.account-dropdown a, .account-dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; font-size: 13px; color: var(--fg); text-decoration: none; background: none; border: none; border-radius: 8px; cursor: pointer; font-family: inherit; }
/* each item's hover tint matches its own text colour family:
   neutral for Dashboard, warm for generate, blue for analysis, red for sign-out */
.account-dropdown a:hover, .account-dropdown button:hover { background: #F1F1ED; }
.account-dropdown .ad-signout:hover { background: #FBEDEB; }
.account-dropdown .ad-signout { color: #C0392B; }

.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 40px 40px; max-width: 740px; margin: 0 auto; width: 100%; }
.hero.collapsed { display: none; }
.hero h1 { font-size: 44px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.12; text-align: center; margin-bottom: 16px; }
.hero .subtitle { font-size: 18px; color: var(--fg-muted); text-align: center; line-height: 1.55; max-width: 520px; margin-bottom: 12px; }
.usp-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-light); border: 1px solid #C2E3D2; border-radius: 100px; padding: 8px 18px; margin-bottom: 28px; font-size: 14px; font-weight: 500; color: var(--accent); }
.usp-badge svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; }
.credibility { text-align: center; max-width: 560px; margin-bottom: 36px; padding: 20px 28px; background: linear-gradient(135deg, #F7F7F4 0%, #FFFFFF 100%); border: 1px solid var(--border); border-radius: var(--radius); }
.credibility p { font-size: 15px; color: var(--fg-muted); line-height: 1.6; }
.credibility strong { color: var(--fg); font-weight: 600; }

.dropzone-wrapper { width: 100%; max-width: 620px; }
.dropzone { width: 100%; border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--drop-bg); padding: 60px 40px; text-align: center; cursor: pointer; transition: all 0.2s ease; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03); }
.dropzone.hovered,
.dropzone.dragover { border-color: var(--action-generate, #F0871E); transition: all 0.2s ease, border-color 0.4s ease; }   /* colour fades in over 0.4s, back to grey in the base 0.2s (17 Oct 2026) */   /* no tint (14 Oct 2026): the border takes PDF generation's orange, as DeepCheck's and Compare's take theirs */
.dropzone-icon { width: 60px; height: 60px; margin: 0 auto 20px; background: var(--accent-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; position: relative; pointer-events: none; }
.dropzone.hovered .dropzone-icon,
.dropzone.dragover .dropzone-icon { background: #ffffff; animation: upload-bounce 1s ease infinite; }
.dropzone-icon .upload-arrow { position: absolute; width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.5; top: 5px; left: 50%; transform: translateX(-50%); z-index: 0; }
.dropzone.hovered .dropzone-icon .upload-arrow,
.dropzone.dragover .dropzone-icon .upload-arrow { animation: arrow-extra 1s ease infinite; }
.dropzone-icon svg.zip-folder { width: 34px; height: 30px; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }
@keyframes upload-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-3px); }
}
@keyframes arrow-extra {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-1.6px); }
  60% { transform: translateX(-50%) translateY(-0.6px); }
}
.dropzone-text { font-size: 18px; font-weight: 500; color: var(--fg); margin-bottom: 8px; }
.dropzone-text .browse { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.dropzone-hint { font-size: 14px; color: var(--accent); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.has-error { border-color: #c0392b; background: #fdf0ef; }
.dropzone.has-error .dropzone-icon { background: #fce4e1; }
.dropzone.has-error .dropzone-icon svg path { fill: #fce4e1; stroke: #c0392b; }
.dropzone.has-error .dropzone-text { color: #c0392b; font-size: 20px; font-weight: 600; }
.dropzone.has-error .dropzone-hint { color: #c0392b; }

/* Export wizard — guided .zip export helper */
.export-wizard { max-width: 520px; width: 100%; margin-top: 20px; text-align: center; }
.wizard-start { padding: 16px 24px 18px; border-radius: 10px; border: 1px solid var(--border-strong); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: border-color 0.3s, box-shadow 0.3s; }
@keyframes wizardNudge {
  0%,100% { box-shadow: 0 1px 3px rgba(0,0,0,0.04); border-color: var(--border-strong); background: #fff; }
  /* pulse 1 */
  8%  { box-shadow: 0 0 0 4px rgba(27,107,74,0.15); border-color: var(--accent); background: var(--accent-light); }
  16% { box-shadow: 0 1px 3px rgba(0,0,0,0.04); border-color: var(--border-strong); background: #fff; }
  /* pulse 2 */
  24% { box-shadow: 0 0 0 4px rgba(27,107,74,0.15); border-color: var(--accent); background: var(--accent-light); }
  32% { box-shadow: 0 1px 3px rgba(0,0,0,0.04); border-color: var(--border-strong); background: #fff; }
  /* pause */
  50% { box-shadow: 0 1px 3px rgba(0,0,0,0.04); border-color: var(--border-strong); background: #fff; }
  /* pulse 3 */
  58% { box-shadow: 0 0 0 4px rgba(27,107,74,0.15); border-color: var(--accent); background: var(--accent-light); }
  66% { box-shadow: 0 1px 3px rgba(0,0,0,0.04); border-color: var(--border-strong); background: #fff; }
  /* pulse 4 */
  74% { box-shadow: 0 0 0 4px rgba(27,107,74,0.15); border-color: var(--accent); background: var(--accent-light); }
  82% { box-shadow: 0 1px 3px rgba(0,0,0,0.04); border-color: var(--border-strong); background: #fff; }
}
.wizard-start.wizard-nudge, .wizard-body.wizard-nudge { animation: wizardNudge 5s ease 1; }
.wizard-heading { font-size: 15px; font-weight: 600; color: var(--fg); margin: 0 0 12px; font-family: 'DM Sans', sans-serif; }
.export-wizard.open .wizard-start { display: none; }
.wizard-body { display: none; background: #fff; border: 1px solid var(--border-strong); border-radius: 10px; padding: 20px 24px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.export-wizard.open .wizard-body { display: block; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-q { font-size: 15px; font-weight: 500; margin: 0 0 14px; color: var(--fg); }
.wizard-choices { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.wizard-btn { padding: 9px 18px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); font-size: 13px; font-family: inherit; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.wizard-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.wizard-btn-done { background: var(--accent); color: #fff; border-color: var(--accent); }
.wizard-btn-done:hover { background: var(--accent-hover); }
.wizard-btn-back { background: none; border: none; color: var(--fg-muted); font-size: 12px; padding: 9px 8px; }
.wizard-btn-back:hover { color: var(--fg); text-decoration: underline; }
.wizard-steps-list { margin: 0 auto 16px; padding-left: 20px; font-size: 13px; line-height: 1.7; color: var(--fg); text-align: left; display: inline-block; }
.wizard-steps-list li { margin-bottom: 4px; }
.wizard-steps-list strong { font-weight: 600; }
.wizard-tip { margin-top: 6px; font-size: 12px; color: var(--fg-muted); }
.wizard-tip summary { cursor: pointer; font-weight: 500; color: var(--accent); list-style: none; }
.wizard-tip summary::before { content: '▸ '; }
.wizard-tip[open] summary::before { content: '▾ '; }
.wizard-tip summary::-webkit-details-marker { display: none; }
.wizard-tip ol { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; color: var(--fg); }
.dropzone.wizard-pulse { border-color: var(--accent); background: var(--accent-light); transition: background 0.3s; }
.dropzone.wizard-pulse .dropzone-icon { background: #ffffff; animation: upload-bounce 1s ease 2; }
.dropzone.wizard-pulse .dropzone-icon .upload-arrow { animation: arrow-extra 1s ease 2; }

.trust-strip { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 36px; max-width: 620px; width: 100%; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-muted); }
.trust-item svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; }

/* Hero fade transition */
.hero.fading .usp-badge,
.hero.fading h1,
.hero.fading .subtitle,
.hero.fading .credibility,
.hero.fading .trust-strip,
.hero.fading .export-wizard {
  opacity: 0; transform: translateY(-12px); transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero.fading .dropzone-wrapper { pointer-events: none; }

/* Morph overlay — the travelling card */
.morph-overlay {
  position: fixed; z-index: 200; background: white; border-radius: var(--radius); pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
  overflow: hidden; transition: none;
}
.morph-overlay.animating {
  transition: top 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              left 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.morph-inner-from, .morph-inner-to {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity 0.35s ease;
}
.morph-inner-from { opacity: 1; }
.morph-inner-to { opacity: 0; }
.morph-overlay.animating .morph-inner-from { opacity: 0; transition-delay: 0.05s; }
.morph-overlay.animating .morph-inner-to { opacity: 1; transition-delay: 0.25s; }

/* Analysis loader */
.analysis-inline { position: absolute; inset: 0; z-index: 20; background: #EDEBE4; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 1; transition: opacity 0.35s ease; }
.analysis-inline.fade-out { opacity: 0; }
/* Loading preview (15 Oct 2026): the Create PDF mark above DeepCheck's chunky bar, in PDF generation's orange */
.analysis-inline .analysis-mark { width: 72px; height: 72px; color: var(--action-generate, #F0871E); margin-bottom: 14px; }
.analysis-inline .analysis-status { font-size: 15px; font-weight: 600; color: var(--fg); text-align: center; }
.analysis-inline .analysis-track { width: min(380px, 80%); height: 16px; background: #fff; border: 1px solid var(--border-strong); border-radius: 3px; overflow: hidden; margin-top: 20px; }
.analysis-inline .analysis-fill { height: 100%; width: 0%; background: var(--action-generate, #F0871E); transition: width 0.12s linear; }

/* Workspace */
/* The configurator's frame (15 Oct 2026, Andy): a centred measure as Compare's, the
   heading staying at the top with a tool bar beneath, the pages stacked in a scrolling
   column, the options boxed beside them. Nothing full-bleed; no morph; no opening flick. */
:root { --cw-doc: 634px; --cw-mid: 32px; --cw-cfg: 370px; --cw-sb: 14px; }
.workspace { display: none; width: 100%; }
.workspace.active { display: block; }
.cw-frame { width: calc(var(--cw-doc) + var(--cw-mid) + var(--cw-cfg)); max-width: calc(100vw - 32px); margin: 0 auto; height: calc(100vh - var(--nav-h, 73px)); display: flex; flex-direction: column; }
.cw-top { flex: none; padding: 28px 0 14px; }
.cw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 12px; }
.cw-title { font-family: var(--font-heading, var(--serif, Georgia, serif)); font-size: 36px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; color: var(--fg); margin: 0; text-align: left; }
.cw-file { min-width: 0; display: flex; align-items: baseline; gap: 12px; font-family: var(--sans); font-size: 13px; color: var(--fg-muted); flex-wrap: wrap; }
.cw-file-name { font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.cw-file-meta { white-space: nowrap; color: var(--fg-faint); }
.cw-bar { display: flex; align-items: center; gap: 16px; min-height: 34px; font-family: var(--sans); font-size: 13px; color: var(--fg-muted); flex-wrap: wrap; }
.cw-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* the boxed controls, as Compare's */
.cw-find { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); background: #fff; height: 30px; }
.cw-find svg { width: 14px; height: 14px; margin: 0 6px 0 8px; stroke: var(--fg-faint); fill: none; stroke-width: 2; stroke-linecap: round; flex: none; }
.cw-find input { border: 0; outline: 0; font: inherit; font-size: 13px; width: 130px; background: transparent; color: var(--fg); }
.cw-find input::-webkit-search-cancel-button { display: none; }
.cw-find .count { color: var(--fg-faint); font-size: 12px; min-width: 50px; text-align: right; padding-right: 4px; white-space: nowrap; }
.cw-find button, .cw-nav-btn { border: 1px solid var(--border-strong); background: #fff; height: 30px; width: 28px; cursor: pointer; color: var(--fg); display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 0; }
.cw-find button { border: 0; border-left: 1px solid var(--border); height: 28px; width: 26px; }
.cw-find button svg, .cw-nav-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cw-find button:disabled, .cw-nav-btn:disabled { opacity: 0.35; cursor: default; }
.cw-find:focus-within { border-color: var(--action-generate); }
.cw-date, .cw-jump { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cw-date input, .cw-nav-pos input { font: inherit; font-size: 13px; height: 30px; border: 1px solid var(--border-strong); border-radius: 0; padding: 0 6px; color: var(--fg); background: #fff; }
.cw-nav-pos input { width: 48px; text-align: center; }
.cw-nav-pos input:focus, .cw-date input:focus { outline: 0; border-color: var(--action-generate); }
.cw-pages { display: inline-flex; align-items: center; }
.cw-pages .cw-nav-pos { margin-right: 8px; }
.cw-pages .cw-nav-btn + .cw-nav-btn { margin-left: -1px; }  /* the pair shares a border, as Find's */
.cw-nav-pos { display: inline-flex; align-items: center; gap: 5px; color: var(--fg); white-space: nowrap; font-variant-numeric: tabular-nums; width: 132px; }
.cw-nav-pos.named .cw-pos-word, .cw-nav-pos.named .cw-pos-of { display: none; }
.cw-nav-pos.named input { width: 100%; }
.cw-nav-pos input { -moz-appearance: textfield; }
.cw-nav-pos input::-webkit-outer-spin-button, .cw-nav-pos input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cw-link { font: inherit; font-size: 13px; color: var(--fg-muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cw-link:hover { color: var(--fg); }
.cw-body { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: var(--cw-doc) var(--cw-cfg); column-gap: var(--cw-mid); padding-bottom: 20px; }
/* the document: pages stacked down a scrolling column, the scrollbar replaced by a scrubber */
.doc-col { position: relative; min-height: 0; border: 1px solid var(--border-strong); background: #EDEBE4; }
.doc-scroll { position: absolute; inset: 0; right: var(--cw-sb); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 20px 0 20px; }
.doc-scroll::-webkit-scrollbar { display: none; }
.carousel-track { display: block; }
.preview-page { position: relative; display: block; width: 578px; height: 818px; margin: 0 auto 20px; background: #fff; border: 1px solid var(--border-strong); overflow: hidden; cursor: default; user-select: none; -webkit-user-select: none; }
.preview-page.active { outline: 0; }
.preview-page.stashed .page-render { visibility: hidden; }  /* a far page keeps its place, empty */
.file-bar, .carousel-nav, .carousel-dots, .carousel-container { display: none; }
/* the scrubber, as Compare's */
.cmp-scrub { position: absolute; top: 1px; bottom: 1px; right: 0; width: var(--cw-sb); z-index: 4; cursor: pointer; touch-action: none; }
.cmp-scrub[hidden] { display: none; }
.cmp-scrub::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--border); }
.cmp-scrub .thumb { position: absolute; left: 1px; right: 1px; min-height: 36px; background: var(--fg-faint); border-radius: 7px; cursor: grab; }
.cmp-scrub.dragging .thumb { background: var(--fg-muted); cursor: grabbing; }
.cmp-scrub .bubble { position: absolute; right: calc(var(--cw-sb) + 8px); transform: translateY(-50%); background: var(--fg); color: #fff; font-size: 14px; font-weight: 700; padding: 7px 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.25s; box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.cmp-scrub .bubble.show { opacity: 1; transition: opacity 0.08s; }
.cmp-scrub .tick { position: absolute; right: calc(var(--cw-sb) + 3px); transform: translateY(-50%); font-size: 10.5px; font-weight: 600; color: var(--fg-faint); pointer-events: none; background: rgba(237,235,228,0.9); padding: 0 3px; opacity: 0; transition: opacity 0.45s; }
.cmp-scrub.dragging .tick { opacity: 1; transition: opacity 0.12s; }
.cmp-scrub .tick::after { content: ''; position: absolute; right: -9px; top: 50%; width: 6px; height: 1px; background: var(--fg-faint); }
mark.cw-find-hit { background: #FFE58A; color: inherit; border-radius: 2px; padding: 0 1px; }
mark.cw-find-hit.cur { background: #FFB938; outline: 2px solid #E39A00; }
/* Scaled A4 page content inside carousel cards */
.page-render {
  width: 578px; height: 818px;
  transform-origin: top left;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg);
  overflow: hidden;
  position: absolute; top: 0; left: 0;
  display: flex; flex-direction: column;
}

/* Page header / footer — fixed height, always present */
.pr-header {
  flex-shrink: 0; height: 38px;
  margin: 0 36px; padding: 0 0 6px;
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 0.5px solid var(--border-strong);
  font-size: 11px; color: var(--fg-muted); letter-spacing: 0.01em;
}
.pr-header-left { font-weight: 600; }
.pr-header-right { font-weight: 600; }
.pr-header-center { font-weight: 600; margin: 0 auto; }

.pr-footer {
  flex-shrink: 0; height: 38px;
  margin: 0 36px; padding: 6px 0 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: flex-start;
  border-top: 0.5px solid var(--border-strong);
  font-size: 12px; color: var(--fg);
}
.pr-footer-left { text-align: left; }
.pr-footer-center { text-align: center; font-size: 13px; }
.pr-footer-right { text-align: right; }

/* Page body — fills remaining space, 10px safe zone from header/footer */
.pr-body {
  flex: 1; min-height: 0;
  padding: 10px 36px 16px;
  overflow: hidden;
}

/* Cover page — no header/footer, uses full page */
.pr-cover { display: flex; flex-direction: column; height: 100%; padding: 40px 36px; }
.pr-cover-heading { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3; text-align: left; max-width: 80%; white-space: pre-line; color: var(--fg); margin-bottom: 6px; }  /* left, two-thirds of the page (15 Oct 2026) */
.pr-cover-tagline { font-size: 11px; color: var(--fg-faint); margin-bottom: 12px; }
.pr-cover-exhibit { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; color: var(--fg); min-height: 1em; }
.pr-cover-case-prominent { font-size: 16px; font-weight: 600; color: var(--fg); text-align: center; min-height: 1em; margin-bottom: auto; }
.pr-cover-desc { font-size: 11px; color: var(--fg-muted); margin-top: -8px; margin-bottom: 20px; }
.pr-cover-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 12px; margin-bottom: 24px; }
.pr-cover-meta dt { color: var(--fg-faint); font-weight: 500; }
.pr-cover-meta dd { font-weight: 600; }
/* Participants block — sits outside the dl grid, uses wider margins than body text */
.pr-cover-participants-label { font-size: 10px; color: var(--fg-faint); font-weight: 500; margin-bottom: 3px; }
.pr-cover-participants {
  font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--fg);
  margin: 0 0 10px;
  word-break: break-word;
}
.pr-cover-participants-ref { font-style: italic; color: var(--fg-muted); }

/* Participant list pages (C2+) */
.pr-participants-page h2 { font-size: 16px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.3px; }
.pr-part-count { font-size: 9px; color: var(--fg-muted); margin: 0 0 10px; }
.pr-part-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.pr-part-table th { padding: 3px 6px; border: 0.5px solid var(--border); font-size: 8px; font-weight: 600; text-align: left; background: #F7F7F4; color: var(--fg-muted); }
.pr-part-table td { padding: 2px 6px; border: 0.5px solid var(--border); vertical-align: top; word-break: break-word; }
.pr-part-table td:first-child { width: 60%; }
.pr-part-table td:last-child { width: 40%; }
.pr-part-long { font-size: 7px; line-height: 1.3; }
.pr-part-auto { font-size: 7px; color: #8696A0; font-style: italic; margin-left: 3px; }

/* Integrity report page */
.pr-integrity h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.3px; }
.pr-integrity-section { margin-bottom: 12px; }
.pr-integrity-heading { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--fg-faint); margin-bottom: 4px; }
.pr-ir-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.pr-ir-table td { padding: 3px 6px; border: 0.5px solid var(--border); vertical-align: top; }
.pr-ir-table td:first-child { color: var(--fg-muted); font-weight: 500; white-space: nowrap; width: 40%; }
.pr-ir-table.pr-ir-table-col td:first-child { width: auto; white-space: normal; }
.pr-ir-table.pr-ir-table-col th { padding: 3px 6px; border: 0.5px solid var(--border); font-size: 8px; font-weight: 600; text-align: left; background: #F7F7F4; color: var(--fg-muted); }
.pr-ir-mono { font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: -0.2px; word-break: break-all; }
.pr-ir-ok { font-family: 'DM Mono', monospace; font-size: 8px; color: #1B6B4A; font-weight: 600; }
.pr-ir-rename-note { font-size: 8px; color: var(--fg-muted); margin: 0 0 4px; line-height: 1.3; }
.pr-ir-renames th { padding: 3px 6px; border: 0.5px solid var(--border); font-size: 8px; font-weight: 600; text-align: left; background: #F7F7F4; color: var(--fg-muted); }
.pr-ir-renames td { white-space: normal; word-break: break-word; }
.pr-ir-renames td:first-child { white-space: normal; width: 45%; }
.pr-ir-renames td:last-child { width: 45%; }
.pr-ir-arrow { width: 10%; text-align: center; color: var(--fg-faint); font-size: 11px; }
.pr-ir-rename-long { font-size: 7px; line-height: 1.3; }
.pr-ir-auto-tag { font-size: 7px; color: #8696A0; font-style: italic; margin-left: 4px; }
.pr-integrity-note { font-size: 9px; color: var(--border-strong); font-style: italic; margin-top: 10px; }

/* Message bubbles: moved to shared/bubbles.css (shared with the comparison page) */




/* Config sidebar */
.config-panel { width: 370px; min-width: 370px; align-self: stretch; border-left: 1px solid var(--border); background: var(--drop-bg); overflow: hidden; transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; }
.config-panel input, .config-panel textarea { user-select: text; -webkit-user-select: text; }
.config-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.config-panel.visible { transform: translateX(0); }
.cw-body .config-panel { width: auto; min-width: 0; min-height: 0; border: 1px solid var(--border-strong); border-radius: 0; background: #fff; transform: none; transition: none; display: flex; flex-direction: column; }
.cw-body .config-panel .config-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.cw-body .cta-button { border-radius: 0; }
.config-header { padding: 14px 24px 10px; border-bottom: 1px solid var(--border); }
.config-header h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 2px; }
.config-header p { font-size: 12px; color: var(--fg-faint); }
.config-section { border-bottom: 1px solid var(--border); }
.config-section-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; cursor: pointer; transition: background 0.15s, padding 0.25s ease; }
.compact-done .config-section.done .config-section-header { padding: 6px 24px; }
.config-section.active .config-section-header { padding: 12px 24px; }
.config-section-header:hover { background: var(--bg); }
.config-section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--fg-faint); margin: 0; }
.config-section.active .config-section-title { color: var(--fg); }
.config-section-summary { font-size: 13px; color: var(--accent); font-weight: 500; max-width: 180px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.config-section-step { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--fg-faint); flex-shrink: 0; margin-right: 10px; transition: all 0.2s; }
.config-section.active .config-section-step { border-color: var(--fg-muted); color: var(--fg); }  /* grey until done (15 Oct 2026) */
.config-section.done .config-section-step { border-color: var(--accent); background: var(--accent); color: white; }
.compact-done .config-section.done .config-section-step { width: 18px; height: 18px; font-size: 10px; }
.compact-done .config-section.done .config-section-title { font-size: 11px; }
.compact-done .config-section.done .config-section-summary { font-size: 12px; }
.config-section-header-left { display: flex; align-items: center; }
.config-section-body { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease; padding: 0 24px; }
.config-section.active .config-section-body { max-height: 1200px; padding: 0 24px 14px; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease; }
.config-section-next { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 18px; background: var(--accent); color: white; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s, opacity 0.15s; }
.config-section-next:hover { background: var(--accent-hover); }
.config-section-next.disabled { opacity: 0.35; cursor: default; }
.config-section-next svg { width: 14px; height: 14px; stroke: white; fill: none; stroke-width: 2; }
.config-section-continue-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.config-section-continue-row .config-section-next { margin-top: 0; }
.config-section-nudge { display: none; align-items: center; gap: 6px; }
.config-section-nudge.visible { display: inline-flex; }
.config-section-nudge-text { font-size: 14px; color: #c0392b; font-weight: 600; line-height: 1; }
.selection-nudge-outline { border-color: #c0392b !important; }
.config-field { margin-bottom: 14px; }
.config-field label { display: block; font-size: 13px; font-weight: 500; color: var(--fg); margin-bottom: 5px; }
.config-field input, .config-field select, .config-field textarea { width: 100%; resize: vertical; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--fg); background: var(--bg); transition: border-color 0.15s; outline: none; }
.config-field input:focus, .config-field select:focus, .config-field textarea:focus { border-color: var(--accent); }
.config-field input::placeholder { color: var(--fg-faint); }
.config-field-hint { font-size: 12px; color: var(--fg-muted); line-height: 1.45; margin: 6px 0 0; }
.printer-friendly-toggle { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--fg-muted); cursor: pointer; }
.printer-friendly-toggle input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.toggle-price { display: inline-block; padding: 1px 6px; border-radius: 4px; background: var(--accent-light); color: var(--accent); font-size: 12px; font-weight: 600; margin-left: 4px; }
.config-question { font-size: 14px; font-weight: 600; color: var(--fg); margin: 0 0 10px; }
.config-subsection-label { font-size: 11px; font-weight: 600; color: var(--fg-muted); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.date-range-desc { font-size: 13px; color: var(--fg-muted); margin: 0 0 12px; }
.date-range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.date-range-row .config-field { margin-bottom: 8px; }

/* Dual-handle range slider */
.date-range-slider { position: relative; height: 32px; margin: 4px 0 12px; }
.date-range-track { position: absolute; top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-50%); background: var(--border); border-radius: 2px; pointer-events: none; }
.date-range-track-fill { position: absolute; height: 100%; background: var(--accent); border-radius: 2px; transition: none; }
.date-range-thumb { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; padding: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.date-range-thumb::-webkit-slider-runnable-track { height: 0; background: transparent; }
.date-range-thumb::-moz-range-track { height: 0; background: transparent; border: none; }
.date-range-thumb::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer; pointer-events: auto;
  position: relative; top: -7px;
  transition: transform 0.12s, box-shadow 0.12s;
}
.date-range-thumb::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer; pointer-events: auto;
}
.date-range-thumb::-webkit-slider-thumb:hover { transform: scale(1.15); box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.date-range-thumb::-moz-range-thumb:hover { transform: scale(1.15); box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.date-range-thumb:focus { outline: none; }
.date-range-thumb:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 59,130,246), 0.3); }

.date-range-info { font-size: 12px; color: var(--fg-muted); margin-bottom: 10px; min-height: 18px; }
.date-range-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.date-range-reset { padding: 7px 16px; background: none; color: var(--fg-muted); border: 1px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.date-range-reset:hover { border-color: var(--border-strong); color: var(--fg); }
.case-details-inline { margin-top: 10px; }
.case-details-inline .config-field { margin-bottom: 10px; }
.case-details-inline .config-field input { padding: 7px 10px; font-size: 13px; }
.court-use-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.court-use-btn { padding: 14px 12px; border: 2px solid var(--border); border-radius: 10px; text-align: center; cursor: pointer; transition: all 0.15s; background: none; font-family: 'DM Sans', sans-serif; }
.court-use-btn:hover { border-color: var(--border-strong); }
.court-use-btn.selected { border-color: var(--accent); background: var(--accent-light); }
.court-use-btn .type-icon { font-size: 22px; margin-bottom: 6px; }
.court-use-btn .type-label { font-size: 13px; font-weight: 600; color: var(--fg); display: block; }
.template-fork { margin-top: 4px; }
.user-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.user-type-btn { aspect-ratio: 1 / 1.06; padding: 16px 12px; border: 2px solid var(--border); border-radius: 5px; text-align: center; cursor: pointer; transition: all 0.15s; background: none; font-family: 'DM Sans', sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 2px 3px 6px rgba(0,0,0,0.06); }
.user-type-btn:hover { border-color: var(--border-strong); }
.user-type-btn.selected { border-color: var(--accent); background: var(--accent-light); }
.user-type-btn .type-icon { font-size: 39px; margin-bottom: 10px; line-height: 1; }
.user-type-btn .type-icon .type-svg { width: 39px; height: 39px; stroke: var(--fg-muted); transition: stroke 0.15s; }
.user-type-btn:nth-child(1):hover .type-svg,
.user-type-btn:nth-child(1).selected .type-svg { stroke: #E5B800; }  /* Legal Use */
.user-type-btn:nth-child(2):hover .type-svg,
.user-type-btn:nth-child(2).selected .type-svg { stroke: #16A34A; }  /* Business */
.user-type-btn:nth-child(3):hover .type-svg,
.user-type-btn:nth-child(3).selected .type-svg { stroke: #6B7280; }  /* Blank */

/* Blank is the backstop: a full-width tile across the bottom of the grid. */
.user-type-btn.blank-tile { grid-column: 1 / -1; aspect-ratio: auto; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 18px; text-align: left; }
.user-type-btn.blank-tile .type-icon { margin-bottom: 0; }
.user-type-btn.blank-tile .type-label,
.user-type-btn.blank-tile .type-desc { max-width: none; text-align: left; margin-top: 0; }
.user-type-btn.blank-tile .blank-text { display: flex; flex-direction: column; gap: 2px; }
.user-type-btn .type-label { font-size: 13px; font-weight: 600; color: var(--fg); display: block; min-width: 0; max-width: 80px; }
.user-type-btn .type-desc { font-size: 12px; font-weight: 500; color: var(--accent); display: block; margin-top: 4px; }
/* Participant selector buttons */
.participant-options { display: flex; flex-direction: column; gap: 6px; }
.participant-options.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.participant-btn { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; transition: all 0.15s; background: none; font-family: 'DM Sans', sans-serif; text-align: left; width: 100%; }
.participant-btn:hover { border-color: var(--border-strong); }
.participant-btn.selected { border-color: var(--accent); background: var(--accent-light); }
.participant-btn .participant-name { font-size: 13px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.participant-btn .participant-indicator { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.participant-btn .participant-desc { font-size: 11px; color: var(--fg-faint); }

/* Inline rename on participant buttons */
.participant-rename { font-size: 12px; color: var(--accent); cursor: pointer; font-weight: 500; flex-shrink: 0; align-self: stretch; display: flex; align-items: center; padding: 0 18px; margin: -10px -14px -10px auto; }
.participant-rename:hover { text-decoration: underline; background: rgba(0,0,0,0.04); border-radius: 0 8px 8px 0; }
.participant-btn .rename-input { border: 1.5px solid var(--accent); border-radius: 6px; padding: 2px 6px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; max-width: 140px; outline: none; }

/* Large group: picker button and hint text */
.participant-hint { font-size: 12px; color: var(--fg-faint); margin: 0 0 8px; }
.participant-observer-hint { font-size: 11px; color: var(--fg-faint); margin: 6px 0 0; }
.participant-picker-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 16px; border: 2px dashed var(--border-strong); border-radius: 10px; background: none; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; color: var(--accent); transition: all 0.15s; }
.participant-picker-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.participant-picker-btn svg { stroke: var(--accent); flex-shrink: 0; }
.participant-selection-display { margin: 6px 0; }
.participant-selection-display:empty { display: none; }

/* Participant overlay (large groups) */
.participant-overlay { position: absolute; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; animation: overlayFadeIn 0.2s ease; }
.participant-overlay.closing { animation: overlayFadeOut 0.2s ease forwards; }
.participant-overlay-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.participant-overlay-popup { position: relative; z-index: 1; background: var(--drop-bg); border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); max-height: 85%; width: calc(100% - 48px); max-width: calc(var(--overlay-cols, 5) * 160px + 48px); display: flex; flex-direction: column; overflow: hidden; }
.participant-overlay-header { padding: 20px 24px 12px; border-bottom: 1px solid var(--border); }
.participant-overlay-header h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; margin: 0 0 12px; }
.participant-overlay-count { font-size: 13px; font-weight: 500; color: var(--fg-faint); margin-left: 8px; }
.participant-overlay-search-row { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 12px; transition: border-color 0.15s; }
.participant-overlay-search-row:focus-within { border-color: var(--accent); }
.participant-overlay-search-row svg { stroke: var(--fg-faint); flex-shrink: 0; }
.participant-overlay-search { border: none; outline: none; font-family: 'DM Sans', sans-serif; font-size: 14px; background: transparent; width: 100%; color: var(--fg); }
.participant-overlay-search::placeholder { color: var(--fg-faint); }
.participant-overlay-grid { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 24px 24px; display: grid; grid-template-columns: repeat(var(--overlay-cols, 5), 1fr); gap: 6px; align-content: start; }
.participant-overlay-grid .participant-btn { padding: 8px 10px; gap: 6px; min-width: 0; }
.participant-overlay-grid .participant-btn .participant-name { font-size: 11px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.participant-overlay-grid .participant-rename { padding: 0 10px; font-size: 11px; margin: -8px -10px -8px auto; }

@keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlayFadeOut { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 900px) { .participant-overlay-grid { grid-template-columns: repeat(min(var(--overlay-cols, 5), 4), 1fr); } .participant-overlay-popup { max-width: calc(min(var(--overlay-cols, 5), 4) * 160px + 48px); } }
@media (max-width: 600px) { .participant-overlay-grid { grid-template-columns: repeat(min(var(--overlay-cols, 5), 3), 1fr); } .participant-overlay-popup { max-width: calc(min(var(--overlay-cols, 5), 3) * 160px + 48px); } }
@media (max-width: 400px) { .participant-overlay-grid { grid-template-columns: repeat(min(var(--overlay-cols, 5), 2), 1fr); } .participant-overlay-popup { max-width: calc(min(var(--overlay-cols, 5), 2) * 160px + 48px); } }

.config-footer { padding: 20px 24px; flex-shrink: 0; border-top: 1px solid var(--border); background: var(--bg); }
.cta-button { width: 100%; padding: 14px; background: var(--action-generate); color: white; border: none; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s, opacity 0.2s; letter-spacing: -0.2px; }
.cta-button:hover:not(:disabled) { background: var(--action-generate-hover); }
.cta-button:disabled { opacity: 0.4; cursor: default; }
.cta-note { text-align: center; font-size: 12px; color: var(--fg-faint); margin-top: 10px; }
.cta-tier-nudge { display: block; text-align: center; font-size: 12px; color: var(--accent); text-decoration: none; margin-top: 8px; font-weight: 500; }
.cta-tier-nudge:hover { text-decoration: underline; }

.below-fold.hidden { display: none; }
.how-section { padding: 80px 40px; max-width: 900px; margin: 0 auto; width: 100%; border-top: 1px solid var(--border); }
.how-section h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.8px; text-align: center; margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; padding: 32px 24px; }
.step-number { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; color: var(--accent); background: var(--accent-light); width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }
.features-section { padding: 40px 40px 80px; max-width: 900px; margin: 0 auto; width: 100%; }
.features-section h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.8px; text-align: center; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card { background: var(--drop-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color 0.2s; }
.feature-card:hover { border-color: var(--border-strong); }
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.5; }
.feature-icon { font-size: 22px; margin-bottom: 12px; display: block; }
footer { border-top: 1px solid var(--border); padding: 24px 40px; text-align: center; font-size: 13px; color: var(--fg-faint); }

@media (max-width: 1100px) {
  .cw-frame { height: auto; }
  .cw-body { grid-template-columns: 1fr; row-gap: 16px; }
  .doc-col { height: 70vh; }
  .cw-body .config-panel { height: auto; }
}
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .hero { padding: 36px 20px 32px; }
  .hero h1 { font-size: 30px; }
  .dropzone { padding: 44px 24px; }
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .cw-find input { width: 110px; }
  .doc-scroll { padding: 12px 6px 12px 6px; }
  .preview-page { width: 100%; max-width: 578px; height: auto; aspect-ratio: 578 / 818; margin-bottom: 12px; }
}

/* The Index page at the end of the preview (as the PDF prints it, 14 Oct 2026) */
.pr-ix-band { background: #F7F7F7; border-bottom: 1px solid #CCCCCC; padding: 48px 24px 10px; margin: 0; }
.pr-ix-title { font-size: 14px; font-weight: 700; color: #000; }
.pr-ix-sub { font-size: 9px; color: #666; margin-top: 4px; }
.pr-ix-body { padding: 14px 24px 0; font-size: 10px; color: #000; }
.pr-ix-body h3 { font-size: 11px; font-weight: 700; margin: 14px 0 4px; padding-bottom: 3px; border-bottom: 1px solid #CCCCCC; }
.pr-ix-row { display: flex; gap: 8px; line-height: 13px; margin-bottom: 1px; }
.pr-ix-k { flex: 0 0 130px; font-weight: 700; }
.pr-ix-v { flex: 1; }
.pr-ix-note { font-size: 9px; color: #666; line-height: 12px; margin: 2px 0 6px; }
.pr-ix-text { line-height: 13px; margin: 2px 0; }
.pr-ix-table { width: 100%; border-collapse: collapse; font-size: 9.5px; }
.pr-ix-table th { text-align: left; font-size: 9px; font-weight: 700; padding: 2px 0; }
.pr-ix-table td { width: 50%; padding: 2px 4px 2px 0; border-bottom: 1px solid #E6E6E6; vertical-align: top; line-height: 12px; }
.pr-ix-muted { color: #666; }
.pr-ix-hash { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 8.5px; word-break: break-all; }
.pr-ix-qr-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; }
.pr-ix-qr { width: 78px; height: 78px; flex: none; }
.pr-mi-table { width: 100%; border-collapse: collapse; font-size: 7.5px; margin-top: 6px; }
.pr-mi-table th { text-align: left; font-size: 8px; font-weight: 700; background: #F0F0F0; border: 1px solid #C8C8C8; padding: 2px 3px; }
.pr-mi-table td { border: 1px solid #DCDCDC; padding: 1px 3px; height: 12px; line-height: 10px; white-space: nowrap; overflow: hidden; max-width: 160px; text-overflow: ellipsis; }
.pr-mi-table tbody tr:nth-child(even) td { background: #F9FAFB; }
