/* =========================================================
   ALHADDAD SHRED LAB — package.css (Package Detail Page)
   ========================================================= */

/* =========================================================
   "APP IN THE MIDDLE" LAYOUT
   The whole page is a narrow phone-width column (max 520px) centered on
   desktop. The viewport area OUTSIDE the column is a soft neutral gray so the
   column reads as a distinct app panel (factive-style). On screens narrower
   than the column (mobile) it simply fills the screen — no side margins.
   ========================================================= */
:root { --pkg-col: 880px; }

.pkg-page {
  background: var(--bg);            /* fallback for mobile */
  --pkg-pad-bottom: 0px;
}

/* The three top-level blocks (top bar, main, sticky bar) are each centered to
   the same max-width so they line up as one column. */
.pkg-topbar,
#pkg-main {
  max-width: var(--pkg-col);
  margin-inline: auto;
}

/* On screens wider than the column, paint the surrounding margins gray and
   give the centered column a white surface so it pops as a panel. */
@media (min-width: 560px) {
  .pkg-page {
    background: #F0F0EE;            /* neutral gray side margins */
  }
  #pkg-main {
    background: var(--bg);          /* the white "app" surface */
    box-shadow: 0 0 0 1px rgba(10,10,10,.05), 0 24px 60px -24px rgba(10,10,10,.18);
  }
  .pkg-topbar {
    /* keep the sticky bar reading as the top of the same panel */
    box-shadow: 0 0 0 1px rgba(10,10,10,.05);
  }
  /* Round the banner's top corners so the column looks like a panel.
     The hero already has overflow:hidden, so its texture/art are clipped. */
  .pkg-hero {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
}

/* ---------- Top bar ---------- */
.pkg-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.pkg-topbar.is-scrolled {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--line);
}
.pkg-topbar__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; height: 64px;
}
/* Three zones: back (start) · logo (center) · language toggle (end).
   The back and toggle share equal flex-basis so the logo stays optically
   centered; the back control hugs the START edge (right in RTL, left in LTR)
   with no leading inset — its inner padding is offset by a negative margin so
   the chevron sits flush to the column's horizontal padding edge. */
.pkg-topbar__back {
  display: inline-flex; align-items: center; gap: 8px;
  flex: 1 1 0; min-width: 0;
  justify-content: flex-start;
  color: var(--ink-3); font-weight: 700; font-size: .82rem;
  letter-spacing: .02em;
  padding: 8px 12px; border-radius: 10px;
  margin-inline-start: -12px;   /* pull padding back so glyph is flush to start */
  transition: color .2s ease, background-color .2s ease;
}
.pkg-topbar__back:hover { color: var(--orange); background: var(--orange-tint); }
.pkg-topbar__back-icon { width: 16px; height: 16px; flex-shrink: 0; }
html[dir="rtl"] .pkg-topbar__back-icon { transform: scaleX(-1); }
/* Logo is absolutely centered so the side controls can hug their content
   (the language toggle is now a bordered pill and must not stretch). */
.pkg-topbar__logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center;
}
.pkg-topbar__logo img { height: 26px; width: auto; }
/* Toggle hugs its content and sits at the END edge. */
.pkg-topbar__inner > .lang-toggle { flex: 0 0 auto; }

/* ---------- Hero BANNER (bold colored block) ----------
   Compact, wide block (factive-style) — a constrained, consistent banner across
   ALL packages rather than a tall panel. Height is capped so the charcoal→orange
   gradient reads as a banner, not a hero. */
.pkg-hero {
  position: relative;
  /* Charcoal-to-orange diagonal — the energetic "VIP bundle" banner. */
  background: linear-gradient(135deg, #0A0A0A 0%, #2A1505 55%, #FF5E15 140%);
  /* Photo packages fall back to a deep charcoal base behind the image. */
  color: #fff;
  border-bottom: none;
  padding-block: clamp(22px, 4.5vw, 30px);
  /* COMPACT wide banner (factive-style). A short min-height keeps ALL 4 packages
     at an identical, modest proportion so the guarantee + Subscribe button start
     showing immediately below the fold-line. Content defines the rest of the
     height; shorter packages simply center within the same block. */
  min-height: 340px;
  display: flex; align-items: center;
  overflow: hidden;
}
/* Low-opacity diagonal texture overlay for movement / depth. */
.pkg-hero__texture {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.05) 0px,
      rgba(255,255,255,.05) 2px,
      transparent 2px,
      transparent 22px),
    radial-gradient(80% 120% at 100% 0%, rgba(255,94,21,.35), transparent 55%);
  pointer-events: none;
}

/* ---------- Per-package PHOTO banner ----------
   When a package supplies a photo (`--pkg-bg`), the texture layer carries the
   photo PLUS a directional dark scrim (so the white headline/price stay legible).
   Both layers live on one element, so a single horizontal flip in RTL moves the
   dark side under the Arabic text (which sits on the right). */
.pkg-hero--photo {
  background: linear-gradient(135deg, #0A0A0A 0%, #160B03 100%); /* dark fallback */
}
.pkg-hero--photo .pkg-hero__texture {
  background-image:
    linear-gradient(90deg,
      rgba(8,8,8,.92) 0%, rgba(8,8,8,.66) 38%, rgba(8,8,8,.26) 70%, rgba(8,8,8,.05) 100%),
    var(--pkg-bg, none);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
html[dir="rtl"] .pkg-hero--photo .pkg-hero__texture { transform: scaleX(-1); }
/* The photo IS the right-side visual, so drop the SVG cluster and let the copy
   span the full width. */
.pkg-hero--photo .pkg-hero__visual { display: none; }
.pkg-hero--photo .pkg-hero__inner { grid-template-columns: 1fr; }
.pkg-hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: clamp(16px, 3vw, 24px);
  align-items: center;
}
.pkg-hero__copy { min-width: 0; }
.pkg-hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 800; font-size: .68rem;
  letter-spacing: var(--track-caps); text-transform: uppercase;
  color: #FFD9C2;
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: var(--pill);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}
html[lang="ar"] .pkg-hero__eyebrow { text-transform: none; font-size: .84rem; letter-spacing: 0; }
.pkg-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: var(--track-tight);
  color: #fff;
  margin: 10px 0 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
html[lang="ar"] .pkg-hero__title { line-height: 1.3; }
.pkg-hero__sub {
  color: rgba(255,255,255,.86); font-size: .92rem; line-height: 1.5;
  max-width: 44ch; margin-bottom: 12px;
}
.pkg-hero__price-row {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.pkg-hero__price { display: inline-flex; align-items: baseline; gap: 4px; }
.pkg-hero__cur {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem; color: rgba(255,255,255,.7);
}
.pkg-hero__amount {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3rem);
  line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.pkg-hero__monthly { color: rgba(255,255,255,.7); font-size: .88rem; }
/* Discount — struck "was" price + orange "Save $X" pill on the dark banner */
.pkg-hero__was {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; color: rgba(255,255,255,.55);
  text-decoration: line-through; text-decoration-thickness: 2px;
  margin-inline-end: 2px;
}
.pkg-hero__was[hidden] { display: none; }
.pkg-hero__save {
  display: inline-flex; align-items: center;
  background: var(--orange); color: #fff;
  font-weight: 800; font-size: .8rem; letter-spacing: .01em;
  padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255,94,21,.35);
}
.pkg-hero__save[hidden] { display: none; }
.pkg-hero__save-note {
  margin: -4px 0 14px; font-size: .8rem; color: rgba(255,255,255,.6);
}
.pkg-hero__save-note[hidden] { display: none; }
.pkg-hero__cta { width: 100%; max-width: 360px; }
/* On the dark banner the primary button gets a white surface for max pop. */
.pkg-hero__cta--banner {
  background: #fff; color: var(--orange);
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.5);
}
.pkg-hero__cta--banner:hover {
  background: #fff; color: var(--orange-d);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.55);
}
.pkg-hero__cta--banner .arrow--down { transition: transform .25s var(--ease-spring); }
.pkg-hero__cta--banner:hover .arrow--down { transform: translateY(3px); }
/* The down-arrow should not be flipped horizontally in RTL. */
html[dir="rtl"] .pkg-hero__cta--banner .arrow--down { transform: none; }
html[dir="rtl"] .pkg-hero__cta--banner:hover .arrow--down { transform: translateY(3px); }

.pkg-hero__visual {
  display: flex; align-items: center; justify-content: center;
  min-height: 0;
}
.pkg-hero__art-wrap {
  width: 100%; max-width: 130px; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.pkg-hero__art {
  width: 100%; height: auto;
}

/* ---------- Sections ---------- */
.pkg-section {
  padding-block: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.pkg-section:last-of-type { border-bottom: none; }
.pkg-section__inner { display: block; }
.pkg-section__head { max-width: 720px; margin-bottom: clamp(14px, 2.2vw, 22px); }
.pkg-section__head--center { margin-inline: auto; text-align: center; }
.pkg-section__head--center .eyebrow { justify-content: center; }
.pkg-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.15; letter-spacing: var(--track-tight);
  color: var(--ink); margin-top: 8px;
}
html[lang="ar"] .pkg-section__title { line-height: 1.4; }

/* ---------- Guarantee ---------- */
.pkg-guarantee {
  background: linear-gradient(180deg, #FFF8F2 0%, var(--bg) 100%);
}
.pkg-guarantee__body {
  display: grid; gap: 18px;
  max-width: 720px;
}
.pkg-guarantee__lead {
  font-family: var(--font-display); font-style: italic;
  font-size: 1rem; line-height: 1.5; color: var(--ink-2);
}
html[lang="ar"] .pkg-guarantee__lead { font-style: normal; }
.pkg-guarantee__cond-label {
  font-weight: 800; color: var(--ink); font-size: .82rem;
  letter-spacing: var(--track-caps); text-transform: uppercase;
  margin-top: 6px;
}
html[lang="ar"] .pkg-guarantee__cond-label { text-transform: none; font-size: .98rem; letter-spacing: 0; }

/* ---------- Guarantee commitment list — clean factive bullets ----------
   Simple orange bullet markers + dark text, comfortable line spacing — NOT
   the pill rows used by Requirements/Exclusions. RTL bullets sit on the right. */
.pkg-guarantee__list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 8px;
  max-width: 640px;
}
.pkg-guarantee__list li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--ink-2);
  font-size: .9rem;
  line-height: 1.5;
}
.pkg-guarantee__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
html[lang="ar"] .pkg-guarantee__list li { font-size: .95rem; line-height: 1.6; }

/* ---------- Checklist + Exclusions: shared pill row ---------- */
.pkg-checklist,
.pkg-xlist {
  display: grid; gap: 10px;
  list-style: none;
  padding: 0; margin: 0;
}
.pkg-checklist li,
.pkg-xlist li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: #FAFAF7; /* soft cream */
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
  font-size: .98rem; line-height: 1.5;
  color: var(--ink-2);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.pkg-checklist li:hover,
.pkg-xlist li:hover {
  background: #fff;
  border-color: rgba(10, 10, 10, 0.10);
  box-shadow: 0 2px 6px rgba(10, 10, 10, 0.06);
}

/* Circular icon — 28×28 — sits before the label (LTR) / after (RTL via flex) */
.pkg-row__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.pkg-row__label {
  flex: 1; min-width: 0;
}

/* Requirements / Guarantee conditions = orange brand check */
.pkg-checklist .pkg-row__icon {
  background: var(--orange-tint);
}
.pkg-checklist .pkg-row__icon::after {
  /* Physical (not logical) borders so the checkmark is identical in LTR and RTL. */
  content: "";
  width: 10px; height: 6px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
  margin-top: -2px;
}

/* Exclusions = soft red X */
.pkg-xlist .pkg-row__icon {
  background: rgba(220, 38, 38, 0.10);
  color: #DC2626;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .94rem;
  line-height: 1;
}
.pkg-xlist .pkg-row__icon::after {
  content: "\00d7"; /* multiplication sign — cleaner than literal × at small sizes */
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
}

/* Larger variant used on the Requirements + Exclusions sections.
   Both sections share identical geometry (padding, font, icon circle, gap) —
   the ONLY difference is the icon glyph/color (orange check vs red X). */
.pkg-checklist--lg li,
.pkg-xlist li { font-size: 1.04rem; padding: 16px 20px; }
.pkg-checklist--lg .pkg-row__icon,
.pkg-xlist .pkg-row__icon { width: 30px; height: 30px; }

/* Mobile compression */
@media (max-width: 599px) {
  .pkg-checklist li,
  .pkg-xlist li {
    padding: 12px 14px;
    gap: 10px;
  }
  .pkg-checklist--lg li,
  .pkg-xlist li { padding: 14px 16px; }
}

/* ---------- Results: SMALL auto-scrolling before/after marquee (factive-style) ----------
   The grid is now a marquee viewport; JS renders the cards twice inside
   `.pkg-results__track`, so the -50% keyframe loops seamlessly. Small, moving,
   not a big static section. */
.pkg-results__grid {
  display: block; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.pkg-results__track {
  display: flex; gap: 14px; width: max-content;
  animation: pkg-marquee 42s linear infinite;
}
.pkg-results__track:hover { animation-play-state: paused; }
@keyframes pkg-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* In RTL the flex row is laid out right-to-left, so the track has to travel the
   other way — otherwise it scrolls off and leaves the strip empty. */
html[dir="rtl"] .pkg-results__track { animation-name: pkg-marquee-rtl; }
@keyframes pkg-marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}
.pkg-result-card {
  flex: 0 0 auto; width: 216px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
}
/* Same treatment as the home page: rounded photos, a real gap, breathing room. */
.pkg-result-card__photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
  padding: 7px; background: transparent;
}
/* Small portrait before/after thumbnails with a centred bottom label pill. */
.pkg-result-card .ba { aspect-ratio: 3 / 4; border-radius: calc(var(--radius-lg) - 10px); }
.pkg-result-card .ba figcaption {
  top: auto; bottom: 7px;
  background: rgba(255,255,255,.94); color: var(--ink);
  padding: 3px 9px; border-radius: var(--pill);
  font-size: .62rem; text-transform: none; letter-spacing: 0;
  box-shadow: 0 2px 6px rgba(10,10,10,.13);
}
.pkg-result-card .ba--after figcaption { color: var(--orange); }
/* NOTE: this marquee intentionally keeps scrolling even under
   prefers-reduced-motion — it's a core part of the requested design, and the
   coach's own machine runs reduced-motion. Hovering pauses it for readers. */

/* ---------- Features ---------- */
.pkg-features__list {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.pkg-features__list li {
  position: relative;
  padding: 16px 18px 16px 50px;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .98rem; line-height: 1.55; color: var(--ink-2);
}
html[dir="rtl"] .pkg-features__list li { padding: 16px 50px 16px 18px; }
.pkg-features__list li::before {
  content: ""; position: absolute; inset-inline-start: 16px; top: 18px;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--orange-tint);
}
.pkg-features__list li::after {
  content: ""; position: absolute; inset-inline-start: 22px; top: 25px;
  width: 9px; height: 5px;
  border-inline-start: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

/* ---------- Installments (Payment Plan) ---------- */
.pkg-installments__intro {
  color: var(--ink-3); font-size: 1.02rem; line-height: 1.65;
  max-width: 60ch; margin-bottom: 20px;
}
.pkg-installments__table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-card);
}
.pkg-installments__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.pkg-installments__row:last-child { border-bottom: none; }
/* When the schedule has only one row (full upfront), give the row a touch more
   air so it doesn't look like a header row that lost its body. */
.pkg-installments__row:first-child:last-child {
  padding-block: 22px;
}
.pkg-installments__cell {
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink-2);
}
.pkg-installments__cell--label {
  font-weight: 600;
  color: var(--ink);
}
.pkg-installments__cell--pct {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: var(--track-caps);
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  min-width: 56px;
  text-align: center;
}
html[lang="ar"] .pkg-installments__cell--pct { letter-spacing: 0; }
.pkg-installments__cell--amt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  min-width: 72px;
  text-align: end;
}
.pkg-installments__note {
  margin-top: 16px;
  color: var(--ink-4);
  font-size: .92rem;
  line-height: 1.6;
  max-width: 60ch;
}

/* ---------- Sticky price bar ----------
   Constrained to the same 520px column and centered, so it sits at the bottom
   of the "app panel" rather than spanning the full desktop viewport. */
.pkg-sticky {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: var(--pkg-col);
  margin-inline: auto;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -10px rgba(10,10,10,.08);
  z-index: 90;
  transform: translateY(100%);
  transition: transform .35s var(--ease-spring);
}
/* On desktop the sticky bar is a rounded "dock" matching the panel edges. */
@media (min-width: 560px) {
  .pkg-sticky {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 0 0 1px rgba(10,10,10,.05), 0 -10px 30px -10px rgba(10,10,10,.12);
  }
}
.pkg-sticky.is-visible { transform: translateY(0); }
.pkg-sticky__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.pkg-sticky__info { min-width: 0; flex: 1; }
.pkg-sticky__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; color: var(--ink); letter-spacing: var(--track-tight);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pkg-sticky__price {
  display: inline-flex; align-items: baseline; gap: 6px; margin-top: 2px;
}
.pkg-sticky__cur, .pkg-sticky__price span[data-pkg-field="price"] {
  color: var(--orange); font-family: var(--font-display); font-weight: 700;
}
.pkg-sticky__price span[data-pkg-field="price"] {
  font-size: 1.3rem; font-variant-numeric: tabular-nums;
}
.pkg-sticky__monthly {
  color: var(--ink-4); font-size: .78rem; font-weight: 500;
  white-space: nowrap;
}
.pkg-sticky__was {
  color: var(--ink-4); font-family: var(--font-display); font-weight: 600;
  font-size: .95rem; text-decoration: line-through; text-decoration-thickness: 2px;
  margin-inline-end: 2px;
}
.pkg-sticky__was[hidden] { display: none; }
.pkg-sticky__cta { flex-shrink: 0; min-width: 200px; }
@media (max-width: 599px) {
  .pkg-sticky__cta { min-width: 0; padding-inline: 22px; }
}

/* ---------- Responsive ----------
   NOTE: the page lives inside a fixed ~520px column, so inner grids respond to
   the COLUMN width, not the viewport. We use container queries on #pkg-main so
   the hero/results/features lay out by the panel's real width rather than the
   desktop viewport (which would otherwise force a cramped 2-col hero). */
#pkg-main { container-type: inline-size; container-name: pkgcol; }

@container pkgcol (min-width: 460px) {
  .pkg-results__grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-features__list { grid-template-columns: repeat(2, 1fr); }
  .pkg-hero__cta { width: auto; }
  /* Wide banner: copy left, product graphic right. */
  .pkg-hero__inner {
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: clamp(18px, 3vw, 32px);
  }
  .pkg-hero__art-wrap { max-width: 150px; }
}

/* Wider panel (desktop): bigger hero art + 3-up member results so the page
   reads as a substantial, full layout rather than a tiny phone column. */
@container pkgcol (min-width: 720px) {
  .pkg-hero__inner { grid-template-columns: minmax(0, 1fr) 200px; }
  .pkg-hero__art-wrap { max-width: 200px; }
  .pkg-hero__sub { font-size: 1rem; }
  .pkg-results__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Fallback for browsers without container query support: at the 520px column
   the panel is always >= 460px on screens >= 560px, so mirror the layout. */
@supports not (container-type: inline-size) {
  @media (min-width: 560px) {
    .pkg-results__grid { grid-template-columns: repeat(2, 1fr); }
    .pkg-features__list { grid-template-columns: repeat(2, 1fr); }
    .pkg-hero__cta { width: auto; }
    .pkg-hero__inner {
      grid-template-columns: minmax(0, 1fr) 110px;
      gap: clamp(16px, 3vw, 24px);
    }
    .pkg-hero__art-wrap { max-width: 110px; }
  }
}
