/* PlotVibe's Pricing page, on top of site.css and features.css. Five plan cards (the popular one lit by a turning
   gradient border), the billing and currency switches, and a comparison table with a sticky header and first column. */

.pr-hero { padding-bottom: 0; }
.pr-hero .fx-title { font-size: clamp(46px, 8.4vw, 118px); }

/* ---- the switches ---- */
.pr-switches { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; margin-top: 36px; }
.pr-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.pr-seg-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 12px; background: var(--grad); box-shadow: 0 8px 26px rgba(138, 18, 253, .45);
  transform: translateX(var(--x, 100%)); transition: transform .4s cubic-bezier(.3, .8, .3, 1); }
.pr-seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15.5px; color: var(--muted); transition: color .3s; white-space: nowrap; }
.pr-seg button[aria-pressed="true"] { color: #fff; }
.pr-seg em { font-style: normal; font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; color: #0b2a1d; background: #6ff0b2; }
.pr-cur { display: flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.pr-cur button { height: 36px; padding: 0 12px; border-radius: 9px; border: 0; background: none; cursor: pointer; font: inherit; font-family: var(--mono); font-size: 13px; color: var(--muted); transition: color .2s, background .2s; }
.pr-cur button[aria-pressed="true"] { color: #fff; background: rgba(138, 18, 253, .25); }
.pr-seg button:focus-visible, .pr-cur button:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 2px; }

/* ---- the cards ---- */
.pr-plans { padding-top: 60px; }
.pr-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.pr-card { position: relative; display: flex; flex-direction: column; padding: 28px 22px 24px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 16, 48, .85), rgba(12, 8, 24, .9)); transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .35s;
  animation: pr-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.pr-card:nth-child(2) { animation-delay: .06s; } .pr-card:nth-child(3) { animation-delay: .12s; } .pr-card:nth-child(4) { animation-delay: .18s; } .pr-card:nth-child(5) { animation-delay: .24s; }
@keyframes pr-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.pr-card:hover { transform: translateY(-6px); border-color: rgba(185, 138, 255, .4); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
/* the popular plan: a gradient border that slowly turns, and a glow */
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.pr-card.pop { border: 0; padding: 29px 23px 25px; background: linear-gradient(180deg, rgba(44, 22, 92, .95), rgba(16, 9, 34, .95)) padding-box,
  conic-gradient(from var(--a), #5a0ee0, #b53efc, #26c281, #8a12fd, #5a0ee0) border-box; border: 1.5px solid transparent;
  box-shadow: 0 40px 100px rgba(138, 18, 253, .4); animation: pr-rise .8s .12s cubic-bezier(.2, .7, .2, 1) both, pr-turn 6s linear infinite; transform: translateY(-10px); }
.pr-card.pop:hover { transform: translateY(-16px); }
@keyframes pr-turn { to { --a: 360deg; } }
.pr-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; white-space: nowrap;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: #fff; background: var(--grad); box-shadow: 0 8px 24px rgba(138, 18, 253, .5); }
.pr-card h3 { font-size: 26px; font-weight: 800; }
.pr-card.pop h3 { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-blurb { margin-top: 8px; color: var(--muted); font-size: 14px; min-height: 4.2em; }
.pr-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 18px; }
.pr-per { white-space: nowrap; }
.pr-amt { font-family: var(--display); font-size: clamp(28px, 2.3vw, 38px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; letter-spacing: -0.02em; }
.pr-per { color: var(--muted); font-size: 14px; }
.pr-bill { margin-top: 8px; min-height: 2.8em; color: var(--dim); font-size: 13px; }
.pr-save { color: #6ff0b2; font-weight: 600; }
.pr-cta { width: 100%; margin-top: 8px; height: 46px; }
.pr-card.free .pr-cta { background: rgba(255, 255, 255, .07); }
.pr-keys { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.pr-keys li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.pr-keys b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pr-card.pop .pr-keys b { color: #e6d6ff; }
.pr-extra { margin-top: auto; padding-top: 18px; font-size: 14px; color: #d6cfe8; }
.pr-extra em { display: block; margin-bottom: 4px; font-style: normal; font-size: 12px; color: var(--violet-soft); letter-spacing: .02em; }
.pr-soon { display: inline-block; font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 500; padding: 1px 7px; border-radius: 999px; vertical-align: 1px;
  color: #dccbff; background: rgba(138, 18, 253, .2); border: 1px solid rgba(185, 138, 255, .3); }
.pr-fine { width: fit-content; margin: 26px auto 0; padding: 6px 14px; color: #ffb3b6; font-family: var(--mono); font-size: 12px; }
.pr-fine.is-draft { position: relative; outline: 1px dashed rgba(242, 84, 91, .5); border-radius: 8px; }
.pr-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin: 30px 0 0; padding: 0; color: var(--muted); font-size: 14.5px; }
.pr-trust li { display: flex; align-items: center; gap: 9px; }
.pr-trust svg { width: 20px; height: 20px; color: var(--up); }

/* ---- the comparison table ---- */
.pr-table-wrap { position: relative; margin-top: 46px; border-radius: 24px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(18, 12, 34, .9), rgba(9, 6, 18, .95)); }
.pr-scroll { border-radius: 24px 24px 0 0; }
.pr-table { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.pr-table thead th { position: sticky; top: calc(68px + env(safe-area-inset-top)); z-index: 3; padding: 20px 12px 16px; text-align: center; vertical-align: bottom; background: rgba(13, 9, 26, .96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); }
.pr-table thead th:first-child { border-top-left-radius: 24px; }
.pr-table thead th:last-child { border-top-right-radius: 24px; }
.pr-table thead th.pr-feat-h { text-align: left; padding-left: 26px; font-family: var(--display); font-size: 22px; font-weight: 800; color: #fff; vertical-align: middle; }
.pr-th-name { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; color: #fff; }
.pr-table thead th.pop .pr-th-name { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-th-price { display: block; margin-top: 2px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-weight: 500; }
.pr-th-cta { height: 34px; padding: 0 14px; margin-top: 10px; font-size: 13.5px; border-radius: 10px; }
.pr-table th[scope="row"] { text-align: left; font-weight: 500; color: #d6cfe8; padding: 13px 14px 13px 26px; position: sticky; left: 0; z-index: 1; width: 34%; background: #0e0a1c; min-width: 280px; }
.pr-table td { text-align: center; padding: 13px 10px; color: #fff; border-top: 1px solid rgba(196, 168, 255, .07); }
.pr-table tbody tr:not(.pr-gh) th { border-top: 1px solid rgba(196, 168, 255, .07); }
.pr-table td.pop, .pr-table thead th.pop { background-color: rgba(138, 18, 253, .09); }
.pr-table thead th.pop { background: rgba(38, 16, 74, .97); }
.pr-table td b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pr-table tbody tr:not(.pr-gh):hover td, .pr-table tbody tr:not(.pr-gh):hover th { background-color: rgba(138, 18, 253, .14); }
.pr-yes { width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: #6ff0b2; background: rgba(38, 194, 129, .16); vertical-align: middle; }
.pr-no { color: #4a4362; }
.pr-gh th { position: sticky; left: 0; padding: 26px 26px 10px !important; background: transparent !important; text-align: left; }
.pr-gh th span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; font-weight: 800; color: #fff; }
.pr-gh th em { margin-left: 10px; font-style: normal; font-size: 12.5px; color: var(--dim); font-weight: 400; }
.pr-gi { width: 22px; height: 22px; color: var(--violet-soft); }
.pr-table-wrap:not(.open) tr.pr-more { display: none; }
.pr-mtabs { display: none; }
.pr-more-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 60px; border: 0; border-top: 1px solid var(--line-2); border-radius: 0 0 24px 24px;
  cursor: pointer; font: inherit; font-weight: 600; font-size: 15.5px; color: var(--violet-soft); background: linear-gradient(180deg, rgba(138, 18, 253, .06), rgba(138, 18, 253, .14)); transition: color .2s, background .2s; }
.pr-more-btn:hover { color: #fff; background: rgba(138, 18, 253, .25); }
.pr-more-btn svg { width: 20px; height: 20px; transition: transform .3s; }
.pr-table-wrap.open .pr-more-btn svg { transform: rotate(180deg); }

/* ---- questions ---- */
.pr-faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.pr-faq h2 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; letter-spacing: -0.02em; }
.pr-faq .fx-sub a { color: var(--violet-soft); }
.pr-faq-in > div:first-child { position: sticky; top: 110px; }
.pr-qs details { border-bottom: 1px solid var(--line); }
.pr-qs details:first-child { border-top: 1px solid var(--line); }
.pr-qs summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 4px; font-family: var(--display); font-size: 19px; font-weight: 700; transition: color .2s; }
.pr-qs summary:hover { color: var(--violet-soft); }
.pr-qs summary::-webkit-details-marker { display: none; }
.pr-qs summary::after { content: "+"; color: var(--violet-soft); font-size: 24px; line-height: 1; transition: transform .25s; }
.pr-qs details[open] summary::after { transform: rotate(45deg); }
.pr-qs details p { padding: 0 4px 22px; color: var(--muted); max-width: 66ch; }
.pr .start { margin-top: clamp(90px, 13vh, 150px); }

@media (max-width: 1240px) {
  .pr-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pr-card.pop { transform: none; }
  .pr-card.pop:hover { transform: translateY(-6px); }
}
@media (max-width: 900px) {
  .pr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .pr-faq-in { grid-template-columns: minmax(0, 1fr); }
  .pr-faq-in > div:first-child { position: static; }
  .pr-scroll { overflow-x: auto; }
  .pr-table thead th { position: static; }
  .pr-table th[scope="row"] { min-width: 190px; padding-left: 16px; font-size: 13.5px; }
  .pr-gh th { padding-left: 16px !important; }
}
@media (max-width: 600px) {
  .pr-cards { grid-template-columns: minmax(0, 1fr); }
  .pr-blurb, .pr-bill { min-height: 0; }
  .pr-seg button { padding: 0 16px; }
}
/* phones: one plan at a time (LiveKit's way), its tabs pinned under the top bar */
@media (max-width: 700px) {
  .pr-table-wrap { border-radius: 20px; }
  .pr-mtabs { display: block; position: sticky; top: calc(68px + env(safe-area-inset-top)); z-index: 4; padding: 10px 10px 12px; border-radius: 20px 20px 0 0;
    background: rgba(13, 9, 26, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
  .pr-mtab-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 4px; border-radius: 13px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
  .pr-mtab-row button { height: 36px; border: 0; border-radius: 9px; background: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--muted); transition: color .2s, background .2s; }
  .pr-mtab-row button[aria-selected="true"] { color: #fff; background: var(--grad); box-shadow: 0 6px 18px rgba(138, 18, 253, .4); }
  .pr-mtab-sum { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 0 4px; }
  .pr-mtab-sum span { display: flex; flex-direction: column; min-width: 0; }
  .pr-mtab-sum b { font-family: var(--display); font-size: 18px; font-weight: 800; color: #fff; }
  .pr-mtab-sum em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
  .pr-mtab-sum .btn { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 11px; flex: none; }
  .pr-scroll { overflow: visible; border-radius: 0; }
  .pr-table, .pr-table tbody { display: block; min-width: 0; width: 100%; font-size: 14px; }
  .pr-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, auto); align-items: center; border-top: 1px solid rgba(196, 168, 255, .07); }
  .pr-table tbody tr.pr-gh { display: block; border-top: 0; }
  .pr-table-wrap:not(.open) tr.pr-more { display: none; }
  .pr-table tbody tr:not(.pr-gh) th, .pr-table td { border-top: 0; }
  .pr-table thead { display: none; }
  .pr-table td:not(.on) { display: none; }
  .pr-table td.pop { background-color: transparent; }
  .pr-table th[scope="row"] { display: block; position: static; width: auto; min-width: 0; padding: 14px 10px 14px 16px; font-size: 14px; line-height: 1.4; background: transparent; }
  .pr-table td.on { display: block; text-align: right; padding: 14px 16px 14px 8px; animation: pr-fade .3s; }
  .pr-gh th { display: block; position: static; padding: 24px 16px 10px !important; }
  .pr-gh th em { display: none; }
  .pr-more-btn { border-radius: 0 0 20px 20px; }
}
@keyframes pr-fade { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .pr-table td.on { animation: none; }
  .pr-card, .pr-card.pop { animation: none; }
  .pr-seg-pill { transition: none; }
}
