/* The Pricing page (pricing/). pricing.js runs the billing switch, the prices rolling
   between monthly and yearly, the clip-length timelines and the questions.
   The founding offer at the end is the home page's closing section (cta.css, cta.js). */

.pr { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

/* ---------- the top ---------- */
.pr-head { padding: clamp(56px, 8vw, 96px) 0 0; text-align: center; }
.pr-title .l1 { font-size: clamp(46px, 7vw, 92px); }
.pr-title .l2 { font-size: clamp(36px, 5.6vw, 72px); }
.pr-lede { max-width: 560px; margin: 24px auto 0; font-size: clamp(17px, 1.8vw, 19px); line-height: 1.55; color: #3E3858; }

/* the founding offer, as a small note that jumps to it */
.pr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pr-chip:hover { border-color: var(--violet); box-shadow: 0 6px 20px -8px rgba(91, 43, 224, 0.4); }
.pr-star { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--violet); color: #fff; font-size: 12px; }

/* Monthly / Yearly: Vclip's own timeline range, with a handle at each end, slides to
   the one you pick (pricing.js measures it, so it fits each label exactly) */
.pr-switch {
  position: relative;
  display: flex;
  width: max-content;
  margin: 40px auto 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.pr-switch button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #3E3858;
  font: 600 15px/1.2 var(--body);
  cursor: pointer;
  transition: color 0.25s;
}
.pr-switch button[aria-checked="true"] { color: #fff; }
.pr-switch button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.pr-save { padding: 3px 8px; border-radius: 999px; background: var(--lilac); color: var(--violet-hover); font-size: 12px; transition: background 0.25s, color 0.25s; }
.pr-switch button[aria-checked="true"] .pr-save { background: rgba(255, 255, 255, 0.2); color: #fff; }
.pr-switch-range {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--w, 0);
  transform: translateX(var(--x, 0));
  border-radius: 999px;
  background: var(--violet);
  box-shadow: 0 8px 20px -8px rgba(91, 43, 224, 0.7);
}
.pr-switch-range::before, .pr-switch-range::after { /* the handles */
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 16px;
  margin-top: -8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
}
.pr-switch-range::before { left: 9px; }
.pr-switch-range::after { right: 9px; }
.pr-ready .pr-switch-range { transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1), width 0.45s cubic-bezier(0.34, 1.3, 0.64, 1); }

/* ---------- the three plans ---------- */
.pr-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; margin-top: 48px; }
.pr-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(27, 21, 48, 0.04);
}
.pr-plan.pro {
  margin-top: -16px; /* stands a little taller than the others */
  padding-top: 48px;
  padding-bottom: 46px;
  border-color: transparent;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(124, 77, 255, 0.38), transparent 70%),
    var(--ink);
  color: #fff;
  box-shadow: 0 40px 80px -30px rgba(91, 43, 224, 0.65), 0 0 0 1px rgba(168, 139, 255, 0.35) inset;
}
.pr-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}
.pr-name { margin: 0; font: 700 32px/1.1 var(--display); }
.pr-for { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.pro .pr-for { color: rgba(255, 255, 255, 0.68); }

/* the price: the number rolls when you switch monthly and yearly */
.pr-price { display: flex; align-items: flex-start; margin-top: 26px; line-height: 1; }
.pr-cur { margin: 8px 2px 0 0; font-size: 22px; font-weight: 600; }
.pr-amount {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1em;
  font: 700 64px/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.pr-amount span { display: block; }
.pr-amount span.out { position: absolute; left: 0; top: 0; animation: pr-out 0.38s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
.pr-amount span.in { animation: pr-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.pr-amount.down span.out { animation-name: pr-out-down; }
.pr-amount.down span.in { animation-name: pr-in-down; }
@keyframes pr-out { to { transform: translateY(-100%); opacity: 0; } }
@keyframes pr-in { from { transform: translateY(100%); opacity: 0; } }
@keyframes pr-out-down { to { transform: translateY(100%); opacity: 0; } }
@keyframes pr-in-down { from { transform: translateY(-100%); opacity: 0; } }
.pr-per { align-self: flex-end; margin: 0 0 6px 6px; font-size: 15px; color: var(--muted); }
.pro .pr-per { color: rgba(255, 255, 255, 0.68); }
.pr-was { align-self: flex-end; margin: 0 0 6px 10px; font-size: 15px; color: var(--muted); transition: opacity 0.25s; }
.pro .pr-was { color: rgba(255, 255, 255, 0.5); }
[data-billing="monthly"] .pr-was { opacity: 0; }
.pr-bill { min-height: 1.5em; margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.pro .pr-bill { color: rgba(255, 255, 255, 0.68); }

.pr-btn { width: 100%; margin-top: 24px; padding: 14px 18px; }
.pro .pr-btn { background: #fff; color: var(--violet); box-shadow: 0 12px 30px -10px rgba(124, 77, 255, 0.9); }
.pro .pr-btn:hover { background: var(--lilac); }
.pro .pr-btn::after { background: linear-gradient(105deg, transparent 25%, rgba(91, 43, 224, 0.14) 50%, transparent 75%); } /* a violet sweep shows on white */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pro .pr-btn:hover { box-shadow: 0 18px 36px -12px rgba(124, 77, 255, 1), 0 0 0 4px rgba(168, 139, 255, 0.25); }
  .btn.dark:hover { box-shadow: 0 12px 26px -12px rgba(27, 21, 48, 0.7); }
}
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #2E2550; }

/* the clip-length timeline and the week, the two things each plan really changes */
.pr-specs { display: grid; gap: 20px; margin-top: 28px; padding: 20px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pro .pr-specs { border-color: rgba(255, 255, 255, 0.12); }
.pr-row { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.pro .pr-row { color: rgba(255, 255, 255, 0.68); }
.pr-row b { color: var(--ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pro .pr-row b { color: #fff; }

.pr-track { position: relative; height: 6px; margin: 0 5px; border-radius: 3px; background: var(--lilac); }
.pro .pr-track { background: rgba(255, 255, 255, 0.14); }
.pr-range { position: absolute; top: -3px; bottom: -3px; left: 0; width: calc(var(--to) * 100%); background: rgba(91, 43, 224, 0.18); border-top: 2px solid var(--violet); border-bottom: 2px solid var(--violet); }
.pro .pr-range { background: rgba(168, 139, 255, 0.3); border-color: #A88BFF; }
.pr-h { position: absolute; top: -7px; width: 10px; height: 20px; margin-left: -5px; border-radius: 4px; background: #fff; border: 2px solid var(--violet); }
.pro .pr-h { border-color: #A88BFF; }
.pr-h1 { left: 0; }
.pr-h2 { left: calc(var(--to) * 100%); }
/* the handles snap open the first time the plans are seen (pricing.js adds .pr-wait, then .pr-in) */
.pr-wait .pr-range { width: 0; }
.pr-wait .pr-h2 { left: 0; }
.pr-in .pr-range, .pr-in .pr-h2 { transition: width 0.9s cubic-bezier(0.34, 1.25, 0.64, 1), left 0.9s cubic-bezier(0.34, 1.25, 0.64, 1); }
.pr-in .studio .pr-range, .pr-in .studio .pr-h2 { transition-delay: 0.16s; }
.pr-in .pro .pr-range, .pr-in .pro .pr-h2 { transition-delay: 0.08s; }

/* a clip a day: seven little clips, filling in */
.pr-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pr-days i { display: grid; gap: 6px; justify-items: center; font-style: normal; }
.pr-days b { display: block; width: 100%; height: 14px; border-radius: 4px; background: var(--violet); }
.pr-days span { font-size: 11px; font-weight: 600; color: var(--muted); }
.pro .pr-days b { background: #A88BFF; }
.pro .pr-days span { color: rgba(255, 255, 255, 0.55); }
/* Free: one a day. The paid plans: no limit, so every day overflows with clips */
.pr-days.all b { background-image: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255, 255, 255, 0.45) 3px 4px); }
.pr-wait .pr-days b { transform: scaleX(0); }
.pr-in .pr-days b { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); transform-origin: left; }
.pr-in .pr-days i:nth-child(2) b { transition-delay: 0.06s; }
.pr-in .pr-days i:nth-child(3) b { transition-delay: 0.12s; }
.pr-in .pr-days i:nth-child(4) b { transition-delay: 0.18s; }
.pr-in .pr-days i:nth-child(5) b { transition-delay: 0.24s; }
.pr-in .pr-days i:nth-child(6) b { transition-delay: 0.3s; }
.pr-in .pr-days i:nth-child(7) b { transition-delay: 0.36s; }

/* what's in it */
.pr-plus { margin: 24px 0 0; font-size: 14px; font-weight: 600; }
.pr-feats { display: grid; gap: 11px; margin: 16px 0 0; padding: 0; list-style: none; }
.pr-plus + .pr-feats { margin-top: 12px; }
.pr-plan > .pr-feats:first-of-type { margin-top: 24px; }
.pr-feats li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: #3E3858; }
.pro .pr-feats li { color: rgba(255, 255, 255, 0.86); }
.pr-ic { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--lilac); fill: none; stroke: var(--violet); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pro .pr-ic { background: rgba(168, 139, 255, 0.22); stroke: #CDBBFF; }

.pr-small { margin: 28px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- every plan includes ---------- */
.pr-all { margin-top: 96px; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--lilac); border: 1px solid #DDD3FB; }
.pr-all h2 { margin: 0 0 28px; text-align: center; font: 700 28px/1.15 var(--display); }
.pr-all ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.pr-all li { display: grid; justify-items: center; gap: 4px; text-align: center; }
.pr-all svg { width: 44px; height: 44px; margin-bottom: 8px; padding: 10px; border-radius: 14px; background: #fff; fill: none; stroke: var(--violet); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 6px 16px -8px rgba(91, 43, 224, 0.4); }
.pr-all b { font-size: 15px; font-weight: 600; }
.pr-all span { font-size: 14px; line-height: 1.4; color: #3E3858; }

/* ---------- section headings ---------- */
.pr-sec-head { text-align: center; }
.pr .headline.section .l2 { color: var(--violet); }

/* ---------- compare ---------- */
.pr-compare { margin-top: 120px; }
.pr-table { width: 100%; margin-top: 48px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.pr-table th, .pr-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15px; line-height: 1.4; vertical-align: middle; }
.pr-table thead th {
  position: sticky;
  top: var(--stick, 76px); /* just under the floating menu (pricing.js measures it) */
  z-index: 2;
  padding: 18px 16px 16px;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
  font: 700 24px/1.1 var(--display);
}
.pr-table thead th::before { content: ""; position: absolute; left: -1px; right: -1px; bottom: 100%; height: var(--stick, 76px); background: var(--bg); display: none; } /* hides the rows scrolling by above it, up to the menu */
.pr-table.pr-stuck thead th::before { display: block; } /* only while it's stuck: at rest it would cover the heading above (pricing.js) */
.pr-table thead th small { display: block; margin-top: 6px; font: 500 13px/1.2 var(--body); color: var(--muted); }
.pr-table thead th:first-child { width: 40%; }
.pr-table thead th.pro { color: var(--violet); }
.pr-table tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.pr-table td { color: #3E3858; }
.pr-table td:nth-child(3) { background: rgba(91, 43, 224, 0.045); color: var(--ink); font-weight: 500; }
.pr-table .pr-group th { padding: 34px 16px 10px; border-bottom: 1px solid var(--line); background: none; font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.pr-vh, .pr-yes, .pr-no { position: relative; }
.pr-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pr-yes, .pr-no { display: inline-block; width: 22px; height: 22px; overflow: hidden; color: transparent; vertical-align: middle; font-size: 1px; } /* the word is there for screen readers; you see a tick or a dash */
.pr-yes { border-radius: 50%; background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.pr-no::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; border-radius: 1px; background: #C9C0E6; }

/* ---------- questions ---------- */
.pr-faq { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 64px; align-items: start; margin-top: 120px; }
.pr-faq .pr-sec-head { position: sticky; top: 110px; text-align: left; }
.pr-qs { border-top: 1px solid var(--line); }
.pr-q { border-bottom: 1px solid var(--line); }
.pr-q h3 { margin: 0; }
.pr-q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  font: 500 18px/1.4 var(--body);
  cursor: pointer;
}
.pr-q button:hover { color: var(--violet); }
.pr-q button:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 6px; }
.pr-q button i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lilac); transition: background 0.2s, transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1); }
.pr-q button i::before, .pr-q button i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: var(--violet); transition: transform 0.3s, background 0.2s; }
.pr-q button i::after { transform: rotate(90deg); }
.pr-q button[aria-expanded="true"] i { background: var(--violet); transform: rotate(180deg); }
.pr-q button[aria-expanded="true"] i::before { background: #fff; }
.pr-q button[aria-expanded="true"] i::after { transform: rotate(0); background: #fff; }
.pr-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pr-a > div { overflow: hidden; }
.pr-a p { margin: 0; padding: 0 48px 24px 0; font-size: 17px; line-height: 1.65; color: #3E3858; }
.pr-a a { color: var(--violet); text-underline-offset: 3px; }
.pr-q.open .pr-a { grid-template-rows: 1fr; }
.pr-q:not(.open) .pr-a { visibility: hidden; transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.35s; } /* closed answers can't be tabbed into */

/* ---------- the founding offer (the closing section's look, from cta.css) ---------- */
.pr .pr-founding { width: 100%; margin: 120px 0 120px; } /* .pr: wins over cta.css, which loads after */
.pr-seal { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; text-shadow: none; backdrop-filter: blur(6px); }
.pr-seal span { color: #CDBBFF; }

/* ---------- less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pr-ready .pr-switch-range, .pr-switch button, .pr-a, .pr-q button i, .pr-q button i::before, .pr-q button i::after { transition: none; }
}

/* ---------- tablets ---------- */
@media (max-width: 1023px) {
  .pr-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
  .pr-plan.pro { order: -1; margin-top: 0; } /* the most popular plan comes first */
  .pr-all ul { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .pr-compare, .pr-faq { margin-top: 96px; }
  .pr .pr-founding { margin: 96px 0; }
  .pr-faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pr-faq .pr-sec-head { position: static; text-align: center; }
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .pr-switch button { padding: 10px 16px; }
  .pr-chip { gap: 7px; padding: 7px 12px 7px 8px; font-size: 13px; }
  .pr-plan { padding: 28px 22px 26px; border-radius: 24px; }
  .pr-plan.pro { padding-top: 40px; padding-bottom: 34px; }
  .pr-all ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-all li:last-child { grid-column: 1 / -1; }
  .pr-table th, .pr-table td { padding: 12px 4px; font-size: 13px; }
  .pr-table tbody th { padding-left: 0; }
  .pr-table thead th { padding: 14px 4px 12px; font-size: 18px; }
  .pr-table thead th::before { content: ""; position: absolute; left: -1px; right: -1px; bottom: 100%; height: var(--stick, 76px); background: var(--bg); display: none; } /* hides the rows scrolling by above it, up to the menu */
.pr-table.pr-stuck thead th::before { display: block; } /* only while it's stuck: at rest it would cover the heading above (pricing.js) */
.pr-table thead th small { font-size: 11px; }
  .pr-table .pr-group th { padding: 28px 0 8px; font-size: 11px; }
  .pr-table thead th:first-child { width: 34%; }
  .pr-yes, .pr-no { width: 20px; height: 20px; }
  .pr-yes { background-size: 13px; }
  .pr-no::after { top: 9px; }
  .pr-q button { font-size: 17px; padding: 20px 0; }
  .pr-a p { padding-right: 0; font-size: 16px; }
}

/* the narrowest phones: the founding note drops its arrow to stay on one line */
@media (max-width: 359px) {
  .pr-chip > span:last-child { display: none; }
}
