/* =====================================================================
   Rounds 8-9: body design system for the three pilot product pages
   (612 THE ROCK, 886 THE GAUGE, 695 FOAMING HAMMER HD).

   Page-scoped: enqueued only for those post IDs from single-products.php,
   so every selector here (including the bare av2-* hero classes) is
   unreachable from any other page. One-line rollback via the enqueue.

   Round 9 reskins to the v2 mockup: new hero below the untouched native
   banner, benefits card grid with CSS-drawn triangle markers, v2 section
   headings with green rule, FAQ card accordions, dark CTA band, mobile
   sticky CTA bar. Text colors map to existing site tokens; the v2
   mockup's own values are used only where no site token exists (hero
   glow, CTA band gradient).
   ===================================================================== */

.alok-resource.alok-product-region,
.av2-hero, .av2-benefits, .av2-ctaband, .av2-mobile-cta {
  --fh-ink: var(--alokr-black);
  --fh-text: var(--alokr-body);
  --fh-muted: var(--alokr-muted);
  --fh-green: var(--alokr-green);
  --fh-green-dk: var(--alokr-green-dark);
  --fh-line: var(--alokr-line);
  --fh-alt: var(--alokr-pale);
  --fh-warn-bg: #fdf4e8;
  --fh-warn-bd: #e6a75a;
  --fh-warn-ink: #8a4c15;
  --fh-warn-text: #6f4f2a;
  --fh-radius: 14px;
  --fh-shadow: 0 10px 30px rgba(31, 35, 32, .07);
  --fh-shadow-lg: 0 24px 60px -18px rgba(13, 31, 22, .22);
  --fh-maxw: 1180px;
  --fh-read: 760px;
  --av2-ink-deep: #0d1f16;
  --av2-ink-deep2: #12291c;
}

/* Kill the body texture behind everything below the (untouched) banner */
main#primary.site-main { background: #fff; }

/* Shared rail */
.av2-wrap { max-width: var(--fh-maxw); margin: 0 auto; padding: 0 26px; }

/* ---------------------------------------------------------------------
   Hero (v2): text left (green name, description, CTAs, quick links),
   photo card right. Sits directly under the native banner.
   --------------------------------------------------------------------- */
.av2-hero { position: relative; background: #fff; overflow: hidden; font-family: montserrat, sans-serif; }
.av2-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(13, 31, 22, .055) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(115deg, rgba(0, 0, 0, .9) 0%, transparent 55%);
  mask-image: linear-gradient(115deg, rgba(0, 0, 0, .9) 0%, transparent 55%);
}
.av2-hero::after {
  content: ""; position: absolute; top: -260px; right: -200px; width: 720px; height: 720px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 169, 79, .10) 0%, transparent 62%);
}
.av2-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.04fr .96fr; gap: 64px; align-items: center;
  padding: 56px 0 76px;
}
.av2-pname {
  font-family: montserrat, sans-serif; color: var(--fh-green);
  font-size: 25px; font-weight: 600; letter-spacing: .01em;
  margin: 0 0 14px; text-transform: uppercase;
}
.av2-lede p { font-size: 18.5px; line-height: 1.7; color: var(--fh-ink); font-weight: 400; max-width: 34em; margin: 0; }
.av2-lede p strong { font-weight: 700; }
.av2-lede p + p { font-size: 15.5px; line-height: 1.75; color: var(--fh-muted); margin-top: 16px; }

.av2-cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.av2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: montserrat, sans-serif; font-size: 14.5px; font-weight: 600;
  padding: 12px 24px; border-radius: 10px; cursor: pointer; border: none;
  transition: all .18s; white-space: nowrap; text-decoration: none;
}
.av2-btn-green { background: var(--fh-green); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(0, 169, 79, .55); }
.av2-btn-green::after { content: "\2192"; font-size: 15px; line-height: 1; transform: translateY(-.5px); }
.av2-btn-green:hover { background: var(--fh-green-dk); transform: translateY(-1px); color: #fff !important; }
.av2-btn-ghost { background: transparent; color: var(--fh-ink) !important; border: 1.5px solid var(--fh-line); }
.av2-btn-ghost:hover { border-color: var(--fh-ink); background: var(--fh-alt); }
.av2-btn-ghost-light { background: transparent; color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .35); }
.av2-btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.av2-quick-links { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.av2-quick-links a {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--fh-ink); text-decoration: none;
  transition: color .18s;
}
.av2-quick-links a:hover { color: var(--fh-green-dk); }
.av2-qarr {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--fh-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fh-green-dk); transition: all .18s; flex: 0 0 auto;
}
.av2-qarr::before { content: "\2197"; font-size: 11px; line-height: 1; }
.av2-quick-links a:hover .av2-qarr { border-color: var(--fh-green); background: #e6f6ec; }

.av2-hero-visual { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.av2-hero-frame {
  position: absolute; top: 26px; left: 26px; right: -22px; bottom: -22px;
  border: 2px solid #e6f6ec; border-radius: 26px;
  background: linear-gradient(160deg, #e6f6ec 0%, transparent 55%);
  z-index: 0;
}
.av2-hero-photo {
  position: relative; z-index: 1; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--fh-line); box-shadow: var(--fh-shadow-lg); background: #fff;
}
.av2-hero-photo img, .av2-hero-photo picture, .av2-hero-photo picture img {
  display: block; width: 100%; height: auto; border: 0; box-shadow: none; border-radius: 0;
}
.av2-hero-thumb {
  position: absolute; z-index: 2; left: -34px; bottom: -30px;
  width: 128px; height: 128px; border-radius: 16px; overflow: hidden;
  border: 4px solid #fff; box-shadow: var(--fh-shadow); background: #fff;
  transition: transform .2s; display: block;
}
.av2-hero-thumb:hover { transform: scale(1.05) rotate(-1deg); }
.av2-hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }

/* ---------------------------------------------------------------------
   Benefits: the existing product_details UL as a two-column card grid.
   Markers are CSS-drawn green triangles echoing the native bullets.
   --------------------------------------------------------------------- */
.av2-benefits { background: var(--fh-alt); border-top: 1px solid var(--fh-line); border-bottom: 1px solid var(--fh-line); font-family: montserrat, sans-serif; }
.av2-benefits-list ul {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px;
  padding: 56px 0; margin: 0; list-style: none;
}
.av2-benefits-list ul li {
  position: relative; background: #fff; border: 1px solid var(--fh-line); border-radius: 14px;
  padding: 18px 22px 18px 56px; margin: 0;
  font-size: 15px; font-weight: 500; color: var(--fh-ink); line-height: 1.5;
  list-style: none; list-style-image: none; transition: all .18s;
}
.av2-benefits-list ul li::before {
  content: ""; position: absolute; left: 22px; top: 22px;
  width: 0; height: 0;
  border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-bottom: 16px solid var(--fh-green);
}
.av2-benefits-list ul li:hover { border-color: rgba(0, 169, 79, .45); box-shadow: var(--fh-shadow); transform: translateY(-2px); }

/* ---------------------------------------------------------------------
   Region bands: v2 section skin over the round 8 structure.
   --------------------------------------------------------------------- */
.alok-resource.alok-product-region { max-width: none; width: 100%; margin: 0; padding: 0; }
.alok-resource.alok-product-region .resource-copy {
  max-width: none; width: 100%; margin: 0; padding: 0;
  font-size: 16.5px; line-height: 1.7; color: var(--fh-text);
}
@media screen and (max-width: 1024px) {
  .alok-resource.alok-product-region .resource-copy { width: 100%; padding: 0; }
}
.alok-resource.alok-product-region .fh-band { background: #fff; padding: 76px 0; }
.alok-resource.alok-product-region .fh-band--alt { background: var(--fh-alt); border-top: 1px solid var(--fh-line); border-bottom: 1px solid var(--fh-line); }
.alok-resource.alok-product-region .fh-band:last-child { padding-bottom: 84px; border-bottom: 0; }
.alok-resource.alok-product-region .fh-inner { max-width: var(--fh-maxw); margin: 0 auto; padding: 0 26px; }
.alok-resource.alok-product-region .fh-read { max-width: var(--fh-read); }

/* v2 section headings: Oswald, larger, green rule below */
.alok-resource.alok-product-region .resource-copy .fh-band h2 {
  color: var(--fh-ink); font-family: oswald, sans-serif; font-weight: 600;
  font-size: clamp(26px, 1.2rem + 1.4vw, 38px); line-height: 1.12;
  letter-spacing: .02em; text-transform: uppercase;
  margin: 0 0 26px; padding-top: 0; position: static;
}
.alok-resource.alok-product-region .resource-copy .fh-band h2::before { content: none; }
.alok-resource.alok-product-region .resource-copy .fh-band h2::after {
  content: ""; display: block; width: 54px; height: 4px;
  background: var(--fh-green); border-radius: 2px; margin-top: 18px;
}
.alok-resource.alok-product-region .resource-copy .fh-band h2 + p { margin-top: 0; }
.alok-resource.alok-product-region .resource-copy .fh-band p { margin: 0 0 16px; }
.alok-resource.alok-product-region .resource-copy .fh-read > p:last-child { margin-bottom: 0; }
.alok-resource.alok-product-region .resource-copy .fh-band ul { margin: 0; padding-left: 20px; list-style: disc; }
.alok-resource.alok-product-region .resource-copy .fh-band ul li { margin: 0 0 10px; padding: 0; }
.alok-resource.alok-product-region .resource-copy .fh-band ul li:last-child { margin-bottom: 0; }

/* --- Comparison table card (round 8, kept) --- */
.alok-resource.alok-product-region .fh-tablecard {
  background: #fff; border: 1px solid var(--fh-line); border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow); overflow: hidden; margin-top: 8px;
}
.alok-resource.alok-product-region .fh-tablescroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.alok-resource.alok-product-region .resource-copy table.fh-cmp {
  width: 100%; min-width: 640px; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 15px;
}
.alok-resource.alok-product-region .resource-copy table.fh-cmp th,
.alok-resource.alok-product-region .resource-copy table.fh-cmp td {
  padding: 15px 18px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--fh-line); background: transparent;
}
.alok-resource.alok-product-region .resource-copy table.fh-cmp thead th {
  background: var(--fh-green); color: #fff; border-bottom: 0;
  font-family: oswald, sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: .03em; text-transform: uppercase;
}
.alok-resource.alok-product-region .resource-copy table.fh-cmp thead th:first-child { background: var(--fh-green-dk); }
.alok-resource.alok-product-region .resource-copy table.fh-cmp tbody tr:last-child td { border-bottom: 0; }
.alok-resource.alok-product-region .resource-copy table.fh-cmp tbody td:first-child {
  font-family: oswald, sans-serif; font-weight: 600; letter-spacing: .02em;
  color: var(--fh-ink); background: var(--fh-alt);
}
.alok-resource.alok-product-region .resource-copy table.fh-cmp tbody td:nth-child(2) { color: var(--fh-ink); }
.alok-resource.alok-product-region .resource-copy table.fh-cmp tbody td:last-child { color: var(--fh-muted); }

/* --- Amber warning callout (round 8, kept; CSS-drawn caution mark) --- */
.alok-resource.alok-product-region .fh-callout {
  position: relative; max-width: var(--fh-read); margin: 24px 0 0;
  padding: 18px 20px 18px 62px; border-radius: 12px;
  background: var(--fh-warn-bg); border: 1px solid var(--fh-warn-bd); border-left: 5px solid var(--fh-warn-bd);
}
.alok-resource.alok-product-region .fh-callout::before {
  content: ""; position: absolute; left: 20px; top: 21px; width: 27px; height: 24px;
  background: var(--fh-warn-ink); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.alok-resource.alok-product-region .fh-callout::after {
  content: ""; position: absolute; left: 32px; top: 31px; width: 3px; height: 7px;
  border-radius: 1.5px; background: var(--fh-warn-bg);
}
.alok-resource.alok-product-region .resource-copy .fh-callout > p::before {
  content: ""; position: absolute; left: 32px; top: 40px; width: 3px; height: 3px;
  border-radius: 50%; background: var(--fh-warn-bg);
}
.alok-resource.alok-product-region .resource-copy .fh-callout p {
  margin: 0; color: var(--fh-warn-text); font-size: 15px;
}
.alok-resource.alok-product-region .resource-copy .fh-callout p strong {
  display: block; margin-bottom: 5px; color: var(--fh-warn-ink);
  font-family: oswald, sans-serif; font-weight: 600; font-size: 16.5px; letter-spacing: .02em;
}

/* --- Side by side cards (round 8, kept) --- */
.alok-resource.alok-product-region .fh-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; align-items: start;
}
.alok-resource.alok-product-region .fh-card {
  background: #fff; border: 1px solid var(--fh-line); border-radius: var(--fh-radius);
  padding: 26px; box-shadow: var(--fh-shadow);
}
.alok-resource.alok-product-region .resource-copy .fh-card p { margin: 0; font-size: 15px; }

/* --- Quote cards (round 8, kept) --- */
.alok-resource.alok-product-region .resource-copy blockquote.fh-quote {
  max-width: var(--fh-read); margin: 0 0 18px; padding: 20px 24px;
  background: #fff; border: 1px solid var(--fh-line); border-left: 5px solid var(--fh-green);
  border-radius: 0 var(--fh-radius) var(--fh-radius) 0; box-shadow: var(--fh-shadow);
}
.alok-resource.alok-product-region .resource-copy blockquote.fh-quote:last-child { margin-bottom: 0; }
.alok-resource.alok-product-region .resource-copy blockquote.fh-quote p {
  margin: 0; font-size: 15.5px; font-style: italic; color: var(--fh-ink);
}

/* --- FAQ: v2 white card accordions --- */
.alok-resource.alok-product-region .fh-faq { max-width: 820px; margin-top: 10px; border-top: 0; }
.alok-resource.alok-product-region .fh-qa {
  background: #fff; border: 1px solid var(--fh-line); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
.alok-resource.alok-product-region .fh-qa > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; cursor: pointer; list-style: none;
}
.alok-resource.alok-product-region .fh-qa > summary::-webkit-details-marker { display: none; }
.alok-resource.alok-product-region .fh-qa > summary::marker { content: ""; }
.alok-resource.alok-product-region .resource-copy .fh-qa > summary h3 {
  margin: 0; color: var(--fh-ink); font-family: oswald, sans-serif; font-weight: 600;
  font-size: 16.5px; line-height: 1.35; letter-spacing: .02em;
}
.alok-resource.alok-product-region .resource-copy .fh-qa[open] > summary h3 { color: var(--fh-green-dk); }
.alok-resource.alok-product-region .fh-qa > summary::after {
  content: ""; flex: 0 0 auto; width: 20px; height: 20px; transition: transform .22s ease;
  background:
    linear-gradient(var(--fh-green-dk), var(--fh-green-dk)) center / 2.5px 17px no-repeat,
    linear-gradient(var(--fh-green-dk), var(--fh-green-dk)) center / 17px 2.5px no-repeat;
}
.alok-resource.alok-product-region .fh-qa[open] > summary::after { transform: rotate(45deg); }
.alok-resource.alok-product-region .fh-qa > summary:focus-visible { outline: 2px solid var(--fh-green-dk); outline-offset: 2px; }
.alok-resource.alok-product-region .resource-copy .fh-qa .fh-ans { max-width: 44em; padding: 0 24px 22px; }
.alok-resource.alok-product-region .resource-copy .fh-qa .fh-ans p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--fh-muted); }

/* --- Sizing grid (886): copy left, photo card right --- */
.alok-resource.alok-product-region .fh-sizing-grid {
  display: grid; grid-template-columns: 1fr .92fr; gap: 70px; align-items: center;
}
.alok-resource.alok-product-region .resource-copy .fh-sizing-copy p { max-width: 32em; }
.alok-resource.alok-product-region .resource-copy .fh-sizing-copy p:last-child { margin-bottom: 0; }
.alok-resource.alok-product-region .resource-copy .fh-figure {
  margin: 0; padding: 16px; max-width: none;
  background: #fff; border: 1px solid var(--fh-line); border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow);
}
.alok-resource.alok-product-region .resource-copy .fh-figure img {
  display: block; width: 100%; height: auto; margin: 0;
  border: 0; border-radius: 10px; box-shadow: none;
}

/* ---------------------------------------------------------------------
   CTA band: dark gradient, centered. Mockup's own deep-ink values;
   no site token exists for this surface.
   --------------------------------------------------------------------- */
.av2-ctaband {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--av2-ink-deep) 0%, var(--av2-ink-deep2) 100%);
  font-family: montserrat, sans-serif;
}
.av2-ctaband::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 26px 26px;
}
.av2-ctaband::after {
  content: ""; position: absolute; bottom: -300px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 169, 79, .22) 0%, transparent 65%);
}
.av2-ctaband-inner { position: relative; z-index: 1; padding: 92px 28px; }
.av2-ctaband h2 {
  font-family: oswald, sans-serif; font-weight: 700; color: #fff;
  font-size: clamp(32px, 4.4vw, 52px); letter-spacing: .02em; text-transform: uppercase;
  line-height: 1.08; max-width: 16em; margin: 0 auto;
}
.av2-ctasub { font-size: 16px; color: rgba(255, 255, 255, .72); margin: 18px 0 0; }
.av2-ctaband .av2-cta-row { justify-content: center; margin-top: 36px; }

/* ---------------------------------------------------------------------
   Mobile sticky CTA bar (<=640px). This stylesheet only loads on the
   three pilot pages, so the body padding cannot leak elsewhere.
   --------------------------------------------------------------------- */
.av2-mobile-cta { display: none; }

@media (prefers-reduced-motion: reduce) {
  .av2-btn, .av2-hero-thumb, .av2-benefits-list ul li,
  .alok-resource.alok-product-region .fh-qa > summary::after { transition: none; }
}

/* --- Narrow screens --- */
@media (max-width: 960px) {
  .av2-hero-grid { grid-template-columns: 1fr; gap: 52px; padding: 44px 0 64px; }
  .av2-hero-visual { justify-self: center; max-width: 560px; }
  .av2-hero-thumb { left: auto; right: -14px; }
  .av2-benefits-list ul { grid-template-columns: 1fr; gap: 12px; padding: 44px 0; }
  .alok-resource.alok-product-region .fh-band { padding: 52px 0; }
  .alok-resource.alok-product-region .fh-band:last-child { padding-bottom: 60px; }
  .alok-resource.alok-product-region .fh-inner { padding: 0 20px; }
  .alok-resource.alok-product-region .fh-sizing-grid { grid-template-columns: 1fr; gap: 40px; }
  .av2-ctaband-inner { padding: 64px 22px; }
}
@media (max-width: 720px) {
  .alok-resource.alok-product-region .fh-cards { grid-template-columns: 1fr; }
  .alok-resource.alok-product-region .fh-callout { padding: 16px 18px 16px 56px; }
  .alok-resource.alok-product-region .resource-copy .fh-qa > summary h3 { font-size: 15.5px; }
}
@media (max-width: 640px) {
  .av2-cta-row .av2-btn { width: 100%; }
  .av2-mobile-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; gap: 10px;
    background: rgba(13, 31, 22, .97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .av2-mobile-cta .av2-btn { flex: 1; font-size: 13.5px; padding: 12px 10px; width: auto; }
  /* body-class scoped: the theme root stylesheet loads after this file
     and resets body padding, so plain `body` loses the cascade */
  body.postid-612, body.postid-695, body.postid-949 { padding-bottom: 74px; }
}
