/* converter.love — page compositions (home, pair, category, format, content, 404). */

/* ───────── Hero / tool area ───────── */
.cv-hero { position: relative; overflow-x: clip; padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); }
.cv-hero-intro { display: grid; gap: 10px; margin-bottom: clamp(20px, 3vw, 28px); max-width: 40rem; }
.cv-hero-intro p { color: var(--cv-text-muted); font-size: clamp(var(--cv-fs-16), .95rem + .3vw, var(--cv-fs-18)); }
.cv-hero-below { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; padding-inline: 4px; }

/* Two giant contours converge behind the studio — the mark, at landscape scale.
   Drawn once on load, then perfectly still. */
.cv-hero-lines { position: absolute; z-index: -1; left: 50%; top: 0; bottom: 0; width: min(1400px, 150vw); height: 100%; transform: translateX(-50%); pointer-events: none; overflow: hidden; }
.cv-hero-lines svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.cv-hero-lines path { fill: none; stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.cv-hero-lines .l { stroke: var(--cv-border-strong); }
.cv-hero-lines .r { stroke: color-mix(in srgb, var(--cv-accent) 38%, var(--cv-border)); }
.cv-intro .cv-hero-lines path { stroke-dasharray: 1; animation: cv-draw 1600ms var(--cv-ease) 120ms both; }
@media (max-width: 720px) { .cv-hero-lines { opacity: .7; } }

/* ───────── Find a converter ───────── */
.cv-finder { display: grid; gap: 16px; }
.cv-finder-results { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; }
.cv-finder-empty { color: var(--cv-text-muted); font-size: var(--cv-fs-14); }

/* Categories — one sheet with shared hairlines, not a pile of cards */
.cv-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--cv-border); border: 1px solid var(--cv-border); border-radius: var(--cv-r-lg); overflow: hidden; }
.cv-cat { position: relative; background: var(--cv-surface); padding: 22px 22px 20px; display: grid; gap: 12px; align-content: start; transition: background-color var(--cv-dur-2) var(--cv-ease); }
.cv-cat:hover { background: color-mix(in srgb, var(--cv-surface) 60%, var(--cv-bg)); }
.cv-cat-head { display: flex; align-items: center; gap: 12px; }
.cv-cat-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--cv-surface-muted); color: var(--cv-text); transition: background-color var(--cv-dur-2) var(--cv-ease), color var(--cv-dur-2) var(--cv-ease); }
.cv-cat-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cv-cat:hover .cv-cat-icon { background: var(--cv-accent-soft); color: var(--cv-accent-strong); }
.cv-cat h3 a { text-decoration: none; }
.cv-cat h3 a::after { content: ""; position: absolute; inset: 0; } /* whole cell → category page */
.cv-cat-count { font-size: var(--cv-fs-13); color: var(--cv-text-muted); margin-left: auto; }
.cv-cat p { font-size: var(--cv-fs-14); color: var(--cv-text-muted); }
.cv-cat-formats { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.cv-cat-formats a { font: 500 12px/1 var(--cv-mono); letter-spacing: .02em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: var(--cv-surface-muted); text-decoration: none; color: var(--cv-text-muted); transition: background-color var(--cv-dur-1) var(--cv-ease), color var(--cv-dur-1) var(--cv-ease); }
.cv-cat-formats a:hover { background: var(--cv-text); color: #fff; }
@media (max-width: 900px) { .cv-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cv-cats { grid-template-columns: 1fr; } }

/* Popular — a calm list of real routes */
.cv-popular { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0 32px; }
.cv-popular li { border-bottom: 1px solid var(--cv-border); }
.cv-popular a { display: flex; align-items: center; gap: 10px; min-height: 56px; text-decoration: none; }
.cv-popular .cv-pair { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.cv-popular .cv-pair svg { width: 14px; height: 14px; color: var(--cv-text-faint); transition: transform var(--cv-dur-2) var(--cv-ease), color var(--cv-dur-2) var(--cv-ease); }
.cv-popular a:hover .cv-pair svg { transform: translateX(2px); color: var(--cv-accent); }
.cv-popular a:hover .cv-pair span:last-child { color: var(--cv-accent-strong); }
.cv-popular .cv-badge { margin-left: auto; }

/* How it works — a real 3-step sequence */
.cv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.cv-steps li { display: grid; gap: 8px; align-content: start; counter-increment: s; }
.cv-steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--cv-text); font-weight: 600; font-size: var(--cv-fs-14); margin-bottom: 6px; }
.cv-steps li:last-child::before { border-color: var(--cv-accent); color: var(--cv-accent-strong); }
.cv-steps p { color: var(--cv-text-muted); font-size: var(--cv-fs-14); max-width: 34ch; }
@media (max-width: 760px) { .cv-steps { grid-template-columns: 1fr; gap: 24px; } }

/* ───────── Pair page (template for the other agent) ───────── */
.cv-pairpage-head { display: grid; gap: 12px; margin-bottom: 24px; }
.cv-pairpage-head p { color: var(--cv-text-muted); max-width: 62ch; }
.cv-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.cv-aside { position: sticky; top: calc(var(--cv-header-h) + 24px); display: grid; gap: 16px; font-size: var(--cv-fs-14); }
@media (max-width: 960px) { .cv-split { grid-template-columns: minmax(0, 1fr); } .cv-aside { position: static; } }
.cv-prose { max-width: 68ch; }
.cv-prose h2 { margin: 40px 0 12px; }
.cv-prose h3 { margin: 28px 0 8px; }
.cv-prose ul, .cv-prose ol { padding-left: 1.2em; }
.cv-prose li + li { margin-top: 6px; }
.cv-limits { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cv-limits li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--cv-r-sm); background: var(--cv-warning-soft); font-size: var(--cv-fs-14); }
.cv-limits li::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--cv-warning); color: #fff; font-size: 11px; font-weight: 700; margin-top: 1px; }
.cv-experimental { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--cv-r-sm); border: 1px dashed var(--cv-warning); color: var(--cv-warning); font-size: var(--cv-fs-14); }

/* ───────── 404 ───────── */
.cv-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.cv-404-art { width: 120px; height: 120px; margin: 0 auto 24px; }
.cv-404-art .l { animation: cv-apart-l 2.4s var(--cv-ease) 1 both; }
.cv-404-art .r { animation: cv-apart-r 2.4s var(--cv-ease) 1 both; }
@keyframes cv-apart-l { to { transform: translate(-4px, 3px) rotate(-6deg); } }
@keyframes cv-apart-r { to { transform: translate(4px, -2px) rotate(8deg); } }

/* ───────── Design-system page ───────── */
.cv-ds-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cv-ds-swatch { border: 1px solid var(--cv-border); border-radius: var(--cv-r-md); overflow: hidden; background: var(--cv-surface); font-size: var(--cv-fs-13); }
.cv-ds-swatch i { display: block; height: 64px; background: var(--_c); border-bottom: 1px solid var(--cv-border); }
.cv-ds-swatch div { padding: 10px 12px; display: grid; gap: 2px; }
.cv-ds-swatch code { color: var(--cv-text-muted); }
.cv-ds-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cv-ds-panel { padding: 24px; border: 1px solid var(--cv-border); border-radius: var(--cv-r-lg); background: var(--cv-surface); }
.cv-ds-demo-bar { position: sticky; top: calc(var(--cv-header-h) + 8px); z-index: 20; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; margin-bottom: 16px; border-radius: var(--cv-r-md); background: var(--cv-warning-soft); border: 1px dashed var(--cv-warning); }
.cv-ds-demo-bar strong { width: 100%; color: var(--cv-warning); font-size: var(--cv-fs-14); }
