/* OLOBBY 통합안 — 비교 페이지(compare.html)와 홈 비교 요약이 함께 쓰는 스타일. tokens → base → patterns → compare.
   Shared with home (index.html §3b): .matrix-wrap, .matrix, .mk*, .matrix-note. (.pairmap is in patterns.css.)
   Compare page only: .cmp-*, .route*, .needs*, .svc*, .proof*, .fit*, .switch, .sources. */

/* The tool-to-module pair map (.pairmap) is a shared pattern in patterns.css. */

/* ───────── marks: neutral glyphs + words (no red ✗, 심사지침 Ⅴ) ───────── */
.mk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 680; line-height: 1.2; white-space: nowrap; color: var(--ink); }
.mk::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; }
.mk--yes { color: var(--q-share-ink); }
.mk--yes::before { display: none; }
.mk--yes .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--q-share); color: #fff; stroke-width: 3.2; }
.mk--part { color: #4A5874; }
.mk--part::before { background: conic-gradient(#7D8BA6 0 50%, #fff 0); box-shadow: inset 0 0 0 2px #7D8BA6; transform: rotate(-90deg); }
.mk--no { color: #4A5874; }
.mk--no::before { box-shadow: inset 0 0 0 2px var(--line-strong); background: linear-gradient(#7D8BA6, #7D8BA6) center / 8px 2px no-repeat; }
.mk--na { color: #5E6A82; font-weight: 560; }
.mk--na::before { width: 14px; height: 14px; border: 1.5px dashed #A3AEC2; }

/* ───────── capability matrix ───────── */
.matrix-wrap { margin-top: clamp(20px, 2.6vw, 32px); overflow-x: auto; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.matrix-wrap:focus-visible { outline-offset: 4px; }
.matrix { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: .9375rem; }
.matrix th, .matrix td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.matrix thead th { position: sticky; top: 0; z-index: 2; background: #fff; font-size: var(--fs-small); font-weight: 700; color: var(--ink); line-height: 1.35; }
.matrix thead th small { display: block; font-weight: 560; color: var(--body); font-size: 12.5px; }
.matrix tbody th { text-align: left; font-weight: 660; color: var(--ink); width: 30%; }
.matrix tbody th small { display: block; margin-top: 3px; font-weight: 500; font-size: 12.5px; line-height: 1.45; color: var(--body); }
.matrix tbody:last-child tr:last-child > * { border-bottom: 0; }
.matrix .is-us { background: var(--action-soft); }
.matrix thead .is-us { background: var(--action); color: #fff; }
.matrix thead .is-us small { color: #E6EDFC; }
.matrix td sup, .matrix sup { margin-left: 2px; font-size: 11px; font-weight: 700; color: var(--ink); }
.matrix td small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--body); }
.matrix td .mk { vertical-align: middle; }
.matrix-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 14px; font-size: var(--fs-small); color: var(--body); align-items: center; }
.matrix-legend span:not(.mk) { margin-right: 10px; }
.matrix-note { margin-top: 10px; font-size: var(--fs-micro); color: var(--body); max-width: 70em; }
/* grouped rows (work stages) and written definitions */
.matrix__group th { padding: 18px 16px 8px; text-align: left; font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; color: var(--action); background: #fff; border-bottom: 1px solid var(--line); }
.matrix__group:first-child th { padding-top: 14px; }
.matrix--stack col.matrix__c1 { width: 38%; }
.matrix--stack col.matrix__c2 { width: 18%; }
.matrix--stack td:last-child { text-align: left; }
.matrix--stack td:last-child small { margin-top: 6px; }
.matrix tr[data-row] > * { transition: background-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease); }
.matrix tr.is-match > th { box-shadow: inset 4px 0 0 var(--action); background: #F4F7FE; }
.matrix tr.is-match > td:not(.is-us) { background: #F4F7FE; }
.matrix tr.is-match > td.is-us { background: #DCE6FB; }
.matrix-foot { display: grid; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; font-size: var(--fs-micro); color: var(--body); }

/* ───────── page frame ───────── */
.final-compare .section { padding-block: clamp(56px, 3vw + 36px, 96px); }
.final-compare .sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.cmp-note { margin-top: 14px; font-size: var(--fs-micro); color: var(--body); max-width: 70em; }
.frame__live--ex { color: var(--body); font-weight: 650; }

/* hero */
.cmp-hero { padding-block: clamp(28px, 4vw, 64px) clamp(28px, 4vw, 52px); }
.cmp-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px clamp(24px, 4vw, 56px); align-items: center; }
.cmp-hero__copy { display: grid; gap: 16px; }
.cmp-hero__copy .t-display { font-size: clamp(2rem, 1.4rem + 2vw, 3.35rem); line-height: 1.1; }
.cmp-hero__copy .t-lead { font-size: 1.0625rem; }
.cmp-hero__source { margin: 1px 0 0; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 820px) { .cmp-hero__grid { grid-template-columns: 1fr; } }

/* sticky in-page nav with scroll spy */
/* in-page nav: .pagenav in patterns.css */
.final-compare section[id] { scroll-margin-top: calc(var(--header-h) + 64px); }

/* ───────── one request, two routes ───────── */
.route { --lab: 168px; }
.route__board { position: relative; padding: clamp(16px, 2.4vw, 28px) clamp(16px, 2.4vw, 28px) 20px; }
.route__row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; gap: 16px; }
.route__row + .route__row { margin-top: 14px; }
.route__tabs, .route__lane { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.route__tabs [role="tab"] { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: left; font-size: .9375rem; font-weight: 650; color: var(--body); transition: box-shadow var(--t-fast), color var(--t-fast), background-color var(--t-fast); }
.route__tabs [role="tab"]:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.route__tabs [role="tab"][aria-selected="true"] { color: var(--ink); background: #EDF4FF; box-shadow: inset 0 -2px 0 var(--action), inset 0 0 0 1px #A9C3F7; }
.route__n { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--paper-soft); color: var(--ink); font-size: 12.5px; font-weight: 600; }
[aria-selected="true"] .route__n { background: #fff; }
.route__name { line-height: 1.25; }
.route__label { display: grid; gap: 2px; margin: 0; }
.route__label b { font-size: .9375rem; font-weight: 720; color: var(--ink); }
.route__label span { font-size: 12.5px; color: var(--body); }
.route__row--lobby .route__label b { color: var(--action); }
/* lanes */
.route__lane { position: relative; min-height: 76px; align-items: center; }
.route__stop { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 76px; padding: 8px 4px; border-radius: 12px; cursor: pointer; transition: background-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease); }
.route__lane--stack .route__stop { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.route__lane--stack .route__stop + .route__stop::before { content: ""; position: absolute; right: 100%; top: 50%; width: 8px; border-top: 2px dashed #A3AEC2; }
.route__tools { display: flex; gap: 4px; }
.route__tool { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--paper-soft); color: #5A6782; }
.route__hop { position: absolute; left: -4px; top: -11px; z-index: 2; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line-strong); font-size: 12px; font-weight: 650; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); pointer-events: none; }
.route__lane--lobby { padding: 0 2px; }
.route__rail { position: absolute; left: 0; right: 0; top: 50%; height: 56px; transform: translateY(-50%); border-radius: 16px; background: color-mix(in srgb, var(--action) 9%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--action) 35%, #fff); overflow: hidden; }
.route__rail i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 1) / var(--n) * 100%); background: color-mix(in srgb, var(--action) 18%, #fff); transition: width 600ms var(--ease); }
.route__lane--lobby .route__stop { min-height: 76px; }
.route__lane--lobby .mod-ico { --size: 34px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.route__mod { font-size: 12.5px; color: var(--ink); white-space: nowrap; }
/* active step */
.route__stop.is-on { background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 12px 24px -14px rgba(23, 36, 61, .5); }
.route__lane--stack .route__stop.is-on .route__tool { background: var(--ink); color: #fff; }
.route__stop.is-on .route__hop { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.route__lane--lobby .route__stop.is-on { background: #fff; box-shadow: 0 0 0 2px var(--action), 0 12px 24px -14px rgba(38, 98, 217, .55); }
.route__lane--lobby .route__stop.is-on .mod-ico { box-shadow: 0 0 0 2px var(--q); transform: scale(1.06); }
.route__stop.is-past .route__tool { color: var(--ink); }
.route__replay { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; background: none; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--action); }
.route__replay:hover { background: var(--action-soft); }
/* detail panel */
.route__panel { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.55fr); gap: 0; margin-top: 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.route__panel[hidden] { display: none; }
.route__panel.is-entering .route__side { animation: route-in 420ms var(--ease) both; }
.route__panel.is-entering .route__side--lobby { animation-delay: 80ms; }
@keyframes route-in { from { opacity: 0; transform: translateY(8px); } }
.route__side { padding: clamp(18px, 2.4vw, 28px); }
.route__side--stack { background: var(--paper-soft); border-right: 1px solid var(--line); }
.route__who { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; font-size: var(--fs-small); font-weight: 720; color: var(--ink); }
.route__who img { height: 13px; width: auto; }
.route__who .modtag { font-size: .875rem; }
.route__who .modtag .mod-ico { --size: 24px; border-radius: 6px; }
.route__text { color: var(--ink); font-size: 1.0625rem; line-height: 1.6; }
.route__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.route__chips li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13px; font-weight: 620; color: var(--ink); }
.route__chips .ico { color: #5A6782; }
.route__where { display: grid; gap: 2px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 13px; }
.route__where span { color: var(--body); }
.route__where b { color: var(--ink); font-weight: 680; }
.route__side--lobby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 0 24px; align-items: start; background: linear-gradient(180deg, color-mix(in srgb, var(--action) 5%, #fff), #fff 55%); }
.route__side--lobby > .route__who, .route__side--lobby > .route__text { grid-column: 1; }
.route__side--lobby > .route__where { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; padding: 0 0 0 16px; border-top: 0; border-left: 1px dashed var(--line-strong); align-self: stretch; align-content: start; }
.route__shot { grid-column: 1 / -1; margin: 18px 0 0; }
.route__handoff { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13px; }
.route__handoff .ico { grid-row: span 2; color: var(--q-do); }
.route__handoff span { color: var(--body); }
.route__handoff b { color: var(--ink); font-weight: 680; }
.route__shot .frame__bar { height: 30px; }
@media (max-width: 1100px) {
  .route__panel { grid-template-columns: 1fr; }
  .route__side--stack { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .route { --lab: 0px; }
  .route__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .route__row--tabs .route__label { display: none; }
  .route__label { grid-auto-flow: column; justify-content: start; gap: 8px; align-items: baseline; }
  .route__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 2px; gap: 5px; }
  .route__tabs [role="tab"] { min-height: 44px; padding: 6px 8px; font-size: .875rem; }
  .route__lane { gap: 4px; }
  .route__stop, .route__lane--lobby .route__stop, .route__lane { min-height: 56px; }
  .route__rail { height: 44px; }
  .route__tool { width: 26px; height: 26px; }
  .route__tool .ico { width: 16px; height: 16px; }
  .route__tools { flex-wrap: wrap; justify-content: center; }
  .route__mod, .route__hop { display: none; }
  .route__lane--lobby .mod-ico { --size: 28px; }
  .route__lane--stack .route__stop + .route__stop::before { width: 4px; }
  .route__side--lobby { grid-template-columns: 1fr; }
  .route__side--lobby > .route__where { grid-column: 1; grid-row: auto; margin-top: 14px; padding: 12px 0 0; border-left: 0; border-top: 1px dashed var(--line-strong); }
  .route__shot { grid-column: 1; }
}
@media (max-width: 640px) {
  .route__row--stack, .route__row--lobby { display: none; }
}
@media (max-width: 369px) {
  .route__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .route__panel.is-entering .route__side { animation: none; }
  .route__rail i, .route__stop, .route__hop, .route__lane--lobby .mod-ico { transition: none; }
}

/* ───────── needs picker ───────── */
.needs { display: grid; gap: 10px; margin-bottom: 4px; }
.needs__q { font-size: var(--fs-small); font-weight: 650; color: var(--ink); }
.needs__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.needs__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: .9375rem; font-weight: 620; color: var(--body); transition: box-shadow var(--t-fast), color var(--t-fast), background-color var(--t-fast); }
.needs__chip .ico { width: 0; opacity: 0; transition: width var(--t-fast), opacity var(--t-fast); stroke-width: 2.6; }
.needs__chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.needs__chip[aria-pressed="true"] { background: var(--action-soft); color: var(--action); box-shadow: inset 0 0 0 1.5px var(--action); }
.needs__chip[aria-pressed="true"] .ico { width: 16px; opacity: 1; }
.needs__out { min-height: 1.5em; font-size: var(--fs-small); color: var(--body); }
.needs__out b { color: var(--ink); }

/* ───────── named services ───────── */
.svcbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.svc-pick [aria-pressed] { border: 0; background: transparent; display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 8px; font-size: .9375rem; font-weight: 620; color: var(--body); white-space: nowrap; transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.svc-pick [aria-pressed]:hover { color: var(--ink); }
.svc-pick [aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(23, 36, 61, .12), 0 0 0 1px rgba(23, 36, 61, .06); }
.svcbar__hint { font-size: var(--fs-small); color: var(--body); }
.svc-cards { margin-top: 16px; }
.svc-cards:empty, .svc[hidden] { display: none; }
.svc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 40px; padding: clamp(18px, 2.4vw, 28px); border-radius: 20px; background: var(--paper-soft); box-shadow: inset 0 0 0 1px var(--line); animation: route-in 360ms var(--ease) both; }
.svc .t-h3 { font-family: var(--font-ui); font-weight: 600; }
.svc__kind { margin-top: 2px; font-size: var(--fs-small); color: var(--body); }
.svc__label { margin-top: 16px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.svc .ticks { margin-top: 8px; font-size: .9375rem; }
.svc__basis { display: grid; gap: 2px; margin-top: 14px; font-size: 13px; color: var(--body); }
.svc__basis b { color: var(--ink); font-size: 12.5px; }
.svc__src { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; }
.svc__src a { display: inline-flex; align-items: center; gap: 4px; color: var(--action); font-weight: 600; overflow-wrap: anywhere; }
.svc__src a:hover { text-decoration: underline; text-underline-offset: 3px; }
.svc__sets { display: grid; gap: 14px; align-content: start; }
.svc__set { padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.svc__set p { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.svc__set ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.svc__set li { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.svc__set--both li { background: var(--q-share-soft); color: var(--q-share-ink); }
.svc__set--ahead li { background: var(--paper-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.svc__set li.is-none { background: none; color: var(--body); padding: 0; }
.svc__unknown { font-size: 13px; color: var(--body); }
.svc__unknown b { color: var(--ink); }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } }
/* named table: sticky first column, 1:1 mode hides the other services */
.matrix--named { min-width: 980px; font-size: .875rem; }
.matrix--named tbody th { width: 24%; }
.matrix--named th, .matrix--named td { padding: 12px 10px; }
.matrix--named tbody tr[data-row] > th, .matrix--named thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: inset -1px 0 0 var(--line); }
.matrix--named thead th:first-child { z-index: 3; }
.matrix--named tbody td[data-svc].is-col, .matrix--named thead th[data-svc].is-col { background: #F7F9FD; }
.matrix-wrap--named.is-solo .matrix--named { min-width: 560px; }
.matrix-wrap--named.is-solo [data-svc]:not(.is-on) { display: none; }
.matrix-wrap--named.is-solo .matrix--named tbody th { width: 44%; }
.matrix-wrap--named.is-solo .matrix__group th { position: static; }
.matrix-wrap--named.is-solo tr[data-row] > th { position: static; box-shadow: none; }
.cmp-asof { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: var(--fs-small); font-weight: 640; color: var(--ink); }

/* sources */
.sources { margin-top: 18px; font-size: var(--fs-micro); color: var(--body); }
.sources summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.sources ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.sources a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ───────── evidence: tabs + real screens ───────── */
.proof { display: grid; grid-template-columns: minmax(250px, .36fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.proof__tabs { display: grid; gap: 6px; position: sticky; top: calc(var(--header-h) + 72px); }
.proof__tabs [role="tab"] { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-align: left; color: var(--body); box-shadow: inset 0 0 0 1px transparent; transition: background-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast); }
.proof__tabs [role="tab"]:hover { background: var(--paper-soft); }
.proof__tabs [role="tab"] .mod-ico { --size: 36px; background: var(--q-soft); }
.proof__tabs [role="tab"] b { display: block; font-size: .9375rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.proof__tabs [role="tab"] small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--body); }
.proof__tabs [role="tab"][aria-selected="true"] { background: var(--q-soft); box-shadow: inset 3px 0 0 var(--q-ink); }
.proof__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.proof__panel[hidden] { display: none; }
.proof__stage { padding: clamp(18px, 3vw, 36px) clamp(18px, 3vw, 36px) clamp(56px, 7vw, 92px); }
.proof__visual { position: relative; }
.proof__main { margin: 0; }
.proof__inset { position: absolute; right: clamp(-12px, -1vw, 0px); bottom: clamp(-72px, -6vw, -40px); width: min(46%, 380px); margin: 0; box-shadow: 0 0 0 2px var(--q), 0 30px 50px -24px rgba(23, 36, 61, .55); }
.proof__inset .frame__bar, .route__shot .frame__bar, .proof__main .frame__bar { height: 30px; }
.proof__visual--modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proof__mode { margin: 0; padding: 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-frame); }
.proof__mode .mode__diagram { margin-bottom: 8px; max-width: none; }
.proof__mode figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--body); }
.proof__mode figcaption b { color: var(--ink); font-size: .9375rem; }
.proof__mode figcaption .ico { color: var(--q-plan-ink); }
.final-compare .proof__stage:has(.proof__visual--modes) { padding-bottom: clamp(18px, 3vw, 36px); }
.proof__text { display: grid; gap: 10px; max-width: 64em; }
.proof__text .t-h3 { font-size: 1.25rem; }
.proof__tags { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.proof__tags .modtag { font-size: .875rem; }
.proof__tags .modtag .mod-ico { --size: 24px; border-radius: 6px; }
.proof__note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--paper-soft); font-size: 13px; line-height: 1.55; color: var(--body); }
.proof__note .ico { margin-top: 2px; color: var(--muted); }
.proof__panel.is-entering .proof__main { animation: route-in 420ms var(--ease) both; }
.proof__panel.is-entering .proof__inset { animation: proof-pop 520ms var(--ease) 140ms both; }
@keyframes proof-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (max-width: 1023px) {
  .proof { grid-template-columns: minmax(0, 1fr); }
  .proof__tabs { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .proof__tabs [role="tab"] { min-width: 0; min-height: 44px; gap: 7px; padding: 7px 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
  .proof__tabs [role="tab"] b { font-size: .875rem; overflow-wrap: anywhere; }
  .proof__tabs [role="tab"] small { display: none; }
  .proof__tabs [role="tab"] .mod-ico { --size: 28px; }
}
@media (max-width: 640px) {
  .proof__stage { padding-bottom: 18px; }
  .proof__inset { position: relative; right: auto; bottom: auto; width: min(100%, 380px); margin: 12px 0 0; }
  .proof__visual--modes { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .proof__panel.is-entering .proof__main, .proof__panel.is-entering .proof__inset, .svc { animation: none; } }

/* ───────── fit / not fit ───────── */
.fit { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(24px, 3vw, 44px); padding: clamp(22px, 3vw, 40px); align-items: start; }
.fit .t-h2 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.125rem); }
.fit__col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; margin-bottom: 12px; }
.fit__col--yes h3 .ico { color: var(--q-share-ink); }
.fit__col--other h3 .ico { color: var(--muted); }
.fit__col--other { padding-left: clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.fit__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--body); font-size: .9375rem; line-height: 1.55; }
.fit__list li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--line-strong); }
.fit__list span { font-size: 12.5px; font-weight: 650; color: var(--ink); }
@media (max-width: 1023px) { .fit { grid-template-columns: 1fr 1fr; } .fit .t-h2 { grid-column: 1 / -1; } }
@media (max-width: 720px) { .fit { grid-template-columns: 1fr; } .fit__col--other { padding-left: 0; padding-top: 20px; border-left: 0; border-top: 1px solid var(--line); } }

/* ───────── switch path: file → module ───────── */
.switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.switch li { padding: 20px 24px 22px 0; border-bottom: 1px solid var(--line); }
.switch li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.sw__map { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sw__file { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--paper-soft); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13px; font-weight: 640; color: var(--ink); }
.sw__file .ico { color: #5A6782; }
.sw__arrow { display: inline-grid; place-items: center; width: 26px; height: 26px; color: var(--q-ink); transition: transform var(--t-mid) var(--ease); }
.switch li:hover .sw__arrow { transform: translateX(4px); }
.switch .modtag { font-size: .875rem; }
.switch .modtag .mod-ico { --size: 24px; border-radius: 6px; }
.switch h3 { margin-top: 14px; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.switch p:not(.sw__map) { margin-top: 4px; font-size: .9375rem; line-height: 1.6; }
@media (max-width: 760px) { .switch { grid-template-columns: 1fr; } .switch li, .switch li:nth-child(even) { padding: 18px 0; border-left: 0; } }
@media (prefers-reduced-motion: reduce) { .sw__arrow { transition: none; } }

/* ───────── FAQ + CTA ───────── */
.cmp-faq__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 1023px) { .cmp-faq__grid { grid-template-columns: 1fr; } }
.cmp-cta { padding-bottom: clamp(56px, 6vw, 96px); }
.cmp-cta__panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; border-radius: 22px; background: var(--action); color: #E6EDFC; padding: clamp(22px, 3vw, 36px) clamp(22px, 3.4vw, 44px); }
.cmp-cta__panel .t-h3 { color: #fff; }
.cmp-cta__panel p { margin-top: 6px; color: #E6EDFC; max-width: 46em; }
.cmp-cta__ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.cmp-cta__ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.cmp-cta__panel :focus-visible { outline-color: #fff; }
@media (max-width: 760px) { .cmp-cta__panel { grid-template-columns: 1fr; } }

/* phone: the 3-column table and the 1:1 table fit the screen instead of scrolling sideways */
@media (max-width: 640px) {
  .matrix--stack, .matrix-wrap--named.is-solo .matrix--named { min-width: 0; font-size: .875rem; }
  .matrix--stack th, .matrix--stack td, .matrix-wrap--named.is-solo .matrix--named th, .matrix-wrap--named.is-solo .matrix--named td { padding: 12px 10px; }
  .matrix--stack col.matrix__c1 { width: 44%; }
  .matrix--stack col.matrix__c2 { width: 22%; }
  .matrix--stack .mk, .matrix-wrap--named.is-solo .mk { white-space: normal; }
  .matrix-wrap--named.is-solo .matrix--named tbody th { width: 46%; }
}

/* hero film: the two routes as a motion graphic (films/compare.html) */
.cmp-film { min-width: 0; margin: 0; }
.cmp-film__in { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-frame); background: #F6F8FC; }
.cmp-film__in video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #F6F8FC; }
.cmp-film figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 16px; margin-top: 9px; color: var(--body); font-size: .875rem; }
.cmp-film figcaption strong { color: var(--ink); }
/* where the finished work ends up, after the step board */
/* where the finished work stays, step by step: separate cards on the left, one workspace panel with one rail on the right */
.rend { margin-top: clamp(28px, 4vw, 48px); }
.rend__summary { min-height: 44px; padding: 11px 0; border-block: 1px solid var(--line); font-size: 1.0625rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.rend__summary:hover { color: var(--action); }
.rend[open] .rend__grid { margin-top: 16px; }
.rend__grid { --c1: 132px; --gap: 20px; --c3: calc(var(--c1) + var(--gap) * 2 + (100% - var(--c1) - var(--gap) * 2) / 2); position: relative; }
.rend__grid::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--c3) - 12px); right: 0; border-radius: 20px; background: #F5F8FF; box-shadow: inset 0 0 0 1.5px #B9CDFF; }
.rend__head, .rend__row, .rend__foot { position: relative; display: grid; grid-template-columns: var(--c1) minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); }
.rend__head { align-items: end; padding: 18px 0 14px; }
.rend__col { display: grid; gap: 4px; margin: 0; }
.rend__col b { font-size: 1rem; font-weight: 760; color: var(--ink); }
.rend__col img { width: auto; height: 15px; margin: 2px 0 1px; }
.rend__col span { font-size: .875rem; color: var(--body); }
.rend__col--b { padding-left: 10px; }
.rend__list { position: relative; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rend__list::after { content: ""; position: absolute; top: 28px; bottom: 28px; left: calc(var(--c3) + 25px); width: 2px; border-radius: 2px; background: linear-gradient(#6699FF, #2662D9); }
.rend__lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rend__step { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .9375rem; font-weight: 700; color: var(--ink); }
.rend__step span { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.rend__a { display: grid; align-content: center; justify-items: start; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 8px 16px -14px rgba(23, 36, 61, .4); }
.rend__hop { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; background: #FEEEE6; color: #A64218; font-size: .75rem; font-weight: 700; }
.rend__hop .ico { width: 14px; height: 14px; }
.rend__hop--first { padding-left: 9px; background: var(--paper-soft); color: var(--body); }
.rend__tools-row, .rend__tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rend__tool, .rend__tools li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--paper-soft); font-size: .8125rem; color: var(--ink); }
.rend__tool .ico, .rend__tools li .ico { color: var(--muted); }
.rend__where { font-size: .8125rem; color: var(--body); }
.rend__b { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 6px 10px 10px; }
.rend__dot { position: relative; z-index: 1; display: grid; }
.rend__dot .mod-ico { box-shadow: 0 0 0 4px #F5F8FF; }
.rend__mod { display: grid; gap: 2px; font-size: .875rem; line-height: 1.35; color: var(--body); }
.rend__mod b { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.rend__state { padding: 4px 10px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px #B9CDFF; color: #2662D9; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.rend__foot { align-items: start; padding: 20px 0 18px; }
.rend__sum { display: grid; gap: 10px; }
.rend__sum > p:first-child { margin: 0; font-weight: 720; }
.rend__sum--a > p:first-child { color: #A64218; }
.rend__sum--b { padding-left: 10px; }
.rend__sum--b > p:first-child { color: var(--done-ink); }
.rend__done { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
@media (max-width: 760px) {
  .rend__grid::before, .rend__list::after, .rend__head, .rend__foot > span { display: none; }
  .rend__row, .rend__foot { grid-template-columns: 1fr; row-gap: 8px; }
  .rend__list { gap: 18px; }
  .rend__lab { position: static; width: auto; height: auto; overflow: visible; clip: auto; grid-column: 1 / -1; font-size: .75rem; font-weight: 700; color: var(--body); }
  .rend__b { border-radius: 12px; background: #F5F8FF; box-shadow: inset 0 0 0 1.5px #B9CDFF; padding: 10px 12px; }
  .rend__foot { row-gap: 16px; padding-top: 22px; }
  .rend__sum--b { padding: 14px; border-radius: 12px; background: #F5F8FF; box-shadow: inset 0 0 0 1.5px #B9CDFF; }
}
