/* /system: the SuperMarketer system grid and its step pages. Loaded after site.css. */
.sys { background: var(--sm-ink); color: var(--sm-white); }
.sys main { padding-top: 84px; }
.sys a { color: inherit; }
.sys code { font-family: var(--font-mono); font-size: .92em; }
.sys .eyebrow { margin-bottom: 14px; }
.sys mark { background: var(--sm-yellow); color: var(--sm-ink); padding: 0 .08em; }
.btn-y { display: inline-block; font: 700 13px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--sm-ink) !important; background: var(--sm-yellow); border: 2px solid var(--sm-yellow); padding: 13px 18px; box-shadow: 4px 4px 0 var(--sm-purple); transition: transform .12s, box-shadow .12s; }
.btn-y:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--sm-purple); }
.sec-head { max-width: 760px; margin-bottom: 28px; }
.sec-head h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(26px, 3.4vw, 40px); line-height: 1; letter-spacing: -.02em; margin: 0 0 12px; }
.sec-head p { color: var(--sm-mist); font-size: 16px; line-height: 1.55; margin: 0; }
.sec-head a { color: var(--sm-yellow); }

/* ------------------------------------------------ hub hero */
.hub { max-width: 1680px; margin: 0 auto; padding: 0 32px 40px; }
.hub__hero { padding: 56px 0 36px; max-width: 1180px; }
.hub__hero h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(36px, 5.6vw, 76px); line-height: .95; letter-spacing: -.03em; margin: 0 0 22px; }
.hub__dek { font-size: 19px; line-height: 1.55; color: #d6d6d6; max-width: 820px; margin: 0 0 28px; }
.hub__how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid #2a2a2a; }
.hub__how div { padding: 16px 18px; border-right: 1px solid #2a2a2a; }
.hub__how div:last-child { border-right: 0; }
.hub__how b { display: block; font: 700 12px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--sm-yellow); margin-bottom: 6px; }
.hub__how span { font-size: 14.5px; color: #cfcfcf; line-height: 1.45; }

/* ------------------------------------------------ the grid */
.g { --lane: 220px; --moves: 210px; --phase: 40px; margin: 8px 0 56px; }
.g__head, .g__row { display: grid; grid-template-columns: var(--phase) var(--lane) repeat(5, minmax(0, 1fr)) var(--moves); }
.g__loop { margin-left: calc(var(--phase) + var(--lane)); margin-right: var(--moves); height: 38px; border: 2px dashed var(--sm-yellow); border-bottom: 0; position: relative; margin-bottom: 0; }
.g__loop::before { content: ''; position: absolute; left: 10%; bottom: -2px; border: 8px solid transparent; border-top: 11px solid var(--sm-yellow); transform: translate(-50%, 100%); }
.g__loop span { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); background: var(--sm-ink); padding: 0 12px; font: 700 12px var(--font-mono); color: var(--sm-yellow); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.g__head > div { background: #121212; border-top: 1px solid #262626; border-bottom: 1px solid #262626; }
.g__head .g__phase { background: none; border: 0; }
.g__lanehead, .g__moveshead { display: flex; align-items: flex-end; padding: 12px 14px; font: 700 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: #9a9a9a; }
.g__moveshead { color: var(--sm-white); border-left: 1px solid #262626; }
.g__stage { position: relative; padding: 14px 14px 12px; border-left: 1px solid #262626; }
.g__stage::after { content: ''; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); border: 8px solid transparent; border-left: 9px solid var(--sm-yellow); z-index: 3; }
.g__stage--last::after { display: none; }
.g__n { font: 700 11px var(--font-mono); color: #5c5c5c; }
.g__stage b { display: block; font: 800 20px var(--font-body); margin: 2px 0; }
.g__clk { font: 700 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--sm-yellow); }
.g__stage p { color: #9a9a9a; font-size: 12.5px; line-height: 1.4; margin: 6px 0 0; }
.gatechips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.gatechips i { font: 700 10px var(--font-mono); font-style: normal; color: #a78bfa; border: 1px solid #4b3d86; padding: 1px 5px; border-radius: 3px; }

.g__row { position: relative; }
.g__phase { position: relative; }
.g__phase:not(:empty) { font: 700 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: flex-end; padding: 14px 0; color: var(--sm-white); }
.g__row .g__phase::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 5px; transform: translateX(-50%); background: var(--c); opacity: .85; z-index: -1; }
.g__row .g__phase:not(:empty)::after { left: auto; right: 50%; transform: translateX(50%); }
.g__lane { display: block; text-decoration: none; padding: 16px 16px 14px; border-bottom: 1px solid #262626; border-left: 5px solid var(--c); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, transparent), transparent); }
.g__lane:hover b { text-decoration: underline; }
.g__verb { font: 700 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--c); display: block; }
.g__lane b { display: block; font: 800 19px var(--font-body); margin: 3px 0 4px; }
.g__what { display: block; color: #cfcfcf; font-size: 12.5px; line-height: 1.4; }
.g__clk2 { display: block; color: #6a6a6a; font: 500 10.5px var(--font-mono); text-transform: uppercase; margin-top: 8px; }
.g__cell { display: flex; flex-direction: column; gap: 5px; padding: 12px; border-bottom: 1px solid #262626; border-left: 1px solid #262626; text-decoration: none; position: relative; transition: background .15s, box-shadow .15s; }
.g__cell:hover, .g__cell:focus-visible { background: color-mix(in srgb, var(--c) 10%, #0f0f0f); box-shadow: inset 0 0 0 2px var(--c); outline: none; }
.g__cellname { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.g__more { margin-top: auto; padding-top: 6px; font: 700 10.5px var(--font-mono); text-transform: uppercase; color: var(--c); opacity: 0; transition: opacity .15s; }
.g__cell:hover .g__more, .g__cell:focus-visible .g__more { opacity: 1; }
.g__moves { padding: 16px; border-bottom: 1px solid #262626; border-left: 1px solid #262626; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.g__moves b { font-size: 15px; color: var(--c); line-height: 1.25; }
.g__moves span { font-size: 12.5px; color: #9a9a9a; line-height: 1.4; }
.g__row--paid > :not(.g__phase) { background-image: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(255,255,255,.03) 8px 16px); }
.g__pipe { display: flex; justify-content: flex-end; }
.g__pipe span { width: var(--moves); background: var(--sm-yellow); color: var(--sm-ink); font: 800 15px var(--font-body); text-transform: uppercase; letter-spacing: .04em; text-align: center; padding: 12px; }
.g__found { margin-left: var(--phase); display: grid; grid-template-columns: var(--lane) repeat(3, 1fr) 1fr; background: #17132b; border-top: 3px solid #a78bfa; }
.g__found a { padding: 14px 16px; border-left: 1px solid #2c2550; text-decoration: none; }
.g__found a:first-child { border-left: 0; }
.g__found a:hover { background: #221b3d; }
.g__found b { display: block; color: #a78bfa; font-size: 15px; margin-bottom: 4px; }
.g__found a:first-child b { color: var(--sm-white); }
.g__found span { color: #cfcfcf; font-size: 12.5px; line-height: 1.45; }
.g__legend { margin: 14px 0 0 calc(var(--phase)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font: 500 12px var(--font-mono); color: #9a9a9a; }
.g__legend .chip { margin-left: 12px; }
.g__legend .chip:first-child { margin-left: 0; }

/* chips */
.chip { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.3; padding: 4px 8px; border-radius: 4px; }
.g__legend .chip { display: inline-flex; }
.chip--agent { color: #e8e8e8; background: color-mix(in srgb, var(--c) 13%, #141414); border-left: 3px solid var(--c); }
.chip--you { color: var(--sm-yellow); font-weight: 500; font-size: 12.5px; border: 1px dashed rgba(223,255,5,.5); background: rgba(223,255,5,.05); }
.chip--you::before { content: 'You · '; font: 700 10px var(--font-mono); text-transform: uppercase; }
.chip--next { color: #9a9a9a; font-weight: 500; font-size: 12.5px; border: 1px dashed #3a3a3a; }
.chip--next::before { content: 'Next · '; font: 700 10px var(--font-mono); text-transform: uppercase; color: #5c5c5c; }
.g__legend .chip--you::before, .g__legend .chip--next::before { content: none; }
.flag { margin-left: auto; font: 700 9.5px var(--font-mono); font-style: normal; text-transform: uppercase; color: var(--sm-yellow); border: 1px solid var(--sm-yellow); padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
.flag--auto { background: var(--sm-yellow); color: var(--sm-ink); }

/* ------------------------------------------------ opt-in */
.optin { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 36px; margin: 56px 0; background: var(--sm-yellow); color: var(--sm-ink); border: 2px solid var(--sm-yellow); box-shadow: 8px 8px 0 var(--sm-purple); }
.optin .eyebrow { color: var(--sm-ink); }
.optin .eyebrow::before { background: var(--sm-ink); }
.optin h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(26px, 3vw, 38px); line-height: 1; letter-spacing: -.02em; margin: 0 0 12px; }
.optin p { font-size: 16px; line-height: 1.55; margin: 0; }
.optin__form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.optin__form input { font: 500 16px var(--font-body); padding: 14px 16px; border: 2px solid var(--sm-ink); background: var(--sm-white); color: var(--sm-ink); min-width: 0; }
.optin__form button { font: 700 13px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 14px 18px; background: var(--sm-ink); color: var(--sm-yellow); border: 2px solid var(--sm-ink); cursor: pointer; }
.optin__form button:disabled { opacity: .6; cursor: wait; }
.optin__status { grid-column: 1 / -1; font-size: 13px !important; }
.optin__download { grid-column: 1 / -1; font: 700 14px var(--font-mono); text-transform: uppercase; color: var(--sm-ink) !important; background: var(--sm-white); border: 2px solid var(--sm-ink); padding: 12px 16px; text-align: center; text-decoration: none; }

/* ------------------------------------------------ videos + directory */
.hub__videos, .dir { margin: 64px 0; }
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.vids--2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.vid { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.vid__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid #2a2a2a; background: #111; }
.vid__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.vid:hover .vid__thumb img { transform: scale(1.04); }
.vid__play { position: absolute; left: 12px; bottom: 12px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--sm-yellow); color: var(--sm-ink); font-size: 14px; }
.vid__title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.vid:hover .vid__title { color: var(--sm-yellow); }
.dir__grid { columns: 4 260px; column-gap: 32px; }
.dir__grid section { break-inside: avoid; margin-bottom: 28px; }
.dir__grid h3 { font: 700 12px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; padding-bottom: 8px; margin: 0 0 8px; border-bottom: 3px solid var(--c); }
.dir__grid ul { list-style: none; margin: 0; padding: 0; }
.dir__grid li { padding: 4px 0; font-size: 14.5px; line-height: 1.4; }
.dir__grid li a { text-decoration: none; }
.dir__grid li a:hover { color: var(--sm-yellow); text-decoration: underline; }
.dir__grid li.d__post { color: #b5b5b5; font-size: 13.5px; padding-left: 12px; border-left: 1px solid #333; }
.cta-band { text-align: center; padding: 56px 24px; border-top: 1px solid #262626; }
.cta-band h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(26px, 3.4vw, 44px); line-height: 1; margin: 0 0 12px; }
.cta-band p { color: #cfcfcf; font-size: 17px; margin: 0 auto 24px; max-width: 620px; }

/* ------------------------------------------------ step pages */
.cellpage__wrap { max-width: 1280px; margin: 0 auto; padding: 32px 32px 64px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
.crumbs { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: #8a8a8a; margin-bottom: 24px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--sm-yellow); }
.cellhead { border-left: 6px solid var(--c); padding: 4px 0 4px 24px; margin-bottom: 40px; }
.cellhead h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(34px, 5vw, 64px); line-height: .95; letter-spacing: -.03em; margin: 0 0 18px; }
.cellhead h1 span { color: var(--c); }
.cellhead__dek { font-size: 20px; line-height: 1.5; color: #e0e0e0; margin: 0 0 18px; max-width: 760px; }
.cellhead__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.cellhead__meta span { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: #cfcfcf; border: 1px solid #333; padding: 6px 10px; }
.cellhead__meta b { color: var(--c); }
.fsnote { border: 1px dashed #3a3a3a; padding: 12px 16px; color: #b5b5b5; font-size: 14.5px; margin: -16px 0 32px; }
.sec { margin: 0 0 44px; }
.sec h2 { font: 700 12px var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: #8a8a8a; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid #262626; }
.sys-lead { font-size: 18px; line-height: 1.6; color: #e0e0e0; margin: 0; }
.gateline { margin: 14px 0 0; color: #b5b5b5; font-size: 15px; line-height: 1.55; }
.gateline b { color: #a78bfa; } .gateline a { color: var(--sm-yellow); }
.scs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sc { padding: 18px; border: 1px solid #2a2a2a; background: #111; display: flex; flex-direction: column; gap: 8px; }
.sc--agent { border-top: 4px solid var(--c); }
.sc--you { border: 1px dashed rgba(223,255,5,.55); background: rgba(223,255,5,.04); }
.sc--you h3 { color: var(--sm-yellow); }
.sc--next { border: 1px dashed #3a3a3a; background: none; }
.sc--next h3 { color: #b5b5b5; }
.sc__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sc__kind { font: 700 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: #8a8a8a; }
.sc h3 { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.25; }
.sc p { font-size: 14.5px; line-height: 1.5; color: #cfcfcf; margin: 0; }
.sc .sc__lvl { font-size: 13px; color: #8a8a8a; }
.sc__src { margin-top: auto; font: 600 12px var(--font-mono); color: var(--sm-yellow) !important; text-decoration: none; padding-top: 6px; }
.sc__src:hover { text-decoration: underline; }
.sc__src code { color: inherit; }
.lvl { font: 700 10px var(--font-mono); text-transform: uppercase; padding: 2px 6px; border-radius: 3px; white-space: nowrap; background: #262626; color: #cfcfcf; }
.lvl--2 { background: #2b2550; color: #c9bcff; } .lvl--3 { background: #4a3a10; color: #ffd36b; } .lvl--4 { background: var(--sm-yellow); color: var(--sm-ink); }
.out__line { font-size: 22px; font-weight: 700; line-height: 1.35; margin: 0 0 10px; }
.out__moves { color: #b5b5b5; font-size: 15px; margin: 0; } .out__moves b { color: var(--c); }
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid #262626; }
.posts li { border-bottom: 1px solid #262626; }
.posts a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 4px; text-decoration: none; font-size: 17px; font-weight: 600; line-height: 1.4; transition: background .12s, padding .12s; }
.posts a:hover { background: var(--sm-yellow); color: var(--sm-ink); padding-left: 12px; padding-right: 12px; }
.posts em { font: 700 10.5px var(--font-mono); font-style: normal; text-transform: uppercase; color: #8a8a8a; white-space: nowrap; }
.posts a:hover em { color: var(--sm-ink); }
.points { margin: 0; padding-left: 20px; } .points li { font-size: 17px; line-height: 1.55; margin-bottom: 8px; color: #e0e0e0; }
.stepnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 48px 0 0; }
.stepnav a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid #2a2a2a; text-decoration: none; }
.stepnav a:hover { border-color: var(--c); background: #121212; }
.stepnav span { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: #8a8a8a; }
.stepnav b { font-size: 16px; }
.stepnav__next { border-color: var(--c) !important; }
.cellpage__side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.side__card { border: 1px solid #2a2a2a; padding: 16px; border-left: 4px solid var(--c); }
.side__card b { display: block; font-size: 16px; margin-bottom: 4px; }
.side__card span { color: #b5b5b5; font-size: 13.5px; line-height: 1.45; }
.side__card ol { margin: 12px 0 0; padding-left: 20px; }
.side__card li { font-size: 14px; padding: 3px 0; } .side__card li a { text-decoration: none; } .side__card li a:hover { color: var(--sm-yellow); }
.side__card li.is-cur { color: var(--c); font-weight: 700; }

/* mini map */
.mm { border: 1px solid #2a2a2a; padding: 14px; background: #0f0f0f; }
.mm__title { display: block; font: 700 11px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; color: var(--sm-yellow) !important; margin-bottom: 10px; }
.mm__row { display: grid; grid-template-columns: 96px repeat(5, 1fr); gap: 4px; margin-bottom: 4px; align-items: center; }
.mm__h { font: 500 8.5px var(--font-mono); text-transform: uppercase; color: #6a6a6a; text-align: center; overflow: hidden; }
.mm__rl { font-size: 11.5px; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #cfcfcf; }
a.mm__rl:hover { color: var(--c); }
.mm__c { height: 18px; background: color-mix(in srgb, var(--c) 30%, #151515); border: 1px solid transparent; transition: background .12s; }
.mm__c:hover { background: var(--c); }
.mm__c.is-cur { background: var(--c); border-color: var(--sm-white); box-shadow: 0 0 0 2px var(--sm-ink), 0 0 0 3px var(--sm-white); }
.mm__row--f { grid-template-columns: 96px repeat(4, 1fr); margin-top: 8px; }
.mm__f { font: 600 10px var(--font-mono); text-transform: uppercase; text-align: center; text-decoration: none; padding: 4px 0; background: #1d1836; color: #c9bcff !important; }
.mm__f:hover, .mm__f.is-cur { background: #a78bfa; color: var(--sm-ink) !important; }

/* ------------------------------------------------ responsive */
@media (max-width: 1280px) {
  .g { overflow-x: auto; }
  .g > * { min-width: 1240px; }
}
@media (max-width: 960px) {
  .cellpage__wrap { grid-template-columns: 1fr; }
  .cellpage__side { position: static; }
  .optin { grid-template-columns: 1fr; padding: 24px; }
  .hub__how { grid-template-columns: 1fr; }
  .hub__how div { border-right: 0; border-bottom: 1px solid #2a2a2a; }
}
@media (max-width: 760px) {
  .hub, .cellpage__wrap { padding-left: 16px; padding-right: 16px; }
  /* the grid becomes one card per channel */
  .g { overflow: visible; }
  .g > * { min-width: 0; }
  .g__loop, .g__head, .g__pipe, .g__phase:empty { display: none; }
  .g__row { display: block; margin-bottom: 18px; border: 1px solid #262626; }
  .g__phase:not(:empty) { writing-mode: horizontal-tb; transform: none; padding: 10px 12px 0; justify-content: flex-start; }
  .g__phase::after { display: none; }
  .g__cell { border-left: 0; }
  .g__cellname { position: static; width: auto; height: auto; clip: auto; font: 700 11px var(--font-mono); text-transform: uppercase; color: var(--c); }
  .g__more { opacity: 1; }
  .g__found { margin-left: 0; grid-template-columns: 1fr 1fr; }
  .g__legend { margin-left: 0; }
  .stepnav { grid-template-columns: 1fr; }
  .optin__form { grid-template-columns: 1fr; }
}
.chip--you, .chip--next { display: block; }
.g__legend .chip--you, .g__legend .chip--next { display: inline-flex; }
.cellpage .optin { grid-template-columns: 1fr; gap: 20px; }
.cellpage .stepnav > span:empty { display: none; }
