/* Pricing page: "live receipt". Loaded after pages.css.
   Receipts are cream thermal paper with a torn zigzag edge, dotted leaders and tabular
   numbers. Brand fonts only (Satoshi). Motion-only states live under .cg-motion. */

:root { --rc-paper: #FBF7EC; --rc-ink: #1A1A1A; --rc-muted: #6B675E; --rc-rule: rgba(26, 26, 26, 0.18); }

/* =========================================================
   The receipt, shared
   ========================================================= */
.rc {
  position: relative; padding: 24px 24px 32px; color: var(--rc-ink); background: var(--rc-paper);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 40px rgba(0, 0, 0, 0.18);
  border-radius: 4px 4px 0 0;
}
/* the torn zigzag bottom edge */
.rc::after {
  content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 10px; background: var(--rc-paper);
  -webkit-mask: conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) 50% / 16px 100%;
          mask: conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) 50% / 16px 100%;
}
.rc-top { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px dashed var(--rc-rule); text-align: center; }
.rc-top b { font-size: 16px; font-weight: 800; letter-spacing: 0.18em; }
.rc-top span { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--rc-muted); }
.rc-row { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 15px; white-space: nowrap; }
.rc-row > span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--rc-ink); }
.rc-row > i { flex: 1 1 16px; min-width: 16px; border-bottom: 2px dotted var(--rc-rule); transform: translateY(-4px); }
.rc-row > b { flex: 0 0 auto; font-weight: 800; text-align: right; }
.rc-cut { height: 0; margin: 8px 0; border-top: 1px dashed var(--rc-rule); }
.rc-big { font-size: 18px; padding-top: 8px; }
.rc-big > b { font-size: 22px; }
.rc-code { height: 32px; margin-top: 16px; background: repeating-linear-gradient(90deg, var(--rc-ink) 0 2px, transparent 2px 4px, var(--rc-ink) 4px 5px, transparent 5px 8px, var(--rc-ink) 8px 11px, transparent 11px 13px); opacity: 0.85; }
.rc-note { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--rc-muted); text-align: center; }
/* a value that just changed "prints" (opacity only, the line never moves) */
@keyframes rcPrint { 0% { opacity: 0.15; } 100% { opacity: 1; } }
.cg-motion .rc-row b.is-print { animation: rcPrint 0.3s steps(3) both; }

/* =========================================================
   Hero: Clara is the printer
   ========================================================= */
.pr-printer { position: relative; display: flex; flex-direction: column; align-items: center; width: min(100%, 420px); margin: 0 auto; }
.pr-head { position: relative; z-index: 2; display: flex; justify-content: center; }
.pr-clara.clara-ui { position: relative; inset: auto; padding: 0; gap: 0; }
.cg-motion .pr-clara .clara-orb, .pr-clara .clara-orb { width: 136px; height: 136px; }
.cg-motion .pr-clara .cg-clara-gl { width: 184px; height: 184px; margin: -92px 0 0 -92px; }
.pr-printer .clara-stop { display: none !important; }
.pr-slot { position: relative; z-index: 3; width: 100%; height: 18px; margin-top: 8px; border-radius: 9px; background: #0E0E0E; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.08); }
.pr-slot i { position: absolute; right: 12px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 8px #3DDC84; }
.cg-motion .pr-printer.is-printing .pr-slot i { animation: prLed 0.5s steps(2) infinite; }
@keyframes prLed { 50% { opacity: 0.25; } }
.pr-feed { position: relative; width: calc(100% - 32px); margin-top: -9px; padding-bottom: 14px; overflow: hidden; }
.pr-hero-rc { padding-top: 24px; }
.cg-motion .pr-hero-rc { transition: clip-path 0.4s cubic-bezier(0.2, 0.7, 0.3, 1); }
.cg-motion .pr-hero-rc.rc-instant { transition: none; }
.cg-motion .pr-hero-rc .rc-line { opacity: 0; transition: opacity 0.2s steps(2); }
.cg-motion .pr-hero-rc .rc-line.is-on { opacity: 1; }
.pr-hero-rc .rc-big b { background: var(--c-yellow); padding: 0 8px; border-radius: 4px; }
.pr-hint { margin-top: 16px; }
.pr-head.clara-active ~ .pr-hint { visibility: hidden; }
.pr-dock { top: calc(100% - 44px); }
/* "Drag the slider": the Find My Plan button gives a little nudge */
.cg-motion .pr-find.is-nudge { animation: prNudge 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 2; }
@keyframes prNudge { 0%, 100% { transform: none; } 40% { transform: translateY(-6px) scale(1.05); box-shadow: 0 0 0 4px rgba(255, 208, 44, 0.5); } }

/* =========================================================
   Plans: the till
   ========================================================= */
.pr-till { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.pr-till-left { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pr-dial { padding: 20px 24px; border-radius: 20px; background: var(--c-ink); color: var(--c-white); }
.pr-dial-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pr-dial .pg-f-read output { min-width: 5.2ch; text-align: right; }
.pr-dial .cg-ask { margin: 12px 0 0; }
.pr-dial .cg-ask-label { color: rgba(255, 255, 255, 0.7); }
.pr-till-rc { width: 100%; max-width: 420px; justify-self: center; }
.pr-till-rc .rc-row > b { min-width: 7.5em; }
.pr-till-rc .rc-big > b { min-width: 6em; }

/* tickets: the plan cards get a perforated stub line with notches */
.pr-tickets .price-card {
  -webkit-mask: radial-gradient(circle 12px at 0 var(--py, 112px), transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% var(--py, 112px), transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 var(--py, 112px), transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% var(--py, 112px), transparent 98%, #000) right / 51% 100% no-repeat;
  overflow: visible;
}
.pr-tickets .price-card::before, .cg-motion .pr-tickets .price-card.featured::before { content: ''; position: absolute; inset: var(--py, 112px) 16px auto 16px; height: 0; border-top: 2px dashed rgba(26, 26, 26, 0.2); border-radius: 0; animation: none; background: none; padding: 0; -webkit-mask: none; mask: none; }
.pr-tickets .price-card.featured::before, .cg-motion .pr-tickets .price-card.featured::before { border-top-color: rgba(255, 255, 255, 0.25); }
.cg-motion .pr-tickets .price-card.featured { border-color: var(--c-ink); }
.pr-tickets .price-badge { top: 12px; }
.pr-tickets .price-card.featured .price-tier { margin-top: 20px; }
/* the slider's pick: lifted and stamped */
.pr-stamp {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  padding: 4px 10px; border: 2px solid currentColor; border-radius: 6px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #B8860B; transform: rotate(-8deg); opacity: 0; pointer-events: none;
}
.price-card.featured .pr-stamp { color: var(--c-yellow); top: 44px; }
.price-card.is-best .pr-stamp { opacity: 1; }
.cg-motion .price-card.is-best .pr-stamp { animation: prStamp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes prStamp { 0% { opacity: 0; transform: rotate(-8deg) scale(1.8); } 100% { opacity: 1; transform: rotate(-8deg) scale(1); } }
.pr-tickets .price-card.is-best { border-color: var(--c-yellow); box-shadow: none; }

/* =========================================================
   Every plan includes: the itemized receipt
   ========================================================= */
.pr-inc-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.pr-inc-rc { width: 100%; max-width: 560px; justify-self: center; }
.rc-item { padding: 4px 0 8px; border-bottom: 1px dashed rgba(26, 26, 26, 0.1); }
.rc-item:last-of-type { border-bottom: 0; }
.rc-item .rc-row { padding-bottom: 0; font-weight: 700; }
.rc-item .rc-row > b { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #8A6D00; }
.rc-item p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--rc-muted); }
.cg-motion .pr-inc-rc.is-armed .rc-line { opacity: 0; transform: translateY(-6px); transition: opacity 0.25s ease-out, transform 0.25s ease-out; }
.cg-motion .pr-inc-rc.is-armed .rc-line.is-on { opacity: 1; transform: none; }
.pr-inc-rc { padding-bottom: 72px; }
.pr-big-stamp {
  position: absolute; right: 24px; bottom: 20px; padding: 8px 16px;
  border: 3px solid #C0392B; border-radius: 8px; color: #C0392B;
  font-size: 16px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  transform: rotate(-10deg); opacity: 0.85; pointer-events: none; mix-blend-mode: multiply;
}
.cg-motion .pr-inc-rc.is-armed .pr-big-stamp { opacity: 0; }
.cg-motion .pr-inc-rc.is-stamped .pr-big-stamp { animation: prBigStamp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes prBigStamp { 0% { opacity: 0; transform: rotate(-10deg) scale(2); } 100% { opacity: 0.85; transform: rotate(-10deg) scale(1); } }

/* =========================================================
   Usage statement (the meter, printed on paper)
   ========================================================= */
.pr-statement.pg-meter { background: var(--rc-paper); color: var(--rc-ink); box-shadow: 0 18px 40px rgba(26, 26, 26, 0.14); border-radius: 4px 4px 0 0; padding: 24px 24px 32px; }
.pr-statement .pg-meter-top { color: var(--rc-muted); margin-top: 8px; }
.pr-statement .pg-meter-line { color: #1E8E4E; }
.pr-statement .pg-meter-val { margin: 0; font-size: 24px; font-weight: 800; color: var(--rc-ink); letter-spacing: -0.01em; }
.pr-statement .pg-meter-bar { margin-top: 36px; background: rgba(26, 26, 26, 0.1); }
.pr-statement .pg-meter-fill { background: var(--rc-ink); }
.pr-statement .pg-meter-over { background: repeating-linear-gradient(135deg, var(--c-yellow) 0 6px, #E0B400 6px 12px); }
.pr-statement .pg-meter-mark { background: #C0392B; }
.pr-statement .pg-meter-mark span { color: #C0392B; }
.pr-statement .pg-meter-status { color: var(--rc-muted); }
.pr-statement .pg-meter-status b { color: var(--rc-ink); }
.pr-statement.is-over .pg-meter-status b { color: #8A6D00; }
.pr-statement .pg-meter-log li { background: none; border-bottom: 1px dashed rgba(26, 26, 26, 0.14); border-radius: 0; color: var(--rc-ink); padding: 8px 0; }
.pr-statement .pg-log-ok { color: #1E8E4E; }
.pr-statement .pg-meter-foot { border-top: 1px dashed var(--rc-rule); color: var(--rc-muted); }
.pr-statement .pg-meter-never b { color: #1E8E4E; }

/* =========================================================
   CTA: the tear-off coupon
   ========================================================= */
.pr-coupon {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); align-items: stretch;
  max-width: 1040px; margin: 0 auto; border: 2px dashed rgba(255, 208, 44, 0.7); border-radius: 24px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cg-motion .pr-coupon-stub b { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s; transform: scale(0.85); }
.cg-motion .pr-coupon.is-in .pr-coupon-stub b { transform: scale(1); }
.pr-scissors { position: absolute; top: -14px; left: 48px; width: 28px; height: 28px; padding: 2px; color: var(--c-yellow); background: var(--c-ink); transform: rotate(90deg); }
.cg-motion .pr-coupon.is-in .pr-scissors { animation: prSnip 1.6s ease-in-out 0.4s both; }
@keyframes prSnip { from { left: 48px; } to { left: 72%; } }
.pr-coupon-stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 32px 16px;
  border-right: 2px dashed rgba(255, 208, 44, 0.45); text-align: center; color: var(--c-white);
}
.pr-coupon-stub span { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.pr-coupon-stub b { font-size: clamp(40px, 6vw, 64px); font-weight: 900; letter-spacing: -0.02em; line-height: 1; color: var(--c-yellow); }
.pr-coupon-main { padding: 40px 48px; }
.pr-coupon-main .h2 { margin-top: 8px; }
.pr-coupon-main .pg-cta-text { margin: 16px 0 0; max-width: 600px; }
.pr-coupon-main .cg-ask { margin: 16px 0 24px; }
.pr-coupon-main .hero-buttons { margin-bottom: 0; }

/* =========================================================
   Desktop one-screen tuning
   ========================================================= */
@media (min-width: 1024px) and (min-height: 640px) {
  .cg-fit .pr-printer { width: min(100%, 420px, calc((100svh - 260px) * 1.1)); }
  .cg-fit .pr-clara .clara-orb { width: clamp(96px, 17vh, 136px); height: clamp(96px, 17vh, 136px); }
  .cg-fit .pr-hero-rc { padding: clamp(16px, 2.6vh, 24px) 20px clamp(20px, 3vh, 32px); }
  .cg-fit .pr-hero-rc .rc-row { padding: clamp(3px, 0.6vh, 6px) 0; font-size: clamp(14px, 2vh, 15px); }
  .cg-fit .pr-hero-rc .rc-code { height: clamp(20px, 3.4vh, 32px); margin-top: clamp(8px, 1.6vh, 16px); }
  .cg-fit .pr-plans .pg-plans-head .h2 { font-size: clamp(28px, 4.6vh, 44px); }
  .cg-fit .pr-till { gap: 32px; }
  .cg-fit .pr-till-left { gap: clamp(12px, 2vh, 24px); }
  .cg-fit .pr-till-rc { padding: clamp(12px, 2vh, 24px) 20px clamp(16px, 2.6vh, 32px); }
  .cg-fit .pr-till-rc .rc-row { padding: clamp(2px, 0.5vh, 6px) 0; }
  .cg-fit .pr-till-rc .rc-top { padding-bottom: clamp(6px, 1.2vh, 12px); margin-bottom: 4px; }
  .cg-fit .pr-till-rc .rc-note { margin-top: clamp(4px, 1vh, 12px); }
  .cg-fit .pr-dial { padding: clamp(12px, 2vh, 20px) 24px; }
  .cg-fit .pr-includes .rc-item p { font-size: clamp(13px, 1.9vh, 14px); }
  .cg-fit .pr-includes .rc-item { padding: clamp(2px, 0.5vh, 4px) 0 clamp(4px, 0.9vh, 8px); }
  .cg-fit .pr-includes .rc-row { padding-top: clamp(3px, 0.6vh, 6px); }
  .cg-fit .pr-statement .pg-meter-log { min-height: 0; }
  .cg-fit .pr-coupon-main { padding: clamp(24px, 4vh, 40px) 48px; }
}

/* =========================================================
   Phones and tablets
   ========================================================= */
@media (max-width: 1023px) {
  .pr-till, .pr-inc-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pr-coupon { grid-template-columns: minmax(0, 1fr); }
  .pr-coupon-stub { border-right: 0; border-bottom: 2px dashed rgba(255, 208, 44, 0.45); padding: 24px 16px; }
}
@media (max-width: 767px) {
  .pr-printer { width: min(100%, 340px); margin-top: 24px; }
  .cg-motion .pr-clara .clara-orb, .pr-clara .clara-orb { width: 104px; height: 104px; }
  .cg-motion .pr-clara .cg-clara-gl { width: 140px; height: 140px; margin: -70px 0 0 -70px; }
  .rc { padding: 20px 16px 28px; }
  .rc-row { font-size: 14px; }
  .pr-dial { padding: 16px 20px; }
  .pr-dial-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pr-dial .pg-f-read output { min-width: 0; text-align: left; }
  .pr-till-rc .rc-row > b { min-width: 0; }
  .pr-big-stamp { right: 12px; bottom: 24px; font-size: 13px; }
  .pr-coupon-main { padding: 24px 20px; }
}

/* the till: compact receipt on laptop screens so plans + tickets fit one screen */
.pg-plans-head .cg-ask { margin: 12px 0 0; }
@media (min-width: 1024px) and (min-height: 640px) {
  .cg-fit .pr-till-rc .rc-big { padding-top: 4px; font-size: 16px; }
  .cg-fit .pr-till-rc .rc-big > b { font-size: 20px; }
  .cg-fit .pr-tickets { margin-top: clamp(16px, 2.6vh, 32px); }
}

/* the plans now have their own screen */
.pr-tix-label { display: block; text-align: center; margin-bottom: 24px; }
.pr-plans-tix .pr-tickets { margin-top: 0; }
.pr-plans .pr-till { align-items: center; }
.pr-plans .pr-till-rc { max-width: 440px; }
@media (min-width: 1024px) and (min-height: 640px) {
  .cg-fit .pr-plans-tix .pr-tix-label { margin-bottom: clamp(16px, 3vh, 32px); }
  .cg-fit .pr-plans .pr-till-rc .rc-row { padding: clamp(4px, 0.9vh, 8px) 0; font-size: 16px; }
  .cg-fit .pr-plans .pr-till-rc .rc-big > b { font-size: clamp(20px, 3.4vh, 26px); }
}

/* room for the tear line between the price details and the features */
.pr-tickets .price-card .price-est, .cg-fit .pr-tickets .price-card .price-est { margin-bottom: 28px; }

@media (max-width: 767px) { .pr-inc-rc { padding-bottom: 96px; } .pr-big-stamp { bottom: 28px; right: 16px; } }

.pr-coupon-main .cg-ask { justify-content: flex-start; }
