/* ==========================================================================
   PrinterSupport.io — Modern UI design system
   Plain CSS (no build step). Works alongside the existing Tailwind utilities.
   Author note: edit the tokens in :root to re-theme the whole site at once.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand-50:  #eef4ff;
  --brand-100: #dbe6ff;
  --brand-200: #bdd0ff;
  --brand-300: #90b0ff;
  --brand-400: #5d84fb;
  --brand-500: #375df2;
  --brand-600: #2442d8;
  --brand-700: #1f35ae;
  --brand-800: #1f3089;
  --brand-900: #1f2d6e;

  --accent-400: #22d3ee;
  --accent-500: #06b6d4;
  --accent-600: #0891b2;

  --ok-500:   #16a34a;
  --warn-500: #f59e0b;
  --err-500:  #ef4444;

  --ink-900: #0b1220;
  --ink-800: #131c2e;
  --ink-700: #283449;
  --ink-600: #455168;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;
  --white:   #ffffff;

  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --bg: #f4f6fb;
  --line: #e6eaf2;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .06);
  --shadow:    0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 20px 45px rgba(16, 24, 40, .12);
  --shadow-brand: 0 14px 30px rgba(36, 66, 216, .28);

  --container: 1200px;
  --container-narrow: 880px;

  --t-fast: 140ms cubic-bezier(.4, 0, .2, 1);
  --t: 240ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 420ms cubic-bezier(.16, 1, .3, 1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body.ps-body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-800);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.ps-body h1, .ps-body h2, .ps-body h3, .ps-body h4, .ps-body h5 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: 1.18;
  letter-spacing: -.018em;
  margin: 0 0 .5em;
  font-weight: 800;
}
.ps-body h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
.ps-body h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
.ps-body h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.ps-body p  { margin: 0 0 1rem; color: var(--ink-700); }
.ps-body a  { color: var(--brand-600); text-decoration: none; transition: color var(--t-fast); }
.ps-body a:hover { color: var(--brand-700); }
.ps-body img { max-width: 100%; display: block; }
.ps-body ul, .ps-body ol { color: var(--ink-700); }
.ps-body strong { color: var(--ink-900); }
.ps-body small { color: var(--ink-500); }
.ps-body code {
  font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  background: var(--ink-100); padding: .12em .42em; border-radius: 6px;
  font-size: .92em; color: var(--brand-700);
}
.ps-body :where(h2, h3)[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ---------- Layout helpers ---------- */
.ps-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.ps-narrow { max-width: var(--container-narrow); margin-inline: auto; }
.ps-section { padding-block: clamp(40px, 6vw, 84px); }
.ps-section--tight { padding-block: clamp(28px, 4vw, 52px); }
.ps-grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.ps-flex { display: flex; gap: 16px; }
.ps-between { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ps-center { text-align: center; }
.muted { color: var(--ink-500); }
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
@media (max-width: 980px){ .cols-4 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px){ .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-50);
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 16px;
  border: 1px solid var(--brand-100);
}
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand-600);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: .96rem;
  padding: 12px 22px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  text-decoration: none; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { color:#fff; transform: translateY(-2px); box-shadow: 0 18px 38px rgba(36,66,216,.36); }
.btn-ghost { background: var(--white); color: var(--ink-800); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { color: var(--brand-700); border-color: var(--brand-200); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-light { background: rgba(255,255,255,.14); color:#fff; border-color: rgba(255,255,255,.32); backdrop-filter: blur(6px); }
.btn-light:hover { color:#fff; background: rgba(255,255,255,.24); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(230,234,242,.9);
  transition: box-shadow var(--t), background var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.92); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; font-size: 1.16rem; color: var(--ink-900); letter-spacing: -.02em; }
.brand:hover { color: var(--ink-900); }
.brand .logo {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); box-shadow: var(--shadow-brand);
}
.brand .logo svg { width: 22px; height: 22px; }
.brand .dot { color: var(--brand-500); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .94rem; color: var(--ink-700);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-link:hover, .nav-link.active { color: var(--brand-700); background: var(--brand-50); }
.nav-link .chev { width: 15px; height: 15px; transition: transform var(--t); }
.has-mega:hover .nav-link .chev { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(720px, 88vw); background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity var(--t), transform var(--t); z-index: 1200;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega::before { content:""; position:absolute; top:-10px; left:0; right:0; height:14px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; }
.mega-col h6 { font-family: var(--font-head); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); margin: 4px 8px 8px; }
.mega-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink-700); font-weight: 600; font-size: .9rem; transition: background var(--t-fast), color var(--t-fast); }
.mega-item:hover { background: var(--brand-50); color: var(--brand-700); }
.mega-item .mi-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--ink-100); color: var(--brand-600); flex: none; font-weight: 800; font-size: .78rem; }
.mega-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-search { display: flex; align-items: center; gap: 8px; background: var(--ink-100); border: 1px solid transparent; border-radius: var(--radius-pill); padding: 8px 14px; color: var(--ink-500); transition: var(--t); cursor: text; }
.nav-search:focus-within { background: #fff; border-color: var(--brand-200); box-shadow: 0 0 0 4px var(--brand-50); }
.nav-search input { border: 0; background: transparent; outline: 0; font-size: .9rem; width: 150px; color: var(--ink-800); font-family: var(--font-sans); }
.nav-search svg { width: 17px; height: 17px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; color: var(--ink-800); }

/* Mobile drawer */
.mobile-nav { display: none; }
@media (max-width: 1024px) {
  .nav-links, .nav-search { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 auto; width: min(360px, 86vw);
    background: #fff; border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform var(--t-slow); z-index: 1500; overflow-y: auto; padding: 18px;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-backdrop { position: fixed; inset: 0; background: rgba(11,18,32,.42); opacity: 0; visibility: hidden; transition: opacity var(--t); z-index: 1400; }
  .mobile-backdrop.open { opacity: 1; visibility: visible; }
  .m-group { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .m-group > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 8px; font-family: var(--font-head); font-weight: 700; color: var(--ink-900); }
  .m-group > summary::-webkit-details-marker { display: none; }
  .m-group[open] > summary .chev { transform: rotate(180deg); }
  .m-group .chev { width: 18px; height: 18px; transition: transform var(--t); color: var(--ink-400); }
  .m-link { display: block; padding: 10px 14px; color: var(--ink-600); font-weight: 600; border-radius: 8px; }
  .m-link:hover { background: var(--brand-50); color: var(--brand-700); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink-900); color: #fff; isolation: isolate; }
.hero::before {
  content:""; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(40% 50% at 18% 20%, rgba(55,93,242,.55), transparent 60%),
    radial-gradient(38% 45% at 82% 12%, rgba(6,182,212,.42), transparent 60%),
    radial-gradient(50% 55% at 60% 85%, rgba(36,66,216,.45), transparent 62%);
  filter: blur(10px); z-index: -1; animation: floatmesh 16s ease-in-out infinite alternate;
}
.hero::after { content:""; position:absolute; inset:0; z-index:-1; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; }
@keyframes floatmesh { from { transform: translate3d(0,0,0) scale(1);} to { transform: translate3d(0,-3%,0) scale(1.06);} }
.hero .ps-container { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 600px; }
.hero .eyebrow { background: rgba(255,255,255,.1); color: #cfe0ff; border-color: rgba(255,255,255,.18); }

/* Hero search */
.hero-search { margin-top: 26px; max-width: 560px; }
.hero-search form { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; border: 0; outline: 0; padding: 10px 18px; font-size: 1rem; border-radius: var(--radius-pill); color: var(--ink-800); font-family: var(--font-sans); background: transparent; }
.hero-stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: #fff; }
.hero-stats .stat span { color: rgba(255,255,255,.7); font-size: .9rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-xs); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative; overflow: hidden; height: 100%;
}
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { font-size: .95rem; margin-bottom: 0; }
.card .card-ico {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); color: var(--brand-600);
}
.card .card-ico svg { width: 26px; height: 26px; }
.card-arrow { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-600); font-size: .9rem; }
.card-link:hover .card-arrow { gap: 10px; }

/* Brand tile */
.brand-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 16px; }
.brand-badge {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: #fff; letter-spacing: -.03em;
  box-shadow: var(--shadow-sm);
}
.brand-tile h3 { font-size: 1.04rem; margin: 0; }
.brand-tile small { font-size: .8rem; }

/* Pills / badges / chips */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 700; background: var(--ink-100); color: var(--ink-600); }
.pill-brand { background: var(--brand-50); color: var(--brand-700); }
.pill-ok { background: #e7f6ec; color: #14803c; }
.pill-warn { background: #fef3e2; color: #b4690e; }
.pill-err { background: #fdecec; color: #c0322b; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .85rem; color: var(--ink-700); transition: var(--t-fast); }
.chip:hover { border-color: var(--brand-200); color: var(--brand-700); background: var(--brand-50); transform: translateY(-1px); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-500); padding: 18px 0 4px; }
.crumbs a { color: var(--ink-500); font-weight: 600; }
.crumbs a:hover { color: var(--brand-600); }
.crumbs .sep { color: var(--ink-300); }
.crumbs .current { color: var(--ink-700); font-weight: 700; }

/* ---------- Page header band ---------- */
.page-band { background: linear-gradient(180deg, var(--surface-2), var(--bg)); border-bottom: 1px solid var(--line); padding-bottom: 30px; }
.page-band .lead { font-size: 1.08rem; max-width: 720px; }

/* ---------- Article / prose ---------- */
.prose { font-size: 1.03rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .5em; }
.prose ul li::marker { color: var(--brand-500); }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--brand-400); background: var(--brand-50); border-radius: 0 12px 12px 0; color: var(--ink-700); }
.prose blockquote p:last-child { margin-bottom: 0; }

/* Callouts */
.note { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); margin: 18px 0; border: 1px solid var(--line); background: var(--surface); }
.note .note-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.note p { margin: 0; font-size: .95rem; }
.note-info { background: var(--brand-50); border-color: var(--brand-100); }
.note-info .note-ico { background: var(--brand-100); color: var(--brand-700); }
.note-warn { background: #fff8ec; border-color: #fde9c8; }
.note-warn .note-ico { background: #fce3b6; color: #92580a; }
.note-tip { background: #ecfdf3; border-color: #c9f0d8; }
.note-tip .note-ico { background: #c2efd2; color: #14803c; }

/* ---------- Steps (setup) ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-xs); transition: box-shadow var(--t), transform var(--t);
}
.step:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.step .step-no {
  counter-increment: step; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); box-shadow: var(--shadow-brand);
}
.step .step-no::before { content: counter(step); }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { margin-bottom: 0; font-size: .96rem; }
.step .step-media { margin-top: 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-50); }
.step .step-media img { width: 100%; height: auto; }

/* ---------- Spec table ---------- */
.spec-table, .data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.spec-table th, .spec-table td, .data-table th, .data-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .94rem; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 38%; color: var(--ink-500); font-weight: 600; background: var(--surface-2); }
.spec-table td { color: var(--ink-900); font-weight: 600; }
.data-table thead th { background: var(--ink-900); color: #fff; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.data-table tbody tr:hover { background: var(--brand-50); }
.data-table td .pill { font-size: .72rem; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }

/* Comparison table */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--surface-2); font-family: var(--font-head); }
.compare-table thead th:first-child { background: transparent; }
.compare-table .row-label { color: var(--ink-500); font-weight: 600; font-size: .9rem; width: 26%; }
.compare-table td { font-weight: 600; color: var(--ink-900); }
.compare-table .winner { background: #f0fff6; }
.compare-col-head { display: flex; flex-direction: column; gap: 6px; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--t), border-color var(--t); }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--brand-200); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-head); font-weight: 700; color: var(--ink-900); font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-ico { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; transition: transform var(--t), background var(--t); }
.faq-item[open] summary .faq-ico { transform: rotate(45deg); background: var(--brand-600); color: #fff; }
.faq-body { padding: 0 22px 20px; }
.faq-body p { margin: 0; color: var(--ink-700); }

/* ---------- Stats band ---------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.statband .stat { text-align: center; padding: 20px; }
.statband .stat strong { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--brand-600); }
.statband .stat span { color: var(--ink-500); font-size: .9rem; font-weight: 600; }
@media (max-width: 680px){ .statband { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand-700), var(--ink-900)); color: #fff; border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(50% 80% at 85% 10%, rgba(6,182,212,.4), transparent 60%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); }

/* ---------- Ads ---------- */
.ad-slot { margin: 18px 0; }
.ad-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); font-weight: 700; margin-bottom: 8px; display: block; }
.ad-card { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: transform var(--t), box-shadow var(--t), border-color var(--t); align-items: center; }
.ad-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.ad-card img, .ad-thumb { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; flex: none; background: var(--ink-100); }
.ad-thumb { display: grid; place-items: center; color: var(--brand-500); }
.ad-card h4 { font-family: var(--font-head); font-size: 1.02rem; margin: 0 0 4px; color: var(--ink-900); }
.ad-card p { margin: 0; font-size: .86rem; color: var(--ink-500); }
.ad-card .ad-cta { margin-top: 8px; font-size: .8rem; font-weight: 700; color: var(--brand-600); display: inline-flex; gap: 5px; align-items: center; }
.ad-rail { display: grid; gap: 14px; }
.ad-banner { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.ad-banner img { width: 100%; }

/* ---------- Sidebar layout ---------- */
.with-rail { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.rail { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.rail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-xs); }
.rail-card h4 { font-size: 1rem; margin-bottom: 14px; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink-600); font-weight: 600; font-size: .9rem; border-left: 2px solid transparent; }
.toc a:hover, .toc a.active { background: var(--brand-50); color: var(--brand-700); border-left-color: var(--brand-500); }
.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rail-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-700); font-weight: 600; font-size: .9rem; transition: var(--t-fast); }
.rail-list a:hover { background: var(--brand-50); color: var(--brand-700); }
@media (max-width: 980px){ .with-rail { grid-template-columns: 1fr; } .rail { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding-top: 60px; margin-top: 40px; }
.site-footer h5 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; padding-bottom: 40px; }
.footer-grid a { color: var(--ink-400); font-size: .92rem; display: block; padding: 5px 0; transition: color var(--t-fast); }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: var(--ink-400); font-size: .92rem; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .82rem; color: var(--ink-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--ink-400); }
.footer-bottom a { color: var(--ink-300); }
@media (max-width: 880px){ .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Disclaimer banner ---------- */
.disclaimer-bar { background: var(--ink-800); color: var(--ink-300); font-size: .82rem; }
.disclaimer-bar .ps-container { padding-block: 10px; display: flex; gap: 12px; align-items: center; justify-content: center; text-align: center; }

/* ---------- Search results ---------- */
.search-result { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; transition: var(--t); }
.search-result:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.search-result .sr-type { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--brand-600); }
.search-result h3 { margin: 4px 0 4px; font-size: 1.1rem; }
.search-result p { margin: 0; font-size: .9rem; color: var(--ink-500); }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-600); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-brand); border: 0; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--t); z-index: 900; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: .08s; }
.reveal[data-delay="2"]{ transition-delay: .16s; }
.reveal[data-delay="3"]{ transition-delay: .24s; }
.reveal[data-delay="4"]{ transition-delay: .32s; }

/* ---------- Misc utilities ---------- */
.divider { height: 1px; background: var(--line); margin: 28px 0; border: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kbd { font-family: ui-monospace, monospace; background: #fff; border: 1px solid var(--ink-300); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; font-size: .82rem; color: var(--ink-700); }
.text-grad { background: linear-gradient(120deg, var(--brand-400), var(--accent-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--ink-600); }
.hide { display: none !important; }

/* ---------- "Was this helpful?" feedback ---------- */
.feedback { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 22px; margin-top: 30px; box-shadow: var(--shadow-xs); }
.feedback .fb-q { font-family: var(--font-head); font-weight: 700; color: var(--ink-900); }
.fb-actions { display: flex; gap: 10px; }
.fb-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink-700); cursor: pointer; transition: var(--t-fast); }
.fb-btn:hover { border-color: var(--brand-200); color: var(--brand-700); background: var(--brand-50); transform: translateY(-1px); }
.fb-btn svg { width: 16px; height: 16px; }
.fb-btn.sel { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.fb-thanks { color: var(--ok-500); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.fb-thanks svg { width: 18px; height: 18px; }
