/* The plan picker (mastering/plan-picker.js): the same popup for every "Get Unlimited" entry.
   Left 60%: title, (when the day's free download is spent) the real countdown, the plans, the button pinned to the
   bottom. Right 40%: everything included. Black on the left, a flat charcoal panel on the right; ~85% neutrals, a quiet blue for selection and marks, and the button as the one saturated colour. No glow. Nothing heavier than Semibold (600).
   Two arrangements of the plans: stacked rows by default, a 2x2 grid in the limit variant (.ppick--limit). */
.ppick { position: fixed; inset: 0; z-index: 230; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ppick[hidden] { display: none; }
.ppick__scrim { position: absolute; inset: 0; background: rgba(5, 3, 5, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); cursor: pointer; }
.ppick__card {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto;
  border-radius: 30px; border: 1px solid rgba(255, 255, 255, .1);
  background: #000; color: var(--ink, #f4f3f1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
}
.ppick__x { position: absolute; top: 14px; right: 16px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .06); color: rgba(244, 243, 241, .7); font-size: 22px; line-height: 1; }
.ppick__x:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.ppick__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); min-height: 660px; }

/* ---- left: burgundy ---- */
.ppick__left { display: flex; flex-direction: column; padding: 40px 36px 30px 40px; background: #000; }
.ppick__mark { display: block; width: 40px; height: auto; color: #fff; margin-bottom: 12px; }
.ppick__title { margin: 6px 0 4px; font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.ppick__lead { margin: 0 0 26px; font-size: 1rem; color: rgba(244, 243, 241, .62); }

.ppick__timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; padding: 14px 18px;
  border-radius: 18px; background: #141415; border: 1px solid #2c2c2e; }
.ppick__timer[hidden] { display: none; }
.ppick__timerlabel { max-width: 170px; font-size: .82rem; font-weight: 500; line-height: 1.35; color: rgba(244, 243, 241, .62); }
.ppick__clock { display: flex; align-items: center; gap: 5px; color: rgba(244, 243, 241, .4); }
.ppick__seg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 62px; height: 54px; padding: 0; text-align: center; border-radius: 11px; background: #0a0a0b; border: 1px solid #2c2c2e; }
.ppick__seg b { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.ppick__seg i { display: block; line-height: 1; font-style: normal; font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 243, 241, .45); }

.ppick__plans { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.ppick__plan {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; padding: 22px; border-radius: 16px; min-height: 104px;
  background: #141415; border: 1.5px solid #2c2c2e;
  transition: border-color .2s var(--ease, ease), background .2s var(--ease, ease);
}
.ppick__plan:hover { border-color: #636366; }
.ppick__plan.is-on { border-color: #3D7BFF; background: #141415 linear-gradient(rgba(61, 123, 255, .06), rgba(61, 123, 255, .06)); }
.ppick__pname { min-width: 0; font-size: 1rem; font-weight: 600; color: rgba(244, 243, 241, .92); }
.ppick__pname small { display: block; margin-top: 3px; font-size: .8rem; font-weight: 400; color: rgba(244, 243, 241, .5); }
.ppick__price { text-align: right; font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ppick__price small { font-size: .8rem; font-weight: 400; margin-left: 2px; color: rgba(244, 243, 241, .55); }
.ppick__was { margin-right: 6px; font-size: .8rem; font-weight: 400; text-decoration: line-through; color: rgba(244, 243, 241, .45); }
/* the saving: a pill beside the plan's name */
.ppick__nameline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ppick__save { font-style: normal; font-size: .75rem; font-weight: 400; letter-spacing: .01em; line-height: 1; padding: 6px 9px; border-radius: 999px;
  color: #9db9f5; background: rgba(61, 123, 255, .14); border: 0; white-space: nowrap; }
.ppick__badge { position: absolute; right: 16px; top: -9px; font-style: normal; font-size: .75rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: #0a0a0c; background: #fff; }
.ppick__badge--month { color: #000; background: #fff; }

/* the limit variant: a 2x2 grid of cards (name, price, then the one-line description) */
.ppick--limit .ppick__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ppick--limit .ppick__plan { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 144px; padding: 22px; }
.ppick--limit .ppick__pname { display: contents; font-size: .95rem; }
.ppick--limit .ppick__nameline { order: 1; }
.ppick--limit .ppick__pname small { order: 3; margin-top: 0; }
.ppick--limit .ppick__price { order: 2; text-align: left; font-size: 1.5rem; margin-top: 0; line-height: 1.2; }
.ppick--limit .ppick__badge { right: 10px; }

/* the button and its subtext, pinned to the bottom of the left side */
.ppick__foot { margin-top: auto; }
.ppick__buy {
  width: 100%; padding: 15px 18px; border: 0; border-radius: 999px; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  font: inherit; font-size: 1.05rem; font-weight: 500; color: #fff;
  background: #3D7BFF; box-shadow: none; transition: background .15s, transform .15s;
}
.ppick__buy:hover { background: #5C8FFF; }
.ppick__buy:active { transform: translateY(1px); }
.ppick__note { margin: 14px 2px 0; font-size: .78rem; line-height: 1.45; color: rgba(244, 243, 241, .5); text-align: center; }
/* The payment window could not load: said in place, with a retry (never a redirect). */
.ppick__err { margin: 12px 2px 0; padding: 10px 12px; border-radius: 10px; font-size: .84rem; line-height: 1.45; text-align: center;
  color: var(--ink, #F4F3F1); background: rgba(242, 184, 75, .12); border: 1px solid rgba(242, 184, 75, .35); }
.ppick__retry { margin-left: 4px; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }

/* ---- right: grey ---- */
/* a charcoal panel, only slightly lighter than the black beside it */
.ppick__right { padding: 40px 36px 30px 34px; background: #111113; }
.ppick__incl { margin: 0 0 4px; font-size: 1.05rem; font-weight: 500; letter-spacing: -.005em; line-height: 1.3; }
.ppick__inclsub { margin: 0 0 24px; font-size: .95rem; color: rgba(244, 243, 241, .55); }
.ppick__feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ppick__feat li { display: flex; gap: 14px; align-items: flex-start; }
.ppick__feat li .ppick__ico { margin-top: 1px; }
/* a small muted-blue circle with a light tick, the same for every feature: emphasis, never louder than the button */
.ppick__ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(61, 123, 255, .16); border: 0; color: #9db9f5; }
.ppick__ico svg { width: 13px; height: 13px; }
.ppick__ftext { min-width: 0; }
.ppick__feat strong { display: block; font-weight: 500; font-size: 1rem; line-height: 1.25; }
.ppick__feat em { display: block; font-style: normal; font-size: .82rem; line-height: 1.4; color: rgba(244, 243, 241, .55); margin-top: 2px; }
html.ppick-open { overflow: hidden; }

@media (max-width: 760px) {
  .ppick { align-items: flex-end; padding: 0; }
  .ppick__card { border-radius: 26px 26px 0 0; max-height: 92vh; max-height: 92dvh; }
  .ppick__grid { grid-template-columns: 1fr; min-height: 0; }
  .ppick__left { padding: 26px 18px 22px; }
  .ppick__title { font-size: 1.55rem; }
  .ppick__lead { margin-bottom: 16px; font-size: .9rem; }
  .ppick__timer { padding: 12px; margin-bottom: 16px; }
  .ppick__timerlabel { max-width: 110px; font-size: .78rem; }
  .ppick__seg { min-width: 52px; height: 50px; }
  .ppick__seg b { font-size: 1.3rem; }
  .ppick__plans { gap: 10px; margin-bottom: 22px; }
  .ppick--limit .ppick__plans { gap: 9px; }
  .ppick--limit .ppick__price { font-size: 1.25rem; }
  .ppick__plan { padding: 18px; }
  .ppick--limit .ppick__plan { min-height: 128px; padding: 18px; gap: 3px; }
  .ppick__foot { margin-top: 0; }
  .ppick__right { padding: 22px 18px 28px; }
  .ppick__incl { font-size: 1rem; }
  .ppick__feat { gap: 11px; }
  .ppick__feat strong { font-size: .92rem; }
}

/* A plan you cannot pick right now (a day pass already running). */
.ppick__plan.is-locked { opacity: .55; cursor: not-allowed; }
.ppick__buy:disabled { opacity: .55; cursor: not-allowed; }

/* The same selector, in the page rather than over it (/mastering/pricing). */
.ppick--inline { margin: 0 0 18px; }
.ppick--inline[hidden] { display: none; }
.ppick__card--inline { width: 100%; max-height: none; overflow: hidden; border-radius: 30px; box-shadow: none; }
.ppick__card--inline .ppick__grid { min-height: 0; }
@media (max-width: 760px) {
  .ppick__card--inline { border-radius: 24px; }
}

/* Pages with their own list/heading styles (.legal) must not reach in. */
:is(.ppick, .ppick--inline) .ppick__title { margin: 6px 0 4px; }
:is(.ppick, .ppick--inline) .ppick__incl { margin: 0 0 4px; }
:is(.ppick, .ppick--inline) .ppick__feat li { padding: 0; margin: 0; }
:is(.ppick, .ppick--inline) .ppick__feat li::before { display: none; }
:is(.ppick, .ppick--inline) .ppick__feat strong { margin: 0; }
/* On the pricing page the page's own headline is the title. */
.ppick--inline .ppick__title, .ppick--inline .ppick__mark { display: none; }
.ppick--inline .ppick__lead { margin-top: 0; }
:is(.ppick, .ppick--inline) .ppick__feat, :is(.ppick, .ppick--inline) .ppick__feat li { list-style: none; }
:is(.ppick, .ppick--inline) .ppick__feat { margin: 0; padding: 0; }
:is(.ppick, .ppick--inline) .ppick__feat li::marker { content: ""; }

/* Keyboard focus is shown in the accent, not the browser's white ring (the selected plan is focused on open). */
.ppick__plan:focus-visible, .ppick__x:focus-visible, .ppick__buy:focus-visible { outline: 2px solid #8fb4ff; outline-offset: 2px; }

/* The button's shimmer: a soft diagonal sweep of light across the flat red, every few seconds. No glow, no shadow.
   Off for people who ask for less motion, and while the button is disabled. */
.ppick__buy::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-130%) skewX(-18deg); animation: ppick-shimmer 3.8s ease-in-out 1s infinite; }
.ppick__buy:disabled::after { display: none; }
@keyframes ppick-shimmer { 0% { transform: translateX(-130%) skewX(-18deg); } 55%, 100% { transform: translateX(380%) skewX(-18deg); } }
@media (prefers-reduced-motion: reduce) { .ppick__buy::after { display: none; } }
.ppick__plan.is-on:focus-visible { outline: 1px solid #3D7BFF; outline-offset: 0; }
