/* VeloVision pricing page. The homepage's look: the kit's stylesheets and home-v2.css load first (tokens, type, buttons,
   cards, pictures that run into the page, the footer); this file holds only what this page has and the homepage lacks:
   the Monthly / Yearly switch, the three plan cards, the plan notes, Teams, the pitcher and hitter lists, the invite
   block, the side-by-side table and the questions' topic labels. */

/* ---------------------------------------------------------------- rhythm
   Every block is as tall as its words (the kit's whole-screen height would leave screens empty on a page this long);
   the gap between two blocks is one number, and the phone's action bar clears the last block, not each one. */
main > .section.pv-sec { --padt: var(--s-9); --padb: 0px; padding: var(--padt) 0 var(--padb); }
main > .section.pv-top { --padt: calc(var(--nav) + var(--s-8)); }
main > .section.pv-plans { --padt: var(--s-7); }
main > .section.pv-close { --padb: var(--s-9); }
@media (max-width: 639px) {
  main > .section.pv-sec { --padt: var(--s-8); }
  main > .section.pv-top { --padt: calc(var(--nav) + var(--s-6)); }
  main > .section.pv-plans { --padt: var(--s-6); }
  main > .section.pv-close { --padb: var(--s-8); }
}

/* ---------------------------------------------------------------- the top: the words, and a base on the right */
.pv-top h1 { font-size: var(--ly-h1); line-height: 1.02; letter-spacing: var(--display-tracking-xl, var(--display-tracking)); margin: 0 0 var(--s-5); }
.pv-top__copy p { max-width: 40ch; color: var(--ink); }

/* pictures: the same blend as the homepage's plate. Each picture sets where its object sits (ratio of the box, position)
   and keeps every fade outside it: the objects span x 15-85 % and y 26-70 % (base), x 14-87 % and y 32-65 % (rubber),
   x 27-73 % and y 27-64 % (rosin bag; its powder may fade at the edges). */
.pv-pic { --ratio: 80%; }
.pv-pic .frame__img { object-fit: cover; object-position: 50% 50%; }
.pv-pic--base { --ratio: 54%; }
.pv-pic--base .frame__img { object-position: 50% 42%; --fl: 13%; --fr: 13%; --ft: 16%; --fb: 16%; --sx: 60%; --sy: 66%; }
/* stacked (a tablet): wide and low, the base in the middle of its box */
@media (min-width: 640px) and (max-width: 1023px) { .pv-pic--base { --ratio: 50%; } .pv-pic--base .frame__img { object-position: 50% 46%; --ft: 13%; --fb: 13%; --sy: 80%; } }

/* ---------------------------------------------------------------- the switch */
.pv-switch { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-1); width: min(100%, 340px); padding: var(--s-1);
  margin: var(--s-6) 0 0; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
/* the switch sits in the top block (under the words on a wide screen, under the picture on a phone), right above the plans it changes */
@media (min-width: 1024px) { .pv-top > .wrap { grid-template-rows: auto 1fr; } .pv-top .pv-pic { grid-row: 1 / span 2; } .pv-top .pv-switch { grid-column: 1 / span 6; align-self: end; margin: 0; } }
main > .section.pv-top { --padb: 0px; }
.pv-switch button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); height: 48px; padding: 0 var(--s-3);
  border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 var(--t-body)/1 var(--font-text); cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.pv-switch button:hover { color: var(--ink); }
.pv-switch button[aria-pressed="true"] { background: color-mix(in oklab, var(--ink) 14%, var(--surface)); color: var(--ink); }
.pv-save { color: var(--accent); font-size: var(--t-small); font-weight: 500; }
html:not(.js) .pv-switch { display: none; }

/* every price and every period note is in the page for both periods, stacked in one cell: the cell is as big as the
   bigger of the two, so pressing the switch moves nothing */
.pv-swap { display: grid; }
.pv-swap > * { grid-area: 1 / 1; }
.pv-plans[data-billing="yearly"] [data-show="monthly"],
.pv-plans[data-billing="monthly"] [data-show="yearly"] { visibility: hidden; }

/* ---------------------------------------------------------------- the plans: Pro, Pro Plus, Free on a phone; Free, Pro, Pro Plus side by side from 1024 */
.pv-plans__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
.pv-col { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.pv-col--pro { order: 1; } .pv-col--plus { order: 2; } .pv-col--free { order: 3; }

.pv-plan { --c-pad: var(--s-5); gap: 0; padding: var(--c-pad); }
.pv-plan--pro { border-color: var(--accent); }
.pv-plan > * { margin: 0; min-width: 0; }
.pv-plan__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 36px; }
.pv-plan__head h2 { font: 500 var(--t-h3)/1.1 var(--font-display); letter-spacing: var(--display-tracking); }
.pv-plan__tag { font: 500 var(--t-small)/1 var(--font-text); color: var(--muted); white-space: nowrap; }
.pv-plan__tag--gold { color: var(--accent); padding: 8px 12px; border: 1px solid var(--accent); border-radius: 999px; }
.pv-plan__tagswap { justify-items: end; }
.pv-plan > .pv-plan__amt, .pv-plan__amt { color: var(--ink); font: 500 clamp(40px, 3.4vw, 52px)/1 var(--font-display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.pv-plan__amt b { font-weight: 500; }
.pv-plan > .pv-plan__per, .pv-plan__per { min-height: 24px; color: var(--muted); font: 400 var(--t-body)/1.5 var(--font-text); }
.pv-plan > :is(.pv-plan__amt, .pv-plan__amtswap) { margin-top: var(--s-6); }
.pv-plan > :is(.pv-plan__per, .pv-plan__perswap) { margin-top: var(--s-2); min-height: 24px; }
.pv-plan > .pv-plan__profiles { margin-top: var(--s-5); padding: var(--s-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 400 var(--t-body)/1.4 var(--font-text); }
.pv-plan__profiles b { font-weight: 500; }
.pv-plan__list { display: grid; gap: var(--s-3); align-content: start; padding-top: var(--s-5); }
.pv-plan__list li { position: relative; padding-left: 28px; font: 400 var(--t-body)/1.45 var(--font-text); }
.pv-plan__list li b { font-weight: 500; }
.pv-plan__list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) scale(.92); transform-origin: 50% 50%; border-radius: 1px; }

/* the note under each plan */
.pv-note { display: grid; gap: var(--s-2); align-content: start; }
.pv-note > * { margin: 0; }
.pv-note h3 { font: 500 var(--t-body)/1.3 var(--font-text); letter-spacing: 0; color: var(--ink); }
.pv-note p { color: var(--muted); font: 400 var(--t-body)/1.5 var(--font-text); }
.pv-note b { font-weight: 500; color: var(--ink); }
.pv-note .pv-swap { gap: 0; }

/* under the plans: the one action, the store line, the currency line */
.pv-after { display: grid; gap: var(--s-6); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.pv-after__act { display: grid; gap: var(--s-4); justify-items: start; }
.pv-after__act p, .pv-after__note { color: var(--muted); max-width: 52ch; margin: 0; }
@media (min-width: 640px) { .pv-after__note { padding-top: 12px; } }
@media (min-width: 640px) { .pv-after { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); } }

/* a tablet: one plan to a row, its facts left and its list right */
@media (min-width: 640px) and (max-width: 1023px) {
  .pv-plans__grid { gap: var(--s-8); }
  .pv-plan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-7); --c-pad: var(--s-6); }
  .pv-plan > .pv-plan__head, .pv-plan > .pv-plan__amt, .pv-plan > .pv-plan__amtswap, .pv-plan > .pv-plan__per, .pv-plan > .pv-plan__perswap, .pv-plan > .pv-plan__profiles { grid-column: 1; }
  .pv-plan > .pv-plan__list { grid-column: 2; grid-row: 1 / span 5; padding-top: 0; align-content: start; }
  .pv-plan > .pv-plan__profiles { align-self: start; }
}

/* a wide screen: three columns that share their rows (name, price, period, profiles, list, note), so the three line up
   whatever one of them holds */
@media (min-width: 1024px) {
  .pv-plans__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); column-gap: var(--s-5); row-gap: 0; }
  .pv-col, .pv-col--pro, .pv-col--plus, .pv-col--free { order: 0; display: grid; grid-row: 1 / span 6; grid-template-rows: subgrid; row-gap: 0; }
  .pv-plan { --c-pad: var(--s-6); display: grid; grid-row: 1 / span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .pv-note { margin-top: var(--s-5); grid-row: 6; }
}
@media (min-width: 640px) and (max-width: 1023px), (max-width: 639px) { .pv-plan__head h2 { font-size: var(--t-h3); } }

/* the secondary button (Contact us, Get notified at launch): a step lighter than the ground or the card it sits on */
main .pv-sec a.btn--secondary { background: color-mix(in oklab, var(--ink) 13%, var(--surface)); border-color: var(--line-strong); color: var(--ink); }
main .pv-sec a.btn--secondary:hover { background: color-mix(in oklab, var(--ink) 19%, var(--surface)); border-color: color-mix(in oklab, var(--ink) 35%, transparent); }

/* ---------------------------------------------------------------- Teams: the fourth plan, one wide card */
.pv-pill { justify-self: start; display: inline-flex; align-items: center; height: 32px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); font: 500 var(--t-small)/1 var(--font-text); letter-spacing: 0; white-space: nowrap; }
.pv-teams__card { --c-pad: var(--s-5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.pv-teams__copy { display: grid; gap: var(--s-4); justify-items: start; align-content: start; }
.pv-teams__copy > * { margin: 0; }
.pv-teams__copy h2 { max-width: 20ch; }
.pv-teams__copy p { max-width: 52ch; color: var(--ink); font-size: var(--t-lead); line-height: 1.5; }
.pv-teams__act { display: grid; gap: var(--s-4); justify-items: start; align-content: start; }
.pv-teams__act p { margin: 0; color: var(--muted); }
@media (min-width: 1024px) {
  .pv-teams__card { --c-pad: var(--s-7); grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: var(--s-8); align-items: center; }
  .pv-teams__act { justify-self: start; padding-left: var(--s-7); border-left: 1px solid var(--line); align-self: stretch; align-content: center; }
}

/* ---------------------------------------------------------------- for pitchers and for hitters: the heading and a rubber on the left, the two lists on the right */
.pv-use__head { display: grid; gap: var(--s-7); align-content: start; }
.pv-use__head > h2 { margin: 0; max-width: 14ch; }
.pv-pic--rubber { --ratio: 70%; }
.pv-pic--rubber .frame__img { object-position: 50% 44%; --fl: 12%; --fr: 12%; --ft: 16%; --fb: 16%; --sx: 60%; --sy: 62%; }
@media (max-width: 1023px) { .pv-pic--rubber { --ratio: 62%; } .pv-pic--rubber .frame__img { object-position: 50% 46%; --ft: 14%; --fb: 14%; --sy: 80%; } }
.pv-use__cards { display: grid; gap: var(--s-8); align-content: start; }
.pv-use-card { display: grid; gap: var(--s-4); align-content: start; }
.pv-use-card > * { margin: 0; }
.pv-use-card h3 { font: 500 var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); max-width: 22ch; }
.pv-tags { display: grid; margin-top: var(--s-2); }
.pv-tags li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s-4); align-items: baseline; padding: var(--s-4) 0; border-top: 1px solid var(--line); font: 400 var(--t-body)/1.45 var(--font-text); }
.pv-tags li:last-child { border-bottom: 1px solid var(--line); }
.pv-chip { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); font: 500 var(--t-small)/1 var(--font-text); }
.pv-chip--pro { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 55%, transparent); }

/* ---------------------------------------------------------------- invite friends: the words and the two rewards on the left, a rosin bag on the right */
.pv-invite__copy { display: grid; gap: var(--s-4); align-content: start; justify-items: start; }
.pv-invite__copy > * { margin: 0; }
.pv-invite__copy p { max-width: 52ch; font-size: var(--t-lead); line-height: 1.5; }
.pv-inv-list { display: grid; width: 100%; margin-top: var(--s-4) !important; }
.pv-inv-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); font: 400 var(--t-body)/1.5 var(--font-text); }
.pv-inv-list li:last-child { border-bottom: 1px solid var(--line); }
.pv-inv-list b { font-weight: 500; }
.pv-pic--rosin { --ratio: 72%; }
.pv-pic--rosin .frame__img { object-position: 50% 35%; --fl: 14%; --fr: 14%; --ft: 18%; --fb: 14%; --sx: 52%; --sy: 54%; --cx: 50%; --cy: 52%; }
@media (max-width: 1023px) { .pv-pic--rosin { --ratio: 62%; } .pv-pic--rosin .frame__img { object-position: 50% 40%; --ft: 16%; --fb: 12%; --sx: 55%; --sy: 64%; } }
/* this picture's gold glow is a tall band on its left: the round fall-off is centred on the bag and a little tighter, so the band ends in a curve */
.pv-pic--rosin.frame--spot > .frame__img { --m-spot: radial-gradient(ellipse var(--sx) var(--sy) at var(--cx) var(--cy), #000 0, #000 66%, rgb(0 0 0 / .84) 74.5%, rgb(0 0 0 / .5) 83%, rgb(0 0 0 / .16) 91.5%, transparent 100%); }

/* ---------------------------------------------------------------- side by side */
.pv-cmp-wrap h2 { margin: 0 0 var(--s-7); }
.pv-cmp { display: grid; }
.pv-row { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(0, 1fr)); column-gap: var(--s-5); align-items: baseline;
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line); font: 400 var(--t-body)/1.45 var(--font-text); }
.pv-row > * { min-width: 0; position: relative; }
.pv-row--top { padding: 0 0 var(--s-4); font-weight: 500; }
.pv-row--top .pv-col-pro { color: var(--accent); }
.pv-rh { font-weight: 500; }
.pv-c > span { display: block; }
.pv-yes, .pv-no { display: block; width: 20px; height: 20px; position: relative; font-style: normal; }
.pv-yes::before { content: ""; position: absolute; left: 3px; top: 3px; width: 13px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); border-radius: 1px; }
.pv-no::before { content: ""; position: absolute; left: 3px; top: 9px; width: 13px; height: 2px; background: var(--muted); opacity: .7; border-radius: 1px; }
.pv-cmp-tabs { display: none; }

/* below 900 five columns do not fit a phone or a tablet: one plan at a time, a picker above the rows */
@media (max-width: 899px) {
  .pv-cmp-wrap h2 { margin-bottom: var(--s-6); }
  html.js .pv-cmp-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-1); padding: var(--s-1); margin: 0 0 var(--s-5);
    border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
  .pv-cmp-tabs button { height: 48px; padding: 0 var(--s-1); border: 0; border-radius: 999px; background: transparent; color: var(--muted);
    font: 500 var(--t-small)/1 var(--font-text); cursor: pointer; white-space: nowrap; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
  .pv-cmp-tabs button[aria-pressed="true"] { background: color-mix(in oklab, var(--ink) 14%, var(--surface)); color: var(--ink); }
  html.js .pv-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html.js .pv-row--top { display: none; }
  html.js .pv-row .pv-c { text-align: right; justify-self: end; }
  html.js .pv-row { align-items: center; }
  html.js .pv-cmp-wrap[data-plan="free"] .pv-c:not([data-plan="free"]),
  html.js .pv-cmp-wrap[data-plan="pro"] .pv-c:not([data-plan="pro"]),
  html.js .pv-cmp-wrap[data-plan="plus"] .pv-c:not([data-plan="plus"]),
  html.js .pv-cmp-wrap[data-plan="teams"] .pv-c:not([data-plan="teams"]) { display: none; }
  /* no script, no picker: every row lists the four plans, each with its name */
  html:not(.js) .pv-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-2); }
  html:not(.js) .pv-row--top { display: none; }
  html:not(.js) .pv-row .pv-c[data-name] { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); color: var(--muted); }
  html:not(.js) .pv-row .pv-c[data-name]::before { content: attr(data-name); color: var(--ink); }
  html:not(.js) .pv-row .pv-c[data-name] > span { text-align: right; }
  html:not(.js) .pv-row .pv-c[data-name] > i { margin-left: auto; }
}

/* ---------------------------------------------------------------- questions: the kit's open list, each with its topic above */
.pv-faq .faq .faq__topic { margin: 0 0 var(--s-1); color: var(--muted); font: 400 var(--t-small)/1.4 var(--font-text); max-width: none; }
.pv-faq h2 { margin: 0; }
.pv-faq .faq__item { gap: 0; padding: var(--s-6) 0; }
.pv-faq .faq__item:first-child { padding-top: 0; }
.pv-faq .faq__item h3 { margin: 0 0 var(--s-2); }
.pv-faq .faq__item p { color: var(--ink); }
.pv-faq .faq__item p + p, .pv-faq .faq__item h3 + p { margin: 0; }
@media (max-width: 639px) { .pv-faq .faq__item { padding: var(--s-5) 0; } .pv-faq .grid { row-gap: var(--s-6); } }

/* ---------------------------------------------------------------- the close and the footer */
.pv-close .closing__cta { gap: var(--s-6); }
.pv-close .closing__cta .section-head { display: grid; gap: var(--s-4); max-width: 760px; }
.pv-close .closing__cta .section-head p { color: var(--ink); font-size: var(--t-lead); line-height: 1.5; }
footer.closing.pv-foot { height: auto; min-height: 0; padding: var(--s-9) 0 calc(var(--s-8) + var(--bar)); border-top: 1px solid var(--line); }
footer.closing.pv-foot > .wrap { height: auto; display: block; }
@media (max-width: 639px) {
  footer.closing.pv-foot { min-height: 0; padding: var(--s-8) 0 calc(var(--s-7) + var(--bar)); }
}

/* a link inside a sentence stays in the sentence (the kit's link is a flex box, which would break the line round it) */
.pv-faq .faq__item p .link, .pv-invite__copy p .link { display: inline; }
.pv-faq .faq__item p .link::after, .pv-invite__copy p .link::after { margin-left: .3em; }

/* small type and small targets: the footer's legal row is 14 px, every link in the footer and the bar has a 44 px target
   (the box grows, the words stay where they were) */
@media (min-width: 1024px) {
  .nav__link { height: 44px; }
  .nav__link::before, .nav__link[aria-current="page"]::after { bottom: 2px; }
}
.pv-foot .footer__legal { font-size: var(--t-small); }
.pv-foot .legal-links a, .pv-foot .footer__col ul a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 9px; margin: -12px -9px; }
.pv-foot .legal-links { gap: 0 var(--s-5); }
