/* engine.html, viewer.html, converter.html (4 Nov 2026): their identities and the few parts only they use.
   Loaded after v2.css by those three pages only (like assistant.css). Every tint has its dark override. */
.page--engine { --id: #3a56b0; --id-soft: #cdd7f6; --id-wash: #e6ebfa; --id-tint: #f3f6fd; }
:root[data-theme="dark"] .page--engine { --id: #b7c6f7; --id-soft: #3a56b0; --id-wash: #131829; --id-tint: #0e121e; }
.page--viewer { --id: #1d7a78; --id-soft: #bfe6e3; --id-wash: #dff1ef; --id-tint: #f0f8f7; }
:root[data-theme="dark"] .page--viewer { --id: #9be0db; --id-soft: #1d7a78; --id-wash: #0f1b1b; --id-tint: #0b1414; }
.page--converter { --id: #8a4f8f; --id-soft: #ecd0ee; --id-wash: #f4e6f5; --id-tint: #faf3fa; }
:root[data-theme="dark"] .page--converter { --id: #e6b9ea; --id-soft: #8a4f8f; --id-wash: #1d1420; --id-tint: #150f19; }
.page--engine .lead strong, .page--viewer .lead strong, .page--converter .lead strong { color: var(--id); }
.page--engine .feat > *, .page--viewer .feat > *, .page--converter .feat > * { min-width: 0; }

/* the kinds of data, one row of pills with their data colour (engine hero, viewer) */
.ekinds { margin-top: 4px; }

/* cards: one idea each, an icon, a title, a few words */
.kcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.kcards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .kcards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); } }
.kcard { display: grid; gap: 10px; align-content: start; padding: 24px 22px 24px; border-radius: var(--r-surface); background: var(--surface); box-shadow: var(--shadow-card); }
.kcard svg { width: 30px; height: 30px; color: var(--id); stroke-width: 1.3; }
.kcard h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; color: var(--text); }
.kcard p { color: var(--text-2); font-size: 15.5px; line-height: 1.45; }
.kcard__k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }

/* the quality ladder: Low to Ultra, Auto above it */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }
.rung { display: grid; gap: 8px; align-content: start; padding: 22px 20px 22px; border-radius: var(--r-surface); background: var(--surface); box-shadow: var(--shadow-card); }
.rung:nth-child(1) { min-height: 150px; } .rung:nth-child(2) { min-height: 190px; } .rung:nth-child(3) { min-height: 230px; } .rung:nth-child(4) { min-height: 270px; background: linear-gradient(160deg, var(--id-wash), var(--surface) 70%); }
.rung b { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.rung span { color: var(--text-2); font-size: 15px; line-height: 1.45; }
.rung i { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--id); }
.ladder__auto { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; padding: 14px 20px; border-radius: 999px; background: var(--id-wash); color: var(--text); font-size: 16px; text-align: center; }
.ladder__auto svg { width: 22px; height: 22px; flex: none; color: var(--id); }
@media (max-width: 900px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rung:nth-child(n) { min-height: 0; } }
@media (max-width: 520px) { .ladder { grid-template-columns: 1fr; } }

/* converter: the written formats, a row per kind */
.outwall { display: grid; padding: 4px clamp(18px, 2.4vw, 30px); border-radius: var(--r-surface); background: var(--surface); box-shadow: var(--shadow-card); }
.outwall__row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 24px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--hair); }
.outwall__row:first-child { border-top: 0; }
.outwall__row h3 { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.outwall__row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; }
.outwall__row li { padding: 3px 10px; border-radius: 999px; background: var(--bg-2); font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
@media (max-width: 700px) { .outwall__row { grid-template-columns: minmax(0, 1fr); } }

/* converter: a terminal with two real command lines */
.cli { display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--r-surface); background: #10202a; color: #d8e8ee; font-family: var(--font-mono); font-size: clamp(12px, 1.3vw, 14.5px); line-height: 1.6; box-shadow: var(--shadow-float); }
.cli span { overflow-wrap: anywhere; }
.cli .p { color: #7fd9bd; user-select: none; }
.cli .c { color: #7b97a3; }
:root[data-theme="dark"] .cli { background: #0b1519; }

/* viewer: what stays free, in plain rows */
.free { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.free li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--r-card, 18px); background: var(--surface); box-shadow: var(--shadow-card); color: var(--text); font-size: 16px; }
.free svg { width: 24px; height: 24px; color: var(--id); stroke-width: 1.4; }
.outwall__row li::before, .outwall__row li::after, .outwall__row ul::before, .free li::after { content: none; }
.outwall__row li { list-style: none; }
