/* ===========================================================================
   Business Pack product page — business_plan/pack_detail.html

   A retail product-page layout, dressed for an executive audience: breadcrumb;
   gallery left and buy box right; a sticky section bar carrying a compact
   price + buy link; long-form sections below. Navy ink on white, hairline
   rules, one restrained accent (emerald) and per-tile tones.

   Everything is scoped under `.pd`. The payment picker inside the buy box is
   the shared payments/_method_picker.html, styled by static/css/checkout.css —
   nothing here restyles it.
   =========================================================================== */

.pd {
  --pd-ink: #0f172a;
  --pd-body: #334155;
  --pd-muted: #64748b;
  --pd-line: #e2e8f0;
  --pd-soft: #f8fafc;
  --pd-brand: #047857;
  --pd-brand-bright: #10b981;
  --pd-brand-tint: #ecfdf5;
  --pd-radius: 16px;
  --pd-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -18px rgba(15, 23, 42, .22);
  /* The app top bar is sticky and 78px tall; the section bar sits under it. */
  --pd-sticky-top: 86px;
  --pd-ease: cubic-bezier(.2, .8, .2, 1);

  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
  color: var(--pd-body);
}

/* Per-tile colour, resolved in PackDetailView (`tone`) or cycled in the template. */
.pd .pd-tone-blue    { --accent: #3b82f6; --tint: #eff6ff; }
.pd .pd-tone-emerald { --accent: #10b981; --tint: #ecfdf5; }
.pd .pd-tone-amber   { --accent: #f59e0b; --tint: #fef3c7; }
.pd .pd-tone-violet  { --accent: #8b5cf6; --tint: #f5f3ff; }
.pd .pd-tone-red     { --accent: #ef4444; --tint: #fef2f2; }
.pd .pd-tone-cyan    { --accent: #06b6d4; --tint: #ecfeff; }
.pd .pd-tone-pink    { --accent: #ec4899; --tint: #fdf2f8; }
.pd .pd-tone-lime    { --accent: #84cc16; --tint: #f7fee7; }
.pd .pd-tone-indigo  { --accent: #6366f1; --tint: #eef2ff; }

/* Icons are <use> clones of the sprite, so stroke styling has to be set on the
 * referencing <svg> and inherited — attributes on the sprite would not reach. */
.pd-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pd .pd-i {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */

.pd-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: .88rem;
}
.pd-crumbs li { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; }
.pd-crumbs li + li::before { content: "\203A"; color: #94a3b8; font-size: 1.05rem; }
.pd-crumbs a { color: var(--pd-muted); text-decoration: none; }
.pd-crumbs a:hover { color: var(--pd-ink); text-decoration: underline; text-underline-offset: 3px; }
.pd-crumbs [aria-current="page"] {
  color: var(--pd-ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Product: gallery + buy box ─────────────────────────────────────────── */

/* Areas, not source order: the perks sit under the gallery on desktop, where
 * the buy box runs taller, but after the buy box on a phone. */
.pd-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "gallery buy"
    "perks   buy";
  gap: 1.25rem 2.5rem;
  align-items: start;
}
.pd-gallery { grid-area: gallery; }
.pd-buybox { grid-area: buy; }
.pd-perks { grid-area: perks; }

.pd-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--pd-ink);
  box-shadow: var(--pd-shadow);
}

/* ── Image viewer: thumbnail rail + stage ──
 * Every shot is a slide stacked in the stage; the checked radio's slide is
 * shown, and a hovered thumbnail's slide is layered above it (z-index 2 over
 * 1), so hover previews without disturbing the selection. Rules exist for up
 * to 6 shots — the cover plus five photos. */
.pd-viewer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.pd-viewer.has-thumbs { grid-template-columns: 4.75rem minmax(0, 1fr); }

/* Visually hidden but focusable: the radios are the real, keyboard-operable
 * controls; the thumbnails are their labels. The group is taken out of the
 * flow so it does not claim a cell of the viewer's grid. */
.pd-shots { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; }
.pd-shot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.pd-thumbs { display: flex; flex-direction: column; gap: .6rem; }
.pd-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--pd-soft);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .1);
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s ease, border-color .2s ease, transform .2s var(--pd-ease);
}
.pd-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { opacity: 1; transform: translateY(-1px); }
/* The selected shot's marker bar, as on retail galleries. */
.pd-thumb::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 5px;
  left: 10px;
  height: 3px;
  border-radius: 3px;
  background: var(--pd-brand-bright);
  opacity: 0;
  transition: opacity .2s ease;
}

.pd-slide { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .35s ease; }
.pd-slide__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--pd-ease);
}
.pd-stage:hover .pd-slide__img { transform: scale(1.03); }
.pd-slide--cover { isolation: isolate; }
.pd-slide--cover .pd-slide__img {
  padding: 1.5rem;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(2, 6, 23, .45));
}
/* The blurred copy fills whatever the contained cover leaves uncovered. */
.pd-slide__blur {
  position: absolute;
  z-index: -1;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(28px) saturate(1.15) brightness(.72);
}

/* Without :has() support the cover simply stays up. */
.pd-slide:first-of-type { opacity: 1; }

@supports selector(:has(*)) {
  .pd-viewer .pd-slide:first-of-type { opacity: 0; }

  .pd-viewer:has(.pd-shot[data-shot="1"]:checked) .pd-slide[data-shot="1"],
  .pd-viewer:has(.pd-shot[data-shot="2"]:checked) .pd-slide[data-shot="2"],
  .pd-viewer:has(.pd-shot[data-shot="3"]:checked) .pd-slide[data-shot="3"],
  .pd-viewer:has(.pd-shot[data-shot="4"]:checked) .pd-slide[data-shot="4"],
  .pd-viewer:has(.pd-shot[data-shot="5"]:checked) .pd-slide[data-shot="5"],
  .pd-viewer:has(.pd-shot[data-shot="6"]:checked) .pd-slide[data-shot="6"] { z-index: 1; opacity: 1; }

  .pd-viewer:has(.pd-thumb[data-shot="1"]:hover) .pd-slide[data-shot="1"],
  .pd-viewer:has(.pd-thumb[data-shot="2"]:hover) .pd-slide[data-shot="2"],
  .pd-viewer:has(.pd-thumb[data-shot="3"]:hover) .pd-slide[data-shot="3"],
  .pd-viewer:has(.pd-thumb[data-shot="4"]:hover) .pd-slide[data-shot="4"],
  .pd-viewer:has(.pd-thumb[data-shot="5"]:hover) .pd-slide[data-shot="5"],
  .pd-viewer:has(.pd-thumb[data-shot="6"]:hover) .pd-slide[data-shot="6"] { z-index: 2; opacity: 1; }

  .pd-viewer:has(.pd-shot[data-shot="1"]:checked) .pd-thumb[data-shot="1"],
  .pd-viewer:has(.pd-shot[data-shot="2"]:checked) .pd-thumb[data-shot="2"],
  .pd-viewer:has(.pd-shot[data-shot="3"]:checked) .pd-thumb[data-shot="3"],
  .pd-viewer:has(.pd-shot[data-shot="4"]:checked) .pd-thumb[data-shot="4"],
  .pd-viewer:has(.pd-shot[data-shot="5"]:checked) .pd-thumb[data-shot="5"],
  .pd-viewer:has(.pd-shot[data-shot="6"]:checked) .pd-thumb[data-shot="6"] {
    border-color: var(--pd-ink);
    opacity: 1;
  }
  .pd-viewer:has(.pd-shot[data-shot="1"]:checked) .pd-thumb[data-shot="1"]::after,
  .pd-viewer:has(.pd-shot[data-shot="2"]:checked) .pd-thumb[data-shot="2"]::after,
  .pd-viewer:has(.pd-shot[data-shot="3"]:checked) .pd-thumb[data-shot="3"]::after,
  .pd-viewer:has(.pd-shot[data-shot="4"]:checked) .pd-thumb[data-shot="4"]::after,
  .pd-viewer:has(.pd-shot[data-shot="5"]:checked) .pd-thumb[data-shot="5"]::after,
  .pd-viewer:has(.pd-shot[data-shot="6"]:checked) .pd-thumb[data-shot="6"]::after { opacity: 1; }

  .pd-viewer:has(.pd-shot[data-shot="1"]:focus-visible) .pd-thumb[data-shot="1"],
  .pd-viewer:has(.pd-shot[data-shot="2"]:focus-visible) .pd-thumb[data-shot="2"],
  .pd-viewer:has(.pd-shot[data-shot="3"]:focus-visible) .pd-thumb[data-shot="3"],
  .pd-viewer:has(.pd-shot[data-shot="4"]:focus-visible) .pd-thumb[data-shot="4"],
  .pd-viewer:has(.pd-shot[data-shot="5"]:focus-visible) .pd-thumb[data-shot="5"],
  .pd-viewer:has(.pd-shot[data-shot="6"]:focus-visible) .pd-thumb[data-shot="6"] {
    outline: 3px solid rgba(16, 185, 129, .55);
    outline-offset: 2px;
  }
}

/* The report link under the gallery — quiet, but always there. */
.pd-report { margin: 1rem 0 0; }
.pd-report a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--pd-muted);
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pd-report a:hover { color: var(--pd-ink); }
.pd-report .pd-i { font-size: 1rem; }

.pd-stage__tag,
.pd-stage__flag {
  position: absolute;
  z-index: 3;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.3;
}
.pd-stage__tag {
  left: 1rem;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(15, 23, 42, .6);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: #fff;
}
.pd-stage__flag { right: 1rem; background: var(--pd-brand-bright); color: #fff; }

.pd-glance {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.pd-glance li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .85rem;
  border: 1px solid var(--pd-line);
  border-radius: 999px;
  background: #fff;
  font-size: .86rem;
}
.pd-glance .pd-i { color: var(--accent); font-size: 1rem; }
.pd-glance strong { color: var(--pd-ink); }

.pd-sample {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1rem;
  padding: .95rem 1.1rem;
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  background: var(--pd-brand-tint);
  color: var(--pd-ink);
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.pd-sample:hover {
  border-color: var(--pd-brand-bright);
  box-shadow: 0 10px 24px -16px rgba(4, 120, 87, .6);
  color: var(--pd-ink);
}
.pd-sample__ico {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #fff;
  color: var(--pd-brand);
  font-size: 1.15rem;
}
.pd-sample__txt { display: flex; flex-direction: column; min-width: 0; }
.pd-sample__txt strong { font-size: .95rem; }
.pd-sample__txt small { color: var(--pd-muted); font-size: .82rem; }
.pd-sample__go { margin-left: auto; color: var(--pd-brand); font-size: 1.15rem; transition: transform .25s var(--pd-ease); }
.pd-sample:hover .pd-sample__go { transform: translateX(4px); }

/* Buy box */
.pd-buybox {
  padding: 1.75rem;
  border: 1px solid var(--pd-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--pd-shadow);
  scroll-margin-top: calc(var(--pd-sticky-top) + 16px);
}

.pd-eyebrow {
  display: inline-block;
  margin-bottom: .5rem;
  color: var(--pd-brand);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.pd-eyebrow:hover { color: var(--pd-ink); text-decoration: underline; text-underline-offset: 3px; }

.pd-title {
  margin: 0 0 .6rem;
  color: var(--pd-ink);
  font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.pd-tagline {
  margin: 0 0 1rem;
  color: var(--pd-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

.pd-assure {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--pd-body);
  font-size: .88rem;
  font-weight: 600;
}
.pd-assure li { display: inline-flex; align-items: center; gap: .35rem; }
.pd-assure .pd-i { color: var(--pd-brand-bright); stroke-width: 3; }

.pd-buy {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pd-line);
}
.pd-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .9rem;
  margin-bottom: 1rem;
}
.pd-price__amount {
  color: var(--pd-ink);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.pd-price__amount small {
  margin-left: .3rem;
  color: var(--pd-muted);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.pd-price__note { color: var(--pd-muted); font-size: .9rem; }
.pd-price__soon,
.pd-price__owned {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.pd-price__soon { color: #b45309; }
.pd-price__owned { color: var(--pd-brand); }

.pd-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  padding: .95rem 1.25rem;
  border: 0;
  border-radius: 12px;
  background: var(--pd-ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s var(--pd-ease);
}
.pd-cta:hover { background: #1e293b; color: #fff; transform: translateY(-1px); }
.pd-cta:focus-visible { outline: 3px solid rgba(16, 185, 129, .5); outline-offset: 2px; }
.pd-buy form { margin: 0; }
.pd-buy__note { margin: .7rem 0 0; color: var(--pd-muted); font-size: .85rem; text-align: center; }

/* Link to the matching business-plan package (/business-plan/packages/). */
.pd-crosslink {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  padding: .8rem 1rem;
  border: 1px dashed var(--pd-line);
  border-radius: 12px;
  color: var(--pd-ink);
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.pd-crosslink:hover { border-color: var(--pd-brand); background: var(--pd-soft); color: var(--pd-ink); }
.pd-crosslink .pd-i { flex: 0 0 auto; color: var(--pd-brand); }
.pd-crosslink span { display: flex; flex-direction: column; }
.pd-crosslink strong { font-size: .95rem; }
.pd-crosslink small { color: var(--pd-muted); font-size: .8rem; }
.pd-crosslink .pd-crosslink__go { margin-left: auto; font-size: 1.15rem; transition: transform .2s ease; }
.pd-crosslink:hover .pd-crosslink__go { transform: translateY(2px); }

.pd-perks {
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.pd-perk {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .95rem 1.1rem;
}
.pd-perk + .pd-perk { border-top: 1px solid var(--pd-line); }
.pd-perk__ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--tint);
  color: var(--accent);
  font-size: 1.05rem;
}
.pd-perk strong { display: block; color: var(--pd-ink); font-size: .92rem; }
/* `> div >` so this cannot reach the icon, which is a span too. */
.pd-perk > div > span { color: var(--pd-muted); font-size: .85rem; line-height: 1.5; }

/* ── Sticky section bar ─────────────────────────────────────────────────── */

.pd-tabs {
  position: sticky;
  z-index: 20;
  top: var(--pd-sticky-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding: 0 .5rem 0 .75rem;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -20px rgba(15, 23, 42, .5);
}
/* width: 0 + flex-grow: without it the strip reports its full link-row width
 * as its minimum, and the app shell grew to fit it — a 785px page on a phone.
 * It still fills the bar, and scrolls sideways when the links don't fit. */
.pd-tabs__links {
  display: flex;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-tabs__links::-webkit-scrollbar { display: none; }
.pd-tabs__links a {
  flex: 0 0 auto;
  padding: 1.05rem .85rem;
  border-bottom: 2px solid transparent;
  color: var(--pd-muted);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.pd-tabs__links a:hover,
.pd-tabs__links a:focus-visible { border-bottom-color: var(--pd-ink); color: var(--pd-ink); }
.pd-tabs__buy { display: flex; flex: 0 0 auto; align-items: center; gap: .75rem; }
.pd-tabs__price { color: var(--pd-ink); font-size: 1.15rem; font-weight: 800; }
.pd-tabs__owned {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .85rem;
  color: var(--pd-brand);
  font-size: .9rem;
  font-weight: 700;
}
.pd-tabs__cta {
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: var(--pd-brand);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.pd-tabs__cta:hover { background: #065f46; color: #fff; }

/* ── Sections ───────────────────────────────────────────────────────────── */

.pd-section {
  margin-top: 3.5rem;
  scroll-margin-top: calc(var(--pd-sticky-top) + 80px);
}
.pd-head { max-width: 46rem; margin-bottom: 1.5rem; }
.pd-kicker {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .4rem;
  color: var(--pd-brand);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pd-kicker::before { content: ""; width: 1.5rem; height: 2px; border-radius: 2px; background: currentColor; }
.pd-head h2 {
  margin: 0;
  color: var(--pd-ink);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.pd-lead { margin: .5rem 0 0; color: var(--pd-muted); font-size: 1rem; line-height: 1.6; }
.pd-empty { color: var(--pd-muted); }

.pd-subhead {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 1.75rem 0 .85rem;
  color: var(--pd-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pd-subhead .pd-i { color: var(--pd-brand); font-size: 1rem; }
.pd-head + .pd-subhead { margin-top: 0; }

/* Contents tiles */
.pd-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: .85rem;
}
.pd-tile {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--pd-line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  background: #fff;
}
.pd-tile__ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--tint);
  color: var(--accent);
  font-size: 1.15rem;
}
.pd-tile strong { display: block; color: var(--pd-ink); font-size: .95rem; }
.pd-tile small { color: var(--pd-muted); font-size: .8rem; }

.pd-regions { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.pd-regions li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem .45rem .45rem;
  border: 1px solid var(--pd-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pd-ink);
  font-size: .9rem;
  font-weight: 600;
}
.pd-regions__code {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 800;
}

/* Files */
.pd-files {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  background: #fff;
  overflow: hidden;
}
.pd-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: .95rem 1.25rem;
}
.pd-file + .pd-file { border-top: 1px solid var(--pd-line); }
.pd-file__ico {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--pd-brand-tint);
  color: var(--pd-brand);
  font-size: 1.1rem;
}
.pd-file.is-locked .pd-file__ico { background: var(--pd-soft); color: #94a3b8; }
.pd-file__main strong { display: block; color: var(--pd-ink); font-size: .95rem; }
.pd-file__main small { color: var(--pd-muted); font-size: .82rem; }
.pd-file__actions { display: flex; align-items: center; gap: .5rem; }
.pd-file__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .95rem;
  border: 1px solid var(--pd-ink);
  border-radius: 999px;
  background: var(--pd-ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.pd-file__btn:hover { background: #1e293b; color: #fff; }
.pd-file__btn--ghost { border-color: var(--pd-line); background: #fff; color: var(--pd-ink); }
.pd-file__btn--ghost:hover { border-color: var(--pd-ink); background: #fff; color: var(--pd-ink); }
.pd-file__lock { color: var(--pd-muted); font-size: .82rem; font-weight: 600; white-space: nowrap; }

/* About + specifications */
.pd-about {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.pd-about__text { color: var(--pd-body); font-size: 1.02rem; line-height: 1.8; }
.pd-about__text p { margin: 0 0 1rem; }
.pd-specs {
  margin: 0;
  padding: .5rem 1.25rem;
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  background: var(--pd-soft);
}
.pd-specs > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .8rem 0;
}
.pd-specs > div + div { border-top: 1px solid var(--pd-line); }
.pd-specs dt {
  color: var(--pd-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.8;
}
.pd-specs dd { margin: 0; color: var(--pd-ink); font-size: .92rem; font-weight: 600; }

/* Persona + benefit cards */
.pd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 1rem;
}
.pd-card {
  padding: 1.4rem;
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  background: #fff;
  transition: transform .3s var(--pd-ease), box-shadow .3s var(--pd-ease);
}
.pd-card:hover { transform: translateY(-3px); box-shadow: var(--pd-shadow); }
.pd-card--ruled { border-top: 3px solid var(--accent); }
.pd-card__ico {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--tint);
  color: var(--accent);
  font-size: 1.25rem;
}
.pd-card h3 { margin: 0 0 .45rem; color: var(--pd-ink); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.pd-card p { margin: 0; color: var(--pd-muted); font-size: .92rem; line-height: 1.6; }

.pd-quote {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.5rem;
  border-left: 4px solid var(--pd-brand-bright);
  border-radius: 0 14px 14px 0;
  background: var(--pd-soft);
  color: var(--pd-ink);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
}

.pd-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(165px, 100%), 1fr));
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pd-chips li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .85rem 1rem;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  background: #fff;
}
.pd-chips .pd-i { margin-top: .15rem; color: var(--pd-brand-bright); stroke-width: 3; }
.pd-chips strong { display: block; color: var(--pd-ink); font-size: .92rem; }
.pd-chips small { color: var(--pd-muted); font-size: .8rem; }

/* How it works */
.pd-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pd-step;
}
.pd-steps li {
  position: relative;
  padding: 1.5rem 1.4rem 1.4rem;
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  background: #fff;
  counter-increment: pd-step;
}
.pd-steps li::before {
  content: counter(pd-step, decimal-leading-zero);
  display: block;
  margin-bottom: .75rem;
  color: var(--pd-brand);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.pd-steps strong { display: block; margin-bottom: .35rem; color: var(--pd-ink); font-size: 1.05rem; }
.pd-steps span { color: var(--pd-muted); font-size: .92rem; line-height: 1.6; }

/* Closing band */
.pd-close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3.5rem;
  padding: 1.6rem 1.75rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}
.pd-close__ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, .16);
  color: #34d399;
  font-size: 1.5rem;
}
.pd-close__txt { flex: 1 1 22rem; }
.pd-close__txt strong { display: block; font-size: 1.15rem; }
.pd-close__txt span { color: #cbd5e1; font-size: .95rem; }
.pd-close__cta {
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: #fff;
  color: var(--pd-ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--pd-ease);
}
.pd-close__cta:hover { color: var(--pd-ink); transform: translateY(-2px); }

/* ── Responsive ─────────────────────────────────────────────────────────── */

/* minmax(0, 1fr), not 1fr: a bare 1fr column cannot shrink below its widest
 * content, and one long unbreakable line stretched the page past the screen. */
@media (max-width: 991.98px) {
  .pd-main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "gallery" "buy" "perks";
    gap: 1.5rem;
  }
  .pd-about { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .pd-steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
  .pd-buybox { padding: 1.25rem; }
  .pd-viewer.has-thumbs { grid-template-columns: minmax(0, 1fr); }
  /* Thumbnails share the row (capped at 4.5rem) rather than a fixed size: four
   * fixed 68px tiles overran a 294px row by 7px and clipped the last one. */
  .pd-thumbs { order: 2; flex-direction: row; overflow-x: auto; padding-bottom: .25rem; }
  .pd-thumb { flex: 1 1 0; min-width: 3rem; max-width: 4.5rem; }
  .pd-slide--cover .pd-slide__img { padding: 1rem; }
  .pd-tabs { margin-top: 2rem; }
  .pd-tabs__links a { padding: .95rem .6rem; font-size: .85rem; }
  .pd-tabs__price { display: none; }
  .pd-file { grid-template-columns: auto minmax(0, 1fr); }
  .pd-file__actions { grid-column: 1 / -1; }
  .pd-close { padding: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-slide,
  .pd-slide__img,
  .pd-thumb,
  .pd-sample__go,
  .pd-cta,
  .pd-card,
  .pd-close__cta { transition: none; }
  .pd-stage:hover .pd-slide__img,
  .pd-thumb:hover,
  .pd-card:hover { transform: none; }
}
