/* ===================================================================
   Advantage Play Network — Global Stylesheet (v2)
   Grounded, professional "AP" look: dark base + money-green accent.
   Modeled on apslot.com, blackjackapprenticeship.com, unabated.com
   =================================================================== */

:root {
  --bg:        #141414;   /* warm near-black, like apslot #1c1c1c family */
  --bg-2:      #191919;
  --surface:   #1f1f1f;
  --surface-2: #262626;
  --border:    rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text:      #f3f4f2;
  --muted:     #a6a8a4;
  --muted-2:   #76787a;
  --brand:     #1db954;   /* money green */
  --brand-d:   #169b45;
  --brand-l:   #34d36c;
  --brand-soft: rgba(29, 185, 84, 0.13);
  --ink:       #07140b;   /* dark text on green buttons */
  --danger:    #e3564f;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 14px 40px -18px rgba(0,0,0,0.75);
  --shadow-sm: 0 6px 20px -10px rgba(0,0,0,0.6);
  --maxw:      1180px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Archivo', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-l); }

h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); }
h3 { font-size: 1.28rem; font-weight: 700; }
p  { color: var(--muted); }
strong { color: var(--text); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 52px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; font-size: .76rem;
  color: var(--brand); margin-bottom: 14px;
}
.gold-text, .grad-text, .accent-text { color: var(--brand); -webkit-text-fill-color: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 8px; font-weight: 700;
  font-family: var(--font-head); font-size: .96rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s, background .15s, border-color .15s, color .15s;
  letter-spacing: .01em;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--ink); }
.btn-primary:hover { background: var(--brand-l); color: var(--ink); }
.btn-gold { background: #ffffff; color: #141414; }      /* clean white secondary */
.btn-gold:hover { background: #e9ebe8; color: #141414; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--text); letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand .logo-mark {
  width: 36px; height: 36px; border-radius: 8px; background: var(--brand);
  display: grid; place-items: center; font-weight: 800; color: var(--ink); font-size: 1.05rem;
}
.brand b { color: var(--brand); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li > a {
  display: block; padding: 9px 14px; border-radius: 7px;
  color: var(--muted); font-weight: 600; font-size: .94rem;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--text); background: var(--surface); }

.dropdown { position: relative; }
.dropdown > a::after { content: "⌄"; margin-left: 6px; font-size: .9rem; opacity: .7; position: relative; top: -2px; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; box-shadow: var(--shadow); list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: flex; flex-direction: column; padding: 10px 13px; border-radius: 7px; color: var(--text); font-size: .93rem; font-weight: 600; }
.dropdown-menu a small { color: var(--muted-2); font-weight: 400; font-size: .79rem; }
.dropdown-menu a:hover { background: var(--surface-2); color: var(--brand); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(680px 360px at 12% 0%, rgba(29,185,84,.10), transparent 65%),
    linear-gradient(180deg, #161616, #141414);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero p.lead { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-family: var(--font-head); font-size: 1.85rem; color: var(--brand); font-weight: 800; }
.hero-stats .stat span { font-size: .84rem; color: var(--muted); }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  font-size: .8rem; color: var(--muted); font-weight: 600;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* Hero visual card (now solid, not glassy) */
.hero-visual { position: relative; }
.glass-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px;
  box-shadow: var(--shadow);
}
.mini-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; }
.mini-row .l { display: flex; align-items: center; gap: 12px; }
.mini-row .ic { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; font-size: .95rem; font-weight: 700; background: var(--surface-2); color: var(--text); }
.mini-row .name { font-weight: 700; font-size: .93rem; color: var(--text); }
.mini-row .sub { font-size: .77rem; color: var(--muted-2); }
.pill-pos { color: var(--brand); font-weight: 800; font-family: var(--font-head); font-size: .92rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.card .icon {
  width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 16px; background: var(--brand-soft); border: 1px solid var(--border);
}
.card h3 { margin-bottom: 9px; }
.card p { font-size: .96rem; }

.feature-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px; font-weight: 700; font-family: var(--font-head); font-size: .9rem; color: var(--brand); }
.feature-link::after { content: "→"; transition: transform .15s; }
.card:hover .feature-link::after { transform: translateX(4px); }

/* Section heading block */
.sec-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.sec-head h2 { margin-bottom: 14px; }

/* ---------- Partner / brand bar ---------- */
.partner-bar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.logo-chip {
  background: #fff; border-radius: 10px; padding: 14px 18px; display: grid; place-items: center;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.06);
}
.logo-chip img { max-height: 38px; width: auto; }
.logo-chip.sm img { max-height: 30px; }
.logo-chip.lg img { max-height: 56px; }

/* ---------- Brand graphic (embedded partner screenshots) ---------- */
.brand-graphic { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; background: var(--bg-2); }
.brand-graphic img { width: 100%; display: block; }
.graphic-caption { font-size: .82rem; color: var(--muted-2); margin-top: 10px; text-align: center; }

/* ---------- Brand hero (topic pages) ---------- */
.topic-hero { padding: 70px 0 50px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.topic-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(640px 340px at 82% 0%, rgba(29,185,84,.10), transparent 62%), linear-gradient(180deg,#161616,#141414);
}
.topic-hero .wordmark {
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; letter-spacing: .01em; color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 7px 7px 7px; margin-bottom: 22px;
}
.topic-hero .wordmark .logo-chip { padding: 8px 12px; }
.topic-hero .wordmark .logo-chip img { max-height: 26px; }
.topic-hero .wordmark .sq { width: 20px; height: 20px; border-radius: 5px; background: var(--brand); }

/* Split feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); width: 100%; }

/* Checklist */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-top: 8px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checklist li::before {
  content: "✓"; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
  font-size: .78rem; font-weight: 800; margin-top: 3px;
}
.checklist li strong { color: var(--text); }

/* ---------- Product cards (deep-link to partner products) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.product-media { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; display: grid; place-items: center; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .ph { font-size: 2.4rem; }
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); font-weight: 700; font-family: var(--font-head); margin-bottom: 8px; }
.product-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.product-body p { font-size: .9rem; flex: 1; }
.product-price { font-family: var(--font-head); font-weight: 800; color: var(--text); font-size: 1.3rem; margin: 14px 0 4px; }
.product-price small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.product-card .btn { margin-top: 16px; }
.product-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

/* Pricing / tier cards */
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; display:flex; flex-direction:column; }
.tier.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.tier .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand); color: var(--ink); font-size: .7rem; font-weight: 800; padding: 5px 13px; border-radius: 6px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.tier h3 { margin-bottom: 6px; }
.tier .price { font-family: var(--font-head); font-size: 2rem; color: var(--text); margin: 8px 0 4px; font-weight: 800; }
.tier .price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.tier ul { list-style: none; margin: 16px 0; display: flex; flex-direction: column; gap: 9px; flex:1; }
.tier ul li { font-size: .91rem; color: var(--muted); padding-left: 23px; position: relative; }
.tier ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.tier .btn { margin-top: 8px; }

/* Stat band */
.statband { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.statband .grid-4 { gap: 0; }
.statband .stat { text-align: center; padding: 36px 18px; border-right: 1px solid var(--border); }
.statband .stat:last-child { border-right: 0; }
.statband .stat b { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--brand); font-weight: 800; }
.statband .stat span { font-size: .88rem; color: var(--muted); }

/* YouTube embeds */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .15s, border-color .15s; }
.video-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame.facade { cursor: pointer; }
.video-frame.facade .yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .15s; }
.video-frame.facade:hover .yt-thumb { opacity: 1; }
.video-frame.facade .yt-play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-frame.facade .yt-play::after { content: "▶"; width: 62px; height: 62px; border-radius: 50%; background: rgba(220,0,0,.92); color: #fff; display: grid; place-items: center; font-size: 1.35rem; padding-left: 4px; box-shadow: 0 8px 22px rgba(0,0,0,.55); transition: transform .15s; }
.video-frame.facade:hover .yt-play::after { transform: scale(1.08); }
.video-meta { padding: 16px 18px; }
.video-meta h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 4px; font-weight: 700; }
.video-meta span { font-size: .83rem; color: var(--muted); }

/* Callout / quote */
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--radius); padding: 30px 34px; }
.quote { border-left: 3px solid var(--brand); padding: 4px 0 4px 22px; font-size: 1.12rem; color: var(--text); font-style: italic; }
.quote cite { display: block; margin-top: 12px; font-size: .9rem; color: var(--muted); font-style: normal; }

/* Notice / disclaimer */
.notice { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--muted-2); border-radius: var(--radius-sm); padding: 16px 20px; font-size: .88rem; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); padding: 56px 44px; text-align: center; background: var(--bg-2); border: 1px solid var(--border); }
.cta-band::before { content:""; position:absolute; inset:0; z-index:0; background: radial-gradient(600px 240px at 50% 0%, rgba(29,185,84,.12), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 600px; margin: 0 auto 26px; }

/* Phone mockup for app screenshots */
.phone-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.phone { width: 250px; border-radius: 30px; padding: 11px; background: #0c0c0c; border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.phone img { border-radius: 22px; width: 100%; background: var(--bg-2); }
.app-screens img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* Blog */
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; color: inherit; }
.post-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.post-thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 2.5rem; position: relative; background: var(--bg-2); }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); font-weight: 700; font-family: var(--font-head); }
.post-body h3 { margin: 9px 0; font-size: 1.14rem; color: var(--text); }
.post-body p { font-size: .92rem; flex: 1; }
.post-meta { margin-top: 15px; font-size: .81rem; color: var(--muted-2); display: flex; gap: 12px; }

/* Article body */
.article { max-width: 760px; margin: 0 auto; }
.article p { color: var(--muted); margin-bottom: 19px; font-size: 1.05rem; }
.article h2 { margin: 38px 0 15px; }
.article h3 { margin: 28px 0 11px; color: var(--text); }
.article ul, .article ol { margin: 0 0 21px 22px; color: var(--muted); }
.article li { margin-bottom: 9px; }
.article .article-hero { font-size: 3.6rem; text-align: center; padding: 46px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 34px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.toc h4 { font-family: var(--font-head); margin-bottom: 9px; }
.toc ul { list-style: none; }
.toc li { margin-bottom: 6px; }

.breadcrumb { font-size: .84rem; color: var(--muted-2); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h5 { font-family: var(--font-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 15px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: var(--muted); font-size: .92rem; }
.footer-grid a:hover { color: var(--brand); }
.footer-about p { font-size: .92rem; margin-top: 14px; max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 42px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--muted-2); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th, table.data td { padding: 13px 17px; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { font-family: var(--font-head); color: var(--text); background: var(--surface); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
table.data td { color: var(--muted); }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .split, .split.reverse .split-media { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-3, .grid-4, .video-grid, .video-grid.cols-3, .product-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .statband .grid-4 { grid-template-columns: 1fr 1fr; }
  .statband .stat:nth-child(2) { border-right: 0; }
  .statband .stat { border-bottom: 1px solid var(--border); }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 14px; gap: 4px;
    transform: translateY(-130%); transition: transform .3s; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--surface); margin: 6px 0 6px 14px; }
  .nav-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .video-grid, .video-grid.cols-3, .product-grid, .statband .grid-4 { grid-template-columns: 1fr; }
  .statband .stat { border-right: 0; }
  .hero-stats { gap: 22px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 40px 22px; }
}

/* ===================================================================
   v3 — custom imagery: hero backgrounds, SVG icons, blog images
   =================================================================== */
.hero::before {
  background:
    linear-gradient(rgba(18,18,18,.80), rgba(18,18,18,.92)),
    var(--hero-img, transparent) center/cover no-repeat,
    radial-gradient(680px 360px at 12% 0%, rgba(29,185,84,.12), transparent 65%),
    linear-gradient(180deg,#161616,#141414);
}
.topic-hero::before {
  background:
    linear-gradient(rgba(18,18,18,.82), rgba(18,18,18,.94)),
    var(--hero-img, transparent) center/cover no-repeat,
    radial-gradient(640px 340px at 82% 0%, rgba(29,185,84,.12), transparent 62%),
    linear-gradient(180deg,#161616,#141414);
}
/* crisp inline SVG icons (replace emoji) */
.icon svg { width: 26px; height: 26px; color: var(--brand); display:block; }
.ic svg { width: 18px; height: 18px; color: var(--brand); display:block; }
.product-media .ph svg { width: 56px; height: 56px; color: var(--muted); display:block; }
.feat-ico svg { width: 22px; height: 22px; color: var(--brand); }
/* blog imagery */
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display:block; }
.post-thumb { font-size: 0; }
.article-hero.has-img { padding: 0; overflow: hidden; border: 1px solid var(--border); }
.article-hero.has-img img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }

/* ===================================================================
   Brand wordmark — "Stacked Authority" (ADVANTAGE PLAY / NETWORK)
   =================================================================== */
.brand-stack { flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1; }
.brand-stack:hover { color: #fff; }
.brand-stack .bl1 {
  font-family: var(--font-head); font-weight: 900; font-size: 1.2rem;
  letter-spacing: -.02em; color: #fff; text-transform: uppercase; white-space: nowrap;
}
.brand-stack .bl1 .g { color: var(--brand); }
.brand-stack .bl2 {
  font-family: var(--font-head); font-weight: 700; font-size: .55rem;
  letter-spacing: .46em; color: #fff; text-transform: uppercase; padding-left: 2px;
}
.site-footer .brand-stack .bl1 { font-size: 1.25rem; }
@media (max-width: 420px){ .brand-stack .bl1 { font-size: 1.05rem; } .brand-stack .bl2 { font-size: .5rem; letter-spacing: .4em; } }

/* ===================================================================
   Books grid + Legends portraits (poker / books / legends pages)
   =================================================================== */
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.book { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.book:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.book-cover { aspect-ratio: 2/3; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover .fallback { padding: 18px; text-align: center; font-family: var(--font-head); font-weight: 800; color: var(--muted); font-size: .95rem; line-height: 1.25; }
.book-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.book-body .cat { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 700; font-family: var(--font-head); }
.book-body h3 { font-size: 1rem; margin: 6px 0 2px; line-height: 1.2; }
.book-body .author { font-size: .82rem; color: var(--muted-2); margin-bottom: 8px; }
.book-body p { font-size: .84rem; flex: 1; }
.book-body a.book-link { margin-top: 12px; font-size: .85rem; font-weight: 700; font-family: var(--font-head); color: var(--brand); display: inline-flex; align-items: center; gap: 5px; }

.legend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.legend { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .15s, border-color .15s; }
.legend:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.legend.featured { grid-column: span 1; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.legend-photo { aspect-ratio: 4/5; background: linear-gradient(160deg,#23272e,#15171c); display: grid; place-items: center; position: relative; overflow: hidden; }
.legend-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.legend-mono { font-family: var(--font-head); font-weight: 900; font-size: 3.4rem; color: var(--brand); letter-spacing: -.03em; }
.legend-photo .suit { position: absolute; bottom: 12px; right: 14px; width: 30px; height: 30px; opacity: .14; }
.legend-photo .suit svg { width: 100%; height: 100%; fill: #fff; }
.legend-body { padding: 20px; }
.legend-body .era { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 700; font-family: var(--font-head); }
.legend-body h3 { font-size: 1.18rem; margin: 4px 0 3px; }
.legend-body .disc { font-size: .82rem; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.legend-body p { font-size: .88rem; }
.legend-badges { margin-top: 13px; display: flex; gap: 6px; flex-wrap: wrap; }
.legend-badge { font-size: .68rem; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--border); border-radius: 100px; padding: 3px 10px; font-weight: 700; }
@media (max-width: 940px){ .book-grid{grid-template-columns:repeat(3,1fr);} .legend-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width: 600px){ .book-grid{grid-template-columns:repeat(2,1fr);} .legend-grid{grid-template-columns:1fr;} }

/* ===================================================================
   v4 — Home page liveliness: image discipline/resource cards,
   vivid stat band, image-backed CTA, suit watermark
   =================================================================== */
.disc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, border-color .18s, box-shadow .18s; }
.disc-card:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: 0 18px 44px -22px rgba(29,185,84,.55); }
.disc-media { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--bg-2); }
.disc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.disc-card:hover .disc-media img { transform: scale(1.07); }
.disc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,0) 42%, rgba(20,20,20,.88)); }
.disc-media .disc-tag { position: absolute; left: 16px; bottom: 12px; z-index: 1; font-family: var(--font-head); font-weight: 800; font-size: 1.18rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.disc-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.disc-body p { font-size: .92rem; flex: 1; }
.disc-body .feature-link { margin-top: 14px; }

.statband.statband-vivid { background: linear-gradient(120deg, #0c2c1a 0%, #114c2c 48%, #0e3a21 100%); border-top-color: rgba(29,185,84,.35); border-bottom-color: rgba(29,185,84,.35); position: relative; overflow: hidden; }
.statband.statband-vivid::before { content: ""; position: absolute; inset: 0; background: radial-gradient(620px 220px at 18% 0%, rgba(52,211,108,.20), transparent 60%), radial-gradient(620px 220px at 92% 130%, rgba(29,185,84,.16), transparent 60%); }
.statband.statband-vivid .container { position: relative; z-index: 1; }
.statband.statband-vivid .stat { border-right-color: rgba(255,255,255,.12); }
.statband.statband-vivid .stat b { -webkit-text-fill-color: currentColor; color: #eafff2; font-size: clamp(2.2rem, 4vw, 2.9rem); }
.statband.statband-vivid .stat span { color: #bfe9cf; }

.cta-band.cta-image { border-color: rgba(29,185,84,.45); }
.cta-band.cta-image::before { background: linear-gradient(rgba(13,13,13,.80), rgba(13,13,13,.9)), var(--cta-img) center/cover no-repeat; }

.suit-watermark { position: relative; overflow: hidden; }
.suit-watermark > .container { position: relative; z-index: 1; }
.suit-watermark::after { content: ""; position: absolute; right: -50px; top: -40px; width: 280px; height: 280px; opacity: .045; pointer-events: none; background: no-repeat center/contain; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C9 7 4 9 4 14a3.6 3.6 0 0 0 6.4 2.3C10.2 18 9.6 19.2 8.5 20h7c-1.1-.8-1.7-2-1.9-3.7A3.6 3.6 0 0 0 20 14c0-5-5-7-8-12z'/%3E%3C/svg%3E"); }

@media (max-width: 940px){ .disc-media { aspect-ratio: 16/9; } }

/* ===================================================================
   v5 — Home hero: flowing animated "aurora" background (no images)
   =================================================================== */
.hero::after {
  content: ""; position: absolute; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(29,185,84,.22), transparent 72%) 8% 18% / 46% 58% no-repeat,
    radial-gradient(closest-side, rgba(17,169,176,.17), transparent 72%) 88% 26% / 52% 60% no-repeat,
    radial-gradient(closest-side, rgba(52,211,108,.15), transparent 72%) 52% 92% / 58% 58% no-repeat;
  filter: blur(28px);
  animation: heroFlow 20s ease-in-out infinite alternate;
}
@keyframes heroFlow {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.09) rotate(1deg); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.05) rotate(-1deg); }
}
/* faint moving sheen line under the nav for a touch of motion */
.hero { isolation: isolate; }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }

/* v6 — discipline cards: partner-logo variant + brand photo variant */
.disc-logo { aspect-ratio: 16/10; display: grid; place-items: center; padding: 30px 26px; overflow: hidden; }
.disc-logo img { max-height: 82px; max-width: 80%; width: auto; object-fit: contain; transition: transform .4s ease; }
.disc-card:hover .disc-logo img { transform: scale(1.05); }
.disc-logo .disc-fallback { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.disc-photo { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); }
.disc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; transition: transform .5s ease; }
.disc-card:hover .disc-photo img { transform: scale(1.06); }
.disc-body h3 { margin-bottom: 8px; font-size: 1.18rem; }

/* app-icon treatment for product-icon cards (e.g. Casino Tracker Pro) */
.disc-logo img.app-icon { max-height: 150px; max-width: 150px; border-radius: 26px; box-shadow: 0 10px 28px -8px rgba(0,0,0,.6); }
