/* Vibration Tracks affiliate area: shared kit (header, product shell, page types, footer).
   Brand: midnight navy + warm gold, slim gold equaliser bars (the logo's motif). Type: Sora (headings) + Inter (body).
   Reading text is never under 16px; body 18px desktop / 17px phone. */
:root {
  --night: #020c2b; --navy: #0a1430; --navy-2: #0b1a3d; --navy-3: #13244f;
  --gold: #e0a91f; --gold-2: #d4a017; --amber: #d78f16; --gold-ink: #8a5d00; --gold-soft: #fbf3e2; --gold-line: #efd9a4;
  --ink: #0b1a3d; --text: #2a3350; --muted: #4f5a74; --line: #e2e6ef; --paper: #f5f3ed; --white: #fff;
  --ok: #1f7a4d; --bad: #b4321f;
  --head: "Sora", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --bar: 68px; --side: 284px; --r: 16px;
  --shadow: 0 1px 2px rgba(11,26,61,.05), 0 8px 24px rgba(11,26,61,.06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
body { margin: 0; font: 400 18px/1.6 var(--sans); color: var(--text); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--gold-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, h5 { font-family: var(--head); color: var(--ink); line-height: 1.2; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- equaliser bars (decorative) ---------- */
.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
.bars i { display: block; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #f3c95c, var(--gold-2)); }
.bars i:nth-child(7n+1) { height: 38%; } .bars i:nth-child(7n+2) { height: 72%; } .bars i:nth-child(7n+3) { height: 52%; }
.bars i:nth-child(7n+4) { height: 100%; } .bars i:nth-child(7n+5) { height: 62%; } .bars i:nth-child(7n+6) { height: 86%; }
.bars i:nth-child(7n) { height: 44%; }
.bars-sm { height: 18px; gap: 2px; } .bars-sm i { width: 2.5px; }
.bars-xs { height: 14px; gap: 2px; } .bars-xs i { width: 2px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 50; height: var(--bar); background: var(--night); border-bottom: 1px solid rgba(224,169,31,.22); }
.top-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; }
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 30px; width: auto; }
.picker { position: relative; }
.picker-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px 8px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.05); color: #fff; font: 600 16px/1.2 var(--sans); cursor: pointer; }
.picker-btn:hover, .picker.open .picker-btn { border-color: var(--gold); background: rgba(224,169,31,.1); }
.picker-btn .cur { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.2); color: #f3c95c; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-btn .ico { width: 18px; height: 18px; transition: transform .2s; }
.picker.open .picker-btn .ico { transform: rotate(180deg); }
.picker-pop { display: none; position: absolute; right: 0; top: calc(100% + 10px); width: 340px; max-width: calc(100vw - 24px); padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(2,12,43,.35); }
.picker.open .picker-pop { display: block; }
.picker-pop .ph { margin: 2px 10px 0; color: var(--muted); font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.picker-pop .pg { margin: 0 10px 8px; color: var(--ink); font: 700 18px/1.4 var(--head); }
.picker-pop a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; }
.picker-pop a:hover { background: var(--gold-soft); }
.picker-pop a[aria-current="page"] { background: var(--navy-2); color: #fff; }

/* ---------- product shell: dark sidebar + content ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--bar)); background: var(--paper); }
/* the sidebar column stays dark from the top bar to the footer (Edsun 2026-11-12) */
.shell { background: linear-gradient(90deg, var(--night) var(--side), var(--paper) var(--side)); }
.side { position: sticky; top: var(--bar); align-self: start; height: calc(100vh - var(--bar)); overflow-y: auto; padding: 18px 16px 24px; border-right: 1px solid rgba(224,169,31,.18); background: linear-gradient(180deg, var(--navy-2), var(--navy) 60%, var(--night)); color: #c9d2e6; scrollbar-width: thin; scrollbar-color: #2b3c69 transparent; }
.side-brand { position: relative; display: flex; align-items: center; justify-content: center; min-height: 112px; padding: 20px 18px 30px; margin-bottom: 16px; border-radius: 16px; overflow: hidden; text-decoration: none; background: radial-gradient(120% 90% at 50% 110%, rgba(224,169,31,.28), transparent 60%), rgba(255,255,255,.04); border: 1px solid rgba(224,169,31,.25); }
.side-brand img { position: relative; display: block; max-width: 210px; max-height: 64px; width: auto; height: auto; }
.side-bars { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 26px; gap: 6px; opacity: .55; }
.side-bars i { width: 4px; }
.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: 9px 12px; border-radius: 10px; color: #d3dbec; font-size: 16.5px; font-weight: 500; line-height: 1.35; text-decoration: none; }
.side nav a .ico { width: 19px; height: 19px; color: #8d9ac0; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a:hover .ico { color: #f3c95c; }
.side nav a[aria-current="page"] { background: rgba(224,169,31,.14); color: #fff; font-weight: 600; }
.side nav a[aria-current="page"] .ico { color: var(--gold); }
.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(--gold); }
.side .grp { margin: 16px 12px 4px; color: #8391b5; font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.side nav .badge-new { margin-left: auto; }
.badge-new { display: inline-block; padding: 0 9px; border-radius: 999px; background: var(--gold); color: var(--navy-2); font: 700 16px/1.55 var(--sans); letter-spacing: .01em; white-space: nowrap; }
.content { background: var(--paper); min-width: 0; }

/* ---------- page head (section pages) ---------- */
.phead { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--night), var(--navy-2) 70%, var(--navy-3)); color: #fff; }
.phead-in { position: relative; max-width: 1100px; padding: 30px 44px 34px; }
.phead-bars { position: absolute; right: 44px; bottom: 0; height: 92px; gap: 9px; opacity: .5; }
.phead-bars i { width: 5px; border-radius: 4px 4px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; color: #b9c4dd; font-size: 16px; }
.crumbs a { color: #f3c95c; text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; color: #fff; }
.crumbs .ico { width: 16px; height: 16px; opacity: .7; }
.crumbs .badge-new { margin-left: 6px; }
.phead-t { display: flex; align-items: center; gap: 14px; margin: 0; font: 700 34px/1.15 var(--head); color: #fff; letter-spacing: -.015em; }
.phead-t .tile-ic { width: 48px; height: 48px; border-radius: 13px; background: rgba(224,169,31,.16); color: var(--gold); border: 1px solid rgba(224,169,31,.35); }
.phead-t .tile-ic .ico { width: 24px; height: 24px; }

/* ---------- content column ---------- */
.content-in { max-width: 1140px; padding: 34px 44px 70px; }
.cbody > *:first-child { margin-top: 0; }
.cbody h1 { font-size: 34px; margin: 6px 0 14px; }
.cbody h2 { font-size: 28px; margin: 38px 0 14px; }
.cbody h3 { font-size: 21px; margin: 26px 0 10px; }
.cbody h5 { margin: 22px 0 8px; font: 700 16px/1.4 var(--sans); color: var(--gold-ink); letter-spacing: .06em; text-transform: uppercase; }
.cbody p, .cbody li { max-width: 72ch; }
.cbody p { margin: 0 0 14px; }
.cbody ul, .cbody ol { padding-left: 1.3em; margin: 0 0 16px; }
.cbody li { margin: 4px 0; }
.cbody li::marker { color: var(--gold-2); font-weight: 700; }
.cbody p.intro { font-size: 19px; color: var(--muted); max-width: 70ch; }
.tile-ic { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); }
.tile-ic .ico { width: 21px; height: 21px; }

/* cards */
section.blk[data-kind="card"], section.blk[data-kind="swipe"], section.blk[data-kind="email"], section.em, section.blk[data-kind="stat"] {
  position: relative; margin: 0 0 20px; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
section.blk > h3:first-child, section.blk > .tile-ic + h3 { margin-top: 0; }
section.blk > *:last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 24px; }
.grid > section.blk { margin: 0; }
section.blk[data-icon] > .tile-ic { margin-bottom: 12px; }
section.blk[data-icon="close"] > .tile-ic { background: #fdeeea; color: var(--bad); }
section.blk[data-icon="check"] > .tile-ic, section.blk[data-icon="thumbs-up"] > .tile-ic { background: #e8f4ee; color: var(--ok); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #ebb52c, var(--gold-2)); color: var(--navy-2); font: 700 17px/1.2 var(--sans); text-decoration: none; cursor: pointer; box-shadow: 0 2px 0 rgba(138,93,0,.25), 0 8px 18px rgba(212,160,23,.25); transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { color: var(--navy-2); transform: translateY(-1px); box-shadow: 0 2px 0 rgba(138,93,0,.25), 0 12px 24px rgba(212,160,23,.32); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 18px; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--gold-2); color: var(--ink); box-shadow: none; }
.btn-mini { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-mini .ico { width: 17px; height: 17px; }
.btn-mini:hover { border-color: var(--gold-2); color: var(--ink); background: var(--gold-soft); }
.btn-mini.solid { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-mini.solid:hover { background: var(--navy-3); color: #fff; }
.btn-mini.danger { color: var(--bad); border-color: #f0cdc6; }
.btn-mini.danger:hover { background: #fdeeea; }
.btn.done, .btn-mini.done { background: var(--ok) !important; border-color: var(--ok) !important; color: #fff !important; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* inputs */
input[type="text"], input[type="email"], textarea, select { width: 100%; padding: 13px 16px; border: 1.5px solid #cfd6e4; border-radius: 12px; background: #fff; color: var(--ink); font: 400 17px/1.4 var(--sans); }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus { outline: 0; border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(224,169,31,.2); }
textarea { font: 400 16px/1.55 var(--mono); resize: vertical; background: #fbfaf7; color: #26304a; }
input[aria-invalid="true"] { border-color: var(--bad); }
.field-err { margin: 8px 0 0 !important; color: var(--bad); font-size: 16px; font-weight: 600; }

/* highlighted hoplink placeholders */
.hl { padding: 1px 6px; border-radius: 6px; background: #fff1c9; color: #6b4600; font: 600 16px/1.6 var(--mono); overflow-wrap: anywhere; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-set { background: #e3f3ea; color: #145a37; }

/* ---------- saved hoplink panel ---------- */
.hopbar { margin: 0 0 28px; }
.hopbar section[data-kind="card"] { margin: 0; padding: 16px 20px; box-shadow: none; }
.hopbar section[data-condition="no-saved-hoplink"] { display: flex; gap: 14px; align-items: center; background: var(--gold-soft); border-color: var(--gold-line); }
.hopbar section[data-condition="no-saved-hoplink"] p { margin: 0; }
.hopbar section[data-condition="no-saved-hoplink"] a { font-weight: 700; }
.hopbar section[data-condition="saved-hoplink"] { display: none; border-left: 5px solid var(--ok); }
.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; color: var(--muted); }
.hopbar input { margin-bottom: 12px; font: 600 16px/1.4 var(--mono); }

/* ---------- steps (generator, benefit lists, review criteria) ---------- */
.steps { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 26px; }
.steps > section.blk { position: relative; display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.steps > section.blk > p { margin: 0; }
.steps > section.blk:not(:has(.num))::before { content: ""; flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1a3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/16px no-repeat; }
.num { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-2); color: var(--gold); font: 700 17px/1 var(--head); }
/* generator: three big step cards */
.steps.gen { gap: 22px; }
.steps.gen > section.blk { display: block; padding: 26px 28px 28px 84px; border-radius: 18px; box-shadow: var(--shadow); }
.steps.gen > section.blk > .num { position: absolute; left: 26px; top: 24px; width: 40px; height: 40px; font-size: 19px; background: linear-gradient(180deg, #ebb52c, var(--gold-2)); color: var(--navy-2); }
.steps.gen > section.blk > h3 { margin: 6px 0 14px; font-size: 23px; }
.steps.gen > section.blk > p { margin: 0 0 12px; }
.field { margin: 0 0 14px; max-width: 560px; }
.field input { margin: 0; }
.field p { margin: 6px 0 0 !important; font-size: 16px; }
.help-link { font-weight: 600; cursor: pointer; }
.steps.gen h5 { margin-top: 4px; }
.old-note { position: relative; margin: 12px 0 18px; padding: 16px 20px 6px 54px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; background: var(--gold-soft); color: #4a5574; font-style: italic; }
.old-note::before { content: "\201C"; position: absolute; left: 16px; top: 6px; color: var(--gold); font: 700 46px/1 Georgia, serif; font-style: normal; }
.old-note h5 { margin: 0 0 6px !important; color: var(--ink) !important; font-style: normal; text-transform: none !important; letter-spacing: 0 !important; font-size: 17px !important; }
.old-note ol { margin: 0 0 8px; padding-left: 22px; }
.old-note p { margin: 0 0 10px; }
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
label.card.opt { position: relative; display: block; padding: 18px; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
label.card.opt:hover { border-color: var(--gold-line); }
label.card.opt.on { border-color: var(--gold-2); background: #fffaf0; box-shadow: 0 0 0 4px rgba(224,169,31,.16); }
label.card.opt input { position: absolute; top: 20px; right: 18px; width: 22px; height: 22px; accent-color: var(--gold-2); }
label.card.opt h3 { margin: 0 34px 12px 0; font-size: 19px; }
label.card.opt img { display: block; width: 100%; border-radius: 10px; margin: 0 0 12px; border: 1px solid var(--line); }
label.card.opt p { margin: 0 0 10px; font-size: 16.5px; }
label.card.opt p:last-child { margin: 0; color: var(--ok); }
.result { display: flex; gap: 10px; align-items: stretch; margin: 6px 0 14px; }
.result input { flex: 1; font: 600 16.5px/1.4 var(--mono); background: #fbfaf7; border-color: var(--gold-line); }
.result .btn { flex: none; min-width: 110px; }
.steps.gen > section.blk > p:last-child { margin: 8px 0 0; }

/* modal */
dialog.modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 30px 30px 26px; border: 0; border-radius: 20px; color: var(--text); box-shadow: 0 30px 80px rgba(2,12,43,.45); }
dialog.modal::backdrop { background: rgba(2,12,43,.62); }
dialog.modal h3 { margin: 0 40px 12px 0; font-size: 23px; }
dialog.modal p { font-size: 17px; }
.modal-x { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.modal-x:hover { background: var(--gold-soft); }
dialog.modal section.blk[data-kind="faq"] { margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
dialog.modal section.blk[data-kind="faq"]:last-child { border: 0; }
dialog.modal section.blk[data-kind="faq"] h3 { font-size: 19px; margin-bottom: 8px; }

/* ---------- email swipes ---------- */
.em-head, .sw-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 14px; }
.em-tw { min-width: 0; }
.em-head h5.em-label { margin: 0 0 2px; }
.em-head p.em-title { margin: 0; font: 700 22px/1.3 var(--head); color: var(--ink); }
.em-tog { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font: 400 28px/1 var(--sans); cursor: pointer; transition: transform .2s, background .2s; }
.em-tog[aria-expanded="true"] { transform: rotate(45deg); }
.em-tog:hover { background: var(--gold-soft); border-color: var(--gold-2); }
.em.closed .sw-subj, .em.closed .sw-body, .em.closed .sw-foot { display: none; }
.em.closed .em-head { margin: 0; }
.sw-head h3 { margin: 0; font-size: 21px; }
.sw-subj { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 12px 14px 12px 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.sw-subj > * { margin: 0 !important; }
.sw-subj h3, .sw-subj p { font: 600 18px/1.4 var(--sans); color: var(--ink); }
.sw-body { padding: 8px 2px 0; }
.sw-body p { margin: 0 0 12px; }
.sw-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
section.blk[data-kind="swipe"] p.note { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--gold-line); background: var(--paper); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 16.5px; }
.sec-emails .cbody > h3 { margin: 30px 0 14px; padding-left: 14px; border-left: 4px solid var(--gold); font-size: 20px; letter-spacing: .02em; }

/* ---------- banners / product images ---------- */
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; margin: 18px 0 26px; }
.assets > section.blk { display: flex; flex-direction: column; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.as-img { display: grid; place-items: center; min-height: 230px; padding: 20px; background: linear-gradient(135deg, #0b1a3d, #13244f); }
.as-img img { max-height: 260px; width: auto; border-radius: 6px; box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.as-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.as-body > * { margin: 0 !important; }
.as-body h3 { font-size: 20px; }
.size-lbl { font-weight: 700; font-size: 16px; color: var(--muted); }
.size-sel { font-weight: 600; cursor: pointer; }
.as-body textarea { min-height: 110px; }
.as-body .actions { margin-top: auto !important; }

/* ---------- keywords ---------- */
.sec-keywords .cbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.sec-keywords .cbody > :not(section) { grid-column: 1 / -1; }
.sec-keywords .cbody > p:first-of-type a { display: block; padding: 14px 18px; border-radius: 12px; background: #fdeeea; border: 1px solid #f0cdc6; color: #7d2414; text-decoration: none; }
.sec-keywords .cbody > p:first-of-type a:hover { color: #5a170a; }
.kw-tools { display: flex; justify-content: flex-end; margin-top: 10px; }

/* ---------- rules ---------- */
.sec-rules .cbody > div > h1, .sec-rules .cbody > div > h2 { margin-top: 0; }
.sec-rules .cbody > div { margin-top: 30px; }
.sec-rules .cbody > div:first-child { margin-top: 0; }

/* ---------- hub ---------- */
.hub-hero { position: relative; overflow: hidden; background: var(--night); color: #dbe3f3; isolation: isolate; }
.hub-hero-bg { position: absolute; inset: 0; z-index: -1; }
.hub-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .5; }
.hub-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2,12,43,.96) 0%, rgba(2,12,43,.82) 45%, rgba(2,12,43,.35) 100%); }
.hub-hero-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 34px; align-items: center; max-width: 1140px; padding: 46px 44px 50px; }
.hero-bars { height: 30px; margin-bottom: 14px; }
.hub-copy h1 { margin: 0 0 14px; color: #fff; font-size: 40px; line-height: 1.12; letter-spacing: -.02em; }
.hub-copy p.hub-lead { margin: 0 0 24px; max-width: 58ch; font-size: 19px; color: #c9d3ea; }
.hub-name { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.hub-name h2 { margin: 0 0 4px; color: #fff; font-size: 24px; }
.hub-name p.by { margin: 0 0 18px; color: #f3c95c; font-weight: 600; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 12px; }
.stats .grid { display: contents; }
section.blk.stat { margin: 0; padding: 14px 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(224,169,31,.35); border-radius: 14px; box-shadow: none; color: #c9d3ea; backdrop-filter: blur(4px); }
section.blk.stat p { margin: 0; font-size: 16px; line-height: 1.4; }
section.blk.stat strong { display: block; margin-top: 2px; color: #f6cf62; font: 700 22px/1.2 var(--head); }
section.blk.stat.epc { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: linear-gradient(90deg, #e0a91f, #f3c95c); border-color: transparent; color: var(--night); box-shadow: 0 12px 30px rgba(224,169,31,.25); }
section.blk.stat.epc::before { content: ""; flex: none; width: 34px; height: 26px; background: linear-gradient(var(--night),var(--night)) 0 100%/5px 40% no-repeat, linear-gradient(var(--night),var(--night)) 9px 100%/5px 75% no-repeat, linear-gradient(var(--night),var(--night)) 18px 100%/5px 55% no-repeat, linear-gradient(var(--night),var(--night)) 27px 100%/5px 100% no-repeat; opacity: .8; }
section.blk.stat.epc p strong { margin: 0; color: var(--night); font-size: 28px; letter-spacing: -.01em; }
.hub-pic { position: relative; align-self: stretch; display: flex; align-items: center; min-height: 420px; }
.hub-photo { position: absolute; inset: 0 0 0 8%; border-radius: 22px; overflow: hidden; border: 1px solid rgba(224,169,31,.3); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.hub-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hub-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(2,12,43,0) 40%, rgba(2,12,43,.75) 100%); }
.hub-mock { position: relative; z-index: 1; width: 88%; margin: auto 0 -18px -6%; align-self: flex-end; }
.su-pic { min-height: 0; justify-content: center; }
.su-pic .hub-mock { width: 100%; max-width: 480px; margin: auto; }
.hub-mock img { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 40px rgba(0,0,0,.6)); }
.sec-h { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.sec-h h2 { margin: 0; font-size: 26px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 40px; }
.tile { position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.3; box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.tile:hover { color: var(--ink); border-color: var(--gold-2); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11,26,61,.1); }
.tile .tile-l { flex: 1; min-width: 0; }
.tile .arr { width: 18px; height: 18px; color: var(--gold-2); }
.tile .badge-new { position: absolute; top: -10px; right: 12px; }
.tile.is-new { border-color: var(--gold-line); background: linear-gradient(180deg, #fffaf0, #fff); }
.hub .cbody > .grid > section.blk { border-top: 4px solid var(--gold); }
.hub-story { margin: 0 0 22px; padding: 28px 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.hub-story > h2:first-child { margin-top: 0; }
.hub-story p.lead { font-size: 20px; color: var(--ink); }
.hub-story .steps { margin: 16px 0 0; }
.hub-story .steps > section.blk { background: var(--paper); border-color: transparent; }

/* Andrew's letter */
section.mgr-letter { padding: 30px 32px; border-left: 5px solid var(--gold); }
section.mgr-letter > h3 { font-size: 24px; }
section.blk.mgr { display: flex; align-items: center; gap: 18px; margin: 18px 0 0; padding: 16px 18px; background: var(--paper); border: 0; box-shadow: none; }
section.blk.mgr img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); background: #fff; }
section.blk.mgr p { margin: 0; line-height: 1.5; }

/* ---------- programs ---------- */
.prog-hero { position: relative; overflow: hidden; background: var(--night); isolation: isolate; }
.prog-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2,12,43,.95), rgba(2,12,43,.6)); }
.prog-hero-in { padding: 54px 28px 58px; }
.prog-hero h1 { max-width: 20ch; margin: 0; color: #fff; font-size: 44px; line-height: 1.12; letter-spacing: -.02em; }
.prog-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; margin: -26px 0 40px; padding: 34px 38px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 48px rgba(11,26,61,.12); position: relative; }
.prog-intro h2 { margin: 0 0 4px; font-size: 30px; }
.prog-intro p.by { color: var(--gold-ink); font-weight: 700; }
.prog-intro ul { list-style: none; padding: 0; }
.prog-intro li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink); }
.prog-intro li .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--gold); color: var(--navy-2); stroke-width: 3; }
.prog-pic img { display: block; width: 100%; border-radius: 16px; }
.prog-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 0 0 44px; }
.prog-grid > * { flex: 0 1 calc((100% - 40px) / 3); min-width: 250px; margin: 0; }
section.blk.pcard { display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden; text-align: center; }
section.blk.pcard img { display: block; width: 100%; aspect-ratio: 5 / 3.4; object-fit: contain; padding: 18px; background: radial-gradient(90% 80% at 50% 100%, rgba(224,169,31,.25), transparent 70%), linear-gradient(180deg, #0b1a3d, #13244f); }
section.blk.pcard h3 { margin: 18px 18px 6px !important; font-size: 19px; }
section.blk.pcard p { margin: 0 18px 12px; }
section.blk.pcard p.epc-line { color: var(--gold-ink); font: 700 20px/1.3 var(--head); }
section.blk.pcard p:last-child { margin-top: auto; padding: 4px 18px 20px; margin-left: 0; margin-right: 0; }
section.blk.pcard .btn { width: 100%; }
.dl-block { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 34px; align-items: start; margin: 0 0 56px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.dl-pic img { display: block; width: 100%; border-radius: 14px; }
.dl-copy h2 { margin: 0 0 14px !important; }

/* ---------- sign-up (old) ---------- */
.su-card { margin-top: 6px; padding: 22px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.su-card h3 { margin: 0 0 14px; color: #fff; font-size: 21px; }
.su-card p { color: #c9d3ea; font-size: 16px; margin: 12px 0 0; }
.su-card p a { color: #f3c95c; }
.ck-form { display: grid; gap: 10px; max-width: 520px; }
.ck-form input { margin: 0; }
.ck-form .btn { width: 100%; }
.su-body { padding-top: 40px; padding-bottom: 60px; }
.su-body .cbody { max-width: 900px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0 0 30px; }
.statgrid > section.blk { margin: 0; padding: 16px; text-align: center; }
.statgrid img { display: block; width: 100%; border-radius: 10px; background: var(--navy-2); }
.statgrid h3 { margin: 12px 0 4px !important; font-size: 17px; }
.statgrid p { margin: 0 !important; color: var(--gold-ink); font-weight: 700; }
.su-body .cbody > form { margin: 0 0 14px; }
.signup .cbody > section.blk[data-kind="card"]:has(> img) { display: flex; align-items: center; gap: 18px; max-width: 560px; border-left: 5px solid var(--gold); }
.signup .cbody > section.blk[data-kind="card"] > img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }

/* ---------- 404 ---------- */
.nf { padding: 90px 0 110px; text-align: center; }
.nf .eyebrow { color: var(--gold-ink); font: 700 18px/1 var(--head); letter-spacing: .1em; }
.nf h1 { font-size: 40px; margin: 10px 0 12px; }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; background: var(--night); color: #9fabc8; text-align: center; }
.foot-bars { display: flex; justify-content: center; align-items: flex-end; height: 30px; gap: 10px; margin: 46px auto 0; opacity: .55; }
.foot-bars i { width: 4px; }
.foot-in { padding: 22px 28px 40px; }
.foot img { display: block; margin: 0 auto 20px; height: 40px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 0 0 18px; padding: 0; list-style: none; }
.footer-links a { color: #e3e9f6; text-decoration: none; font-size: 16px; font-weight: 600; }
.footer-links a:hover { color: var(--gold); }
.foot .copyright { margin: 0 0 22px; color: #c5cfe4; font-size: 16px; }
.foot .disclaimer { max-width: 900px; margin: 0 auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.foot .disclaimer p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: #8f9bba; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 30px); padding: 12px 20px; border-radius: 12px; background: var(--navy-2); color: #fff; font-weight: 600; font-size: 16px; box-shadow: 0 14px 34px rgba(2,12,43,.35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; border-left: 4px solid var(--gold); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .types { grid-template-columns: 1fr; }
  .hub-copy h1 { font-size: 34px; }
}
@media (max-width: 900px) {
  .shell { display: block; background: var(--paper); }
  .side { position: sticky; top: var(--bar); z-index: 40; height: auto; overflow: visible; padding: 10px 16px; background: var(--navy-2); border-bottom: 1px solid rgba(224,169,31,.25); }
  .side-brand { display: none; }
  .side-tog { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.05); color: #fff; font: 600 16px/1.2 var(--sans); cursor: pointer; }
  .side-tog .now { margin-left: auto; color: #f3c95c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-tog .ico { width: 20px; height: 20px; }
  .side nav { 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-hero-in { grid-template-columns: 1fr; padding: 34px 22px 36px; gap: 22px; }
  .hub-pic { order: -1; min-height: 0; justify-content: center; }
  .hub-photo { display: none; }
  .hub-mock { width: 100%; max-width: 340px; margin: 0 auto; }
  .side { border-radius: 0; box-shadow: none; max-height: none; }
  .hub-hero::after { background: linear-gradient(180deg, rgba(2,12,43,.7), rgba(2,12,43,.95) 45%); }
  .content-in { padding: 26px 22px 56px; }
  .phead-in { padding: 24px 22px 26px; }
  .phead-bars { right: 18px; height: 60px; gap: 7px; }
  .grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prog-intro, .dl-block { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .sec-keywords .cbody { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .prog-grid > * { flex-basis: 100%; min-width: 0; }
  body { font-size: 17px; }
  :root { --bar: 60px; }
  .top-in { padding: 0 14px; gap: 10px; }
  .logo img { height: 30px; }
  .picker-btn { min-height: 40px; padding: 6px 10px 6px 12px; gap: 6px; font-size: 16px; }
  .picker-btn .ico { width: 16px; height: 16px; }
  .picker-btn .cur { display: none; }
  .picker-btn .bars { display: none; }
  .wrap { padding: 0 16px; }
  .content-in { padding: 22px 14px 48px; }
  .phead-t { font-size: 26px; gap: 12px; }
  .phead-bars { height: 44px; gap: 6px; opacity: .3; }
  .tile { min-height: 64px; }
  .phead-t .tile-ic { width: 40px; height: 40px; }
  .hub-copy h1, .prog-hero h1 { font-size: 30px; }
  .hub-hero-in { padding: 26px 16px 30px; }
  .cbody h1 { font-size: 29px; }
  .cbody h2 { font-size: 24px; }
  section.blk[data-kind="card"], section.blk[data-kind="swipe"], section.blk[data-kind="email"], section.em, .hub-story { padding: 20px 18px; }
  .steps.gen > section.blk { padding: 70px 18px 22px; }
  .steps.gen > section.blk > .num { left: 18px; top: 20px; }
  .result { flex-direction: column; }
  .tiles { grid-template-columns: 1fr; }
  .assets { grid-template-columns: 1fr; }
  .em-head p.em-title { font-size: 19px; }
  .sw-subj { flex-direction: column; align-items: stretch; }
  .sw-subj .btn-mini { align-self: flex-start; }
  .prog-intro { margin-top: -18px; }
  .prog-hero-in { padding: 38px 16px 44px; }
  section.blk.mgr { flex-direction: column; align-items: flex-start; }
  .foot-in { padding: 44px 16px 32px; }
}
