/* Pricing page: two plan cards (the paid one tinted violet, the free one with its first lessons drawn as planets), how
   billing works as a timeline, the fine print, and the questions as glass rows. Colours are tokens or color-mix() of
   tokens; surfaces are glass (components.css); the only rules between rows are hairlines. */

/* The photo band: the page's head on a real photograph (an astronaut over Earth); the plans sit below it on glass. */
.pv-band { margin-top: var(--sp-5); border-radius: var(--r-lg); }
.pv-band__in { padding-inline: clamp(var(--sp-4), 3vw, var(--sp-6)); }
/* On a phone the text covers the whole band, so the scrim is heavier there (the astronaut stays a backdrop). */
@media (max-width: 759px) { .photo-band.pv-band::before { background: linear-gradient(180deg, var(--photo-scrim-strong), var(--photo-scrim) 70%, var(--photo-scrim-strong)); } }
.pv-lede { max-width: 60ch; margin: var(--sp-4) 0 var(--sp-5); color: var(--text-2); font-size: 1.05rem; line-height: 1.6; }

/* Plan cards: side by side, one column under 760px. Both are glass; the paid card carries the violet tint. */
.pv-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-5); align-items: stretch; }
@media (max-width: 759px) { .pv-plans { grid-template-columns: minmax(0, 1fr); } }
.pv-plan { display: flex; flex-direction: column; min-width: 0; padding: var(--sp-5); }
.pv-plan--paid {
  background-image: var(--stardust), linear-gradient(180deg, color-mix(in srgb, var(--violet) 26%, var(--glass-top)), color-mix(in srgb, var(--violet) 12%, var(--glass-bottom)));
  background-size: 180px 180px, auto;
  background-repeat: repeat, no-repeat;
}
.pv-plan__name { margin: 0; font: 500 1.25rem/1.2 var(--font-display); color: var(--text); }
.pv-plan--paid .pv-plan__name { color: var(--violet-text); }
.pv-price { margin: var(--sp-4) 0 var(--sp-5); font: 500 clamp(2.4rem, 2rem + 1.6vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.pv-price--text { font-size: clamp(1.8rem, 1.6rem + 1vw, 2.2rem); }
.pv-unit { font: 500 .42em/1 var(--font-ui); letter-spacing: 0; color: var(--text-2); white-space: nowrap; }

/* What a plan includes: one row per item, a 24px stroke icon (green when included, muted when it is a rule). */
.pv-list { display: grid; margin: 0; padding: 0; list-style: none; }
.pv-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: var(--sp-3); padding: var(--sp-3) 0; color: var(--text-2); line-height: 1.5; }
.pv-list li + li { border-top: 1px solid var(--line); }
.pv-ico { width: 24px; height: 24px; color: var(--green); }
.pv-ico--note { color: var(--text-3); }
.pv-plan--free .pv-list { margin-bottom: var(--sp-5); }

/* The free card's first lessons: a tonal tile, one row per subject. Lit planets are the free lessons; the dim ones and
   the padlock are the rest, which open with a plan (the caption says so). */
.pv-lessons { margin-top: auto; padding: var(--sp-4); border-radius: var(--r-md); background: var(--glass-tile); }
.pv-lessons__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-1) var(--sp-3); min-height: 36px; }
.pv-lessons__row + .pv-lessons__row { border-top: 1px solid var(--line); }
.pv-lessons__name { font: 600 .93rem/1.3 var(--font-ui); }
.pv-lessons__name[data-dom="mth"] { color: var(--dom-mth); }
.pv-lessons__name[data-dom="phy"] { color: var(--dom-phy); }
.pv-lessons__name[data-dom="aiml"] { color: var(--dom-aiml); }
.pv-lessons__planets { display: inline-flex; align-items: center; flex: none; gap: 6px; }
.pv-lessons .lock { width: 16px; height: 16px; }
.pv-lessons__cap { margin: var(--sp-3) 0 0; font-size: .85rem; line-height: 1.5; color: var(--text-3); }

/* The paid card's action sits at the foot, so both buttons line up whatever the text above them. */
.pv-plan__act { margin-top: auto; padding-top: var(--sp-5); }
.pv-plan .btn { width: 100%; white-space: normal; text-align: center; }
/* Unavailable checkout is still an explanation, so its label keeps full contrast (only the fill steps back). */
.pv-plan .btn:disabled { opacity: 1; background: var(--surface-2); color: var(--text-2); }
.pv-plan__alt { margin: var(--sp-3) 0 0; text-align: center; font-size: .9rem; }

/* Fine print: muted, with one info mark for the block. */
.pv-fine { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--sp-2) var(--sp-3); max-width: 70ch; margin-top: var(--sp-5); font-size: .875rem; line-height: 1.6; color: var(--text-3); }
.pv-fine .pv-ico { width: 18px; height: 18px; margin-top: 3px; }
.pv-fine p { margin: 0; }
.pv-fine p + p { margin-top: var(--sp-2); }
.pv-fine a { color: var(--accent-text); }

/* How billing works: four planets on a line (a row on desktop, a column under 760px). */
.pv-h2 { margin: 0 0 var(--sp-5); font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.pv-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--sp-5); margin: 0 0 var(--sp-7); padding: 0; list-style: none; }
.pricing-how .pv-step { position: relative; display: grid; align-content: start; gap: var(--sp-2); padding: 0; border-top: 0; color: var(--text-2); }
/* The line joins each planet to the next: it starts past this planet's edge and stops short of the next one. */
.pv-step:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: 36px; right: calc(var(--sp-2) - var(--sp-5)); height: 1px; background: var(--line-strong); }
.pv-step__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 600 .85rem/1 var(--font-ui); color: var(--on-hue);
  background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--cyan), var(--lit-hi) 40%) 0, var(--cyan) 52%, color-mix(in srgb, var(--cyan), var(--lit-shade) 45%) 100%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--lit-hi) 50%, transparent); }
/* Step three is when access opens, so its planet is violet (what the plan opens). */
.pv-step--violet .pv-step__n { background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--violet), var(--lit-hi) 40%) 0, var(--violet) 52%, color-mix(in srgb, var(--violet), var(--bg) 45%) 100%); }
.pv-step__h { margin: 0; font: 500 1.08rem/1.3 var(--font-display); color: var(--text); }
.pv-step__p { margin: 0; max-width: 34ch; font-size: .9rem; line-height: 1.55; color: var(--text-2); }
@media (max-width: 759px) {
  .pv-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pricing-how .pv-step { grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: 28px auto; column-gap: var(--sp-3); row-gap: var(--sp-1); padding-bottom: var(--sp-5); }
  .pv-step__n { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .pv-step__h { grid-column: 2; grid-row: 1; align-self: center; }
  .pv-step__p { grid-column: 2; grid-row: 2; max-width: none; }
  .pv-step:not(:last-child)::after { top: 32px; bottom: 4px; left: 13px; right: auto; width: 1px; height: auto; }
}

/* Questions: each one a glass row, its chevron turns when the row opens. */
.pv-faq { display: grid; gap: var(--sp-3); max-width: 880px; margin: 0 0 var(--sp-5); }
.pv-faq__row { padding: 0 var(--sp-5); }
.pv-faq__row > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-4) 0; font: 600 1rem/1.4 var(--font-ui); color: var(--text); list-style: none; cursor: pointer; }
.pv-faq__row > summary::-webkit-details-marker { display: none; }
.pv-chev { flex: none; width: 20px; height: 20px; color: var(--accent-text); transition: transform .2s var(--ease); }
.pv-faq__row[open] > summary .pv-chev { transform: rotate(180deg); }
.pv-faq__row > p { max-width: var(--measure); margin: 0 0 var(--sp-4); color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .pv-chev { transition: none; } }

.pv-lessons__name[data-dom="earn"] { color: var(--dom-earn); }
