/* Section 05, Packages (27 Oct, two plans; 28 Oct contained layout). Inspired by Biograph's two-tier cards (light + black, mark, name, tagline,
   full-width action, checklist) but drawn in Yoda's own system: Starlight section, a Void "Horizon Assessment" card with
   Horizon Gold accents (Gold only ever on Void), a light "Wellness Plan" card with the assessment card fill. Type from
   type-scale.css: 52/42/32 section heading and price, 32 plan names, 16/24 body, 14/21 small. No strokes or shadows on cards,
   no eyebrow text. Phones: the plans stack, actions stay full width. */
@font-face { font-family: 'Yoda Packages Symbols'; font-style: normal; font-weight: 400; font-display: block;
  src: url('../fonts/material-symbols-rounded-packages.woff2') format('woff2'); } /* arrow_downward, arrow_forward, autorenew, calendar_month, check, monitor_heart, pending, percent, sell, smartphone, spa */
.pki { font-family: 'Yoda Packages Symbols'; font-weight: 400; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal;
  text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased; flex: none; }

.packages { position: relative; z-index: 7; background: var(--star); color: var(--y-ink-primary);
  min-height: calc(100svh - 76px); /* the header's Packages link always lands on the heading, even as the last section */
  padding: clamp(64px, 6vw, 104px) var(--m) clamp(80px, 7.5vw, 120px); }
.packages ::selection { background: var(--void); color: var(--star); }
/* 28 Oct (Shali): contained, centred like Biograph's "Select the membership": heading block centred, two cards in a
   1040 px column, actions at the foot of each card so they line up. */
.pkg-head { max-width: 640px; margin: 0 auto; text-align: center; }
.pkg-heading { margin: 0; font: 400 var(--y-type-section)/1 var(--f-display); letter-spacing: -0.01em; color: var(--y-ink-primary); text-wrap: balance; }
.pkg-heading:focus { outline: none; }
.pkg-lead { margin: 16px auto 0; max-width: 34em; font: 400 var(--y-type-body)/1.5 var(--f-text); color: var(--y-ink-secondary); text-wrap: balance; }
.pkg-date { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font: 500 15px/1.5 var(--f-text); color: var(--y-ink-primary); }
.pkg-date .pki { font-size: 20px; }
.pkg-nowrap { white-space: nowrap; }

/* Plans: equal-height cards; the body grows, the foot (action + link) sits at the bottom of both. */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1040px; margin: clamp(40px, 4vw, 56px) auto 0; }
.plan { --line: rgba(39, 39, 44, 0.1); --soft: var(--y-ink-secondary); display: flex; flex-direction: column; min-width: 0;
  padding: clamp(28px, 2.8vw, 40px); border-radius: 24px; }
.plan-dark { --line: rgba(233, 228, 218, 0.14); --soft: rgba(233, 228, 218, 0.68); background: var(--void); color: var(--star); }
.plan-light { background: rgba(255, 255, 255, 0.58); color: var(--y-ink-primary); }
.plan-dark ::selection { background: var(--star); color: var(--void); }

.plan-top { display: flex; flex-direction: column; align-items: center; text-align: center; }
.plan-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(39, 39, 44, 0.06); }
.plan-dark .plan-mark { background: rgba(233, 228, 218, 0.08); }
.plan-mark img { width: 28px; height: 28px; }
.plan-mark .pki { font-size: 26px; }
.plan-name { margin: 20px 0 0; font: 400 32px/1.1 var(--f-display); letter-spacing: -0.01em; }
.plan-tag { margin: 8px 0 0; max-width: 24em; font: 400 15px/1.5 var(--f-text); color: var(--soft); text-wrap: balance; }

/* Price rows: label left, value right, on hairlines. */
.plan-rows { margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plan-row dt { font: 400 15px/1.4 var(--f-text); color: var(--soft); }
.plan-row dd { margin: 0; font: 500 15px/1.4 var(--f-text); text-align: right; }
.plan-row dd.plan-amount { font: 400 32px/1 var(--f-display); letter-spacing: -0.02em; }
.plan-offer { display: inline-block; padding: 4px 12px; border-radius: 8px; background: rgba(39, 39, 44, 0.06); font: 500 15px/1.4 var(--f-text); }
.plan-dark .plan-offer { background: var(--gold); color: var(--void); } /* Void on Gold, small item (Gold only on Void) */

.plan-body { flex: 1; margin-top: 28px; }
.plan-list-h { margin: 0; font: 500 14px/1.5 var(--f-text); }
.plan-list { list-style: none; margin: 10px 0 0; padding: 0; }
.plan-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 6px 0; font: 400 15px/1.5 var(--f-text); }
.plan-list .pki { margin-top: 2px; font-size: 20px; }
.plan-dark .plan-list .pki { color: var(--gold); }
.plan-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.plan-chips li { padding: 8px 12px; border-radius: 10px; background: rgba(39, 39, 44, 0.06); font: 400 14px/1.5 var(--f-text); }

.plan-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin: 0;
  padding: 0 20px; border: 0; border-radius: 12px; font: 400 16px/1.5 var(--f-text); cursor: pointer;
  transition: background-color .45s cubic-bezier(.22, 1, .36, 1); }
.plan-cta .pki { transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.plan-cta-gold { background: var(--gold); color: var(--void); }
.plan-cta-void { background: var(--void); color: var(--star); }
@media (hover: hover) and (pointer: fine) {
  .plan-cta-gold:hover { background: #C99D62; }
  .plan-cta-void:hover { background: #29292a; }
  .plan-cta:hover .pki, .plan-link:hover .pki { transform: translateX(3px); }
}
.plan-cta:active { transform: scale(.985); }
.plan-cta:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.plan-dark .plan-cta:focus-visible { outline-color: var(--star); }
.plan-light .plan-cta:focus-visible { outline-color: var(--void); }
.plan-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 400 14px/1.5 var(--f-text); color: var(--soft); text-decoration: none; }
.plan-link .pki { font-size: 18px; transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) and (pointer: fine) { .plan-link:hover { color: inherit; text-decoration: underline; text-underline-offset: 4px; } }
.plan-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 6px; }

/* Wellness enquiry dialog (Void, shares .reg styles): session choices as toggle chips. */
.enq-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.enq-set legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 500; }
.enq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.enq-chip { position: relative; display: inline-flex; cursor: pointer; }
.enq-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.enq-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 10px; background: rgba(233, 228, 218, 0.08);
  color: var(--star); font: 400 14px/1.4 var(--f-text); transition: background-color .25s ease, color .25s ease; }
.enq-chip input:checked + span { background: var(--gold); color: var(--void); }
.enq-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .enq-chip:hover input:not(:checked) + span { background: rgba(233, 228, 218, 0.14); } }

@media (max-width: 1099px) { .plan-name { font-size: 28px; } .plans { max-width: 760px; } }
/* Below 900 px two columns get too narrow for the coverage list: one column, centred, still contained. */
@media (max-width: 899px) { .plans { grid-template-columns: 1fr; max-width: 560px; gap: 16px; } }
@media (max-width: 759px) {
  .packages { min-height: 0; padding: 48px var(--m) calc(64px + env(safe-area-inset-bottom)); }
  .plans { margin-top: 32px; gap: 14px; }
  .plan { padding: 28px 20px 20px; border-radius: 20px; }
  .plan-name { font-size: 28px; }
  .plan-row dd.plan-amount { font-size: 28px; }
  .plan-foot { margin-top: 28px; padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .plan-cta, .plan-cta .pki, .plan-link .pki, .enq-chip span { transition: none; } }

/* Phones (27 Oct, premium pass): Register interest and the wellness enquiry open as bottom sheets that slide up, with a
   grabber line, rounded top corners and the home-indicator safe area; the content scrolls inside the sheet. */
@media (max-width: 759px) {
  dialog.reg { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom); }
  dialog.reg[open] { animation: yl-sheet-up .5s cubic-bezier(.22, 1, .36, 1); }
  dialog.reg .reg-form { padding: 14px 20px 24px; }
  dialog.reg .reg-form::before { content: ""; justify-self: center; width: 40px; height: 4px; border-radius: 2px; background: rgba(233, 228, 218, 0.28); }
  dialog.reg .reg-head h2 { font-size: 28px; }
}
@keyframes yl-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.reg[open] { animation: none; } }
