/* investors.css - the investors page (/investors/, /it/investitori/; plan site/plan/investors.md). Loaded by the
   front matter of both twins after the kit, site.css and the chat fragment's CSS. Page rules only; the palette,
   the grid, the sections, the buttons, the faq and the closing band are the kit's and site.css's.
   1. hero: the lit frame and the drawn app window (the home's window look, copied here because home.css is the
      home's own; same classes for the bar, the tabs and the chat)
   2. chapter: the head row, the lanes diagram frame, the three plans
   3. people row: four initials tiles
   4. questions: the split
   Kit icons the diagram names (kit_sync copies a demo icon only when its file name appears here):
   ui-file-text.svg, ui-graduation-cap.svg, ui-book-open.svg, ui-circle-question-mark.svg, ui-repeat.svg */

/* ================================================================ 1. hero */
/* the lit frame: the light sheet's grey with a soft teal light from its top, so the dark window stands on a
   light ground (never a dark window on a dark frame); the kit fades its last 18% into the page */
#hero .hero__window.inv-frame {
  background:
    radial-gradient(60% 85% at 50% 0%, color-mix(in oklab, var(--p-accent) 26%, var(--p-inv-surface)), transparent 72%),
    var(--p-inv-surface);
}
/* the pill keeps inside a phone's width: its grey half (the target's name) goes there */
#hero .pill { max-width: 100%; }
@media (max-width: 639px) { #hero .pill .muted { display: none; } }
/* the window's loop pause disc in the frame's top-right corner (the bottom of the frame is the fade) */
#hero .hero__window > button.loop-pause { top: 16px; right: 16px; bottom: auto; }
@media (min-width: 640px) {
  /* wider than the kit's 880, so the answer keeps to two lines and the exchange ends above the fade */
  .hero--centred .hero__window > .ly-piece.inv-win { top: 24px; width: min(1040px, calc(100% - 48px)); }
}

/* the window: the home's look (dark app surface, white paper for the student's notes, teal touches) */
.inv-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;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 40px auto;
  font: 400 13px/20px var(--font-text); color: var(--u-ink); text-align: left;
  background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); overflow: hidden;
  box-shadow: 0 40px 80px -36px rgb(10 13 20 / .6), 0 0 0 1px rgb(10 13 20 / .08);
}
.inv-win .app__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; min-width: 0;
  border-bottom: 1px solid var(--u-line); color: var(--u-muted); white-space: nowrap; }
.inv-win .app__crumb { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.inv-win .app__crumb img { width: 15px; height: 14px; flex: none; }
.inv-win .app__crumb i { font-style: normal; opacity: .5; }
.inv-win .app__crumb b { font-weight: 500; color: var(--u-ink); overflow: hidden; text-overflow: ellipsis; }
.inv-win .app__opts { display: flex; gap: 6px; flex: none; }
.inv-win .app__opts span { padding: 2px 9px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--u-line-2); font-size: 12px; line-height: 18px; }
.inv-win__body { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }

/* the student's notes: a white page, its four sections as rows (4.2 selected) */
.inv-doc { display: none; min-width: 0; padding: 12px 0 0 14px; background: var(--u-fill); }
.inv-doc__page { display: grid; align-content: start; gap: 2px; min-height: 100%; padding: 14px 10px 32px; border-radius: 6px 0 0 0;
  background: #ffffff; color: #15181d; }
.inv-doc__head { padding: 0 8px 8px; font-size: 12px; line-height: 16px; font-weight: 500; color: #5f6670; }
.inv-doc__row { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; padding: 8px; border-radius: 8px; font-size: 13px; line-height: 18px; }
.inv-doc__row i { grid-row: 1 / span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgb(21 24 29 / .06); color: #5f6670; font: 500 11px/1 var(--font-mono); font-style: normal; }
.inv-doc__row b { font-weight: 500; color: #15181d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-doc__row span { color: #5f6670; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-doc__row.is-on { background: rgb(15 181 168 / .12); }
.inv-doc__row.is-on i { background: #0fb5a8; color: #ffffff; }

/* the tutor: the tab row (a picture of the app's tabs, not controls), then the exchange */
.inv-tutor { display: flex; flex-direction: column; min-width: 0; }
.inv-win .tutor-tabs { display: flex; gap: 2px; padding: 6px 12px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); white-space: nowrap; overflow: hidden; }
.inv-win .tutor-tabs > span { padding: 4px 12px; border-radius: 6px; line-height: 20px; }
.inv-win .tutor-tabs > .is-on { background: var(--u-fill-3); color: var(--u-ink); font-weight: 500; }
.inv-chat.ui-chat { width: auto; overflow: visible; }
.inv-chat .ui-chat__body { min-height: 0; padding: 12px 16px 16px; gap: 8px; }
.inv-chat .ui-msg--me { max-width: 90%; }
.inv-chat .ui-msg--bot { max-width: 100%; }
.inv-chat .ui-msg small { display: inline; margin: 0 0 0 8px; font-size: 12px; color: var(--u-muted); white-space: nowrap; }
.inv-win img.ui-msg__av { width: 20px; height: 19px; flex: none; margin-top: 1px; }
.inv-chat .ui-msg__col { color: var(--u-text-2); }
.inv-tool { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; line-height: 20px; color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-tool::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.inv-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-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-accent); color: var(--u-accent-ink); }
.inv-acts span + span { background: var(--u-fill-3); color: var(--u-ink); }

@media (min-width: 640px) {
  .inv-win__body { grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); }
  .inv-doc { display: block; }
  .inv-tutor { border-left: 1px solid var(--u-line); }
}
/* a laptop under 1280: the tool line goes, so the answer still ends above the fade */
@media (max-width: 1279px) { .inv-tool { display: none; } }
/* a phone: the notes, the bar's right labels and the small lines go; the tabs and the exchange take 12px type */
@media (max-width: 639px) {
  .inv-win .app__opts, .inv-chat .ui-msg small { display: none; }
  .inv-win .tutor-tabs { padding: 6px 8px; font-size: 12px; }
  .inv-win .tutor-tabs > span { padding: 2px 8px; }
  .inv-chat .ui-chat__body { padding: 10px 12px 12px; }
  .inv-chat .ui-msg { font-size: 12px; line-height: 18px; }
  .inv-acts span { height: 28px; font-size: 12px; }
}

/* ================================================================ 2. chapter */
.inv-ch__head { align-items: start; row-gap: var(--s-5); }
.inv-ch__text { display: grid; justify-items: start; gap: var(--s-4); }
.inv-ch__text p { font-size: var(--t-lead); line-height: 1.5; color: var(--muted); max-width: 56ch; }
.inv-lanes { margin-top: var(--s-7); height: 340px; padding: var(--s-5); }
.inv-lanes > .dg { flex: 1 1 auto; align-self: stretch; height: 100%; }
/* without script the diagram cannot draw: its words stand in the frame as a plain row */
.inv-lanes__plain { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.inv-lanes__plain li { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); font-size: 14px; line-height: 1.35; }
.inv-lanes__plain li.is-core { border-color: var(--accent); }
.inv-lanes__plain b { font-weight: 500; }
.inv-lanes__plain span { font-size: 13px; color: var(--muted); }
html.mo-js .inv-lanes__plain { display: none; }
html:not(.mo-js) .inv-lanes > .dg { display: none; }
.inv-plans { margin-top: var(--s-7); row-gap: var(--s-5); }
.inv-plan { display: grid; align-content: start; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.inv-plan p { font-size: 16px; line-height: 24px; color: var(--ink); }
/* from 1280 a section is exactly one screen: on a short laptop (1280 x 800) the frame gives up height first */
@media (min-width: 1280px) { .inv-lanes { height: clamp(240px, calc(100svh - 500px), 340px); } }
/* three plans stay three-up on a tablet; a phone stacks them */
@media (min-width: 640px) and (max-width: 1023px) { .inv-plans > .inv-plan { grid-column: auto / span 4; } }
@media (max-width: 639px) {
  .inv-lanes { height: 320px; padding: var(--s-4); }
  .inv-plans { row-gap: var(--s-4); }
}

/* ================================================================ 3. people row: initials tiles, no photographs
   The About page's tiles (about.css, section 1), copied under the inv- prefix: a 5:4 panel (1:1 on a phone) */
.inv-tiles { row-gap: var(--s-6); }
.inv-tiles > .tile { gap: 0; align-content: start; }
.inv-tile__panel {
  position: relative; display: flex; align-items: flex-end; overflow: clip;
  aspect-ratio: 5 / 4; margin-bottom: var(--s-4); padding: var(--s-5);
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--p-surface);
}
.inv-tile__panel::before {
  content: ""; position: absolute; left: var(--s-5); top: var(--s-5);
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.inv-tile__panel > span {
  font: var(--display-weight) var(--t-h1)/1 var(--font-display);
  letter-spacing: var(--display-tracking-xl); color: var(--ink);
}
.tile > .inv-tile__role, .tile > .inv-tile__line { margin-top: var(--s-1); font-size: 16px; line-height: 24px; }
.tile > .inv-tile__role { color: var(--ink); }
.tile > .inv-tile__line { color: var(--src); }
@media (max-width: 639px) {
  .inv-tile__panel { aspect-ratio: 1 / 1; padding: var(--s-4); }
  .inv-tile__panel::before { left: var(--s-4); top: var(--s-4); }
  .inv-tiles { row-gap: var(--s-5); }
}

/* ================================================================ 4. questions */
.inv-faq { row-gap: var(--s-7); }
.inv-faq__side { display: grid; justify-items: start; align-content: start; gap: var(--s-4); }
.inv-faq__side p { font-size: var(--t-lead); line-height: 1.5; color: var(--muted); max-width: 36ch; }
.inv-faq .faq__item > .link { justify-self: start; margin-top: var(--s-1); }
