/* ==========================================================================
   SIMPLIFIED SCREENS (".ill") for index-static.html

   A drawn version of an app screen instead of a screenshot: the window
   chrome, a handful of rows, real text only where the eye should land and
   grey bars for everything else. Colour is kept for the feature being shown.

   The drawing has a FIXED design width (--ill-w, 960px) so the overlay cards
   can be placed in plain px. On narrower columns the
   whole figure is scaled by the script in index-static.html (data-canvas on
   the figure is the width to fit, cards' overhang included).
   ========================================================================== */

.shot--ill { width: var(--ill-w, 960px); max-width: none; }
.shot--ill:not(.is-scaled) { margin-inline: auto; }

/* --- Window -------------------------------------------------------------- */
.ill-win {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; font-family: var(--font-body); color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(17, 24, 39, 0.25), 0 2px 6px rgba(17, 24, 39, 0.05);
}
.ill-bar { display: flex; align-items: center; gap: 18px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line-soft); }
.ill-dots { display: flex; gap: 7px; }
.ill-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.ill-tab { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; padding: 6px 12px;
  border-radius: 8px; background: var(--paper-band); }
.ill-tab svg { width: 15px; height: 15px; color: var(--ink-3); }
.ill-tab--ghost { background: none; padding: 0; }

/* Grey placeholder for text the reader does not need to read. */
.sk { display: inline-block; height: 9px; border-radius: 5px; background: var(--line); vertical-align: middle; width: var(--sw, 80px); }
.sk--soft { background: var(--line-soft); }

.ill-tool { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 20px; }
.ill-search { display: flex; align-items: center; gap: 8px; width: 220px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px; color: var(--ink-4); }
.ill-search svg { width: 15px; height: 15px; }
.ill-count { margin-inline-start: auto; font-size: 14px; color: var(--ink-3); }
.ill-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--violet); color: var(--violet); font-size: 14px; font-weight: 600; }
.ill-btn svg { width: 15px; height: 15px; }

/* --- Table --------------------------------------------------------------- */
.ill-table { --cols: 1fr 170px 96px 300px; position: relative; }
.ill-row { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 0 20px; min-height: 62px; padding: 0 20px;
  border-top: 1px solid var(--line-soft); }
.ill-head { min-height: 42px; font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.ill-ai { display: inline-flex; align-items: center; gap: 6px; color: var(--violet); }
.ill-ai svg { width: 14px; height: 14px; }
.ill-paper { display: grid; gap: 3px; min-width: 0; }
.ill-paper b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ill-paper span { font-size: 13px; color: var(--ink-3); }
/* Rows after the first fade out, so the table reads as "and many more". */
.ill-fade { -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }

/* Relevance: the number and a bar, coloured by band. */
.ill-score { display: flex; align-items: center; gap: 10px; font: 600 16px/1 var(--font-body); color: var(--c); }
.ill-score i { flex: 1; height: 7px; border-radius: 4px; background: var(--line-soft); position: relative; overflow: hidden; }
.ill-score i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--c); border-radius: 4px; }
.hi { --c: #16a34a; } .mid { --c: #d97706; } .lo { --c: #dc2626; }

.ill-yn { justify-self: start; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 6px; }
.ill-yn.y { color: var(--yes); background: color-mix(in srgb, #16a34a 15%, transparent); }
.ill-yn.n { color: var(--ink-3); background: var(--line-soft); }
.ill-find { font: italic 400 15px/1.35 var(--font-display); color: var(--ink); }

/* The row the cards talk about: a faint tint, nothing more. */
.ill-row--focus { background: color-mix(in srgb, var(--violet) 4%, transparent); }

/* Zoomed: keep the drawing's own width (static-landing.css sets 1060 for screenshots). */
.shot--ill.is-scaled { width: var(--ill-w, 960px); }
.shot--ill { text-align: start; }

/* --- Shared bits for the other drawn screens ----------------------------- */
.ill-query { flex: 1; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px; color: var(--ink); }
.ill-query svg { width: 16px; height: 16px; color: var(--ink-3); }
.ill-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 16px; }
.ill-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 8px; border-radius: 999px;
  background: var(--paper-band); border: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ill-chip img { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; }
.ill-chip--more { padding-left: 12px; color: var(--ink-3); }
.ill-db { font-size: 13.5px; color: var(--ink-3); }
.ill-pdfpill { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: 8px; font-size: 12px; font-weight: 600;
  color: var(--pdf); }
.ill-pdfpill svg { width: 13px; height: 13px; }
.ill-val { font-size: 14.5px; color: var(--ink); }
.ill-val--muted { color: var(--ink-3); }
.ill-paper--plain b { font-weight: 500; }

/* Group rows (datasets): the paper is named once, its rows sit under it. */
.ill-row--grp { border-top: 1px solid var(--line); }
.ill-row--sub { border-top: 1px dashed var(--line-soft); }
.ill-num { font-size: 13px; color: var(--ink-4); font-variant-numeric: tabular-nums; }

/* Two panes side by side (chat + PDF, list + detail). */
.ill-split { display: grid; grid-template-columns: var(--split, 1fr 1fr); min-height: var(--h, 460px); }
.ill-split > * { min-width: 0; }
.ill-pane { padding: 22px 24px; }
.ill-pane--side { background: var(--paper-band); border-inline-start: 1px solid var(--line-soft); }

/* Chat */
.ill-ask { margin-inline-start: auto; width: fit-content; max-width: 78%; padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  background: var(--violet); color: #fff; font-size: 14.5px; }
.ill-reading { display: flex; align-items: center; gap: 7px; margin: 18px 0 10px; font-size: 12.5px; color: var(--ink-3); }
.ill-reading i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.ill-answer { font-size: 15px; line-height: 1.7; color: var(--ink); }
.ill-cite { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin: 0 2px; border-radius: 5px;
  background: var(--violet-wash); color: var(--violet-deep); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.ill-srcs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.ill-src { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--line-soft); border-radius: 9px;
  font-size: 13px; color: var(--ink-2); }
.ill-src svg { width: 16px; height: 16px; color: var(--pdf); flex: none; }

/* A PDF page, drawn: a white sheet with a title, lines, one highlighted sentence. */
.ill-page { background: #fff; color: #1f2937; border: 1px solid var(--line); border-radius: 6px; padding: 22px 22px 26px;
  box-shadow: 0 6px 18px -10px rgba(17, 24, 39, 0.25); }
.ill-page h4 { margin: 0 0 4px; font: italic 600 16px/1.3 var(--font-display); }
.ill-page small { display: block; margin-bottom: 14px; font-size: 11px; color: #9ca3af; }
.ill-lines { display: grid; gap: 9px; }
.ill-lines .sk { background: #e5e7eb; height: 7px; }
.ill-hl { font: 400 13px/1.55 var(--font-display); background: #fde68a; color: #111827; padding: 2px 4px; border-radius: 3px; }
.ill-pagehead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px; color: var(--ink-3); }
.ill-pagehead span { display: inline-flex; align-items: center; gap: 6px; }
.ill-pagehead svg { width: 14px; height: 14px; color: var(--pdf); }

/* Mini bar chart, used on the PDF page and in the figure editor. */
.ill-bars { display: flex; align-items: flex-end; gap: 10px; height: var(--bh, 70px); margin-top: 16px; padding-bottom: 2px;
  border-bottom: 1px solid #e5e7eb; }
.ill-bars i { flex: 1; height: var(--v); background: var(--c, #3b82f6); border-radius: 3px 3px 0 0; }
.ill-hbars { display: grid; gap: 8px; }
.ill-hbars i { display: block; height: 14px; width: var(--v); background: var(--c, #3b82f6); border-radius: 0 3px 3px 0; }

/* Writer */
.ill-toolbar { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line-soft); }
.ill-tbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px;
  border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.ill-tbtn svg { width: 14px; height: 14px; color: var(--violet); }
.ill-doc { max-width: 490px; margin: 0 auto; padding: 30px 0 36px; }
.ill-doc h3 { font: 600 24px/1.25 var(--font-display); margin: 0 0 18px; }
.ill-doc h5 { margin: 18px 0 8px; font: 700 14px/1.3 var(--font-body); }
.ill-doc p { font-size: 15px; line-height: 1.75; color: var(--ink); margin: 0; }
.ill-mk { color: var(--violet); font-weight: 600; font-size: 13px; padding: 0 2px; }
.ill-mk.is-on { background: var(--violet-wash); border-radius: 4px; }
.ill-fig { margin-top: 18px; padding: 16px 18px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--paper-band); }
.ill-fig figcaption { margin-top: 10px; font-size: 12px; color: var(--ink-3); }

/* Figure editor card (drawn, not a screenshot). */
.ov-fig .ill-hbars { margin: 6px 0 12px; }
.ov-fig .ill-input { display: flex; gap: 8px; }
/* The request typed into the figure editor is the point of the card: full
   width at body size, caret inline after the last word, Insert under it. */
.ov-fig .ill-input { display: grid; gap: 10px; }
.ov-fig .ill-field { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px;
  border: 1.5px solid var(--violet); border-radius: 9px; background: var(--violet-wash);
  font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.ov-fig .ill-field svg { width: 15px; height: 15px; margin-top: 2px; color: var(--violet); flex: none; }
.ill-caret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--violet); margin-inline-start: 2px; vertical-align: -2px; }
.ov-fig .ill-go { justify-self: end; padding: 8px 16px; border-radius: 9px; background: var(--violet); color: #fff; font-size: 14px; font-weight: 600; }

/* Paper detail + map */
.ill-list .ill-row { min-height: 56px; }
.ill-row--sel { background: var(--violet-wash); }
.ill-row--sel b { color: var(--violet-deep); }
.ill-detail h4 { margin: 0 0 6px; font: 600 19px/1.3 var(--font-display); }
.ill-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.ill-tabs { display: flex; gap: 16px; margin: 16px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.ill-tabs .is-on { color: var(--violet); font-weight: 600; }
.ill-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.ill-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 5px; background: var(--c); }
.ill-graph { width: 100%; height: auto; display: block; }
.ill-graph line { stroke: var(--line); stroke-width: 1.2; }
.ill-graph circle { stroke: var(--card); stroke-width: 2; }
.ill-graph text { font: 500 10.5px var(--font-body); fill: var(--ink-3); }
.ill-pdficon { width: 15px; height: 15px; color: var(--pdf); display: block; }
.ov { will-change: transform; }

/* --- Dataset prompt card ------------------------------------------------- */
.ov-prompt--live { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--violet); background: var(--violet-wash);
  font-size: 14px; font-weight: 500; }
.ov-prompt--live svg { width: 15px; height: 15px; color: var(--violet); flex: none; }
.ov-run { display: flex; justify-content: flex-end; margin-top: 10px; }
.ov-run span { padding: 8px 14px; border-radius: 9px; background: var(--violet); color: #fff; font-size: 13.5px; font-weight: 600; }

/* --- Prompt types section ------------------------------------------------ */
.ptypes { padding: 112px 0; }
.ptype-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ptype { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 22px; }
.ptype h3 { font: 600 17px/1.3 var(--font-body); letter-spacing: 0; margin: 18px 0 6px; }
.ptype p { color: var(--ink-2); font-size: 15px; }
/* The sample: a small slice of the app UI, same pieces as the screens. */
.ptype-sample { height: 128px; padding: 14px; border-radius: 10px; background: var(--paper-band); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.ps-head { font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.ps-head .ill-ai svg { width: 13px; height: 13px; }
.ptype-sample .ill-find { margin: 0; font-size: 15px; }
.ps-stack { display: grid; gap: 9px; }
.ps-stack .ill-score { font-size: 14px; }
.ps-chips { display: flex; gap: 8px; }
.ps-brief { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1.5px solid var(--violet); border-radius: 8px;
  background: var(--violet-wash); font-size: 13px; font-weight: 500; color: var(--ink); }
.ps-brief svg { width: 14px; height: 14px; color: var(--violet); flex: none; }
.ps-cols { display: flex; gap: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.ps-rows { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 10px; font-size: 13px; color: var(--ink); }
.ps-rows span { padding: 3px 8px; border-radius: 6px; background: var(--card); border: 1px solid var(--line-soft); }
.ps-rows em { font-style: normal; color: var(--ink-3); align-self: center; }
.ps-plain { color: var(--ink-3); }
.ps-typed { margin: 0; display: flex; align-items: center; gap: 6px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); font-size: 14px; color: var(--ink); }
.ps-typed .ill-caret { margin-inline-start: 0; }
@media (max-width: 900px) {
  .ptypes { padding: 80px 0; }
  .ptype-grid { grid-template-columns: 1fr; }
}
@media (min-width: 560px) and (max-width: 900px) { .ptype-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Redrawn figure in the editor: labelled horizontal bars, one cool colour
   per condition. No error bars: a drawing must not show data the request
   did not ask for. */
.ill-hbars--lab { gap: 7px; }
.ill-hbars--lab span { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 8px; }
.ill-hbars--lab b { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.ill-hbars--lab i { height: 13px; }

/* Chat: a quiet dashed arrow from the citation to the sentence it opened. */
.ill-arrow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.ill-arrow path { fill: none; stroke: var(--violet); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: 0.75; }
.ill-arrow marker path { fill: var(--violet); stroke: none; opacity: 0.75; }

/* Writer: the sentence a citation is pinned to, and the styles count. */
.ill-sent { background: color-mix(in srgb, var(--violet) 10%, transparent); box-shadow: inset 0 -1.5px 0 color-mix(in srgb, var(--violet) 55%, transparent);
  border-radius: 3px; padding: 1px 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ov-pin { color: var(--ink-2); }
.ov-pin .ill-sent { color: var(--ink); font-weight: 600; }
.ov-stat { display: grid; gap: 2px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.ov-stat b { font: 500 34px/1 var(--font-display); letter-spacing: -0.02em; color: var(--violet); }
.ov-stat span { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.hl-num { color: var(--violet); font-weight: 700; }

/* Search: favourite stars. Filled amber on the starred rows, a grey outline
   elsewhere; the colour is the state, so it is the one warm note here. */
.ill-star svg, .ill-star-h svg { width: 17px; height: 17px; display: block; fill: none; stroke: var(--ink-4); }
.ill-star.is-on svg { fill: #f5b301; stroke: #f5b301; }
.ill-star-h svg { width: 14px; height: 14px; stroke: var(--ink-3); }

/* --- Word add-in drawing ------------------------------------------------- */
.ill-tabimg { width: 16px; height: 16px; }
.wd-tabs { display: flex; gap: 22px; height: 38px; align-items: center; padding: 0 20px; font-size: 13px; color: var(--ink-3);
  border-bottom: 1px solid var(--line-soft); }
.wd-tabs .is-on { color: var(--violet); font-weight: 700; letter-spacing: 0.04em; box-shadow: inset 0 -2px 0 var(--violet); padding: 10px 0; }
.wd-ribbon { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px; border-bottom: 1px solid var(--line-soft); }
.wd-cmd { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.wd-cmd svg { width: 15px; height: 15px; color: var(--violet); }
.wd-cmd.is-on { background: var(--violet-wash); color: var(--violet-deep); }
.wd-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.wd-desk { background: var(--paper-band); padding: 24px 28px 0; overflow: hidden; }
.wd-page { background: #fff; color: #111827; border: 1px solid var(--line); border-bottom: 0; border-radius: 4px 4px 0 0; padding: 28px 34px 30px;
  box-shadow: 0 6px 18px -10px rgba(17, 24, 39, 0.2); font-family: "Times New Roman", Georgia, serif; }
.wd-page h4 { margin: 0 0 10px; font: 700 16px/1.3 "Times New Roman", Georgia, serif; }
.wd-page h5 { margin: 16px 0 8px; font: 700 14px/1.3 "Times New Roman", Georgia, serif; }
.wd-page p { margin: 0; font-size: 14.5px; line-height: 1.65; }
/* A citation is a Word content control: a faint frame, the inserted one tinted. */
.wd-cite { border-bottom: 1.5px dotted #a5a6f6; }
.wd-cite.is-new { background: #eeebff; border-bottom-style: solid; border-radius: 2px; }
.wd-refs { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 12.5px; line-height: 1.45; }
.wd-refs li { padding-left: 22px; text-indent: -22px; }
.wd-refs .sk { display: block; height: 7px; margin: 5px 0 0 22px; background: #e5e7eb; }
.wd-pane { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.wd-panehead { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.wd-pane .ill-query { flex: none; height: 36px; font-size: 14px; background: var(--card); }
.wd-hit { display: grid; gap: 2px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line-soft); background: var(--card); }
.wd-hit b { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.wd-hit span { font-size: 12px; color: var(--ink-3); }
.wd-hit em { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--violet); }
.wd-hit em svg { width: 13px; height: 13px; color: var(--pdf); }
.wd-hit.is-on { border-color: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 12%, transparent); }
.wd-insert { align-self: flex-end; margin-top: auto; padding: 8px 14px; border-radius: 9px; background: var(--violet); color: #fff; font-size: 13.5px; font-weight: 600; }
.beta { display: inline-block; margin-inline-start: 8px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); vertical-align: 1px; }

/* Prompt-type thumbnails: a slice of the library grid, a paper column on the
   left and the new column filled in as it really looks in the app. */
.ptype-sample { height: auto; padding: 0; gap: 0; background: var(--card); }
.pt-grid { font-size: 12.5px; }
.pt-row { display: grid; grid-template-columns: var(--cols); gap: 0 12px; align-items: center; min-height: 40px; padding: 0 12px;
  border-top: 1px solid var(--line-soft); }
.pt-head { min-height: 32px; border-top: 0; background: var(--paper-band); font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-3); }
.pt-head .ill-ai svg { width: 12px; height: 12px; }
.pt-plain { color: var(--ink-3); }
.pt-paper { display: grid; gap: 5px; }
.pt-paper .sk { height: 7px; }
.pt-find { font: italic 400 12.5px/1.3 var(--font-display); color: var(--ink); }
.pt-val { font-size: 12.5px; color: var(--ink); display: inline-flex; align-items: center; }
.pt-mute { color: var(--ink-4); }
.pt-count { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--violet-deep); }
.pt-count svg { width: 13px; height: 13px; color: var(--violet); }
.pt-grid .ill-score { font-size: 12.5px; gap: 7px; }
.pt-grid .ill-score i { height: 5px; }
.pt-grid .ill-yn { font-size: 11.5px; padding: 2px 8px; }
