/* =====================================================================
   pages/powered.css: Powered by Petcademy (/powered-by-petcademy)
   ---------------------------------------------------------------------
   Loaded on powered-by-petcademy.html only, AFTER the shared design system:
     <link rel="stylesheet" href="assets/css/pds.css">
     <link rel="stylesheet" href="assets/css/pages/powered.css">

   Same conventions as pds.css: every class starts "pds-", tokens come
   from pds.css section 1, no inline styles, no url() images. Page-only
   classes start "pds-pbp-". Breakpoints match pds.css: 1180, 1023
   (tablet), 900, 500 (phone).

   A restyle of the live page (Katie, 2026-10-13), reframed 2026-10-30
   (Katie and Bailey): the trainer support plus an AI trainer (PB8). Built
   from shared components, reused unchanged:
     page hero         .pds-org-hero (8.1): H1, purple benefit line, lede
     product cards     .pds-feature (6.8)
     big numbers       .pds-panel-dark (6.9) + .pds-bignums (8.3)
     numbered steps    .pds-tiles + .pds-steps (6.18, 6.23)
     icon cards        .pds-caretypes / .pds-caretype (8.5)
     FAQ               .pds-faq, .pds-acc (6.14, 8.10)
     final CTA         .pds-cta-band--pets (6.15)
   What lives here is only what this page adds (in page order):

     PB1 Hero: the live screenshot, cropped at the bottom  .pds-pbp-hero (__visual, __glow, __shot)
     PB2 The question: the intro + the mid-page band      .pds-pbp-question
     PB8 Two ways: trainers or the AI trainer, two cards  .pds-pbp-ways (__grid)  (added 2026-10-30, after PB2 on the page)
     PB3 Real support: three product cards with pictures   .pds-pbp-support (__grid)
     PB4 Results: no panel title, the closing line instead .pds-pbp-bignums (__close)
     PB5 Fully customizable: wide picture + caption        .pds-pbp-custom (__shot, __caption)
     PB6 Steps and Built for: spacing, the centred row     .pds-pbp-steps (__foot), .pds-pbp-built (__grid)
     PB7 Final CTA: the headline's wider measure          .pds-pbp-cta
   ===================================================================== */


/* ---------------------------------------------------------------------
   PB1. Hero: the organization-page hero (pds.css 8.1) with the live
   screenshot (a phone in a sample partner brand, transparent PNG) in
   place of the dashboard and phone mocks, treated as on the live page
   (Katie, 2026-10-23): the phone is large, so its screen is readable,
   and it runs off the panel's bottom edge. The visual is a fixed-height
   window at the bottom of the panel (no bottom padding there) with the
   phone at its top, so the panel cuts the phone after the trainer's
   reply. A soft purple 100 blob sits behind it. No "Trusted by" card.
   The copy column is wider than on the organization pages, so the live
   headline and lede (longer than those pages' slots) keep a readable
   measure without being trimmed; it stays vertically centred.
   --------------------------------------------------------------------- */
.pds-pbp-hero { --pds-proof-overlap: 0px; --pds-pbp-shot: clamp(380px, 33vw, 480px); }
.pds-pbp-hero .pds-org-hero__panel { padding-bottom: 0; }
.pds-pbp-hero .pds-org-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
.pds-pbp-hero .pds-org-hero__copy { align-self: center; max-width: 660px; padding-bottom: clamp(36px, 3.6vw, 52px); }
.pds-pbp-hero .pds-org-hero__lede { max-width: 50ch; }
.pds-pbp-hero__visual {
  position: relative; display: flex; justify-content: center; align-items: flex-start;
  height: calc(var(--pds-pbp-shot) * 1.4); overflow: hidden; /* the phone's top two thirds: just past the reply's lesson link */
}
.pds-pbp-hero__glow {
  position: absolute; left: 50%; top: 16%; width: calc(var(--pds-pbp-shot) * 1.08); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; background: var(--pds-purple-100); opacity: .42;
}
.pds-pbp-hero__shot { position: relative; flex: none; width: var(--pds-pbp-shot); height: auto; }

@media (max-width: 1023px) { /* stacked, as on the organization pages (this page's two columns above outrank pds.css 8.1's reset) */
  .pds-pbp-hero { --pds-pbp-shot: 360px; }
  .pds-pbp-hero .pds-org-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .pds-pbp-hero .pds-org-hero__copy { padding-bottom: 8px; }
}
@media (max-width: 500px) {
  .pds-pbp-hero { --pds-pbp-shot: min(300px, calc(100vw - 64px)); }
}


/* ---------------------------------------------------------------------
   PB2. The question they can't ask you: laid out like the organization
   pages (Bailey, 2026-10-29). The H2 and the two live paragraphs are a
   left-aligned section head, as the challenge intro; the live pull line
   is the deep purple mid-page band (pds.css 6.15 --mid), the section's
   full-width bottom edge, as on How Petcademy helps (pages/solutions.css
   S5). No button in the band.
   --------------------------------------------------------------------- */
.pds-pbp-question { padding-bottom: 0; } /* the band is the section's bottom edge */
.pds-pbp-question .pds-sec-head { margin-bottom: 0; }
.pds-pbp-question .pds-lede + .pds-lede { margin-top: 1em; }
.pds-pbp-question .pds-cta-band--mid { margin-top: calc(var(--pds-section-y) * .8); }


/* ---------------------------------------------------------------------
   PB3. Real support, not another article library: the shared product
   cards (pds.css 6.8) three across, each with its live screenshot rising
   from the bottom of the card's lavender picture area (the screenshots
   are transparent PNGs with their own soft shadow). One column, centred,
   from 900px down.
   --------------------------------------------------------------------- */
.pds-pbp-support__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pds-grid-gap); }
.pds-pbp-support .pds-feature__visual { min-height: 0; justify-content: flex-end; padding: 28px 24px 0; }
.pds-pbp-support .pds-feature__visual img { width: min(100%, 300px); height: auto; }
.pds-pbp-support .pds-feature__body p { text-wrap: pretty; }

@media (max-width: 900px) {
  .pds-pbp-support__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}
@media (max-width: 500px) {
  .pds-pbp-support .pds-feature__visual { padding: 20px 16px 0; }
  .pds-pbp-support .pds-feature__visual img { width: min(100%, 260px); }
}


/* ---------------------------------------------------------------------
   PB4. We know this works: the big-numbers panel (pds.css 8.3) without
   its title (the live H2 is too long for that column, so it heads the
   section above the panel). The live closing line takes the title's
   place, beside the four figures, as a large statement in white; in the
   source it follows the figures, as on the live page. Wider labels, so
   the long 2.1x label takes three lines, not four.
   --------------------------------------------------------------------- */
.pds-pbp-bignums { grid-template-areas: "foot nums"; }
.pds-pbp-bignums .pds-bignums__foot { align-self: center; }
.pds-pbp-bignums .pds-bignum__label { max-width: 32ch; }
.pds-pbp-bignums__close {
  font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); font-weight: 500; line-height: 1.4; letter-spacing: -.015em;
  color: #fff; text-wrap: pretty;
}

@media (max-width: 1180px) {
  .pds-pbp-bignums { grid-template-areas: "nums" "foot"; }
  .pds-pbp-bignums .pds-bignums__foot { padding-top: 28px; border-top: 1px solid var(--pds-line-dark); }
}
@media (max-width: 500px) {
  .pds-pbp-bignums .pds-bignums__foot { padding-top: 22px; }
}


/* ---------------------------------------------------------------------
   PB5. Fully customizable: the live web-and-app picture (a transparent
   PNG), with the live caption under it as a small centred caption, its
   last line ("Fully customizable.") in deep purple (Katie, 2026-10-23:
   smaller, and below the picture rather than in a panel above it).
   --------------------------------------------------------------------- */
.pds-pbp-custom__shot { max-width: 1120px; margin-inline: auto; }
.pds-pbp-custom__shot img { width: 100%; height: auto; margin-block: -2% -2.6%; } /* the PNG's transparent top and bottom margins (% of its width) */
.pds-pbp-custom__caption {
  position: relative; max-width: 96ch; margin: clamp(16px, 2vw, 24px) auto 0; text-align: center; text-wrap: balance;
  font-size: .9375rem; line-height: 1.55; color: var(--pds-muted);
}
.pds-pbp-custom__caption strong { font-weight: 700; color: var(--pds-deep); }


/* ---------------------------------------------------------------------
   PB6. Live in your product + Built for anyone whose customers have pets
   - Steps: the shared numbered steps (pds.css 6.23), the live button
     under them.
   - Built for: the shared icon cards (pds.css 8.5) on a 6-column grid,
     each card two columns wide, so the five cards make a row of three
     and a centred row of two, every card the same size. Stacked from
     900px down, as the shared cards are.
   --------------------------------------------------------------------- */
.pds-pbp-steps .pds-sec-head { margin-bottom: clamp(32px, 3.6vw, 48px); }
.pds-pbp-steps__foot { margin-top: clamp(32px, 3.6vw, 48px); }

.pds-pbp-built__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 0; }
.pds-pbp-built__grid > .pds-caretype { grid-column: span 2; }
.pds-pbp-built__grid > .pds-caretype:nth-child(4) { grid-column: 2 / span 2; }
.pds-pbp-built__grid p { text-wrap: pretty; }

@media (max-width: 900px) {
  .pds-pbp-built__grid { grid-template-columns: minmax(0, 1fr); }
  .pds-pbp-built__grid > .pds-caretype,
  .pds-pbp-built__grid > .pds-caretype:nth-child(4) { grid-column: auto; }
}
@media (max-width: 500px) {
  /* Stacked steps stay the same size (pds.css 6.18), but these live step texts differ in length, so each tile's
     numeral, title and line sit at its top instead of spreading out to fill the tallest tile's height. */
  .pds-pbp-steps .pds-step { align-content: start; }
  .pds-pbp-steps__foot .pds-btn { width: 100%; }
}


/* ---------------------------------------------------------------------
   PB7. Final CTA: the shared band (pds.css 6.15). The live headline is
   a little longer than the band's other titles, so its measure widens to
   keep it to two lines on laptops.
   --------------------------------------------------------------------- */
.pds-pbp-cta .pds-cta-band__title { max-width: 24ch; }


/* ---------------------------------------------------------------------
   PB8. Two ways to bring Petcademy to your members (2026-10-30): the
   shared icon cards (pds.css 8.5) two across, each with three checks and
   a link. Each card spans four rows of the grid (subgrid: head, line,
   checks, link), so the lists and links line up across the two cards.
   Stacked from 900px down, as the shared cards are.
   --------------------------------------------------------------------- */
.pds-pbp-ways__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.pds-pbp-ways__grid > .pds-caretype { grid-row: span 4; }
.pds-pbp-ways__grid p { text-wrap: pretty; }
.pds-pbp-ways__grid .pds-checks { gap: 10px; }
@media (max-width: 900px) {
  .pds-pbp-ways__grid { grid-template-columns: minmax(0, 1fr); }
}
