/* Subliminal Tracks affiliate area - shared kit (plain-PHP rebuild, Nov 2026).
   DESIGN TOKENS for every page (home layouts in kit/css/home-*.css should reuse these, not new colours):
     --plum #45205b (brand header)   --deep #2b0b3f (dark bands)   --night #14041f (top bar / footer)
     --purple #43124e  --purple-2 #5d1257 (gradients)   --rasp #870a42 (accent)   --rasp-hi #c2185b (CTA / hover)
     --ink #1f1328 (headings)  --text #3b3044 (body)  --muted #6c6176  --bg #f7f4f9  --card #fff  --line #e8e0ee
     --soft #f1eaf6 (tinted panels)  --gold #f3c969 (tiny highlights only)
     --serif "Fraunces" (headings)  --sans "Inter" (body)  --radius 18px  --shadow (card shadow)  --wide 1180px
   Type scale: body 18px desktop / 17px phone, line-height 1.65; nothing a visitor reads under 16px.
   Shared pieces B2 can use: .wrap .btn .btn-ghost .btn-lg .card .eyebrow .band-dark .prose .grid2 .grid3
   Header modes: $P['nav'] = 'full' (top bar with product picker) or 'min' (logo only). */
:root {
  --plum: #45205b; --deep: #2b0b3f; --night: #14041f; --purple: #43124e; --purple-2: #5d1257;
  --rasp: #870a42; --rasp-hi: #c2185b; --gold: #f3c969;
  --ink: #1f1328; --text: #3b3044; --muted: #6c6176; --bg: #f7f4f9; --card: #fff; --line: #e8e0ee; --soft: #f1eaf6;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 18px; --shadow: 0 1px 2px rgba(43, 11, 63, .05), 0 12px 32px rgba(43, 11, 63, .08);
  --wide: 1180px; --bar: 68px; --side: 280px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.65 var(--sans); overflow-x: hidden; overflow-x: clip; }
img, video { max-width: 100%; height: auto; }
a { color: var(--rasp); text-underline-offset: 3px; }
a:hover { color: var(--rasp-hi); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 21px; font-weight: 700; }
strong, b { color: var(--ink); font-weight: 700; }
.wrap { max-width: calc(var(--wide) + 48px); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; }
.eyebrow { margin: 0 0 12px; color: var(--rasp); font-size: 16px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--rasp-hi); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border: 0; border-radius: 999px;
  background: var(--rasp); color: #fff; font: 700 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(135, 10, 66, .25); transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--rasp-hi); color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 17px 32px; font-size: 18px; }
.btn-ghost { background: transparent; color: var(--plum); border: 1.5px solid #d9cce3; box-shadow: none; }
.btn-ghost:hover { background: var(--soft); color: var(--plum); border-color: var(--plum); }
.btn-mini { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--plum); font: 700 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.btn-mini:hover { border-color: var(--plum); background: var(--soft); color: var(--plum); }
.btn-mini.solid { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn-mini.solid:hover { background: var(--purple-2); }
.btn-mini.danger:hover { border-color: var(--rasp); color: var(--rasp); background: #fff; }
.btn-mini .ico { width: 17px; height: 17px; }
.btn-mini.done { border-color: #2f8a4c; color: #1e6b37; background: #eefaf2; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 60; background: var(--night); background: linear-gradient(90deg, #1b0629 0%, #2b0b3f 55%, #3a0d45 100%); box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 24px rgba(20,4,31,.25); }
.top-in { display: flex; align-items: center; gap: 18px; height: var(--bar); max-width: none; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { display: block; width: 168px; height: auto; }
.top-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.top-links > a { padding: 9px 14px; border-radius: 10px; color: #e9dcf2; font-size: 16px; font-weight: 600; text-decoration: none; }
.top-links > a:hover, .top-links > a[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
.picker { position: relative; }
.picker-btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.06);
  color: #fff; font: 600 16px/1.2 var(--sans); cursor: pointer; }
.picker-btn:hover { background: rgba(255,255,255,.12); }
.picker-btn .ico { width: 18px; height: 18px; }
.picker-btn .cur { color: #f6b8d3; }
.picker-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 320px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(20,4,31,.35); display: none; }
.picker.open .picker-pop { display: block; }
.picker-pop .ph { margin: 2px 8px 2px; color: var(--muted); font-size: 16px; font-weight: 800; letter-spacing: .12em; }
.picker-pop .pg { margin: 0 8px 8px; color: var(--plum); font-size: 16px; font-weight: 700; }
.picker-pop a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; }
.picker-pop a:hover, .picker-pop a[aria-current="page"] { background: var(--soft); color: var(--plum); }
.picker-pop a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rasp-hi); }
.top-min .top-in { justify-content: center; }

/* ---------- app shell for product pages ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--bar)); }
.side { position: sticky; top: var(--bar); align-self: start; height: calc(100vh - var(--bar)); overflow-y: auto; padding: 22px 16px 28px;
  background: #fff; border-right: 1px solid var(--line); }
.side-brand { display: block; padding: 22px 18px; margin-bottom: 18px; border-radius: 16px; text-align: center; text-decoration: none;
  background: radial-gradient(120% 140% at 0% 0%, #6a1a5e 0%, var(--deep) 55%, #160421 100%); box-shadow: 0 10px 26px rgba(43,11,63,.25); }
.side-brand img { display: block; max-width: 200px; max-height: 70px; width: auto; margin: 0 auto; }
.side-brand span { display: block; margin-top: 10px; color: #f4dceb; font-size: 16px; font-weight: 600; }
.side-tog { display: none; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: 16px; font-weight: 600; text-decoration: none; }
.side nav a .ico { color: #9a7fb0; }
.side nav a:hover { background: var(--soft); color: var(--plum); }
.side nav a[aria-current="page"] { background: linear-gradient(90deg, #f6e6ef, #f3ecf8); color: var(--rasp); }
.side nav a[aria-current="page"] .ico { color: var(--rasp); }
.side nav a[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--rasp); }
.side .grp { margin: 14px 12px 4px; color: var(--muted); font-size: 16px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.badge-new { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--rasp); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .04em; }
.side-help { margin-top: 22px; padding: 16px; border-radius: 14px; background: var(--soft); font-size: 16px; line-height: 1.5; }
.side-help b { display: block; color: var(--plum); }
.side-help a { word-break: break-all; }
.content { min-width: 0; padding: 0 0 72px; }
.content-in { max-width: 1040px; margin: 0 auto; padding: 0 40px; }

/* ---------- page head (resource pages) ---------- */
.phead { position: relative; padding: 40px 40px 34px; margin-bottom: 34px; color: #fff; overflow: hidden;
  background: var(--deep) url(../img/band-ripples-1568.webp) center / cover no-repeat; }
.phead::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,6,41,.92) 0%, rgba(43,11,63,.75) 60%, rgba(93,18,87,.55) 100%); }
.phead > * { position: relative; }
.phead-in { max-width: 1040px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; color: #e6cfe9; font-size: 16px; font-weight: 600; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.phead-t { display: flex; align-items: center; gap: 14px; color: #fff; font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.2; }
.phead-t .tile-ic { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- content blocks rendered from the old pages ---------- */
.prose { max-width: 75ch; }
.cbody > h1 { font-size: 38px; margin-top: .2em; }
.cbody > h2 { margin-top: 1.4em; }
.cbody > h3 { margin-top: 1.3em; color: var(--plum); }
.cbody > p, .cbody > ul, .cbody > ol { max-width: 75ch; }
.cbody ul, .cbody ol { padding-left: 1.3em; }
.cbody li { margin: .3em 0; }
.cbody > img { display: block; margin: 1em 0; border-radius: 12px; }
.card, .cbody section[data-kind="card"] { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; margin: 0 0 22px; }
.card > :last-child, .cbody section[data-kind] > :last-child { margin-bottom: 0; }
.cbody section[data-kind="card"] > h3:first-child { font-size: 21px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 0 0 26px; }
.grid > section, .grid > .card { margin: 0 !important; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

/* icon cards (rules) */
.cbody section[data-icon] { padding-left: 84px; }
.cbody section[data-icon] .tile-ic { position: absolute; left: 24px; top: 24px; }
.tile-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--plum); flex: none; }
.tile-ic .ico { width: 22px; height: 22px; }
.cbody section[data-icon="close"] .tile-ic { background: #fbe9f0; color: var(--rasp); }
.cbody section[data-icon="check"] .tile-ic, .cbody section[data-icon="thumbs-up"] .tile-ic { background: #e9f6ee; color: #1e6b37; }
#div_block-35-34 { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line); }

/* numbered steps */
.steps { counter-reset: none; display: grid; gap: 14px; margin: 0 0 26px; }
.cbody section[data-kind="step"] { position: relative; display: block; padding: 20px 24px 20px 82px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); margin: 0 0 14px; }
.steps > section[data-kind="step"] { margin: 0; }
.cbody section[data-kind="step"] > .num { position: absolute; left: 22px; top: 18px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-2), var(--deep)); color: #fff; font-weight: 800; font-size: 17px; }
.cbody section[data-kind="step"] > p { margin: 7px 0 0; }
.cbody section[data-kind="step"] > p ~ p { margin-top: .8em; }

/* the big generator steps */
.gen section[data-kind="step"] { padding: 28px 30px 30px 30px; margin: 0 0 22px; }
.gen section[data-kind="step"] > .num { position: static; margin: 0 14px 0 0; vertical-align: middle; }
.gen section[data-kind="step"] > h3 { display: inline; vertical-align: middle; font-size: 23px; }
.gen section[data-kind="step"] > h3::after { content: ""; display: block; height: 1px; margin: 20px 0 22px; background: var(--line); }
.field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; margin: 0 0 14px; }
.field p { margin: 0; font-size: 16px; }
.input, .cbody input[type="text"], .cbody select, .cbody textarea { width: 100%; padding: 14px 16px; border: 1.5px solid #ddd2e5; border-radius: 12px; background: #fcfbfd;
  color: var(--ink); font: 400 17px/1.4 var(--sans); }
.cbody input[type="text"]:focus, .cbody select:focus, .cbody textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 4px rgba(69,32,91,.12); background: #fff; }
.cbody input[aria-invalid="true"] { border-color: var(--rasp); box-shadow: 0 0 0 4px rgba(135,10,66,.1); }
.field-err { grid-column: 1 / -1; margin: -4px 0 0 !important; color: var(--rasp); font-size: 16px; font-weight: 600; }
.cbody textarea { min-height: 120px; font: 400 16px/1.5 var(--mono); resize: vertical; }
.help-link { font-size: 16px; font-weight: 600; }
.types { display: grid; gap: 14px; }
.opt { position: relative; display: grid !important; grid-template-columns: 220px minmax(0, 1fr); gap: 4px 24px; align-items: start; cursor: pointer; padding: 20px 22px 20px 58px !important; margin: 0 !important;
  border: 2px solid var(--line) !important; box-shadow: none !important; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #cdb6dc !important; }
.opt input { position: absolute; left: 22px; top: 24px; width: 20px; height: 20px; accent-color: var(--rasp); }
.opt > img { grid-column: 1; grid-row: 1 / span 3; border-radius: 10px; background: var(--soft); }
.opt > h3, .opt > p { grid-column: 2; }
.opt > h3 { margin: 0 0 .3em !important; font-size: 20px; }
.opt > p { font-size: 16px; margin: 0 0 .6em; }
.opt.on { border-color: var(--rasp) !important; background: #fff8fb !important; box-shadow: 0 10px 26px rgba(135,10,66,.1) !important; }
.result { display: flex; gap: 12px; align-items: stretch; margin: 10px 0 18px; }
.result input { font-family: var(--mono) !important; font-size: 16px !important; background: var(--soft) !important; }
.saved-ok { display: none; margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: #eefaf2; color: #1e6b37; font-weight: 600; }
.saved-ok.show { display: block; }

/* modal (What's a Clickbank ID?) */
dialog.modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 30px 32px; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(20,4,31,.4); color: var(--text); }
dialog.modal::backdrop { background: rgba(20,4,31,.6); backdrop-filter: blur(2px); }
dialog.modal h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; padding-right: 40px; }
.modal-x { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); color: var(--plum); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

/* saved hoplink bar */
.hopbar { margin: 0 0 30px; }
.hopbar section[data-kind="card"] { margin: 0 !important; padding: 18px 22px !important; }
.hopbar section[data-condition="no-saved-hoplink"] { display: flex; gap: 14px; align-items: center; background: linear-gradient(90deg, #fbf3f8, #f4eef9) !important; border-color: #ecd6e4 !important; box-shadow: none !important; }
.hopbar section[data-condition="no-saved-hoplink"] p { margin: 0; }
.hopbar section[data-condition="saved-hoplink"] { display: none; border-left: 5px solid #2f8a4c !important; }
.hopbar.has-link section[data-condition="no-saved-hoplink"] { display: none; }
.hopbar.has-link section[data-condition="saved-hoplink"] { display: block; }
.hopbar section[data-condition="saved-hoplink"] > p:first-child { margin-bottom: 10px; font-size: 16px; }
.hopbar input { margin-bottom: 12px; font-family: var(--mono) !important; font-size: 16px !important; }

/* email swipes */
.cbody section[data-kind="email"], .cbody section[data-kind="swipe"] { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 30px; overflow: hidden; }
.sw-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 26px; background: linear-gradient(90deg, #faf5fc, #fff); border-bottom: 1px solid var(--line); }
.sw-head h3 { margin: 0 !important; font-size: 20px; color: var(--plum); }
.sw-subj { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 26px; border-bottom: 1px dashed #e4d7ec; background: #fdfbfe; }
.sw-subj > :first-child { margin: 0 !important; font: 600 18px/1.45 var(--sans) !important; color: var(--ink); }
.sw-subj > :first-child * { font: inherit; }
.sw-body { padding: 22px 26px 6px; }
.sw-body p, .sw-body li { font-size: 17px; }
.sw-foot { display: flex; justify-content: flex-end; padding: 0 26px 22px; }
.hl { padding: 1px 6px; border-radius: 6px; background: #fff1c7; color: #6b4a00; font-family: var(--mono); font-size: max(16px, .9em); word-break: break-all; text-decoration: none; }

/* articles */
details.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 18px; }
details.article > summary { list-style: none; display: flex; gap: 14px; align-items: center; padding: 20px 26px; cursor: pointer; }
details.article > summary::-webkit-details-marker { display: none; }
details.article > summary h3 { margin: 0; flex: 1; font-size: 20px; color: var(--plum); }
details.article > summary .chev { transition: transform .2s; color: var(--plum); }
details.article[open] > summary .chev { transform: rotate(180deg); }
details.article[open] > summary { border-bottom: 1px solid var(--line); }
.art-body { padding: 24px 30px 8px; }
.art-body > :first-child { margin-top: 0; }
.art-body h2 { font-size: 28px; }
.art-tools { display: flex; justify-content: flex-end; padding: 0 30px 24px; }

/* banners, images, videos */
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin: 8px 0 30px; }
.cbody section[data-kind="banner"], .cbody section[data-kind="image"], .cbody section[data-kind="video"] { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0; overflow: hidden; margin: 0; }
.as-img { display: flex; align-items: center; justify-content: center; min-height: 240px; padding: 22px; background: repeating-conic-gradient(#f4eff7 0% 25%, #fbf9fc 0% 50%) 50% / 22px 22px; border-bottom: 1px solid var(--line); }
.as-img img { max-height: 280px; width: auto; border-radius: 6px; box-shadow: 0 6px 18px rgba(43,11,63,.15); }
.as-img video { width: 100%; max-height: 420px; border-radius: 10px; background: #000; }
.as-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; flex: 1; }
.as-body h3 { margin: 0; font-size: 19px; }
.as-body textarea { min-height: 96px; font-size: 16px; }
.as-body p { margin: 0; }
.size-lbl { display: block; margin: 0 0 -4px; color: var(--muted); font-size: 16px; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--plum); font-size: 16px; font-weight: 700; }

/* keyword / text boxes */
.kw-tools { display: flex; justify-content: flex-end; margin-top: 12px; }

/* manager (Andrew) card */
.mgr-letter { border-top: 5px solid var(--rasp) !important; }
.mgr { display: flex !important; gap: 20px; align-items: center; margin: 18px 0 0 !important; padding: 18px 20px !important; background: var(--soft) !important; border: 0 !important; box-shadow: none !important; }
.mgr img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(43,11,63,.18); }
.mgr p { margin: 0 !important; line-height: 1.5; }

/* product hub */
.hub-hero { position: relative; color: #fff; padding: 46px 40px 150px; overflow: hidden; background: #1b0629 url(../img/hero-waves-1360.webp) right center / cover no-repeat; }
.hub-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,4,31,.95) 0%, rgba(27,6,41,.82) 45%, rgba(43,11,63,.35) 100%); }
.hub-hero > * { position: relative; }
.hub-hero-in { max-width: 1040px; margin: 0 auto; }
.hub-hero h1 { color: #fff; font-size: 42px; max-width: 760px; }
.hub-hero p { max-width: 700px; color: #ecdcf2; font-size: 19px; }
.hub-hero p strong { color: #fff; }
.hub-prod { position: relative; z-index: 2; max-width: 1040px; margin: -112px auto 34px; padding: 0 40px; }
.hub-prod-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: center; padding: 30px 34px; background: #fff; border-radius: 24px; box-shadow: 0 30px 70px rgba(43,11,63,.18); border: 1px solid var(--line); }
.hub-prod-in > img { display: block; width: 100%; border-radius: 14px; background: radial-gradient(100% 100% at 50% 40%, #f6eef9, #fff); }
.hub-prod-in h2 { margin: 0 0 .15em; font-size: 34px; }
.hub-prod-in .by { margin: 0 0 .7em; color: var(--rasp); font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.hub-prod-in .tag { font-size: 19px; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.stat { padding: 14px 16px; border-radius: 14px; background: var(--soft); border: 1px solid #eadff1; }
.stat p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.45; }
.stat p strong { display: block; margin-top: 2px; color: var(--plum); font-size: 21px; line-height: 1.25; }
.stat.epc { background: linear-gradient(135deg, #5d1257, #2b0b3f); border-color: transparent; }
.stat.epc p, .stat.epc p strong { color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 10px 0 34px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: 0 1px 2px rgba(43,11,63,.04); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: #d9c5e6; box-shadow: var(--shadow); color: var(--plum); }
.tile .arr { margin-left: auto; color: #b9a3c9; }
.tile .badge-new { margin-left: 0; }
.sec-h { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 14px; }
.sec-h h2 { margin: 0; font-size: 28px; }

/* programs page */
.prog-hero { position: relative; color: #fff; padding: 64px 0 70px; overflow: hidden; background: #1b0629 url(../img/hero-waves-1360.webp) right center / cover no-repeat; }
.prog-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,4,31,.96) 0%, rgba(27,6,41,.85) 50%, rgba(43,11,63,.3) 100%); }
.prog-hero > * { position: relative; }
.prog-hero h1 { color: #fff; font-size: 46px; max-width: 820px; }
.prog-hero p { max-width: 720px; color: #ecdcf2; font-size: 20px; }
.prog-hero p strong { color: #fff; }
.prog-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 64px 0 30px; }
.prog-intro .by { color: var(--rasp); font-weight: 700; }
.prog-intro ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.prog-intro li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink); }
.prog-intro li .ico { color: var(--rasp); margin-top: 3px; }
.prog-pic { position: relative; }
.prog-pic img { display: block; width: 100%; border-radius: 24px; box-shadow: 0 30px 60px rgba(43,11,63,.22); }
.prog-pic::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%; z-index: -1; border-radius: 24px; background: linear-gradient(135deg, var(--rasp), var(--purple-2)); opacity: .18; }
.prog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 24px 0 80px; }
.pcard { display: flex !important; flex-direction: column; align-items: center; text-align: center; padding: 26px 24px 26px !important; margin: 0 !important; transition: transform .18s, box-shadow .18s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(43,11,63,.16) !important; }
.pcard img { width: 100%; max-width: 300px; aspect-ratio: 4 / 3; object-fit: contain; margin-bottom: 10px; }
.pcard h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 4px 0 6px; }
.pcard p { margin: 0 0 16px !important; }
.pcard p:first-of-type { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--soft); color: var(--plum); font-weight: 700; font-size: 16px; }
.pcard p:last-child { margin: auto 0 0 !important; width: 100%; }
.pcard .btn { width: 100%; }

/* bands */
.band-dark { background: linear-gradient(135deg, var(--deep), #1b0629); color: #ecdcf2; }
.band-dark h2, .band-dark h3 { color: #fff; }

/* ---------- footer ---------- */
.foot { position: relative; padding: 54px 0 40px; color: #cdb9d8; background: #14041f; text-align: center; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--rasp), var(--purple-2), var(--deep)); }
.foot img { display: block; width: 170px; margin: 0 auto 18px; }
.foot .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; list-style: none; margin: 0 0 14px; padding: 0; }
.foot .footer-links a { color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; }
.foot .footer-links a:hover { color: #f6b8d3; text-decoration: underline; }
.foot .copyright { font-size: 16px; }
.foot .copyright strong { color: #f6b8d3; }
.foot .disclaimer { max-width: 980px; margin: 26px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); text-align: left; }
.foot .disclaimer p { font-size: 16px; line-height: 1.6; color: #a993b6; }
.shell + .foot, .has-shell .foot { margin-top: 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 90; transform: translate(-50%, 40px); opacity: 0; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; transition: .25s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* 404 */
.nf { padding: 90px 0 110px; text-align: center; }
.nf h1 { font-size: 46px; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  :root { --side: 248px; }
  .content-in { padding: 0 28px; }
  .phead { padding: 34px 28px 30px; }
  .hub-hero { padding: 40px 28px 140px; }
  .hub-prod { padding: 0 28px; }
  .prog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: sticky; top: var(--bar); z-index: 40; height: auto; max-height: none; overflow: visible; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px rgba(43,11,63,.06); }
  .side-brand { display: none; }
  .side-tog { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--plum); font: 700 16px/1.2 var(--sans); cursor: pointer; }
  .side-tog .now { margin-left: auto; color: var(--rasp); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side nav, .side .side-help { display: none; }
  .side.open nav { display: flex; max-height: calc(100vh - var(--bar) - 80px); overflow-y: auto; padding: 10px 0 6px; }
  .side nav a[aria-current="page"]::before { left: -4px; }
  .hub-prod-in { grid-template-columns: 1fr; }
  .prog-intro { grid-template-columns: 1fr; }
  .opt { grid-template-columns: 160px minmax(0, 1fr); }
}
/* ---------- phone ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 19px; }
  .wrap { padding: 0 18px; }
  .top-in { gap: 10px; padding: 0 14px; }
  .logo img { width: 128px; }
  .top-links > a.hide-sm { display: none; }
  .picker-btn { padding: 8px 12px; }
  .picker-btn .cur, .picker-btn .lbl-lg { display: none; }
  .picker-pop { position: fixed; left: 12px; right: 12px; top: calc(var(--bar) + 6px); width: auto; }
  .content-in { padding: 0 18px; }
  .phead { padding: 26px 18px 24px; margin-bottom: 24px; }
  .phead-t { font-size: 26px; }
  .cbody > h1 { font-size: 30px; }
  .hub-hero { padding: 30px 18px 120px; }
  .hub-hero h1 { font-size: 30px; }
  .hub-hero p { font-size: 17px; }
  .hub-prod { padding: 0 14px; margin-top: -96px; }
  .hub-prod-in { padding: 20px; gap: 18px; border-radius: 20px; }
  .hub-prod-in h2 { font-size: 27px; }
  .card, .cbody section[data-kind="card"] { padding: 20px 18px; }
  .cbody section[data-icon] { padding-left: 18px; padding-top: 78px; }
  .cbody section[data-icon] .tile-ic { left: 18px; top: 20px; }
  .grid, .grid2, .grid3 { grid-template-columns: 1fr; }
  .cbody section[data-kind="step"] { padding: 18px 18px 18px 70px; }
  .cbody section[data-kind="step"] > .num { left: 16px; }
  .gen section[data-kind="step"] { padding: 20px 18px 22px; }
  .gen section[data-kind="step"] > h3 { font-size: 20px; }
  .field { grid-template-columns: 1fr; gap: 6px; }
  .opt { grid-template-columns: 1fr; padding: 18px 16px 18px 50px !important; }
  .opt input { left: 16px; top: 22px; }
  .opt > img { grid-row: auto; grid-column: 1; max-width: 240px; }
  .opt > h3, .opt > p { grid-column: 1; }
  .result { flex-direction: column; }
  .sw-head, .sw-subj, .sw-body, .sw-foot { padding-left: 18px; padding-right: 18px; }
  .sw-subj { flex-direction: column; align-items: flex-start; }
  .art-body { padding: 20px 18px 6px; }
  .art-tools { padding: 0 18px 20px; }
  details.article > summary { padding: 18px; }
  .assets { grid-template-columns: 1fr; }
  .prog-hero { padding: 44px 0 50px; }
  .prog-hero h1 { font-size: 32px; }
  .prog-hero p { font-size: 17px; }
  .prog-intro { padding-top: 40px; gap: 30px; }
  .prog-grid { grid-template-columns: 1fr; }
  .mgr { flex-direction: column; align-items: flex-start; }
  .foot .disclaimer { padding-left: 4px; padding-right: 4px; }
}

/* stat tiles are cards in the content: keep them as small tiles */
.cbody section[data-kind="card"].stat { padding: 14px 16px; margin: 0; box-shadow: none; background: var(--soft); border: 1px solid #eadff1; border-radius: 14px; }
.cbody section[data-kind="card"].stat.epc { background: linear-gradient(135deg, #5d1257, #2b0b3f); border-color: transparent; }
.stat > *:last-child { margin-bottom: 0; }
/* staff/reviewer notes inside swipe cards */
.sw-body p.note, .cbody p.note { padding: 10px 14px; border-left: 3px solid var(--rasp); background: #fdf6fb; border-radius: 8px; font-size: 16px; color: var(--muted); }
.crumbs .ico { width: 16px; height: 16px; opacity: .8; }
.side-tog .ico { width: 20px; height: 20px; }

/* ---------- polish pass (design review, Nov 2026) ---------- */
/* sidebar: compact enough that every section fits in one screen, stays in view (sticky), and the
   left column stays white all the way down instead of leaving an empty grey strip */
.shell { background: linear-gradient(90deg, #fff 0, #fff calc(var(--side) - 1px), var(--line) calc(var(--side) - 1px), var(--line) var(--side), transparent var(--side)); }
.side { padding: 16px 14px 20px; border-right: 0; background: transparent; }
.side-brand { padding: 14px 14px; margin-bottom: 12px; }
.side-brand img { max-height: 52px; }
.side nav a { padding: 7px 12px; line-height: 1.3; }
.side nav a .ico { width: 18px; height: 18px; }
.side .grp { margin: 10px 12px 2px; }
.side nav a[aria-current="page"]::before { left: -14px; }

/* resource tiles: wider tiles, label on its own line under the icon, New as a corner ribbon */
.tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile { position: relative; overflow: hidden; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 44px 18px 18px; min-height: 124px; line-height: 1.3; }
.tile .tile-l { display: block; }
.tile .arr { position: absolute; right: 14px; bottom: 18px; margin: 0; }
.tile .badge-new { position: absolute; top: 12px; right: -30px; width: 110px; margin: 0; padding: 3px 0; border-radius: 0; text-align: center; transform: rotate(35deg); font-size: 16px; letter-spacing: .06em; box-shadow: 0 2px 6px rgba(135,10,66,.3); }
@media (min-width: 1180px) {
  .tiles { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tile { grid-column: span var(--sp, 3); }
}

/* hub sales text: reading cards with a comfortable measure and a lead paragraph */
.hub-story { margin: 34px 0 26px; padding: 34px 40px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hub-story > * { max-width: 68ch; }
.hub-story > p { margin-bottom: 1.15em; line-height: 1.75; }
.hub-story > h2 { margin: 0 0 .7em; font-size: 30px; }
.hub-story > p.lead { font-family: var(--serif); font-size: 23px; line-height: 1.5; color: var(--ink); padding-left: 18px; border-left: 4px solid var(--rasp); }
.hub-story > :last-child { margin-bottom: 0; }
.hub-story + .mgr-letter { margin-top: 26px; }

/* price chips: never break "$9.95 | $69.95" inside a chip; chips flow instead */
.stats { display: flex; flex-wrap: wrap; }
.stats > .stat, .stats > section { flex: 1 1 auto; }
.stat p strong { white-space: nowrap; }
.mgr img { background: #fff; }

@media (max-width: 900px) {
  .shell { background: none; }
  .side { background: #fff; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { min-height: 112px; padding: 14px 34px 14px 14px; font-size: 16px; }
  .tile { padding-right: 14px; }
  .tile .arr { display: none; }
  .tile:last-child:nth-child(odd) { grid-column: span 2; }
  .hub-story { padding: 24px 20px 20px; margin: 26px 0 20px; }
  .hub-story > p.lead { font-size: 20px; padding-left: 14px; }
  .hub-story > h2 { font-size: 25px; }
}

/* readable sizes (review 2026-11-11): the menu button text inherits the body size */
.side-tog { font-size: 17px; font-family: inherit; }
.tile .badge-new { width: 124px; right: -34px; }
