/* pricing.css - the pricing page (/pricing/ and /it/prezzi/, plan site/plan/pricing.md, 2026-11-21).
   Loaded by those two pages only, after the shared stack (site.css, the kit). Same classes in both languages.
   1. hero: the lit frame on the right, the app's dashboard window (drawn after the real app) cut by the frame's
      right and bottom edges, the one float card with the lesson's five stages
   2. plans: three plan cards side by side, rows aligned with subgrid from 1024
   3. schools: the light sheet (iris-opens moment, kit) with the drawn tree: My Mentor AI, the school, three groups
   4. questions: the h2 beside the open FAQ
   Nothing here moves by itself except the float card's dot (layout.css .ly-live), which rests under reduced motion. */

/* ================================================================ 1. hero */
.prc-hero h1 { max-width: 12em; }
/* the frame: the page's dark surface with one soft teal light, as the home's ground (no sand: the site is dark) */
.hero__media.prc-frame {
  background:
    radial-gradient(70% 60% at 78% 18%, rgb(23 234 217 / .13), rgb(23 234 217 / 0) 70%),
    var(--p-surface);
  border: 1px solid var(--line);
}
/* the window: 32px in from the frame's top and left, running 40px past its right and bottom edges; the right cut
   falls in the window's empty right margin (48px), the foot fades out over the frame's last 72px */
.prc-frame__stage {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent calc(100% - 4px));
  mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent calc(100% - 4px));
}
.prc-win.ui {
  --fx-bg: var(--p-bg); --fx-surface: var(--p-surface); --fx-ink: var(--p-ink); --fx-muted: #9aa1ab;
  --fx-accent: var(--p-accent); --fx-accent-ink: var(--p-accent-ink); --ui-font: var(--font-text); --ui-radius: 12px;
  position: absolute; left: 32px; top: 32px;
  width: calc(100% + 8px); height: calc(100% + 8px); max-width: none;
  display: grid; grid-template-rows: 44px minmax(0, 1fr);
  overflow: hidden;
  container: prc-win / inline-size;
}
.prc-win__bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--u-line); background: var(--u-fill); min-width: 0; }
.prc-win__crumb { display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; white-space: nowrap; color: var(--u-muted); }
.prc-win__crumb img { width: 15px; height: 14px; flex: none; }
.prc-win__crumb i { font-style: normal; opacity: .5; }
.prc-win__crumb b { font-weight: 500; color: var(--u-ink); }
.prc-win__body { display: grid; grid-template-columns: 160px minmax(0, 1fr); min-height: 0; }
/* the sidebar: the label and the courses, the first item the action to add one */
.prc-win__side { display: grid; align-content: start; gap: 1px; padding: 12px 8px; border-right: 1px solid var(--u-line); }
.prc-win__label { margin: 0 8px 6px; font-size: 12px; line-height: 16px; color: var(--u-soft); }
.prc-win__nav { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 8px; border-radius: 6px; line-height: 18px; color: var(--u-muted); }
.prc-win__nav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.prc-win__nav.is-add { color: var(--u-ink); }
.prc-win__nav.is-on { background: var(--u-fill-2); color: var(--u-ink); font-weight: 500; }
/* the list: column heads, then one row per document (the file tile, the name over its upload date, the course, Study) */
.prc-win__main { min-width: 0; padding-right: 48px; }   /* 48px clear at the right: the frame's cut falls in empty margin */
.prc-win__cols, .prc-win__row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 104px 56px; align-items: center; gap: 0 12px; padding: 0 16px; }
.prc-win__cols { height: 34px; border-bottom: 1px solid var(--u-line); font-size: 12px; line-height: 16px; color: var(--u-soft); }
.prc-win__cols span:first-child { grid-column: 1 / 3; }
.prc-win__row { min-height: 68px; padding-block: 8px; }
.prc-win__row + .prc-win__row { box-shadow: inset 0 1px 0 var(--u-line); }
.prc-win__pdf {
  display: grid; place-items: center; width: 26px; height: 32px; border-radius: 4px;
  background: var(--u-fill-2); box-shadow: inset 0 0 0 1px var(--u-line-2);
  font: 600 8px/1 var(--font-mono); letter-spacing: .02em; color: var(--u-muted);
}
.prc-win__doc { display: grid; min-width: 0; }
.prc-win__name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prc-win__date { font-size: 12px; line-height: 16px; color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prc-win__course { color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the status chips are ink tints; the first row (the newest upload) carries the window's one accent */
.prc-win__go { justify-self: start; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px;
  font-size: 12px; font-weight: 500; color: var(--u-ink); background: var(--u-fill-2); box-shadow: inset 0 0 0 1px var(--u-line-2); white-space: nowrap; }
.prc-win__row.is-new { background: color-mix(in oklab, var(--u-accent) 6%, var(--u-bg)); }
.prc-win__row.is-new .prc-win__pdf { color: var(--u-accent-text); background: var(--u-tint); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--u-accent) 40%, transparent); }
.prc-win__row.is-new .prc-win__go { color: var(--u-accent-ink); background: var(--u-accent); box-shadow: none; }
/* a narrow window (a tablet frame, a phone): the sidebar goes, then the course column */
@container prc-win (max-width: 560px) {
  .prc-win__body { grid-template-columns: minmax(0, 1fr); }
  .prc-win__side { display: none; }
}
@container prc-win (max-width: 420px) {
  .prc-win__cols, .prc-win__row { grid-template-columns: 26px minmax(0, 1fr) 56px; gap: 0 10px; padding: 0 12px; }
  .prc-win__row { padding-block: 8px; }
  .prc-win__cols span:nth-child(2), .prc-win__course { display: none; }
  .prc-win__main { padding-right: 0; }
}
/* the float card: the lesson built from the newest upload, its five stages with Start marked */
.prc-float { gap: var(--s-2); background: var(--p-bg); }
.prc-float .ly-float__row { justify-content: flex-start; min-width: 0; }
.prc-float .ly-float__row > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.prc-stages { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-weight: 500; font-size: var(--t-small); line-height: 1.5; }
.prc-stages i { font-style: normal; color: var(--src); }
.prc-stages b { font-weight: 500; color: var(--ink); }
.prc-stages b.is-on { color: var(--accent); }

@media (max-width: 1023px) {
  .prc-win.ui { left: 24px; top: 24px; width: min(680px, calc(100% + 16px)); height: calc(100% + 16px); }
  .prc-win__row { min-height: 60px; }
}
@media (max-width: 639px) {
  /* a phone: the window whole in width (sidebar and course column gone), cut by the frame's foot only */
  .prc-win.ui { left: 16px; top: 16px; width: calc(100% - 32px); height: calc(100% + 24px); }
  .prc-win__row { min-height: 48px; padding-block: 6px; }
  /* only the column heads and the first two rows: the lesson card below never lies over row text */
  .prc-win__main > .prc-win__row:nth-child(n+4) { display: none; }
  .prc-float { left: var(--s-4); bottom: var(--s-4); width: calc(100% - 2 * var(--s-4)); padding: var(--s-3) var(--s-4); }
}

/* ================================================================ 2. plans */
.prc-plans .section-head--split h2 { max-width: 22ch; }
.prc-plans .section-head--split h2 .muted { color: var(--muted); }
.prc-grid { align-items: stretch; }
.prc-grid > .card--plan { background: var(--p-surface); }
.card--plan .prc-for { margin: 0; color: var(--ink); font-size: var(--t-body); line-height: 1.5; max-width: 34ch; }
.card--plan .price { flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin: var(--s-2) 0 0; }
.card--plan .price .t-stat { font-size: var(--t-h2); line-height: 1; letter-spacing: var(--display-tracking-xl); }
.card--plan .price .muted { font-size: var(--t-small); color: var(--src); }
/* the yearly price: its own quiet line under the monthly one, inside .price so the 4-row subgrid stays */
.card--plan .price .prc-year { flex-basis: 100%; }
.card--plan .checks { margin-top: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.card--plan .checks li { font-size: var(--t-body); line-height: 1.5; color: var(--ink); }
.prc-note { margin-top: var(--s-5); }
/* 720 and up: the three plans stay side by side (the kit puts span-4 cards on full rows under 1024) */
@media (min-width: 720px) {
  .prc-grid > .card--plan.span-4 { grid-column: auto / span 4; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .prc-grid > .card--plan { --c-pad: 20px; }
  .card--plan .price .t-stat { font-size: clamp(28px, 3.6vw, 36px); }
}
/* from 1024 each card is a subgrid of the row, so names, for lines, prices and the first lines align across */
@media (min-width: 1024px) {
  .prc-grid { grid-template-rows: auto auto auto 1fr; row-gap: 0; }
  .prc-grid > .card--plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--s-4); align-content: start; }
  .card--plan .checks { align-content: start; }
}

/* ================================================================ 3. schools: the light sheet and the tree */
.prc-schools.sheet { border-radius: clamp(24px, 3vw, 44px); }
.prc-schools__head { align-items: start; row-gap: var(--s-4); margin-bottom: var(--s-8); }
.prc-schools__head h2 { margin: 0; }
.prc-schools__text { display: grid; justify-items: start; gap: var(--s-5); }
.prc-schools__text p { font-size: var(--t-lead); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.prc-schools__text p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.prc-schools__text p a:hover { text-decoration-color: currentColor; }
@media (min-width: 1024px) {
  .prc-schools__head > h2 { grid-column: 1 / span 5; }
  .prc-schools__head > .prc-schools__text { grid-column: 7 / span 6; }
}
/* the frame takes what the head leaves of the screen (.fill); the tree stands centred in it */
/* it grows into what the head leaves but never shrinks below the tree (the kit's .fill alone would let it reach 0
   in a section that grows with its content, on a tablet or a phone) */
main > section.prc-schools > .wrap > .prc-tree.fill { flex: 1 0 auto; }
.prc-tree.frame { min-height: 320px; padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 64px); background: var(--surface); }
.prc-tree__in { width: min(100%, 860px); display: grid; justify-items: center; }
.prc-node {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: var(--r-md); text-align: center;
  background: #ffffff; color: var(--ink); border: 1px solid var(--line-strong);
  font: 500 var(--t-body)/1.3 var(--font-text);
}
.prc-node svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.prc-node--root { background: var(--p-bg); color: var(--p-ink); border-color: var(--p-bg); font-size: var(--t-lead); padding-inline: 26px; }
.prc-node--root img { width: 22px; height: 20px; flex: none; }
/* the links: a vertical line under the root and under the school, a bar over the three groups and a stub to each */
.prc-tree__stem { width: 1px; height: clamp(28px, 5vh, 56px); background: var(--ink); opacity: .45; }
.prc-tree__leaves { position: relative; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); padding-top: clamp(28px, 5vh, 56px); }
.prc-tree__leaves::before { content: ""; position: absolute; top: 0; left: calc(100% / 6); right: calc(100% / 6); height: 1px; background: var(--ink); opacity: .45; }
.prc-tree__leaves > li { position: relative; display: flex; justify-content: center; }
.prc-tree__leaves > li::before { content: ""; position: absolute; left: 50%; top: calc(-1 * clamp(28px, 5vh, 56px)); width: 1px; height: clamp(28px, 5vh, 56px); background: var(--ink); opacity: .45; }
.prc-tree__leaves .prc-node { width: 100%; max-width: 240px; }
@media (max-width: 639px) {
  .prc-schools__head { margin-bottom: var(--s-6); }
  .prc-tree.frame { min-height: 0; padding: var(--s-6) var(--s-4); }
  .prc-node { min-height: 44px; padding: 10px 12px; font-size: var(--t-small); }
  .prc-node--root { font-size: var(--t-body); }
  .prc-tree__leaves { gap: var(--s-2); }
}

/* ================================================================ 4. questions */
.prc-faq { row-gap: var(--s-6); align-content: start; }
.prc-faq > h2 { margin: 0; }
.prc-faq .faq a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prc-faq .faq a:hover { text-decoration-color: currentColor; }
@media (min-width: 1024px) {
  .prc-faq > h2 { grid-column: 1 / span 5; }
  .prc-faq > .faq { grid-column: 7 / span 6; }
}
