/* join-pricing.css: the pricing section Daniel likes, in /join's new clothes (docs/join-redesign/spec.md 10).
   Same words, same wiring (tiers-ui.js pricingHtml + wirePricing), same order: only the finish is new.
   Every selector starts #pricing .tp-pricing, so the desk's plan card and the landing's seal (both
   styled by tiers.css) are untouched. Tokens only, targets 44px and up.

   Measured on the surfaces they sit on:
     --tx on --card 15.69, on --g 14.18, on --pop-butter 11.64 (the stub, the step 03 tag)
     --card on --tx 15.69 (the step number pills, the switch's chosen thumb)
     --tx2 on --card 7.74 (the ticket's words, the step texts), --steel-text on --g 6.91 (facts)
     --pri on --g 4.50 and on --card 4.98: the ground bead and the rings, graphics that need 3:1
     --on-enc on the navy plate 15.31 */

#pricing .tp-pricing .tp-h { font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; line-height: 1.05; }
@media (min-width: 900px) { #pricing .tp-pricing .tp-h { font-size: 4rem; } }

/* the switch: a pill instrument, the chosen side ink on paper */
#pricing .tp-pricing .tp-switch { background: var(--sunk); border-radius: 999px; padding: 4px; gap: 4px; box-shadow: inset 0 1px 2px rgba(60, 36, 18, .12); }
#pricing .tp-pricing .tp-switch button { min-height: 44px; border-radius: 999px; padding: 8px 18px; color: var(--steel-text); }
#pricing .tp-pricing .tp-switch button[aria-checked="true"] { background: var(--tx); color: var(--card); box-shadow: 0 6px 14px -8px rgba(var(--graphite-rgb), .8); }

/* the ₪0 band is a ticket: a butter stub with the price, a perforation, then the words */
#pricing .tp-pricing .tp-band { position: relative; gap: 0; padding: 0; margin-top: 26px; margin-block-end: 40px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  overflow: hidden; align-items: stretch; box-shadow: 0 12px 30px -20px rgba(60, 36, 18, .35); }
#pricing .tp-pricing .tp-coin { width: auto; height: auto; min-width: 96px; border-radius: 0; padding: 14px 18px; font-size: 2rem; font-weight: 600; background: var(--pop-butter);
  box-shadow: none; position: relative;
  -webkit-mask: radial-gradient(circle 9px at 100% 0, transparent 98%, black) top / 100% 51% no-repeat, radial-gradient(circle 9px at 100% 100%, transparent 98%, black) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 9px at 100% 0, transparent 98%, black) top / 100% 51% no-repeat, radial-gradient(circle 9px at 100% 100%, transparent 98%, black) bottom / 100% 51% no-repeat; }
html[dir=rtl] #pricing .tp-pricing .tp-coin {
  -webkit-mask: radial-gradient(circle 9px at 0 0, transparent 98%, black) top / 100% 51% no-repeat, radial-gradient(circle 9px at 0 100%, transparent 98%, black) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 9px at 0 0, transparent 98%, black) top / 100% 51% no-repeat, radial-gradient(circle 9px at 0 100%, transparent 98%, black) bottom / 100% 51% no-repeat; }
#pricing .tp-pricing .tp-band p { flex: 1; align-self: center; padding: 14px 18px; border-inline-start: 1.5px dashed var(--line); color: var(--tx2); }
#pricing .tp-pricing .tp-band b { color: var(--tx); }

/* 01 02 03: a staircase of build plates on ONE ground bead, the level 2 mark a floor above the rest */
#pricing .tp-pricing .tp-grow { --gb: 3px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 0; align-items: end; }
#pricing .tp-pricing .tp-grow li { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; align-self: start; }
#pricing .tp-pricing .tp-grow::before { top: var(--plate-top, 124px); bottom: auto; inset-inline: 0; width: auto; height: var(--gb); border-radius: 3px; background: var(--pri); transform-origin: right center; }
html[dir=ltr] #pricing .tp-pricing .tp-grow::before { transform-origin: left center; }
#pricing .tp-pricing .tp-grow.is-armed:not(.is-in)::before { transform: scaleX(0); }
#pricing .tp-pricing .tp-frame { width: 100%; max-width: 132px; height: 96px; border: 0; border-radius: 16px; padding-bottom: 10px;
  background: repeating-linear-gradient(0deg, rgba(var(--graphite-rgb), .06) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, rgba(var(--graphite-rgb), .06) 0 1px, transparent 1px 10px), var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 14px 26px -18px rgba(60, 36, 18, .5); }
#pricing .tp-pricing .tp-grow li:nth-child(1) .tp-frame { margin-top: 28px; }
#pricing .tp-pricing .tp-grow li:nth-child(2) .tp-frame { height: 108px; margin-top: 16px; }
#pricing .tp-pricing .tp-grow li:nth-child(3) .tp-frame { height: 124px; box-shadow: 0 0 0 2px var(--pri), 0 14px 26px -18px rgba(60, 36, 18, .5); }
#pricing .tp-pricing .tp-frame .tp-fac { width: 58px; }
#pricing .tp-pricing .tp-grow { --plate-top: 124px; }
#pricing .tp-pricing .tp-gift-tag { position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(calc(50% * var(--dir, -1) * -1)); z-index: 2; white-space: nowrap;
  background: var(--pop-butter); color: var(--tx); font-weight: 700; font-size: 0.875rem; padding: 3px 10px; border-radius: 999px; box-shadow: 0 6px 16px -8px rgba(var(--graphite-rgb), .5); }
#pricing .tp-pricing .tp-grow li:nth-child(3) .tp-frame + .tp-gift-tag { top: -12px; }
/* a narrow phone: the tag starts at the frame's own edge rather than centring past the screen's */
@media (max-width: 379px) { #pricing .tp-pricing .tp-gift-tag { inset-inline-start: auto; inset-inline-end: 0; transform: none; } }
#pricing .tp-pricing .tp-n { display: inline-block; font-size: 0.875rem; background: var(--tx); color: var(--card); padding: 1px 8px; border-radius: 999px; margin-bottom: 6px; }
#pricing .tp-pricing .tp-grow b { font-size: 1.0625rem; }
#pricing .tp-pricing .tp-grow p { font-size: 0.9375rem; line-height: 1.45; }
@media (min-width: 820px) {
  #pricing .tp-pricing .tp-grow { gap: 28px; --plate-top: 168px; }
  #pricing .tp-pricing .tp-frame { max-width: 168px; height: 124px; }
  #pricing .tp-pricing .tp-grow li:nth-child(1) .tp-frame { margin-top: 44px; }
  #pricing .tp-pricing .tp-grow li:nth-child(2) .tp-frame { height: 142px; margin-top: 26px; }
  #pricing .tp-pricing .tp-grow li:nth-child(3) .tp-frame { height: 168px; }
  #pricing .tp-pricing .tp-frame .tp-fac { width: 88px; }
  #pricing .tp-pricing .tp-grow b { font-size: 1.1875rem; }
  #pricing .tp-pricing .tp-grow p { font-size: 1rem; }
}

/* the plates: equal heights, the prices on one baseline, the CTA and the foot at the bottom */
#pricing .tp-pricing .tp-plates { margin-top: 40px; }
@media (min-width: 900px) { #pricing .tp-pricing .tp-plates { align-items: stretch; } }
#pricing .tp-pricing .tp-plate { border-radius: 28px; padding: 22px 18px 20px; gap: 14px; }
@media (min-width: 900px) { #pricing .tp-pricing .tp-plate { padding: 30px 28px 28px; } }
#pricing .tp-pricing .tp-free { background: var(--card); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 24px 50px -32px rgba(60, 36, 18, .45); }
#pricing .tp-pricing .tp-pro {
  background: radial-gradient(90% 60% at 0% 0%, color-mix(in srgb, var(--accent-bright) 22%, transparent), transparent 62%),
    repeating-linear-gradient(0deg, rgba(var(--powder-rgb), .06) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(var(--powder-rgb), .06) 0 1px, transparent 1px 24px),
    linear-gradient(170deg, var(--dark-2), var(--dark-1)); }
html[dir=ltr] #pricing .tp-pricing .tp-pro { background-position: 100% 0, 0 0, 0 0, 0 0; }
#pricing .tp-pricing .tp-price { min-height: 96px; align-content: flex-end; align-items: baseline; }
#pricing .tp-pricing .tp-amt { font-size: 3.25rem; line-height: 1; }
#pricing .tp-pricing .tp-free-amt { font-size: 3.5rem; }
#pricing .tp-pricing .tp-ribbon, #pricing .tp-pricing .tp-start, #pricing .tp-pricing .tp-here { font-size: 0.875rem; }
#pricing .tp-pricing .tp-chip { font-size: 0.875rem; }
#pricing .tp-pricing .tp-slot i { font-size: 0.875rem; }
#pricing .tp-pricing .tp-pill { border-width: 2px; box-shadow: 0 0 0 4px var(--g), 0 10px 24px -14px rgba(var(--graphite-rgb), .5); font-size: 0.875rem; }
#pricing .tp-pricing .tp-link-main { stroke-width: 3; }
#pricing .tp-pricing .tp-cta { min-height: 52px; }
body.is-joined #pricing .tp-pricing .tp-cta { display: none; }

/* the facts: one quiet row, hairlines between, wrapping on a phone */
#pricing .tp-pricing .tp-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; margin-top: 30px; }
#pricing .tp-pricing .tp-facts li { background: none; border: 0; border-radius: 0; padding: 4px 16px; color: var(--steel-text); }
#pricing .tp-pricing .tp-facts li + li { border-inline-start: 1px solid var(--line); }
@media (max-width: 599px) { #pricing .tp-pricing .tp-facts li + li { border-inline-start: 0; } #pricing .tp-pricing .tp-facts { justify-content: flex-start; } #pricing .tp-pricing .tp-facts li { padding: 2px 0; } }

/* a phone: tighter, never folded (Daniel likes the lists as they are). Measured at 390: the section
   stays under 2,100px with every list open. */
@media (max-width: 599px) {
  #pricing.section-pad { padding-block: 32px 28px; }
  #pricing .tp-pricing .tp-h { font-size: 2.25rem; }
  #pricing .tp-pricing .tp-lead { font-size: 1rem; line-height: 1.5; }
  #pricing .tp-pricing .tp-head { gap: 12px; }
  #pricing .tp-pricing .tp-band { margin-top: 18px; margin-block-end: 28px; }
  #pricing .tp-pricing .tp-coin { min-width: 64px; padding: 10px 12px; font-size: 1.5rem; }
  #pricing .tp-pricing .tp-band p { padding: 10px 12px; font-size: 0.875rem; line-height: 1.45; }
  #pricing .tp-pricing .tp-grow { gap: 6px; }
  #pricing .tp-pricing .tp-grow li { gap: 6px; }
  #pricing .tp-pricing .tp-grow b { font-size: 0.9375rem; }
  #pricing .tp-pricing .tp-grow p { font-size: 0.875rem; line-height: 1.35; }
  #pricing .tp-pricing .tp-n { margin-bottom: 2px; }
  #pricing .tp-pricing .tp-gift-tag { font-size: 0.875rem; padding: 2px 8px; }
  #pricing .tp-pricing .tp-plates { grid-template-rows: auto 64px auto; margin-top: 24px; }
  #pricing .tp-pricing .tp-plate { padding: 18px 14px 16px; gap: 10px; }
  #pricing .tp-pricing .tp-price { min-height: 64px; padding-block: 0 8px; }
  #pricing .tp-pricing .tp-amt, #pricing .tp-pricing .tp-free-amt { font-size: 2.75rem; }
  #pricing .tp-pricing .tp-list { gap: 6px; }
  #pricing .tp-pricing .tp-list li { font-size: 0.9375rem; line-height: 1.4; }
  #pricing .tp-pricing .tp-meter { padding: 10px 12px; }
  #pricing .tp-pricing .tp-facts { margin-top: 20px; }
}
