/* AFM Videos — design system
   Palette: deep navy chrome (lets multicolored covers pop), red for
   buy/action, gold for membership/premium accents. */
:root {
  --c-bg: #f6f7f9;
  --c-surface: #ffffff;
  --c-ink: #14202e;
  --c-muted: #5a6878;
  --c-navy: #0c2340;        /* primary brand */
  --c-navy-2: #16365c;      /* hover / gradient partner */
  --c-red: #c8102e;         /* CTA / buy */
  --c-red-2: #a30d26;
  --c-gold: #ffb81c;        /* premium / membership */
  --c-line: #dbe1e8;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(12, 35, 64, 0.14);
  --shadow-lg: 0 6px 24px rgba(12, 35, 64, 0.16);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.55;
}
a { color: var(--c-navy-2); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }

/* ---------- Header (white bar, 2026-10 redesign) ---------- */
.site-header {
  background: #fff;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 1px 2px rgba(12, 35, 64, 0.06);
  position: relative; z-index: 20;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 66px;
  flex-wrap: wrap;
  padding: 0.4rem 0;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand .logo { height: 42px; width: auto; display: block; }
.main-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.main-nav a, .header-actions a {
  color: var(--c-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
}
.main-nav a:hover, .header-actions a:hover { color: var(--c-red); }
.header-actions { margin-left: auto; display: flex; gap: 1.1rem; align-items: center; }
.hdr-link { display: inline-flex; align-items: center; gap: 0.35rem; position: relative; }
.cart-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--c-red); color: #fff; font-size: 0.7rem; font-weight: 800;
  margin-left: 0.15rem; line-height: 1;
}
.cart-link .cart-badge { position: absolute; top: -9px; right: -12px; margin: 0; }

.search-form { display: flex; }
.search-form input {
  border: 1px solid var(--c-line); border-right: none; border-radius: 6px 0 0 6px; padding: 0.45rem 0.8rem;
  min-width: 230px; font-size: 0.9rem; background: var(--c-bg); color: var(--c-ink);
}
.search-form input:focus { outline: 2px solid var(--c-navy-2); outline-offset: -1px; }
.search-form button {
  border: none; border-radius: 0 6px 6px 0; padding: 0.45rem 0.75rem;
  background: var(--c-red); color: #fff; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center;
}

/* dropdown menus */
.nav-item { position: relative; display: inline-flex; align-items: center; gap: 0.15rem; }
.menu-btn { background: none; border: none; padding: 0.2rem; color: var(--c-navy); cursor: pointer; display: inline-flex; border-radius: 4px; }
.menu-btn:hover { color: var(--c-red); }
.nav-item .menu {
  position: absolute; top: calc(100% + 0.7rem); left: -0.6rem; min-width: 220px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 0.45rem 0; display: none; z-index: 30;
}
.nav-item .menu::before { content: ''; position: absolute; left: 0; right: 0; top: -0.8rem; height: 0.8rem; }
.nav-item .menu a { display: block; padding: 0.5rem 1rem; font-size: 0.92rem; color: var(--c-ink); font-weight: 500; }
.nav-item .menu a:hover { background: var(--c-bg); color: var(--c-navy); }
.nav-item .menu .menu-all { border-top: 1px solid var(--c-line); margin-top: 0.3rem; padding-top: 0.6rem; font-weight: 700; color: var(--c-red); }
.nav-item.open .menu { display: block; }
.nav-item.open .menu-btn svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .nav-item.has-menu:hover .menu { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  border-radius: 8px; font-weight: 700; padding: 0.65rem 1.3rem; font-size: 1rem;
  transition: background 0.15s ease;
}
.btn-buy { background: var(--c-red); color: #fff; }
.btn-buy:hover { background: var(--c-red-2); }
.btn-navy { background: var(--c-navy); color: #fff; }
.btn-navy:hover { background: var(--c-navy-2); }
.btn-gold { background: var(--c-gold); color: var(--c-navy); }
.btn-outline {
  background: transparent; color: var(--c-navy);
  border: 2px solid var(--c-navy);
}
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.8); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-gold:hover { background: #ffc740; }

/* ---------- Hero ---------- */
.hero {
  /* photo subject sits right; gradient keeps the left text column readable */
  background:
    linear-gradient(95deg, rgba(12, 35, 64, 0.94) 0%, rgba(12, 35, 64, 0.78) 42%,
      rgba(12, 35, 64, 0.25) 72%, rgba(12, 35, 64, 0.05) 100%),
    var(--c-navy) url('../img/afm-videos-hero.jpg') right center / cover no-repeat;
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 3.5rem 2.25rem;
  margin: 1.5rem 0 2rem;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero h1 { margin: 0 0 0.6rem; font-size: 2.1rem; max-width: 24ch; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
.hero p { margin: 0 0 1.25rem; color: #d6e0ec; max-width: 54ch; font-size: 1.05rem; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- Product grid ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 2rem 0 1rem;
}
.section-head h2 { margin: 0; font-size: 1.45rem; }
.section-head a { font-weight: 600; font-size: 0.92rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1.1rem;
}
.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card a.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.card-media {
  aspect-ratio: 2 / 3; background: #ffffff; position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-bottom: 1px solid var(--c-line);
}
.card-media .cover {
  width: 100%; height: 100%; object-fit: contain; padding: 12px;
}
.badge {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  background: var(--c-navy); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.4px;
  padding: 0.2rem 0.55rem; border-radius: 999px; text-transform: uppercase;
}
.badge.stream { background: var(--c-red); }
.card-body { padding: 0.8rem 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.card-title { font-weight: 700; font-size: 0.98rem; margin: 0; }
.card-author { color: var(--c-muted); font-size: 0.85rem; margin: 0; }
.card-price { margin-top: auto; font-weight: 800; font-size: 1.05rem; color: var(--c-navy); }
.card-price .was { color: var(--c-muted); text-decoration: line-through; font-weight: 500; font-size: 0.85rem; margin-left: 0.4rem; }

/* ---------- Product detail ---------- */
.product-page { display: grid; grid-template-columns: minmax(300px, 5fr) 4fr; gap: 2rem; margin-top: 1.5rem; }
@media (max-width: 820px) { .product-page { grid-template-columns: 1fr; } }
.product-media video, .product-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #000;
}
.product-info h1 { margin: 0 0 0.4rem; font-size: 1.7rem; }
.product-info .byline { color: var(--c-muted); margin: 0 0 1rem; }
.price-block { margin: 1rem 0; }
.price-block .price { font-size: 1.9rem; font-weight: 800; color: var(--c-navy); }
.price-block .sub-price { color: var(--c-red); font-weight: 700; }
.crumbs { font-size: 0.85rem; color: var(--c-muted); margin: 1rem 0 0; }
.crumbs a { color: var(--c-muted); }

/* ---------- Split layouts (cart, checkout) ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 2rem;
  align-items: start;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Misc ---------- */
.pagination { display: flex; gap: 0.4rem; margin: 2rem 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 0.4rem 0.8rem; border-radius: 6px; text-decoration: none;
  border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-navy);
}
.pagination .current { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.pagination .disabled { color: var(--c-muted); opacity: 0.5; }
.pagination .gap { border: none; background: none; padding: 0.4rem 0.3rem; color: var(--c-muted); }
.pg-summary { color: var(--c-muted); font-size: 0.9rem; margin: 0.4rem 0 0.2rem; }

.category-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.category-tile {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow); text-decoration: none; color: inherit;
}
.category-tile h3 { margin: 0 0 0.4rem; color: var(--c-navy); }
.category-tile ul { margin: 0; padding-left: 1.1rem; color: var(--c-muted); font-size: 0.9rem; }

.placeholder-note {
  border-left: 4px solid var(--c-gold);
  background: var(--c-surface);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
}
.error-page { padding: 3rem 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a1a2f;
  color: #b9c6d6;
  margin-top: 3rem;
  padding: 1.6rem 0 1.4rem;
  font-size: 0.9rem;
}
.site-footer a { color: #dce6f1; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--c-gold); }
.footer-top { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-logo .logo { height: 34px; width: auto; display: block; background: #fff; border-radius: 6px; }
.footer-tag { font-family: 'Caveat', 'Segoe Script', cursive; font-size: 1.25rem; color: var(--c-gold); line-height: 1.1; }
.footer-top nav { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-left: auto; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); }
.footer-social a:hover { background: var(--c-red); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 0.9rem; font-size: 0.82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 1rem; }
.footer-bottom nav a { font-weight: 500; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-grid aside { order: -1; }
}
@media (max-width: 760px) {
  .header-row { gap: 0.6rem 1rem; padding: 0.6rem 0 0.8rem; }
  .brand .logo { height: 36px; }
  .header-actions { margin-left: auto; gap: 0.8rem; }
  .main-nav { order: 3; width: 100%; gap: 0.9rem; justify-content: space-between; }
  .main-nav a { font-size: 0.9rem; }
  .search-form { order: 4; width: 100%; }
  .search-form input { flex: 1; min-width: 0; }
  .hero {
    /* full-width text on small screens: flatten the overlay for legibility */
    background:
      linear-gradient(rgba(12, 35, 64, 0.88), rgba(12, 35, 64, 0.88)),
      var(--c-navy) url('../img/afm-videos-hero.jpg') center / cover no-repeat;
    padding: 1.8rem 1.3rem;
    min-height: 0;
  }
  .hero h1 { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero .btn { display: block; text-align: center; margin: 0; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
  .card-title { font-size: 0.9rem; }
  .section-head { flex-wrap: wrap; }
  table { font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Listing pages: toolbar, list view, category copy, FAQ ---------- */
.listing-head { align-items: flex-start; margin-top: 1rem; }
.listing-head h1 { margin: 0; font-size: 1.6rem; }
.listing-sub { margin: 0.2rem 0 0; color: var(--c-muted); }
.listing-count { color: var(--c-muted); font-size: 0.9rem; white-space: nowrap; padding-top: 0.5rem; }
.crumbs { margin: 1rem 0 0; }
.crumbs span { color: var(--c-ink); }
.cat-intro { max-width: 78ch; margin: 0 0 1.1rem; }
.cat-intro p { margin: 0 0 0.7rem; }
.cat-intro ul { margin: 0 0 0.7rem; padding-left: 1.2rem; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0 0 1.2rem; }
.cat-chips-label { color: var(--c-muted); font-size: 0.85rem; margin-right: 0.2rem; }
.chip {
  display: inline-flex; gap: 0.35rem; align-items: center;
  padding: 0.25rem 0.75rem; border: 1px solid var(--c-line); border-radius: 999px;
  background: var(--c-surface); text-decoration: none; font-size: 0.85rem; font-weight: 600; color: var(--c-navy);
}
.chip span { color: var(--c-muted); font-weight: 500; }
.chip:hover { border-color: var(--c-navy); }

.listing-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center;
  margin: 0.4rem 0 1rem; padding: 0.6rem 0.8rem;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
}
.listing-toolbar .pagination { margin: 0 0 0 auto; gap: 0.3rem; }
.listing-toolbar .pagination a, .listing-toolbar .pagination span { padding: 0.3rem 0.6rem; font-size: 0.88rem; }
.sort-form { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; font-size: 0.9rem; color: var(--c-muted); }
.sort-form label { display: inline-flex; gap: 0.4rem; align-items: center; }
.sort-form select {
  font: inherit; padding: 0.35rem 0.5rem; border: 1px solid var(--c-line); border-radius: 6px;
  background: var(--c-surface); color: var(--c-ink);
}
.view-toggle { display: inline-flex; border: 1px solid var(--c-line); border-radius: 6px; overflow: hidden; background: var(--c-surface); }
.view-btn { border: none; background: none; padding: 0.45rem 0.65rem; cursor: pointer; color: var(--c-muted); display: inline-flex; }
.view-btn:hover { color: var(--c-navy); }
.view-btn.active { background: var(--c-navy); color: #fff; }

.card-snippet {
  margin: 0; color: var(--c-muted); font-size: 0.82rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.product-list { display: flex; flex-direction: column; gap: 0.8rem; }
.product-list .product-card:hover { transform: none; }
.product-list .product-card a.card-link { flex-direction: row; align-items: stretch; }
.product-list .card-media {
  flex: 0 0 150px; width: 150px; aspect-ratio: auto; min-height: 170px;
  border-bottom: none; border-right: 1px solid var(--c-line);
}
.product-list .card-body { padding: 0.9rem 1.2rem; gap: 0.35rem; }
.product-list .card-title { font-size: 1.08rem; }
.product-list .card-snippet { -webkit-line-clamp: 4; font-size: 0.9rem; max-width: 80ch; }
.product-list .card-price { margin-top: 0.5rem; }
.listing-foot { display: flex; justify-content: center; }

.faq-block { margin: 2.5rem 0 0; max-width: 80ch; }
.faq-block h2 { font-size: 1.35rem; margin: 0 0 0.8rem; }
.faq-block details {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px;
  padding: 0.75rem 1.1rem; margin-bottom: 0.6rem;
}
.faq-block summary { cursor: pointer; font-weight: 700; }
.faq-block .faq-a { padding-top: 0.6rem; }
.faq-block .faq-a p { margin: 0 0 0.6rem; }

@media (max-width: 760px) {
  .listing-toolbar .pagination { margin-left: 0; }
  .product-list .card-media { flex-basis: 100px; width: 100px; min-height: 120px; }
  .product-list .card-body { padding: 0.7rem 0.9rem; }
  .product-list .card-snippet { -webkit-line-clamp: 3; font-size: 0.85rem; }
  .card-snippet { display: none; }
  .product-list .card-snippet { display: -webkit-box; }
}

/* ---------- Home page: hubs, trust block, CTA band ---------- */
.home-hubs { margin-top: 0.5rem; }
.category-tile p { margin: 0.35rem 0 0; color: var(--c-muted); font-size: 0.9rem; line-height: 1.45; }
.tile-count { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--c-bg); border: 1px solid var(--c-line); color: var(--c-muted); font-size: 0.78rem; font-weight: 600; vertical-align: middle; }
.trust { margin-top: 2.5rem; }
.trust h2 { font-size: 1.45rem; margin: 0 0 1rem; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.trust-item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.trust-item h3 { margin: 0 0 0.4rem; font-size: 1.02rem; color: var(--c-navy); }
.trust-item p { margin: 0; color: var(--c-ink); font-size: 0.93rem; line-height: 1.55; }
.cta-band { margin-top: 2.5rem; padding: 2rem 1.5rem; border-radius: var(--radius); text-align: center; color: #fff; background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 100%); box-shadow: var(--shadow-lg); }
.cta-band h2 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.cta-band p { margin: 0 auto 1.1rem; max-width: 60ch; color: #d6e0ec; }
.faq-more { margin: 0.8rem 0 0; color: var(--c-muted); font-size: 0.92rem; }

/* ---------- Mobile menu (hamburger) ---------- */
.nav-toggle, .cart-mobile { display: none; }
.site-nav { display: contents; }
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; align-items: center; }
  .cart-mobile { display: inline-block; margin-left: auto; color: var(--c-navy); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; margin-left: 0.9rem;
    background: var(--c-bg); border: 1px solid var(--c-line); color: var(--c-navy);
    border-radius: 8px; padding: 0.4rem 0.7rem; font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer;
  }
  .nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 3px; }
  .nav-toggle-bars i { display: block; width: 18px; height: 2px; background: var(--c-navy); border-radius: 2px; }
  .site-nav { display: none; flex-direction: column; width: 100%; order: 10; padding: 0.6rem 0 0.4rem; border-top: 1px solid var(--c-line); margin-top: 0.4rem; }
  .site-nav.open { display: flex; }
  .site-nav .main-nav { order: 0; width: 100%; flex-direction: column; gap: 0; justify-content: flex-start; align-items: stretch; }
  .site-nav .main-nav > a, .site-nav .nav-item > a { display: block; flex: 1; padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--c-line); font-size: 1rem; }
  .site-nav .nav-item { display: flex; flex-wrap: wrap; align-items: center; }
  .site-nav .menu-btn { padding: 0.6rem; }
  .site-nav .nav-item .menu { position: static; width: 100%; box-shadow: none; border: none; border-radius: 0; background: var(--c-bg); padding: 0.2rem 0 0.4rem; }
  .site-nav .nav-item .menu a { padding: 0.5rem 1.2rem; border-bottom: none; }
  .site-nav .header-actions { order: 1; width: 100%; margin: 0.6rem 0 0; flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .site-nav .search-form { order: 0; width: 100%; }
  .site-nav .header-actions > a { padding: 0.5rem 0.2rem; }
  .site-nav .cart-link { display: none; }
}

/* ---------- Digital systems: product page + member files page ---------- */
.included { margin: 1.2rem 0; padding: 1rem 1.1rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.included h2 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.included ul { margin: 0; padding: 0; list-style: none; }
.included li { padding: 0.3rem 0; border-bottom: 1px solid var(--c-line); font-size: 0.92rem; display: flex; gap: 0.5rem; align-items: baseline; }
.included li:last-child { border-bottom: none; }
.included-kind { flex: 0 0 auto; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #fff; background: var(--c-navy); border-radius: 999px; padding: 0.1rem 0.5rem; }
.included-size { margin-left: auto; color: var(--c-muted); font-size: 0.8rem; white-space: nowrap; }
.included-note { margin: 0.7rem 0 0; color: var(--c-muted); font-size: 0.88rem; }
.product-about details { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px; padding: 0.7rem 1rem; margin: 0 0 0.5rem; }
.product-about summary { cursor: pointer; font-weight: 700; }
.product-about details p { margin: 0.5rem 0 0; }
.system-head { display: flex; gap: 1.5rem; align-items: flex-start; margin: 1rem 0 1.5rem; }
.system-cover { width: 120px; flex: 0 0 120px; border-radius: 8px; box-shadow: var(--shadow); }
.system-section { margin-top: 1.8rem; }
.system-section h2 { font-size: 1.3rem; margin: 0 0 0.8rem; }
.system-meta { color: var(--c-muted); font-size: 0.85rem; font-weight: 500; }
.system-doc { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: space-between; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: 0.7rem; }
.system-doc-info { display: flex; flex-direction: column; gap: 0.15rem; }
.system-doc-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.system-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.system-video { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 0.8rem 0.9rem; box-shadow: var(--shadow); }
.system-video h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.system-video video { width: 100%; border-radius: 8px; background: #000; aspect-ratio: 16 / 9; }
.system-video-foot { display: flex; justify-content: space-between; margin-top: 0.4rem; font-size: 0.85rem; }
@media (max-width: 600px) { .system-head { flex-direction: column; } .system-cover { width: 90px; flex-basis: 90px; } }

/* ======================================================================
   HOME PAGE (2026-10 redesign from D:\AFMVideos mockup)
   Sections are full-bleed; `.home` replaces the main container.
   ====================================================================== */
.home { overflow-x: clip; }
.hsec { padding: 2.4rem 0 0.4rem; }
.hsec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1.1rem; flex-wrap: wrap; }
.hsec-head h2 { margin: 0; font-size: 1.5rem; color: var(--c-navy); }
.hsec-head a { font-weight: 700; font-size: 0.9rem; color: var(--c-red); text-decoration: none; }
.hsec-head a:hover { text-decoration: underline; }

/* hero */
.hhero {
  color: #fff;
  background:
    linear-gradient(95deg, rgba(10, 26, 47, 0.96) 0%, rgba(10, 26, 47, 0.86) 38%, rgba(10, 26, 47, 0.35) 66%, rgba(10, 26, 47, 0.15) 100%),
    #0a1a2f url('../img/afm-videos-hero.jpg') 70% center / cover no-repeat;
}
.hhero-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 440px; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.hhero-copy { max-width: 600px; }
.hhero h1 { margin: 0 0 0.9rem; font-size: 2.6rem; line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
.hhero h1 span { color: var(--c-gold); }
.hhero p { margin: 0 0 1.4rem; font-size: 1.04rem; color: #dbe4ef; max-width: 56ch; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.hhero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hhero-tag {
  font-family: 'Caveat', 'Segoe Script', cursive; font-size: 2.1rem; line-height: 1.05; font-weight: 700;
  display: flex; flex-direction: column; align-items: flex-end; text-align: right;
  transform: rotate(-6deg); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); flex: 0 0 auto;
}
.hhero-tag span:last-child { position: relative; }
.hhero-tag span:last-child::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--c-red); border-radius: 2px; transform: rotate(-1deg); }

/* trust strip */
.hstrip { background: #fff; border-bottom: 1px solid var(--c-line); }
.hstrip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.hstrip-item { display: flex; gap: 0.8rem; align-items: center; padding: 0 0.5rem; }
.hstrip-item + .hstrip-item { border-left: 1px solid var(--c-line); }
.hstrip-item svg { width: 34px; height: 34px; flex: 0 0 34px; color: var(--c-gold); }
.hstrip-item b { display: block; font-size: 0.95rem; color: var(--c-navy); }
.hstrip-item span { display: block; font-size: 0.82rem; color: var(--c-muted); line-height: 1.35; }

/* category tiles */
.htiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9rem; }
.htile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 1 / 0.92; border-radius: 12px; overflow: hidden; text-decoration: none; color: #fff;
  background-size: cover; background-position: center top; box-shadow: var(--shadow);
  isolation: isolate; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.htile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 26, 47, 0.05) 25%, rgba(10, 26, 47, 0.78) 62%, rgba(10, 26, 47, 0.96) 100%); z-index: -1; }
.htile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.htile-name { padding: 0 0.9rem; font-weight: 800; font-size: 1.2rem; line-height: 1.1; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.htile-name small { display: block; font-weight: 500; font-size: 0.74rem; color: #c9d6e6; margin-top: 0.25rem; }
.htile-arrow { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 0.6rem 0.9rem 0.9rem; border-radius: 50%; background: #fff; color: var(--c-navy); }

/* product cards */
.hcards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9rem; }
.hcard { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 0.75rem; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: box-shadow 0.15s ease, transform 0.15s ease; }
.hcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.hcard-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.hcard-media { position: relative; aspect-ratio: 2 / 3; background: #f2f4f7; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hcard-media img { width: 100%; height: 100%; object-fit: contain; }
.hcard-noimg { color: #9aa7b5; font-weight: 700; font-size: 0.8rem; }
.hbadge { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.22rem 0.55rem; border-radius: 4px; color: var(--c-navy); background: var(--c-gold); }
.hbadge.best-seller { background: var(--c-red); color: #fff; }
.hbadge.popular { background: var(--c-navy); color: #fff; }
.hcard-title { margin: 0.7rem 0 0.15rem; font-size: 0.9rem; line-height: 1.3; font-weight: 700; color: var(--c-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard-coach { margin: 0; font-size: 0.78rem; color: var(--c-muted); }
.hcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--c-line); }
.hcard-price { font-weight: 800; color: var(--c-navy); font-size: 1rem; }
.hcard-price s { color: var(--c-muted); font-weight: 500; font-size: 0.8rem; margin-left: 0.25rem; }
.hcard-foot form { margin: 0; display: flex; }
.hcart { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--c-line); background: #fff; color: var(--c-navy); cursor: pointer; text-decoration: none; }
.hcart:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }

/* membership band */
.hmember { margin-top: 2.6rem; color: #fff; background: linear-gradient(100deg, #0a1a2f 0%, #10294a 55%, #0c2340 100%); }
.hmember-in { display: grid; grid-template-columns: 260px 1fr 230px; gap: 2rem; align-items: center; padding-top: 2.2rem; padding-bottom: 2.2rem; }
.hmember-photo { align-self: stretch; min-height: 240px; border-radius: 12px; background: url('../img/home/membership-coach.jpg') center / cover no-repeat; box-shadow: var(--shadow-lg); }
.hmember-kicker { margin: 0 0 0.3rem; color: var(--c-gold); font-weight: 600; font-size: 0.95rem; }
.hmember-kicker b { color: var(--c-gold); }
.hmember h2 { margin: 0 0 0.7rem; font-size: 1.9rem; line-height: 1.15; }
.hmember-copy > p:not(.hmember-kicker) { margin: 0 0 1.2rem; color: #d6e0ec; max-width: 60ch; }
.hmember-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hmember-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; font-weight: 600; font-size: 0.95rem; }
.hmember-list li { display: flex; align-items: center; gap: 0.6rem; }
.hmember-list li::before { content: ''; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--c-gold); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23ffb81c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* why coaches trust */
.hwhy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hwhy-item { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 1.3rem 1.2rem 1.2rem; box-shadow: var(--shadow); }
.hwhy-item svg { width: 40px; height: 40px; color: var(--c-navy); margin-bottom: 0.7rem; }
.hwhy-item h3 { margin: 0 0 0.4rem; font-size: 1.02rem; color: var(--c-navy); }
.hwhy-item p { margin: 0; font-size: 0.9rem; color: var(--c-muted); line-height: 1.5; }

/* secure strip */
.hsecure { margin-top: 2.6rem; background: #0f2a4a; color: #fff; }
.hsecure-in { display: flex; align-items: center; gap: 2rem; padding-top: 1.4rem; padding-bottom: 1.4rem; flex-wrap: wrap; }
.hsecure-lead { display: flex; gap: 1rem; align-items: center; flex: 1 1 460px; }
.hsecure-lead > svg { width: 56px; height: 56px; flex: 0 0 56px; color: #fff; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.hsecure-lead h2 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.hsecure-lead p { margin: 0; font-size: 0.86rem; color: #c9d6e6; line-height: 1.5; max-width: 62ch; }
.hsecure-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; flex: 0 0 auto; }
.hsecure-list li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem; padding: 0 1.1rem; font-size: 0.74rem; font-weight: 700; line-height: 1.25; max-width: 110px; }
.hsecure-list li + li { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.hsecure-list svg { width: 26px; height: 26px; color: #fff; }

/* testimonials */
.hsay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hsay-item { margin: 0; display: flex; gap: 0.9rem; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 1.1rem; box-shadow: var(--shadow); }
.hsay-avatar { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 100%); border: 3px solid var(--c-gold); }
.hsay-stars { color: var(--c-gold); font-size: 0.95rem; letter-spacing: 0.1em; line-height: 1; margin-bottom: 0.4rem; }
.hsay-item blockquote { margin: 0 0 0.6rem; font-size: 0.88rem; line-height: 1.5; color: var(--c-ink); }
.hsay-item figcaption b { display: block; font-size: 0.9rem; color: var(--c-navy); }
.hsay-item figcaption span { font-size: 0.78rem; color: var(--c-muted); }

/* faq */
.hfaq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.2rem; align-items: start; }
.hfaq-grid details { background: #fff; border: 1px solid var(--c-line); border-radius: 8px; padding: 0.7rem 1rem; }
.hfaq-grid summary { cursor: pointer; font-weight: 700; font-size: 0.93rem; display: flex; align-items: center; gap: 0.7rem; list-style: none; }
.hfaq-grid summary::-webkit-details-marker { display: none; }
.hfaq-plus { flex: 0 0 18px; width: 18px; height: 18px; position: relative; }
.hfaq-plus::before, .hfaq-plus::after { content: ''; position: absolute; background: var(--c-navy); border-radius: 1px; }
.hfaq-plus::before { left: 2px; right: 2px; top: 8px; height: 2px; }
.hfaq-plus::after { top: 2px; bottom: 2px; left: 8px; width: 2px; transition: transform 0.15s ease; }
details[open] .hfaq-plus::after { transform: scaleY(0); }
.hfaq-grid .faq-a { padding: 0.6rem 0 0.2rem 1.85rem; font-size: 0.9rem; color: var(--c-muted); line-height: 1.5; }

/* cta band */
.hcta { margin-top: 2.6rem; background: #0a1a2f; color: #fff; }
.hcta-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.8rem; padding-bottom: 1.8rem; }
.hcta h2 { margin: 0 0 0.3rem; font-size: 1.45rem; }
.hcta p { margin: 0; color: #c9d6e6; font-size: 0.95rem; }
.hcta-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.home + .site-footer { margin-top: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }

/* responsive */
@media (max-width: 1100px) {
  .htiles { grid-template-columns: repeat(3, 1fr); }
  .hcards { grid-template-columns: repeat(3, 1fr); }
  .hwhy { grid-template-columns: repeat(2, 1fr); }
  .hstrip-in { grid-template-columns: repeat(2, 1fr); }
  .hstrip-item:nth-child(3) { border-left: none; }
  .hmember-in { grid-template-columns: 1fr 1fr; }
  .hmember-photo { grid-row: 1 / span 2; }
  .hsecure-list li { padding: 0 0.7rem; }
}
@media (max-width: 760px) {
  .hhero { background: linear-gradient(rgba(10, 26, 47, 0.9), rgba(10, 26, 47, 0.9)), #0a1a2f url('../img/afm-videos-hero.jpg') center / cover no-repeat; }
  .hhero-in { flex-direction: column; align-items: stretch; min-height: 0; padding-top: 1.8rem; padding-bottom: 1.8rem; }
  .hhero h1 { font-size: 1.75rem; }
  .hhero h1 br { display: none; }
  .hhero-actions { flex-direction: column; }
  .hhero .btn { text-align: center; }
  .hhero-tag { display: none; }
  .hstrip-in { grid-template-columns: 1fr; gap: 0.6rem; }
  .hstrip-item + .hstrip-item { border-left: none; }
  .hsec { padding-top: 1.8rem; }
  .htiles { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .hcards { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .hmember-in { grid-template-columns: 1fr; }
  .hmember-photo { grid-row: auto; min-height: 180px; }
  .hmember h2 { font-size: 1.5rem; }
  .hwhy { grid-template-columns: 1fr; }
  .hsecure-list { flex-wrap: wrap; gap: 0.8rem 0; justify-content: center; }
  .hsecure-list li { max-width: 45%; flex: 1 1 45%; }
  .hsay { grid-template-columns: 1fr; }
  .hfaq-grid { grid-template-columns: 1fr; }
  .hcta-actions { width: 100%; flex-direction: column; }
  .hcta .btn { text-align: center; }
  .footer-top nav { margin-left: 0; }
}
/* ---------- Categories index: photo cards (2026-10-11) ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; margin-top: 1.2rem; }
.cat-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card-media { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 100%) center / cover no-repeat; isolation: isolate; }
.cat-card.has-photo .cat-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 26, 47, 0) 30%, rgba(10, 26, 47, 0.85) 100%); z-index: -1; }
.cat-card-media h2 { margin: 0; padding: 0 1rem 0.85rem; color: #fff; font-size: 1.35rem; font-weight: 800; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.cat-card-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.cat-card-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.cat-card-body li { font-size: 0.8rem; color: var(--c-navy); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 999px; padding: 0.15rem 0.6rem; }
.cat-card-body li.more { color: var(--c-muted); background: transparent; border-style: dashed; }
.cat-card-body p { margin: 0; color: var(--c-muted); font-size: 0.9rem; }
.cat-card-cta { margin-top: auto; font-weight: 700; color: var(--c-red); font-size: 0.92rem; }