/* =========================================================================
   /pricing — 3D style (2026-09-17). resources/views/marketing/pricing.blade.php
   Prefix px-. Builds on marketing-features.css (fx- hero, window, zoom, badges, ticks).
   ========================================================================= */

/* ---------- hero: plan tags floating off the billing screen ---------- */
.px-hero__badge { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(0,118,87,.18); color: #00674c; font-size: 14px; font-weight: 700; }
.px-layer--base { inset: 10% 8% 12% 2%; }
.px-layer--0 { left: -2%; top: 2%; }
.px-layer--1 { right: 2%; top: 30%; }
.px-layer--2 { left: 22%; bottom: -4%; }
.px-bill { flex: 1; display: grid; align-content: start; gap: 12px; padding: 16px; background: #f7faf9; }
.px-bill__head { display: flex; align-items: center; justify-content: space-between; }
.px-bill__head b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; color: var(--fx-ink); }
.px-bill .fx-grid2 { border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px #e8efed; }
.px-tag { display: grid; gap: 2px; min-width: 170px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: 0 0 0 1px rgba(7,42,42,.06), 0 34px 60px -26px rgba(0,50,40,.55); }
.px-tag em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-green); }
.px-tag b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; color: var(--fx-ink); }
.px-tag small { font-size: 13px; font-weight: 600; color: var(--fx-muted); letter-spacing: 0; }
.px-tag span { font-size: 12px; color: var(--fx-muted); }
.px-tag--hot { background: linear-gradient(150deg, #00a878, #006e52); box-shadow: 0 40px 70px -24px rgba(0,110,82,.7); }
.px-tag--hot em { color: #b9f36a; }
.px-tag--hot b, .px-tag--hot small, .px-tag--hot span { color: #fff; }
@media (max-width: 640px) {
  .px-layer--0 { left: 0; top: -4%; }
  .px-layer--1 { right: 0; top: 34%; }
  .px-layer--2 { left: 8%; bottom: -2%; }
  .px-tag { min-width: 0; padding: 10px 14px; }
  .px-tag b { font-size: 22px; }
}

/* ---------- toggle ---------- */
.px-plans-section { position: relative; overflow-x: clip; padding-block: clamp(56px, 7vw, 96px); background: linear-gradient(180deg, #fff, #f3f9f6 55%, #fff); scroll-margin-top: 80px; }
.px-switch { display: grid; justify-items: center; gap: 12px; margin-bottom: clamp(36px, 5vw, 64px); }
.px-switch__note { margin: 0; min-height: 22px; font-size: 14px; font-weight: 700; color: #00674c; }
.px-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 280px; max-width: 100%; padding: 5px; border-radius: 999px; background: #e7efec; box-shadow: inset 0 1px 2px rgba(7,42,42,.08); }
.px-toggle__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: #fff; box-shadow: 0 6px 16px -6px rgba(0,50,40,.35); transition: transform .45s cubic-bezier(.3,1.4,.5,1); }
.is-yearly .px-toggle__thumb { transform: translateX(100%); }
.px-toggle button { position: relative; z-index: 1; min-height: 44px; border: 0; background: none; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; color: #4f6564; cursor: pointer; }
.px-billing:not(.is-yearly) .px-toggle button:first-of-type, .is-yearly .px-toggle button:last-of-type { color: var(--fx-ink); }
.px-toggle button:focus-visible { outline: 2px solid var(--fx-leaf); outline-offset: 2px; }

/* ---------- plan cards: a 3D fan ---------- */
.px-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 1120px; margin: 0 auto; align-items: stretch; }
@media (max-width: 1023px) { .px-plans { max-width: 560px; } }
@media (min-width: 1024px) { .px-plans { grid-template-columns: repeat(var(--plans), minmax(0, 1fr)); } }
@media (min-width: 1024px) and (max-width: 1279px) { .px-limits span { padding-inline: 4px; } .px-limits b { font-size: 15px; letter-spacing: -.02em; } }
.px-plan-slot { display: flex; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s ease; }
.px-plan { position: relative; flex: 1; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(7,42,42,.08), 0 30px 60px -40px rgba(0,50,40,.45); transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; }
.px-plan:hover { box-shadow: 0 0 0 1px rgba(0,118,87,.25), 0 44px 80px -40px rgba(0,50,40,.55); }
.px-plan--hot { background: linear-gradient(165deg, #04332f, #002826 60%); color: #d9efe8; box-shadow: 0 0 0 1px rgba(127,240,201,.25), 0 50px 90px -40px rgba(0,80,60,.8); }
.px-plan--hot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 40% at 80% 0%, rgba(0,207,147,.35), transparent 70%), radial-gradient(50% 35% at 0% 100%, rgba(19,182,214,.22), transparent 70%); }
.px-plan > * { position: relative; }
.px-plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: linear-gradient(135deg, #b9f36a, #00cf93); color: #032b24; font-size: 12px; font-weight: 800; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0,207,147,.8); }
.mkt-body .px-plan__name { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; letter-spacing: -.02em; color: var(--fx-ink); }
.mkt-body .px-plan--hot .px-plan__name { color: #fff; }
.px-plan__tagline { margin: 4px 0 0; font-size: 14px; color: var(--fx-muted); }
.px-plan--hot .px-plan__tagline { color: #a9cfc6; }

/* the price flips over like a card when you change the billing period */
.px-price { margin-top: 20px; height: 58px; perspective: 700px; }
.px-price__flip { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,1.3,.5,1); }
.is-yearly .px-price__flip { transform: rotateX(-180deg); }
.px-price__face { position: absolute; inset: 0; display: flex; align-items: baseline; gap: 4px; -webkit-backface-visibility: hidden; backface-visibility: hidden; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 48px; font-weight: 800; line-height: 1.2; letter-spacing: -.04em; color: var(--fx-ink); font-variant-numeric: tabular-nums; }
.px-price__face span { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--fx-muted); }
.px-price__face--back { transform: rotateX(180deg); }
.px-plan--hot .px-price__face { color: #fff; }
.px-plan--hot .px-price__face span { color: #a9cfc6; }
.px-plan__save { min-height: 20px; margin: 2px 0 0; font-size: 13px; color: var(--fx-muted); }
.px-plan--hot .px-plan__save { color: #7ff0c9; }

.px-limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 20px; border-radius: 14px; overflow: hidden; background: #e6eeec; box-shadow: 0 0 0 1px #e6eeec; }
.px-limits span { display: grid; gap: 1px; padding: 10px 8px; background: #f7faf9; text-align: center; }
.px-limits b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; color: var(--fx-ink); font-variant-numeric: tabular-nums; }
.px-limits em { font-style: normal; font-size: 11.5px; color: var(--fx-muted); }
.px-plan--hot .px-limits { background: rgba(255,255,255,.12); box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.px-plan--hot .px-limits span { background: rgba(255,255,255,.06); }
.px-plan--hot .px-limits b { color: #fff; }
.px-plan--hot .px-limits em { color: #a9cfc6; }

.px-plan__features { list-style: none; flex: 1; display: grid; align-content: start; gap: 10px; margin: 22px 0 24px; padding: 0; }
.px-plan__features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: #3f5655; }
.px-plan__features .fx-ticks__mark { width: 18px; height: 18px; font-size: 10px; margin-top: 1px; }
.px-plan--hot .px-plan__features li { color: #d9efe8; }
.px-plan__inherits { color: var(--fx-ink) !important; }
.px-plan--hot .px-plan__inherits { color: #fff !important; }
.px-plan__cta { width: 100%; justify-content: center; }

@media (min-width: 1024px) {
  .px-plans { perspective: 1800px; gap: 24px; padding-top: 16px; }
  .px-plan-slot { transform-style: preserve-3d; }
  .px-plan-slot--left { transform: rotateY(9deg) translateZ(-30px); transform-origin: 100% 50%; }
  .px-plan-slot--right { transform: rotateY(-9deg) translateZ(-30px); transform-origin: 0 50%; }
  .px-plan-slot--hot { transform: translateZ(50px) translateY(-14px); z-index: 2; }
  /* before the grid is on screen (JS only), the cards wait further back */
  .px-plans.is-waiting .px-plan-slot { opacity: 0; }
  .px-plans.is-waiting .px-plan-slot--left { transform: rotateY(40deg) translateX(-80px) translateZ(-200px); }
  .px-plans.is-waiting .px-plan-slot--right { transform: rotateY(-40deg) translateX(80px) translateZ(-200px); }
  .px-plans.is-waiting .px-plan-slot--hot { transform: rotateX(28deg) translateY(120px) translateZ(-120px); }
  .px-plans.is-waiting .px-plan-slot--mid { transform: rotateX(28deg) translateY(120px) translateZ(-120px); }
  .px-plan-slot:nth-child(2) { transition-delay: .08s; }
  .px-plan-slot:nth-child(3) { transition-delay: .16s; }
}

/* ---------- how billing works ---------- */
.px-how { padding-top: 0; background: linear-gradient(180deg, #fff, #f6faf8); }
.px-invoice { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e8efed; }
.px-invoice__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed #dbe6e3; }
.px-invoice__top b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; color: var(--fx-ink); }
.px-invoice__top em { font-style: normal; font-size: 12px; color: var(--fx-muted); }
.px-invoice__line, .px-invoice__total { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: #3f5655; }
.px-invoice__line b { color: var(--fx-ink); font-variant-numeric: tabular-nums; }
.px-invoice__line--muted { color: var(--fx-muted); }
.px-invoice__line--muted b { font-weight: 600; color: var(--fx-muted); }
.px-invoice__total { padding-top: 10px; border-top: 1px solid #e8efed; font-weight: 700; color: var(--fx-ink); }
.px-invoice__total b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-variant-numeric: tabular-nums; }
.px-invoice .fx-dev__btn { padding: 11px; font-size: 13px; }

/* ---------- enterprise: 3D bars ---------- */
.px-enterprise { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 8vw, 110px); background: linear-gradient(180deg, #003a35, #001b1a); color: #d9efe8; }
.px-enterprise__grid { display: grid; gap: 40px; align-items: center; }
.mkt-body .px-enterprise .mkt-h2 { margin: 16px 0 0; color: #fff; }
.px-enterprise .mkt-lead { margin: 14px 0 0; color: #a9cfc6; }
@media (min-width: 1024px) { .px-enterprise__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.px-scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: clamp(14px, 3vw, 34px); align-items: end; height: 340px; padding: 0 20px 0 6px; }
.px-scale__col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; text-align: center; }
.px-scale__bar { position: relative; width: 100%; max-width: 86px; height: calc(var(--h) * 2.5px); flex-shrink: 0; margin-bottom: 20px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #19c893, #007657); transform-origin: 50% 100%; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
/* the top and side faces make each bar a block */
.px-scale__bar::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; background: #5ee4b8; transform: skewX(-45deg); transform-origin: 0 100%; }
.px-scale__bar::after { content: ""; position: absolute; top: 0; bottom: 0; right: -12px; width: 12px; background: #005a44; transform: skewY(-45deg); transform-origin: 0 0; }
.px-scale__col.is-hot .px-scale__bar { background: linear-gradient(180deg, #b9f36a, #00a878); }
.px-scale__col.is-hot .px-scale__bar::before { background: #dcff9e; }
.px-scale__col.is-hot .px-scale__bar::after { background: #00835f; }
.px-scale__col.is-custom .px-scale__bar { background: repeating-linear-gradient(180deg, rgba(127,240,201,.3) 0 8px, rgba(127,240,201,.12) 8px 16px); box-shadow: inset 0 0 0 1px rgba(127,240,201,.5); }
.px-scale__col.is-custom .px-scale__bar::before { background: rgba(127,240,201,.35); }
.px-scale__col.is-custom .px-scale__bar::after { background: rgba(127,240,201,.18); }
.px-scale__col b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(15px, 1.8vw, 20px); color: #fff; font-variant-numeric: tabular-nums; }
.px-scale__col em { font-style: normal; font-size: 12.5px; color: #a9cfc6; }
.px-scale.is-waiting .px-scale__bar { transform: scaleY(.04); }
.px-scale__col:nth-child(2) .px-scale__bar { transition-delay: .1s; }
.px-scale__col:nth-child(3) .px-scale__bar { transition-delay: .2s; }
.px-scale__col:nth-child(4) .px-scale__bar { transition-delay: .3s; }
@media (max-width: 640px) { .px-scale { height: 260px; } .px-scale__bar { height: calc(var(--h) * 1.7px); } }

/* ---------- matrix ---------- */
.px-matrix-section { overflow-x: clip; padding-block: clamp(64px, 8vw, 110px); background: #f6faf8; }
.px-matrix-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.px-matrix-head .mkt-h2 { margin: 16px 0 0; }
.px-matrix { max-width: 1080px; margin: 0 auto; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(7,42,42,.07), 0 40px 80px -50px rgba(0,50,40,.45); overflow: hidden; transform-origin: 50% 0; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity 1s ease; }
.px-matrix.is-waiting { opacity: 0; transform: perspective(1600px) rotateX(24deg) translateY(60px) scale(.94); }
.px-matrix__scroll { overflow-x: auto; }
.px-table { width: 100%; min-width: 640px; border-collapse: collapse; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.px-table th, .px-table td { padding: 13px 16px; border-bottom: 1px solid #eef3f2; font-size: 14px; text-align: center; }
.px-table th[scope="row"], .px-table thead th:first-child { text-align: left; font-weight: 500; color: #33494a; }
.px-table thead th { text-transform: none; letter-spacing: -.01em; padding-block: 20px; background: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 800; color: var(--fx-ink); }
.px-table thead th small { display: block; margin-top: 2px; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: var(--fx-muted); }
.px-table thead th:first-child { width: 40%; font-size: 13px; font-weight: 700; color: var(--fx-muted); }
.px-table .is-hot { background: #ecf8f3; }
.px-table thead th.is-hot { background: linear-gradient(180deg, #d9f3e9, #ecf8f3); box-shadow: inset 0 3px 0 #00a878; }
.px-table__section th { padding: 12px 16px; background: #f4f8f7; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #3f5655; }
.px-table tbody tr:not(.px-table__section):hover th, .px-table tbody tr:not(.px-table__section):hover td { background: #f6fbf9; }
.px-table tbody tr:not(.px-table__section):hover td.is-hot { background: #e2f5ed; }
.px-yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #00a878, #007657); color: #fff; font-size: 12px; font-weight: 800; }
.px-no { color: #9aabaa; }
.px-val { font-size: 13px; font-weight: 600; color: #33494a; }

@media (prefers-reduced-motion: reduce) {
  .px-toggle__thumb, .px-price__flip, .px-plan-slot, .px-plan, .px-scale__bar, .px-matrix { transition: none !important; }
}
