/* =============================================================
   WBK Affiliate Program case study. Built on the editorial layout
   in case-wbk-shop.css (.cx-*); this file only adds the parts this
   page needs: screens on dark panels, the issue cards, the earnings
   calculator, and the dashboard overview rebuilt in HTML (the chart
   in the exported slides had flattened into a solid block).
   WBK pink #FF2C79 is the program's accent, as in the product.
   ============================================================= */
.cs { --af-pink: #ff2c79; --af-ink: #0b0b0e; --af-2: #18181b; --af-3: #252528; }

/* cover */
.af-cover img { display: block; width: 100%; height: auto; border-radius: 18px; background: #000; }

/* screens: each on a dark rounded panel, caption under it, tap to enlarge */
.af-stack { display: grid; gap: 1rem; }
.cs .cx-sec > .af-stack, .cs .cx-sec > .af-shot, .cs .cx-sec > .af-duo, .cs .cx-sec > .af-issues,
.cs .cx-sec > .af-calc, .cs .cx-sec > .af-dash { margin-top: 1.5rem; }
.cs .cx-sec > .af-shot + .af-shot { margin-top: 1rem; }
.af-shot { margin: 0; cursor: zoom-in; }
.af-shot img { display: block; width: 100%; height: auto; border-radius: 16px; background: #000;
  box-shadow: 0 1px 2px rgba(17,17,17,.06); transition: transform .35s var(--ease); }
.af-shot:hover img { transform: translateY(-3px); }
.af-shot:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 16px; }
.af-shot figcaption { margin-top: .7rem; font-size: .875rem; line-height: 1.5; color: var(--fg-muted); }
.af-shot figcaption b { display: block; font-weight: 600; color: var(--fg); font-size: .9375rem; }
/* tall single phones and phone strips sit centred on a dark plate instead of filling the column */
.af-shot--phone { background: #000; border-radius: 16px; padding: 1.5rem 1.5rem 0; }
.af-shot--phone img { max-width: 300px; margin: 0 auto; border-radius: 0; box-shadow: none; }
.af-shot--phone figcaption { margin: 0 -1.5rem; padding: .85rem 1.5rem 0; background: var(--bg); }
.af-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }

/* problem: four reasons, as quiet numbered cards */
.af-issues { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.af-issues > div { background: #fff; border: 1px solid var(--border-2); border-radius: 14px; padding: 1rem 1.1rem 1.1rem; }
.af-issues span { font-family: var(--mono, ui-monospace, monospace); font-size: .75rem; color: var(--af-pink); }
.af-issues b { display: block; margin-top: .3rem; font-weight: 600; font-size: 1rem; color: var(--fg); }
.af-issues p { margin: .25rem 0 0; font-size: .9375rem; line-height: 1.5; color: var(--fg-muted); }

/* the earnings calculator, lifted out of the landing page */
.af-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: var(--af-ink); color: #fff; border-radius: 16px; padding: 1.25rem; }
.af-calc > div { display: grid; gap: .45rem; align-content: start; }
.af-calc > div + div { border-left: 1px solid var(--af-3); padding-left: 1.25rem; }
.af-calc__l { font-size: .8125rem; color: rgba(255,255,255,.6); }
.af-calc__in { display: flex; justify-content: space-between; align-items: center; background: var(--af-2); border: 1px solid var(--af-3);
  border-radius: 10px; padding: .65rem .8rem; font-size: .9375rem; }
.af-calc__in i { font-style: normal; color: rgba(255,255,255,.5); font-size: .75rem; }
.af-calc b { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; color: #7ee08a; line-height: 1.05; }
.af-calc__s { font-size: .8125rem; color: rgba(255,255,255,.55); }

/* dashboard overview, rebuilt: a working chart in place of the flattened one */
.af-dash { margin: 0; background: var(--af-ink); border-radius: 18px; padding: 1.25rem; color: #fff; display: grid; gap: .75rem; }
.af-dash__card { border: 1px solid var(--af-3); border-radius: 14px; padding: 1.1rem 1.1rem .6rem; }
.af-dash__top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.af-dash__l { display: block; font-size: .8125rem; color: rgba(255,255,255,.6); }
.af-dash b { display: block; margin-top: .2rem; font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.af-dash b small { font-size: .8125rem; font-weight: 500; color: rgba(255,255,255,.7); letter-spacing: 0; }
.af-dash__rate { text-align: right; }
.af-dash__rate b { font-size: 1.25rem; }
.af-chart { display: block; width: 100%; height: auto; margin-top: .9rem; overflow: visible; }
.af-chart__grid line { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.af-chart text { fill: rgba(255,255,255,.45); font: 500 11px/1 Inter, system-ui, sans-serif; }
.af-dash__note { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid var(--af-3); border-radius: 12px; padding: .85rem 1rem; }
.af-dash__note > span { font-size: 1rem; line-height: 1.3; color: rgba(255,255,255,.7); }
.af-dash__note b { font-size: .9375rem; font-weight: 600; margin: 0; letter-spacing: 0; }
.af-dash__note div span { display: block; font-size: .8125rem; line-height: 1.45; color: rgba(255,255,255,.6); margin-top: .15rem; }
.af-dash figcaption { font-size: .8125rem; color: rgba(255,255,255,.5); padding: 0 .1rem; }

@container cs (max-width: 600px) {
  .af-duo, .af-issues, .af-calc { grid-template-columns: 1fr; }
  .af-calc > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--af-3); padding-top: 1rem; }
  .af-dash__rate { text-align: left; }
  .af-shot--phone { padding: 1rem 1rem 0; }
  .af-shot--phone figcaption { margin: 0 -1rem; padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .af-shot img { transition: none; } .af-shot:hover img { transform: none; } }
.af-cover img { aspect-ratio: 16 / 11; object-fit: cover; object-position: center top; }

/* access points: two per row, the wide nav strip across both */
.af-stack { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; align-items: start; }
.af-stack .af-shot--wide { grid-column: 1 / -1; }
.af-stack .af-shot img { aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center top; }
.af-stack .af-shot--wide img { aspect-ratio: auto; }
.af-stack .af-shot--phone img { aspect-ratio: auto; max-height: 360px; width: auto; }
@container cs (max-width: 600px) { .af-stack { grid-template-columns: 1fr; } }
.af-stack .af-shot img[src*="access-account"] { object-position: center 18%; }
