/* Caldera landing page - components only; all colors/fonts/sizes come from theme.css tokens. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.65; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font-family: var(--font-mono); font-size: .88em; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.muted { color: var(--text-muted); }
main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; color: var(--text-strong); font-weight: 600; }
.brand:hover { text-decoration: none; }
.nav nav { flex: 1; display: flex; gap: 22px; flex-wrap: wrap; }
.nav nav a { color: var(--text-muted); font-size: 14.5px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: var(--radius-round); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text-strong); border: 1px solid var(--line-strong); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
@media (max-width: 720px) { .nav nav { display: none; } .nav { justify-content: space-between; } }

.hero { padding: 96px 0 72px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 20px -10% auto auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 65%); filter: blur(20px); z-index: -1; animation: drift 14s ease-in-out infinite; }
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(48px, 8vw, 92px); line-height: 1; letter-spacing: -.02em; color: var(--text-strong); margin: 14px 0 22px; }
.lead { font-size: clamp(18px, 2vw, 21px); max-width: 640px; color: var(--text); }
.lead b { color: var(--text-strong); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 14px; }
.fine { color: var(--text-muted); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 24px 0 96px; }
.feature { background: var(--bg); padding: 28px; }
.feature .k { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--text-strong); margin: 8px 0; }
.feature p { margin: 0; color: var(--text); font-size: 15px; }

section h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4vw, 44px); color: var(--text-strong); margin: 0 0 22px; }
section h2.sub { font-size: 28px; margin-top: 56px; }
.privacy { margin-bottom: 96px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 28px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-2); mask: radial-gradient(circle, #000 40%, transparent 41%); }
.checks b { color: var(--text-strong); }

.install { margin-bottom: 96px; }
.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 18px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.step .n { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.step h3 { margin: 4px 0 6px; color: var(--text-strong); font-size: 19px; }
.step p, .step ol { margin: 0; }
.quick { counter-reset: q; list-style: none; padding: 0; display: grid; gap: 10px; }
.quick li { counter-increment: q; padding-left: 44px; position: relative; }
.quick li::before { content: counter(q); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; padding: 10px; border-bottom: 1px solid var(--line-strong); color: var(--text-muted); font-weight: 500; }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

.faq { margin-bottom: 96px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text-strong); font-size: 17px; }
.faq p { margin: 10px 0 0; }

.footer { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: 28px 24px 48px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-muted); }

@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 20px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }

/* --- Legal pages ------------------------------------------------------- */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-family: var(--font-display); font-weight: 600; font-size: 44px; color: var(--text-strong); margin: 0 0 6px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal li { margin: 6px 0; }
.legal table.data { font-size: 14px; margin: 10px 0; }
.step > div:last-child { min-width: 0; }
.step code, .quick code, table.data code { word-break: break-word; }
@media (max-width: 560px) { .step { flex-direction: column; gap: 10px; padding: 18px; } .hero { padding-top: 64px; } }
main { overflow-x: clip; }

/* --- Install: one-paste flow ------------------------------------------- */
.install-head { max-width: 720px; margin-bottom: 28px; }
.install-head h2 { margin: 6px 0 10px; text-wrap: balance; }
.install-head .lead-in { color: var(--text-muted); }
.lead-in { font-size: 17px; max-width: 720px; margin: 0; }

.flow { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.flow li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-top: 2px solid var(--line-strong); }
.flow li:first-child { border-top-color: var(--accent); }
.flow-n { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; background: var(--accent-soft); color: var(--accent-text); }
.flow li:first-child .flow-n { background: var(--accent); color: var(--on-accent); }
.flow b { display: block; color: var(--text-strong); font-size: 15.5px; }
.flow span:not(.flow-n) { display: block; color: var(--text-muted); font-size: 14px; line-height: 1.5; margin-top: 2px; }

.prompt-card { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-sunken); overflow: hidden; box-shadow: 0 24px 60px -30px rgba(139, 108, 246, .35); }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.prompt-file { font-family: var(--font-mono); font-size: 13px; color: var(--text-strong); display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 18%, transparent); flex: none; }
.pf-meta { color: var(--text-muted); }
.btn.copy { gap: 8px; min-height: 42px; padding: 0 18px; border: 0; cursor: pointer; font: 600 14.5px var(--font-body); flex: none; transition: background .2s; }
.btn.copy .ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.copy .ic-check, .btn.copy.is-copied .ic-copy { display: none; }
.btn.copy.is-copied .ic-check { display: block; }
.btn.copy.is-copied { background: var(--accent-2); }
.prompt-does { list-style: none; margin: 0; padding: 12px 18px; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); }
.prompt-does li { font-size: 13px; padding: 4px 10px; border-radius: var(--radius-round); background: var(--accent-soft); color: var(--accent-text); }
.prompt-body { position: relative; }
.prompt-body pre { margin: 0; padding: 18px 20px 64px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: var(--text); background: none; border: 0; }
.prompt-body.is-collapsed pre { max-height: 230px; overflow: hidden; }
.prompt-fade { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: flex-end; padding: 0 0 14px; height: 120px; background: linear-gradient(to bottom, transparent, var(--bg-sunken) 72%); }
.prompt-body:not(.is-collapsed) .prompt-fade { height: auto; background: none; position: static; padding: 0 0 16px; }
.prompt-expand { cursor: pointer; font: 500 13.5px var(--font-body); color: var(--text-strong); background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-round); padding: 7px 16px; }
.prompt-expand:hover { border-color: var(--accent); }
.prompt-card + .fine { margin-top: 14px; }

details.manual { margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; }
details.manual > summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; color: var(--text-strong); display: flex; justify-content: space-between; align-items: center; }
details.manual > summary::-webkit-details-marker { display: none; }
details.manual > summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--text-muted); }
details.manual[open] > summary::after { content: "\2212"; }
.manual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; padding: 6px 0 18px; }
.manual-grid h3 { font-size: 15px; color: var(--text-strong); margin: 0 0 8px; font-family: var(--font-mono); font-weight: 400; letter-spacing: .02em; }
.manual-grid ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
details.manual .table-wrap { margin: 4px 0 12px; }

.richer { margin-top: 88px; }

@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow li { padding: 12px 4px; }
  .manual-grid { grid-template-columns: 1fr; }
  .prompt-bar { padding-left: 14px; }
  .btn.copy { padding: 0 14px; }
}
@media (max-width: 420px) { .pf-meta { display: none; } }
h2[id], section[id], div[id] { scroll-margin-top: 84px; }
:root { color-scheme: dark; } :root[data-theme="light"] { color-scheme: light; }
section h2 { line-height: 1.12; }
@media (max-width: 760px) {
  .prompt-does { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(to right, #000 85%, transparent); }
  .prompt-does::-webkit-scrollbar { display: none; }
  .prompt-does li { flex: none; }
}

/* --- People directory ---------------------------------------------------- */
.people { padding-top: 48px; padding-bottom: 72px; }
.people-head { max-width: 720px; margin-bottom: 28px; }
.people-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5vw, 52px); line-height: 1.08; color: var(--text-strong); margin: 6px 0 12px; text-wrap: balance; }
.people-head .lead-in { color: var(--text-muted); }
.people-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.people-search { flex: 1 1 320px; max-width: 460px; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius-round); background: var(--bg-raised); }
.people-search:focus-within { border-color: var(--accent); }
.people-search svg { width: 18px; height: 18px; fill: none; stroke: var(--text-muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.people-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text-strong); font: 15px var(--font-body); outline: none; }
.people-sort { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-round); background: var(--bg-sunken); }
.people-sort button { border: 0; background: none; color: var(--text-muted); font: 500 14px var(--font-body); padding: 8px 14px; border-radius: var(--radius-round); cursor: pointer; }
.people-sort button[aria-selected="true"] { background: var(--bg-raised); color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--line-strong); }
.people-count { margin: 6px 0 18px; font-variant-numeric: tabular-nums; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-raised); color: var(--text); transition: border-color .15s, transform .15s; }
.pcard:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.pcard-top { display: flex; align-items: center; gap: 12px; }
.pcard-av { width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font: 600 20px var(--font-display); }
.pcard-av img { width: 100%; height: 100%; object-fit: cover; }
.pcard-who { min-width: 0; flex: 1; }
.pcard-who b { display: block; color: var(--text-strong); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-who span { color: var(--text-muted); font: 13px var(--font-mono); }
.pcard-score { text-align: right; flex: none; }
.pcard-score b { display: block; font: 600 18px var(--font-mono); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.pcard-score span { font-size: 11.5px; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.pcard-line { margin: 0; font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.pcard-topics span { font-size: 12.5px; padding: 3px 9px; border-radius: var(--radius-round); background: var(--accent-soft); color: var(--accent-text); }
.people-empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); margin-top: 8px; }
.people-empty h2 { margin: 0 0 8px; }
.people-foot { margin-top: 32px; max-width: 720px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav nav a[aria-current="page"] { color: var(--text-strong); }
@media (max-width: 560px) { .people-sort { width: 100%; } .people-sort button { flex: 1; } }

/* --- Guide + changelog --------------------------------------------------- */
.guide .lead-in, .changelog .lead-in { color: var(--text-muted); margin-bottom: 26px; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 12px; }
.way { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-raised); color: var(--text); }
.way:hover { text-decoration: none; border-color: var(--accent); }
.way b { color: var(--text-strong); }
.way span:not(.way-n) { color: var(--text-muted); font-size: 14px; line-height: 1.45; }
.way-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font: 13px var(--font-mono); margin-bottom: 4px; }
.guide .prompt-card { margin: 14px 0 10px; }
.release { padding: 26px 0; border-top: 1px solid var(--line); }
.release-meta { font: 13px var(--font-mono); color: var(--text-muted); display: flex; gap: 10px; align-items: center; }
.release-meta .tag { color: var(--accent-text); background: var(--accent-soft); border-radius: var(--radius-round); padding: 2px 9px; }
.release h2 { margin: 8px 0 10px; font-size: 24px; line-height: 1.25; text-wrap: balance; }
.release ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.release .howto { margin: 12px 0 0; padding: 10px 14px; border-left: 2px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 14.5px; }
@media (max-width: 720px) { .ways { grid-template-columns: 1fr; } }
