/* Pricing page. One Pea, one price: the hero, the one card (the whole decision
   on one screen), all you need, the bill Pea tears up, a few questions, the
   close and the footnotes. Uses the shared tokens only. */

/* The hero glow fades out softly instead of stopping in a hard line
   (sideways overflow stays clipped, so phones never scroll sideways). */
.pr-hero.phero { overflow-x: clip; overflow-y: visible; }
.pr-hero { padding-bottom: clamp(20px, 3vw, 34px); }
.pr-hero h1 { margin-top: 16px; }

/* ---------- The one card ----------
   Every "Make Pea yours" lands on #get. Pea stands on the card's top edge, so
   the anchor leaves room for Pea's height under the sticky header and the
   card follows straight after: name, price, button, then the small print. */
.pr-get { --ph: clamp(118px, 13vw, 150px); }
.pr-get { padding-block: calc(var(--ph) * 1.1 + 4px) 0; }
.pr-get .price { margin-top: 0; padding-top: clamp(30px, 4.4vw, 46px); padding-bottom: clamp(26px, 4vw, 40px); }
#get { scroll-margin-top: calc(var(--nav-h, 66px) + var(--ph) * 1.1 + 6px); }

/* Pea on the card: the key Pea, or the name-tag Pea once the visitor has named theirs */
.price__pea { position: absolute; right: clamp(18px, 4.5vw, 40px); bottom: calc(100% - var(--ph) * .035); display: block; transform-origin: 50% 100%; pointer-events: none; line-height: 0; }
.price__pea img { filter: drop-shadow(0 14px 16px rgba(34, 56, 26, .22)); }
.price__key { display: block; height: var(--ph); width: auto; }
/* the name-tag Pea is drawn a touch bigger so the name on its sticker reads */
.price__pea .pea-tag { --h: calc(var(--ph) * 1.1); }

.price__name { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; font: 700 13px/1.1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--pea); }
.price__name::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pea-hi); box-shadow: 0 0 0 4px rgba(111, 161, 74, .22); }
.price__name span { overflow-wrap: anywhere; }
.price .price__tag { margin-top: 16px; }
.price__cur { margin-left: 8px; font: 700 15px/1 var(--body); letter-spacing: .1em; color: var(--muted); vertical-align: .55em; }
.price .price__once { margin-top: 4px; font-size: clamp(22px, 2.8vw, 27px); }
.price .price__buy { margin-top: 22px; }
.price__sub b { display: block; font-weight: 750; }
.price__sub { margin-top: 12px; font-size: 15.5px; line-height: 1.4; color: var(--ink); text-wrap: balance; }
/* the requirement box: a solid soft fill (a dashed border read as an empty drop zone) */
.price__need { margin-top: 14px; padding: 11px 16px; border: 0; border-radius: var(--r-md); background: var(--paper-2); font-size: 14.5px; line-height: 1.4; color: var(--muted); text-wrap: balance; }
.price .price__list { margin: 22px 0 0; }
.price__list b { font-weight: 700; }
.price__small { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--line); }
.price .price__fine { margin-top: 0; text-wrap: balance; }
.price .price__fine + .price__fine { margin-top: 6px; }
.price__fine a { color: var(--pea); font-weight: 700; text-underline-offset: 3px; }
/* One small line for the not-sure-yet, under the fine print */
.price .price__unsure { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); text-wrap: balance; }
.price__unsure a { display: inline-block; padding-block: 4px; color: var(--pea); font-weight: 700; text-underline-offset: 3px; }
.price__unsure a:focus-visible, .price__fine a:focus-visible { outline: 2px solid var(--pea); outline-offset: 2px; border-radius: 4px; }
.price__list .fnref, .needs .fnref, .price__need .fnref { margin-left: 0; font-size: .68em; line-height: 0; vertical-align: .55em; }
/* Footnote marks are tiny, so the link carries a bigger invisible tap area
   (about 30px square) without moving the line around it. */
.fnref a { position: relative; display: inline-block; padding: 0 .16em; border-radius: 6px; color: var(--pea); font-weight: 700; line-height: 1; text-decoration: none; }
.fnref a::before { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); border-radius: 8px; }
.fnref a:hover { text-decoration: underline; }
.fnref a:focus-visible { outline: 2px solid var(--pea); outline-offset: 2px; }

/* All you need */
.pr-needs { padding-top: clamp(64px, 8vw, 100px); padding-bottom: 0; }

/* The bill Pea tears up, after all you need */
.pr-film { padding-block: clamp(64px, 8vw, 100px) 0; }
.pr-film .anim-frame { margin-top: 0; }

/* Questions */
.pr-faq { padding-top: clamp(70px, 9vw, 110px); padding-bottom: 0; }
.pr-faq .faq__pea { width: 92px; }
.pr-faq .faq a { color: var(--pea); font-weight: 700; }

/* Your turn */
.pr-close { padding-top: clamp(70px, 9vw, 110px); padding-bottom: 0; }
.pr-close__pea { width: clamp(140px, 16vw, 180px); height: auto; margin: 0 auto 8px; filter: drop-shadow(0 22px 26px rgba(34, 56, 26, .2)); transform-origin: 50% 100%; }
.pr-close .h2 { max-width: 11em; margin: 14px auto 0; }
.pr-close .price-note { margin-top: 18px; }

/* Footnotes */
/* room at the bottom for the footer's little Pea standing on its top rule */
.pr-fn { padding-block: clamp(56px, 7vw, 80px); }
.pr-fn .fn { padding-top: 18px; border-top: 1px solid var(--line); }
.pr-fn sup { margin-right: 3px; font-weight: 700; color: var(--pea); }
.pr-fn p { scroll-margin-top: calc(var(--nav-h, 66px) + 24px); }
.fn p:target { color: var(--ink); }

@media (max-width: 600px) {
  .price__cur { margin-left: 6px; font-size: 13px; }
  .price__list li { font-size: 16.5px; }
  .price__sub { font-size: 15px; }
  .price__need { font-size: 14px; padding: 10px 12px; }
}
