/* product.css - the product page (/product/, /it/prodotto/), plan site/plan/product.md. Loaded by the front matter of
   en/product.html and it/prodotto.html only, after the shared files and the kit's chat, doc and word-highlight CSS.
   Prefix pr-. The drawn product window follows the home's (home.css .win, .app__bar, .doc-bar, .doc-paper, .ask-menu,
   .tutor-tabs, .quiz): the rules are copied here under pr- names, home.css is never loaded on this page.
   Sections: 1 hero (kit hero--centred, the lit frame, the dark window; its story loop is layout.js [data-ly-steps]),
   2 #method (statement, word-highlight), 3 #material (the app frame), 4 #steps (four open cards on two screens),
   5 #coming-soon (the giant line over rows), 6 #close (site.css .band-close). Nothing here moves by itself. */

/* ================================================================ the lit ground (hero frame, card panels)
   a pale ground mixed from the light palette with a soft glow of the accent; drawn once, held */
#hero .pr-frame,
#steps .pr-lit {
  background-color: #d3dbe0;
  background-image:
    radial-gradient(90% 120% at 50% -10%, #f4f7f9, rgb(244 247 249 / 0) 62%),
    radial-gradient(70% 90% at 100% 110%, color-mix(in oklab, var(--p-accent) 34%, #cfd8dd), rgb(207 216 221 / 0) 70%),
    radial-gradient(60% 80% at 0% 100%, #bfc9cf, rgb(191 201 207 / 0) 70%);
}
#steps .pr-lit::before { display: none; }

/* ================================================================ the drawn window (dark, as on the home) */
.pr-win {
  --fx-bg: var(--p-surface); --fx-surface: var(--p-bg); --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: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 40px minmax(0, 1fr);
  min-width: 0; max-width: 100%; text-align: left; font: 400 13px/20px var(--font-text); color: var(--u-ink);
  background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .7), 0 0 0 1px rgb(233 237 243 / .04);
}
.pr-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); white-space: nowrap; min-width: 0; }
.pr-crumb { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.pr-crumb img { width: 15px; height: 14px; flex: none; }
.pr-crumb i { font-style: normal; opacity: .5; }
.pr-crumb b { font-weight: 500; color: var(--u-ink); overflow: hidden; text-overflow: ellipsis; }
.pr-sp { flex: 1; }
.pr-bar__opt { flex: none; }
.pr-search { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--u-line-2); font-size: 12px; }
.pr-search svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.pr-body { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; min-height: 0; }

/* the chips of the window (a row's state) */
.pr-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; font: 500 11px/1 var(--font-text); font-style: normal;
  color: var(--u-muted); box-shadow: inset 0 0 0 1px var(--u-line-2); white-space: nowrap; }
.pr-chip--on { background: var(--u-tint); color: var(--u-ink); box-shadow: inset 0 0 0 1px var(--u-accent); }

/* ================================================================ 1. hero */
.pr-hmark { display: inline-block; width: .74em; height: .68em; margin-right: .1em; vertical-align: -.02em;
  background: url('/assets/img/mark.svg') center / contain no-repeat; }
.pr-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
/* the hero's window: the document's sections on the left (context, may run into the fade), the tutor on the right */
.pr-body--hero { grid-template-columns: 300px minmax(0, 1fr); }
.pr-secs { display: grid; align-content: start; gap: 2px; padding: 10px; background: var(--u-fill); border-right: 1px solid var(--u-line); }
.pr-secs__head { display: flex; align-items: center; height: 32px; margin-bottom: 4px; padding: 0 10px; border-radius: 8px; background: var(--u-fill-3); color: var(--u-muted); font-size: 12px; }
.pr-sec { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 1px 10px; padding: 9px 8px; border-radius: 9px; }
.pr-sec.is-on { background: var(--u-fill-3); }
.pr-sec i { grid-row: 1 / span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--u-fill-3);
  font: 500 11px/1 var(--font-mono); font-style: normal; color: var(--u-ink); }
.pr-sec.is-on i { background: var(--u-accent); color: var(--u-accent-ink); }
.pr-sec b { font-weight: 500; color: var(--u-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-sec span { grid-column: 2; color: var(--u-muted); font-size: 12px; line-height: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-tutor { display: flex; flex-direction: column; min-width: 0; }
.pr-tabs { display: flex; gap: 2px; padding: 6px 12px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); white-space: nowrap; overflow: hidden; }
.pr-tabs > span { padding: 4px 12px; border-radius: 6px; line-height: 20px; }
.pr-tabs > span.is-on { background: var(--u-fill-3); color: var(--u-ink); font-weight: 500; }
.pr-chat.ui-chat { width: auto; overflow: visible; }
.pr-chat .ui-chat__body { min-height: 0; padding: 12px 16px; gap: 8px; }
.pr-chat .ui-msg--me { max-width: 92%; }
.pr-chat .ui-msg--me small { margin-left: 8px; font-size: 12px; color: var(--u-muted); white-space: nowrap; }
.pr-chat .ui-msg--bot { max-width: 100%; }
.pr-win img.ui-msg__av { width: 20px; height: 19px; flex: none; margin-top: 2px; }
.pr-chat .ui-msg__col { color: var(--u-text-2); overflow-wrap: anywhere; }
.pr-chat .ui-msg__col small { margin-left: 4px; font-size: 12px; color: var(--u-muted); white-space: nowrap; }
.pr-tool { display: flex; align-items: center; gap: 8px; padding-left: 30px; font-size: 12px; line-height: 18px; color: var(--u-muted); }
.pr-tool::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--u-accent); flex: none; }
.pr-acts { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 30px; }
.pr-acts span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 500; background: var(--u-fill-3); color: var(--u-ink); }
.pr-acts span:first-child { background: var(--u-accent); color: var(--u-accent-ink); }
@media (max-width: 1023px) { .pr-body--hero { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 639px) {
  /* a phone: the document column, the bar's right label, the tool line and the actions go; the question and the
     answer stand above the frame's fade (its last 28px) */
  .pr-hero .pr-win { font-size: 12px; line-height: 18px; }
  .pr-body--hero { grid-template-columns: minmax(0, 1fr); }
  .pr-secs, .pr-bar__opt, .pr-tool, .pr-acts, .pr-chat .ui-msg--me small { display: none; }
  .pr-tabs { padding: 6px 8px; font-size: 12px; }
  .pr-tabs > span { padding: 2px 8px; }
  .pr-chat .ui-chat__body { padding: 10px 12px; }
  .pr-chat .ui-msg { font-size: 12px; line-height: 18px; }
}

/* ================================================================ 2. the method (statement, word-highlight) */
.pr-method__grid { margin-top: var(--s-7); }
/* the statement large (42 at 1440, 32 at 390) on span-8; the section takes its content's height (section--auto),
   so no empty middle (review V3) */
.pr-method .mo-wh__text { grid-column: 1 / -1; max-width: none; font-size: clamp(32px, 2.2vw + 10px, 42px); line-height: 1.3; letter-spacing: var(--display-tracking); }
@media (min-width: 1024px) { .pr-method .mo-wh__text { grid-column: 1 / span 8; } }
/* the team line under the statement on a rule */
.pr-method__foot { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3) var(--s-6); }
.pr-method__foot p { font-size: var(--t-body); line-height: 26px; color: var(--ink); }

/* ================================================================ 3. the app frame */
.pr-material__head { align-items: start; row-gap: var(--s-4); margin-bottom: var(--s-7); }
@media (min-width: 1024px) {
  .pr-material__head > h2 { grid-column: 1 / span 5; }
  .pr-material__text { grid-column: 7 / span 6; }
}
.pr-material__text p { font-size: var(--t-body); line-height: 1.6; color: var(--ink); max-width: 62ch; }
.pr-material__text .link { margin-top: var(--s-4); }
#material .pr-app { min-height: 320px; }
.pr-body--app { grid-template-columns: 148px minmax(0, 5fr) minmax(0, 6fr); overflow: hidden; }
.pr-side { display: grid; align-content: start; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--u-line); }
.pr-side span { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 6px; color: var(--u-muted); }
.pr-side span.is-on { background: var(--u-fill-3); color: var(--u-ink); font-weight: 500; }
.pr-side em { font-style: normal; color: var(--u-muted); font-variant-numeric: tabular-nums; }
.pr-list { display: grid; align-content: start; gap: 2px; padding: 8px; border-right: 1px solid var(--u-line); overflow: hidden; }
.pr-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 0 10px; align-items: center; padding: 7px 8px; border-radius: 8px; }
.pr-row.is-on { background: var(--u-fill-3); }
.pr-row i { grid-row: 1 / span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  font: 500 11px/1 var(--font-mono); font-style: normal; color: var(--u-ink); background: var(--u-fill-3); }
.pr-row i[data-tone="1"] { background: var(--u-accent); color: var(--u-accent-ink); }
.pr-row i[data-tone="2"] { background: color-mix(in oklab, var(--u-accent) 40%, var(--u-bg)); }
.pr-row i[data-tone="3"] { background: color-mix(in oklab, var(--u-ink) 30%, var(--u-bg)); }
.pr-row i[data-tone="4"] { background: color-mix(in oklab, var(--u-accent) 20%, var(--u-bg)); }
.pr-row i[data-tone="5"] { background: color-mix(in oklab, var(--u-ink) 18%, var(--u-bg)); }
.pr-row b { font-weight: 500; color: var(--u-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-row span { grid-column: 2; font-size: 12px; line-height: 16px; color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-row .pr-chip { grid-column: 3; grid-row: 1 / span 2; }
/* the open document: its toolbar row, then the white page, as in the real app */
.pr-open { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; padding: 10px 20px 0; background: var(--u-fill); }
.pr-open::after { content: ""; position: absolute; inset: auto 0 0 0; height: 56px; pointer-events: none; background: linear-gradient(rgb(19 24 36 / 0), var(--u-fill)); }
.pr-docbar { display: flex; align-items: center; gap: 6px; flex: none; height: 34px; margin-bottom: 8px; font-size: 12px; line-height: 16px; color: var(--u-muted); white-space: nowrap; min-width: 0; }
.pr-docbar__c { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--u-line-2); color: var(--u-ink); overflow: hidden; text-overflow: ellipsis; }
.pr-docbar__sp { flex: 1; }
.pr-docbar__n { font-variant-numeric: tabular-nums; }
.pr-paper.ui {
  --fx-bg: #ffffff; --fx-ink: #15181d; --fx-muted: #5f6670; --fx-accent: #0fb5a8; --fx-accent-ink: #ffffff;
  position: relative; width: auto; padding-right: 0; flex: 1 1 auto; min-height: 0;
}
.pr-paper .ui-doc__page { border-radius: 6px 6px 0 0; }
.pr-paper .ui-doc__text b { font-weight: 600; color: var(--u-ink); }
.pr-selp { position: relative; }
.pr-sel { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* the selection menu the real app opens on selected text */
.pr-ask { position: absolute; right: 6%; top: calc(100% + 4px); z-index: 3; display: grid; gap: 2px; padding: 6px; border-radius: 10px;
  background: #ffffff; color: #15181d; font-size: 13px; line-height: 20px; box-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 14px 32px -12px rgb(0 0 0 / .45); }
.pr-ask > span { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.pr-ask > span:first-child { background: rgb(15 181 168 / .12); }
.pr-ask svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pr-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; padding: 8px 10px; border-radius: 8px;
  background: var(--u-fill); font-size: 12px; line-height: 16px; color: var(--u-muted); }
.pr-note b { font-weight: 600; color: var(--u-ink); }
.pr-note__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--u-accent); }
@media (min-width: 1024px) and (max-width: 1279px) {
  .pr-body--app { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .pr-side { display: none; }
}
@media (max-width: 1023px) {
  /* the list on top (its first four rows), the document under it; the menu over the page goes (plan: below 1024) */
  #material .pr-app.fill { flex: none; height: 640px; }
  .pr-body--app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .pr-side, .pr-ask { display: none; }
  .pr-list { border-right: 0; border-bottom: 1px solid var(--u-line); }
  .pr-row:nth-child(n+5) { display: none; }
}
@media (max-width: 639px) {
  /* a phone: the open document alone, its own toolbar as the chrome */
  #material .pr-app.fill { height: 460px; }
  .pr-list, .pr-search { display: none; }
  .pr-body--app { grid-template-rows: minmax(0, 1fr); }
  .pr-open { padding: 8px 12px 0; }
  .pr-paper .ui-doc__page { padding: 20px 18px 24px; }
}

/* ================================================================ 4. the three live steps (four open cards) */
#steps .panel { --p-h: 336px; }
@media (min-width: 640px) and (max-width: 1023px) { #steps .panel { --p-h: 280px; } }
/* a phone: 208, not the kit's 180, so the quiz question and its four answers stand whole in card B */
@media (max-width: 639px) { #steps .panel { --p-h: 208px; } }
#steps .panel__bar img { width: 18px; height: 17px; flex: none; }
.pr-light { --fx-bg: #ffffff; --fx-surface: #f4f5f7; --fx-ink: #15181d; --fx-muted: #5f6670; --fx-accent: #0fb5a8; --fx-accent-ink: #ffffff; --ui-radius: 12px; }
.pr-frag { position: absolute; z-index: 1; text-align: left; font: 400 13px/20px var(--font-text); color: var(--u-ink); }
.pr-frag.ui { background: var(--u-bg); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.pr-frag__head { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--u-line); white-space: nowrap; overflow: hidden; }
.pr-frag__head b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.pr-frag__head span { color: var(--u-muted); }
/* A: the lesson's five stages (a corner placement on the device panel, cut by the screen's foot) */
.pr-frag--a { left: 24px; right: 24px; top: 28px; overflow: hidden; }
.pr-stage { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 0 12px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--u-line); }
.pr-stage.is-on { background: var(--u-tint); }
.pr-stage i { grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--u-fill-3);
  font: 500 12px/1 var(--font-mono); font-style: normal; color: var(--u-ink); }
.pr-stage.is-on i { background: var(--u-accent); color: var(--u-accent-ink); }
.pr-stage b { font-weight: 500; }
.pr-stage span { grid-column: 2; font-size: 12px; line-height: 16px; color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-stage .pr-chip { grid-column: 3; grid-row: 1 / span 2; }
/* B: the quiz (a rise, out through the panel's foot; the question and the four answers stand whole above it) */
.pr-frag--b { left: max(24px, 50% - 200px); width: min(400px, 100% - 48px); top: 56px; bottom: -24px; display: flex; flex-direction: column; padding-bottom: 28px; overflow: hidden; }
.pr-quiz__q { padding: 14px 16px 0; font-size: 15px; line-height: 22px; font-weight: 500; }
.pr-quiz__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px 16px 0; }
.pr-quiz__opts li { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 10px; border-radius: 8px; text-align: center;
  font-weight: 500; box-shadow: inset 0 0 0 1px var(--u-line-2); }
.pr-quiz__opts .is-wrong { background: rgb(255 120 110 / .14); box-shadow: inset 0 0 0 1px rgb(214 82 70 / .6); }
.pr-quiz__opts .is-right { background: var(--u-tint); box-shadow: inset 0 0 0 1px var(--u-accent); }
.pr-src { display: flex; align-items: center; gap: 6px; margin-top: auto; padding: 12px 16px 0; font-size: 12px; color: var(--u-muted); white-space: nowrap; overflow: hidden; }
.pr-src svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--u-ink); stroke-width: 1.3; stroke-linejoin: round; }
/* C: three flashcards, a low stack (its last card may be cut by the panel's foot) */
.pr-frag--c { left: 32px; width: min(380px, 100% - 64px); top: max(24px, 100% - 260px); display: grid; gap: 10px; }
.pr-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 14px;
  background: var(--u-bg); border-radius: var(--u-r); box-shadow: var(--u-shadow-sm); font: 400 13px/20px var(--font-text); color: var(--u-ink); }
.pr-card i { grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--u-tint);
  font: 500 12px/1 var(--font-mono); font-style: normal; }
.pr-card b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-card time { grid-column: 3; grid-row: 1; font-size: 12px; color: var(--u-muted); font-variant-numeric: tabular-nums; }
.pr-card span { grid-column: 2 / span 2; font-size: 12px; line-height: 16px; color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* D: Test yourself (a rise, 40px down; whole, or cut through its last item only) */
#steps .pr-frag--d { left: max(24px, 50% - 170px); width: min(340px, 100% - 48px); top: 40px; padding-bottom: 8px; }
.pr-frag--d .ui-checks__head { height: 48px; padding: 0 16px; }
.pr-frag--d .ui-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-checks__count { padding: 0 16px 8px; font-size: 12px; color: var(--u-muted); }
.pr-frag--d .ui-check__label::after { display: none; }
.pr-frag--d .ui-check.is-done .ui-check__label { color: var(--u-ink); }
@media (max-width: 639px) {
  .pr-frag--a { left: 16px; right: 16px; top: 16px; }
  .pr-frag--b { left: 16px; width: calc(100% - 32px); top: 16px; bottom: auto; padding-bottom: 12px; }
  .pr-frag--b .pr-frag__head { height: 36px; }
  .pr-quiz__q { padding-top: 10px; font-size: 14px; line-height: 20px; }
  .pr-quiz__opts { padding-top: 10px; }
  .pr-src { display: none; }
  .pr-frag--c { left: 16px; width: calc(100% - 32px); top: 16px; }
  #steps .pr-frag--d { left: 16px; width: calc(100% - 32px); top: 16px; }
  .pr-quiz__opts li { min-height: 32px; padding-block: 4px; }
}

/* ================================================================ 5. coming soon in 2027 (the giant line, the rows) */
.pr-soon__h { font-size: var(--ly-h1); line-height: 1.02; letter-spacing: var(--display-tracking-xl); max-width: none; }
.pr-soon__lead { margin-top: var(--s-5); font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
.pr-soon__rows { margin-top: var(--s-7); }
.pr-soon__rows > li { align-items: center; }
.pr-soon__rows .rows__name { font-size: var(--t-body); line-height: 24px; }
.pr-soon__rows > li > p { font-size: var(--t-body); line-height: 24px; }
.pr-tag { grid-column: 2; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong); font: 500 12px/1 var(--font-mono); letter-spacing: .02em; color: var(--src); white-space: nowrap; }
.pr-soon__later { margin-top: var(--s-6); font-size: var(--t-body); line-height: 24px; color: var(--ink); }
@media (min-width: 1024px) {
  .pr-soon__lead, .pr-soon__rows, .pr-soon__later { max-width: calc((100% - 11 * var(--gutter)) / 12 * 8 + 7 * var(--gutter)); }
}
@media (max-width: 639px) {
  .pr-soon__rows > li { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .pr-tag { grid-column: 1; grid-row: auto; justify-self: start; }
}
