/* DigiTransact AI Education Centre: premium homepage layer.
   Loads after style.css. Scoped to body.pm so inner pages are untouched.
   Sections: tokens, base, header, hero, stats, ways, discovery, paths,
   prompts, categories, tools, closing CTA, footer, a11y/pwa widgets. */

/* ---------- 1. Tokens ---------- */
body.pm {
  --ink: var(--color-primary);
  --ink-2: var(--color-primary);
  --ink-3: var(--color-primary);
  --line-dark: rgba(59,130,246,0.14);
  --ivory: var(--color-primary);
  --paper: var(--color-primary);
  --line-light: var(--color-primary);
  --text-dark: var(--color-primary);
  --muted-dark: var(--color-muted);
  --text-light: var(--color-primary);
  --muted-light: var(--color-primary);
  --gold: var(--color-primary);
  --gold-2: var(--color-primary);
  --gold-ink: var(--color-primary);
  --blue: var(--color-primary);
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1180px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
body.pm {
  margin: 0;
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.pm .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
body.pm h1, body.pm h2, body.pm h3 { font-family: var(--font-body); font-weight: 500; letter-spacing: -.015em; line-height: 1.08; margin: 0; text-wrap: balance; }
:where(body.pm) a { color: inherit; }
body.pm a:hover { text-decoration: none; }
body.pm::before { display: none; }
body.pm main > section { margin: 0; }
body.pm .pm-search select, body.pm .pm-filter select, body.pm .pm-filter input { color-scheme: light; }
body.pm select option { background-color: var(--color-text); color: var(--text-dark); }
body.pm .hv-cta { text-transform: none; letter-spacing: 0; margin-left: 0; }
body.pm :focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.pm-section { padding: 112px 0; }
.pm-light { background: var(--ivory); color: var(--text-dark); }
.pm-light .pm-lede, .pm-light .pm-muted { color: var(--muted-dark); }
.pm-dark { background: var(--ink); }
.pm-dark-2 { background: var(--ink-2); }

.pm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 16px;
}
.pm-eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.pm-light .pm-eyebrow { color: var(--primary-ink); }

.pm-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.pm-head h2 { font-size: 56px; }
.pm-lede { color: var(--muted-light); font-size: 16px; margin: 0; max-width: 52ch; }

/* Buttons */
.pm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  white-space: nowrap; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.pm-btn:hover { transform: translateY(-1px); }
.pm-btn-gold { background: linear-gradient(180deg, var(--primary-2), var(--primary)); color: var(--color-text); box-shadow: 0 10px 30px -12px rgba(0,0,0,0.24); }
.pm-btn-gold:hover { box-shadow: 0 14px 34px -12px rgba(0,0,0,0.24); }
.pm-btn-line { border-color: rgba(59,130,246,0.28); color: var(--text-light); background: transparent; }
.pm-btn-line:hover { border-color: rgba(59,130,246,0.6); background: rgba(20,28,43,0.04); }
.pm-light .pm-btn-line { border-color: var(--color-primary); color: var(--text-dark); }
.pm-light .pm-btn-line:hover { border-color: var(--text-dark); background: rgba(59,130,246,0.04); }
.pm-link { font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 8px; }
.pm-link:hover { color: var(--primary); }
.pm-light .pm-link:hover { color: var(--primary-ink); }

/* ---------- 3. Header ---------- */
body.pm .hv-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(59,130,246,0.78);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
body.pm .hv-header.is-scrolled { border-bottom-color: var(--line-dark); background: rgba(59,130,246,0.92); }
body.pm .hv-header-in { display: flex; align-items: center; gap: 32px; min-height: 74px; }
body.pm .hv-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text-light); flex-shrink: 0; }
body.pm .hv-logo { width: 34px; height: 34px; }
body.pm .hv-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
body.pm .hv-brand-text strong { font: 800 16px/1.1 var(--sans); letter-spacing: -.01em; }
body.pm .hv-brand-text small { font: 600 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--primary); }
body.pm .hv-divider { display: none; }
body.pm .hv-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
body.pm .hv-nav > a, body.pm .hv-nav summary {
  font: 600 14px/1 var(--sans); text-transform: none; letter-spacing: 0;
  color: var(--muted-light); text-decoration: none; padding: 8px 16px; border-radius: 8px;
  background: none; border: 0; box-shadow: none; cursor: pointer; list-style: none;
}
body.pm .hv-nav summary::-webkit-details-marker { display: none; }
body.pm .hv-nav > a:hover, body.pm .hv-nav summary:hover, body.pm .hv-nav > a.active { color: var(--text-light); }
body.pm .hv-nav > a.active::after { display: none; }
body.pm .hv-dd { position: relative; }
body.pm .hv-dd-panel {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 270px;
  background: var(--color-primary); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.24); display: grid;
}
body.pm .hv-dd-panel a { padding: 8px 16px; border-radius: 8px; font-size: 14px; color: var(--text-light); text-decoration: none; }
body.pm .hv-dd-panel a:hover { background: rgba(11,18,32,0.06); }
body.pm .hv-cta { min-height: 42px; padding: 0 16px; font-size: 14px; }

/* ---------- 4. Hero ---------- */
.pm-hero { position: relative; overflow: hidden; padding: 96px 0 88px; isolation: isolate; }
.pm-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  background: radial-gradient(closest-side, rgba(59,130,246,0.32), rgba(59,130,246,0.0)); z-index: -1;
}
.pm-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, text 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, text 20%, transparent 75%);
}
.pm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; }
.pm-hero h1 { font-size: 64px; font-weight: 500; letter-spacing: -.025em; }
.pm-hero h1 em { font-style: italic; color: var(--primary); font-weight: 400; }
.pm-hero-sub { font-size: 20px; color: var(--muted-light); max-width: 34em; margin: 24px 0 32px; }
.pm-hero-sub strong { color: var(--text-light); font-weight: 700; }

.pm-search {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 24px;
  background: var(--paper); border-radius: 999px; max-width: 600px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.24), 0 0 0 1px rgba(0,0,0,0.24);
}
.pm-search-ico { width: 20px; height: 20px; color: var(--color-muted); flex-shrink: 0; }
.pm-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 500 16px var(--sans); color: var(--text-dark); padding: 16px 8px;
}
.pm-search input::placeholder { color: var(--color-muted); }
.pm-search select {
  border: 0; border-left: 1px solid var(--color-primary); background: transparent; color: var(--text-dark);
  font: 600 14px var(--sans); padding: 8px 8px 8px 16px; max-width: 170px; cursor: pointer;
}
.pm-search .pm-btn { min-height: 46px; padding: 0 24px; }
.pm-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.pm-hero-note { margin-top: 32px; font-size: 14px; color: var(--muted-light); display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; list-style: none; }
.pm-hero-note li { display: inline-flex; align-items: center; gap: 8px; }
.pm-hero-note li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* Hero product preview */
.pm-preview { position: relative; }
.pm-card-demo {
  position: relative; background: linear-gradient(180deg, var(--color-primary), var(--color-primary));
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,0.24), inset 0 1px 0 rgba(0,0,0,0.24);
  transform: rotate(-1.2deg);
}
.pm-demo-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pm-chip { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--sans); padding: 8px 8px; border-radius: 999px; background: rgba(59,130,246,0.16); color: var(--color-primary); }
.pm-chip-gold { background: rgba(59,130,246,0.14); color: var(--primary-2); }
.pm-demo-title { font: 500 24px/1.25 var(--serif); margin: 0 0 16px; color: var(--text-light); }
.pm-demo-prompt {
  font: 500 14px/1.7 ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--color-primary);
  background: rgba(20,28,43,0.55); border: 1px solid var(--line-dark); border-radius: 12px; padding: 16px 16px; margin: 0;
  white-space: pre-wrap;
}
.pm-var { color: var(--primary-2); background: rgba(59,130,246,0.12); border-radius: 4px; padding: 0 8px; }
.pm-demo-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 16px; }
.pm-demo-meta { font-size: 12px; color: var(--muted-light); }
.pm-demo-copy { min-height: 40px; padding: 0 16px; font-size: 14px; }
.pm-float {
  position: absolute; background: var(--paper); color: var(--text-dark); border-radius: 14px;
  padding: 16px 16px; box-shadow: 0 30px 60px -24px rgba(0,0,0,0.24); font-size: 14px; line-height: 1.35;
}
.pm-float b { display: block; font: 600 20px/1.1 var(--serif); }
.pm-float-a { left: -40px; bottom: -58px; }
.pm-float-b { right: -22px; top: -52px; background: var(--primary); color: var(--color-text); }

/* ---------- 5. Stats band ---------- */
.pm-stats { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: var(--ink-2); }
.pm-stats ul { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: 0; }
.pm-stats li { padding: 32px 24px; border-left: 1px solid var(--line-dark); }
.pm-stats li:first-child { border-left: 0; padding-left: 0; }
.pm-stats b { display: block; font: 500 48px/1 var(--serif); color: var(--text-light); letter-spacing: -.02em; }
.pm-stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted-light); }

/* ---------- 6. Ways in (bento) ---------- */
.pm-ways { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.pm-way {
  position: relative; display: flex; flex-direction: column; gap: 16px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  padding: 32px; min-height: 260px; color: var(--text-dark);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.pm-way:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.24); border-color: var(--color-primary); }
.pm-way-num { font: 500 14px/1 var(--serif); color: var(--primary-ink); }
.pm-way h3 { font-size: 32px; }
.pm-way p { margin: 0; color: var(--muted-dark); max-width: 42ch; }
.pm-way-go { margin-top: auto; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.pm-way-go::after { content: "→"; transition: transform .2s var(--ease); }
.pm-way:hover .pm-way-go::after { transform: translateX(4px); }
.pm-way-lg { grid-column: span 7; grid-row: span 2; background: var(--ink); color: var(--text-light); border-color: var(--ink); overflow: hidden; }
.pm-way-lg p { color: var(--muted-light); }
.pm-way-lg h3 { font-size: 48px; }
.pm-way-lg .pm-way-num { color: var(--primary); }
.pm-way-lg::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59,130,246,0.28), rgba(59,130,246,0.0));
}
.pm-way-md { grid-column: span 5; }
.pm-way-half { grid-column: span 6; }
.pm-levels { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; }
.pm-levels li { font-size: 12px; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(59,130,246,0.2); color: var(--text-light); }

/* ---------- 7. Discovery ---------- */
body.pm .discovery-panel {
  max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none;
  background: var(--ink-2); padding: 104px 0; color: var(--text-light);
}
.pm-discover { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.pm-discover h2 { font-size: 48px; }
.pm-discover > div > p { color: var(--muted-light); }
body.pm .discovery-panel form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--text-light); }
body.pm .discovery-row { display: flex; gap: 8px; padding: 8px; background: rgba(11,18,32,0.5); border: 1px solid var(--line-dark); border-radius: 18px; }
body.pm .discovery-row input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text-light);
  font: 500 16px var(--sans); padding: 16px 16px; outline: 0; box-shadow: none;
}
body.pm .discovery-row input::placeholder { color: var(--color-primary); }
body.pm .discovery-row .pt-btn {
  border-radius: 12px; border: 0; min-height: 50px; padding: 0 24px; font: 700 14px var(--sans);
  background: linear-gradient(180deg, var(--primary-2), var(--primary)); color: var(--color-text); cursor: pointer;
}
.pm-examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.pm-examples button {
  font: 600 14px var(--sans); color: var(--muted-light); background: transparent; cursor: pointer;
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 8px 16px;
}
.pm-examples button:hover { color: var(--text-light); border-color: rgba(59,130,246,0.4); }
body.pm .discovery-status { color: var(--muted-light); font-size: 14px; }
body.pm .discovery-link { margin-top: 24px; }
body.pm .discovery-link a { color: var(--primary); font-weight: 700; }

/* ---------- 8. Paths ---------- */
.pm-paths { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.pm-path {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--line-light); text-decoration: none; color: var(--text-dark);
}
.pm-path:nth-child(3n+2), .pm-path:nth-child(3n+3) { padding-left: 24px; border-left: 1px solid var(--line-light); }
.pm-path strong { font: 500 20px/1.25 var(--serif); }
.pm-path span { grid-column: 1; font-size: 14px; color: var(--muted-dark); }
.pm-path small { grid-column: 2; grid-row: 1 / span 2; font-size: 12px; font-weight: 700; color: var(--primary-ink); white-space: nowrap; }
.pm-path:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pm-row-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ---------- 9. Featured prompts ---------- */
.pm-prompts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pm-prompt {
  display: flex; flex-direction: column; gap: 16px; padding: 32px; text-decoration: none; min-height: 230px;
  background: linear-gradient(180deg, rgba(20,28,43,0.035), rgba(20,28,43,0.01));
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.pm-prompt:hover { border-color: rgba(59,130,246,0.55); transform: translateY(-3px); background: rgba(20,28,43,0.05); }
.pm-prompt-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-prompt h3 { font-size: 20px; line-height: 1.25; color: var(--text-light); }
.pm-prompt p { margin: 0; font-size: 14px; color: var(--muted-light); }
.pm-prompt .pm-way-go { color: var(--primary); }

/* ---------- 10. Categories + filter ---------- */
.pm-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius-lg); overflow: hidden; }
.pm-cat { display: flex; gap: 16px; align-items: flex-start; padding: 24px 24px; background: var(--paper); text-decoration: none; color: var(--text-dark); transition: background .2s; }
.pm-cat:hover { background: var(--color-primary); }
.pm-cat-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--primary); }
.pm-cat-ico svg { width: 21px; height: 21px; }
.pm-cat-txt b { display: block; font-size: 16px; line-height: 1.3; }
.pm-cat-txt > span { display: block; font-size: 12px; color: var(--muted-dark); margin-top: 8px; }
.pm-cat-txt > .pm-cat-count { color: var(--primary-ink); font-weight: 700; }
.pm-filter {
  display: grid; grid-template-columns: 1.1fr 1.6fr .9fr auto; gap: 16px; align-items: end; margin-top: 32px;
  padding: 24px; background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius-lg);
}
.pm-filter h3 { font-size: 20px; }
.pm-filter p { margin: 8px 0 0; font-size: 14px; color: var(--muted-dark); }
.pm-filter label { display: grid; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted-dark); }
.pm-filter input, .pm-filter select {
  min-height: 48px; border: 1px solid var(--color-primary); border-radius: 12px; padding: 0 16px; background: var(--color-surface);
  font: 500 14px var(--sans); color: var(--text-dark);
}

/* ---------- 11. AI tools tracker ---------- */
.pm-tools { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 1px solid var(--line-dark); }
.pm-tool { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; }
.pm-tool strong { font-weight: 700; color: var(--text-light); }
.pm-tool span { color: var(--muted-light); font-size: 14px; }
.pm-tool small { font-size: 12px; color: var(--color-primary); white-space: nowrap; }
.pm-tool:hover span { color: var(--text-light); }
.pm-tool-own strong::after { content: "Ours"; margin-left: 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text); background: var(--primary); border-radius: 999px; padding: 8px 8px; vertical-align: 2px; }

/* ---------- 12. Closing CTA ---------- */
.pm-close { padding: 0 0 112px; background: var(--ivory); }
.pm-close-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 72px 64px;
  background: var(--ink); color: var(--text-light);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.pm-close-card::before { content: ""; position: absolute; left: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(59,130,246,0.35), transparent); }
.pm-close-card h2 { position: relative; font-size: 56px; }
.pm-close-card h2 em { color: var(--primary); }
.pm-close-list { position: relative; display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.pm-close-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px;
  border: 1px solid var(--line-dark); border-radius: 14px; text-decoration: none; font-weight: 700;
  background: rgba(20,28,43,0.03); transition: border-color .2s, background .2s;
}
.pm-close-list a:hover { border-color: rgba(59,130,246,0.6); background: rgba(20,28,43,0.06); }
.pm-close-list a::after { content: "→"; color: var(--primary); }
.pm-close-list small { display: block; font-weight: 500; color: var(--muted-light); font-size: 14px; margin-top: 8px; }

/* ---------- 13. Footer ---------- */
.pm-footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 72px 0 32px; color: var(--muted-light); font-size: 14px; }
.pm-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
body.pm .pm-footer h3 { font: 800 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-light); margin-bottom: 16px; }
.pm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-footer a { text-decoration: none; }
.pm-footer a:hover { color: var(--text-light); }
.pm-footer-brand p { max-width: 34ch; margin: 16px 0 0; }
.pm-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 12px; }
.pm-footer-base a { color: var(--primary); }

/* ---------- 14. Injected a11y / PWA widgets ---------- */
body.pm .a11y-readbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px;
  width: calc(100% - 40px); max-width: var(--wrap); margin: 8px auto 16px; padding: 8px 16px;
  box-sizing: border-box; overflow: visible;
  background: rgba(11,18,32,0.035); border: 1px solid var(--line-dark); border-radius: 16px;
  font-size: 12px; color: var(--muted-light);
}
body.pm .a11y-readbar button, body.pm .a11y-readbar select {
  flex: 0 0 auto; min-height: 36px; padding: 0 16px; font: 600 12px var(--sans); border-radius: 999px;
  background: transparent; color: var(--muted-light); border: 1px solid var(--line-dark); cursor: pointer;
}
body.pm .a11y-readbar button:hover { color: var(--text-light); border-color: rgba(59,130,246,0.4); }
body.pm .a11y-readbar-label { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--primary); margin-right: 8px; flex-shrink: 0; }
body.pm .a11y-readbar .a11y-help, body.pm .a11y-readbar .a11y-speech-status { flex-shrink: 0; white-space: nowrap; }
body.pm .offline-badge {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; margin: 0;
  font: 700 12px/1 var(--sans); padding: 8px 16px; border-radius: 999px;
  background: rgba(59,130,246,0.92); color: var(--color-success); border: 1px solid rgba(59,130,246,0.3);
}
body.pm .pwa-toggle {
  font: 700 12px/1 var(--sans); padding: 8px 16px; border-radius: 999px;
  background: rgba(59,130,246,0.92); color: var(--muted-light); border: 1px solid var(--line-dark);
}

/* ---------- 15. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pm-js .pm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .pm-js .pm-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.pm *, body.pm *::before, body.pm *::after { transition: none !important; animation: none !important; }
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 1080px) {
  .pm-hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .pm-preview { max-width: 560px; }
  .pm-stats ul { grid-template-columns: repeat(3, 1fr); }
  .pm-stats li:nth-child(4) { border-left: 0; padding-left: 0; }
  .pm-stats li:nth-child(n+4) { border-top: 1px solid var(--line-dark); }
  .pm-way-lg, .pm-way-md, .pm-way-half { grid-column: span 12; grid-row: auto; }
  .pm-cats { grid-template-columns: repeat(3, 1fr); }
  .pm-filter { grid-template-columns: 1fr 1fr; }
  .pm-filter > div:first-child { grid-column: 1 / -1; }
  .pm-tools { grid-template-columns: 1fr; }
  .pm-close-card { grid-template-columns: 1fr; padding: 56px 40px; }
  .pm-footer-grid { grid-template-columns: 1fr 1fr; }
  body.pm .hv-cta { display: none; }
}
@media (max-width: 900px) {
  body.pm .hv-header-in { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 16px; }
  body.pm .hv-nav {
    order: 3; width: 100%; margin: 8px -32px 0; padding: 0 24px 8px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, text 85%, transparent); mask-image: linear-gradient(90deg, text 85%, transparent);
  }
  body.pm .hv-nav::-webkit-scrollbar { display: none; }
  body.pm .hv-nav > a, body.pm .hv-nav summary { white-space: nowrap; padding: 8px 8px; }
  body.pm .hv-dd { position: static; }
  body.pm .hv-dd-panel { position: fixed; left: 16px; right: 16px; top: 116px; min-width: 0; max-height: 70vh; overflow: auto; }
  .pm-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .pm-discover { grid-template-columns: 1fr; gap: 32px; }
  .pm-paths { grid-template-columns: 1fr 1fr; }
  .pm-path:nth-child(n) { padding-left: 0; border-left: 0; }
  .pm-path:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line-light); }
  .pm-prompts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body.pm { font-size: 16px; }
  body.pm .wrap { padding: 0 24px; }
  .pm-section { padding: 80px 0; }
  .pm-hero { padding: 48px 0 64px; }
  .pm-hero h1 { font-size: 40px; }
  .pm-hero-sub { font-size: 16px; margin: 24px 0 24px; }
  .pm-search { flex-wrap: wrap; border-radius: 20px; padding: 8px; }
  .pm-search-ico { margin-left: 8px; }
  .pm-search input { flex-basis: calc(100% - 40px); }
  .pm-search select { flex: 1; border-left: 0; border-top: 1px solid var(--color-primary); max-width: none; padding-left: 8px; }
  .pm-search .pm-btn { flex: 1; }
  .pm-hero-actions { gap: 16px; }
  .pm-hero-actions .pm-btn { width: 100%; }
  .pm-float { display: none; }
  .pm-card-demo { transform: none; padding: 24px; }
  .pm-stats ul { grid-template-columns: 1fr 1fr; }
  .pm-stats li, .pm-stats li:nth-child(n) { padding: 24px 0 24px 16px; border-left: 1px solid var(--line-dark); border-top: 1px solid var(--line-dark); }
  .pm-stats li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .pm-stats li:nth-child(-n+2) { border-top: 0; }
  .pm-stats li:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .pm-way { padding: 24px; min-height: 0; }
  .pm-way h3 { font-size: 24px; }
  body.pm .discovery-panel { padding: 72px 0; }
  body.pm .discovery-row { flex-direction: column; }
  .pm-paths { grid-template-columns: 1fr; }
  .pm-path:nth-child(n+7) { display: none; }
  .pm-path:nth-child(n) { padding-left: 0; border-left: 0; padding-right: 0; }
  .pm-prompts { grid-template-columns: 1fr; }
  .pm-prompt { min-height: 0; }
  .pm-cats { grid-template-columns: 1fr 1fr; }
  .pm-cat { flex-direction: column; padding: 24px 16px; }
  .pm-filter { grid-template-columns: 1fr; }
  .pm-tool { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .pm-tool span { grid-column: 1 / -1; grid-row: 2; }
  .pm-close { padding-bottom: 80px; }
  .pm-close-card { padding: 40px 24px; border-radius: 22px; }
  .pm-footer-grid { grid-template-columns: 1fr; }
}
