/* Folielle inner-page components (copied from Lumehush: features, help, shortcuts, changelog, requirements,
   pricing, 404). Loaded after site.css. Uses only the DESIGN.md tokens; no new colours, sizes or effects.
   No inline styles (CSP). */

/* ---------- labelled screenshot placeholder (when no real screen exists yet) ---------- */
.shot-ph { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: var(--s6); background: var(--surface); border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line); }
.shot-ph p { max-width: 30ch; color: var(--text-3); font-size: var(--fs-small); }
.shot-ph strong { display: block; margin-bottom: var(--s2); color: var(--text); }

.show + .principles { margin-top: var(--s9); }

/* ---------- comparison table (home, security) ---------- */
.compare td:nth-child(2) { color: var(--text); }
.compare thead th:first-child { width: 34%; }
@media (max-width: 620px) { .compare { min-width: 520px; } }

/* ---------- pricing placeholders ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); margin-top: var(--s9); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plans .card h2 { font-size: var(--fs-h3); margin-bottom: var(--s2); }
.plans .price { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.03em; color: var(--text); margin: var(--s4) 0 var(--s1); }
.plans .actions { margin-top: var(--s6); }

/* ---------- page hero ---------- */
.page-hero { padding-top: var(--s10); text-align: center; }
.page-hero h1 { font-size: var(--fs-h1); max-width: 16ch; margin: 0 auto; }
.page-hero h1 em { font-style: normal; color: var(--text-3); }
.page-hero .lede, .lede { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); max-width: 34em; margin: var(--s5) auto 0; }
.join .lede { margin-left: auto; margin-right: auto; }
.page-hero .cta, .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s7); }

/* ---------- in-page navigation chips ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin: var(--s7) auto 0; padding: 0; list-style: none; max-width: 760px; }
.chips a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s4); border-radius: var(--r-pill); text-decoration: none;
  color: var(--text-2); font-size: 14px; font-weight: 500; border: 1px solid var(--line);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.chips a:hover { color: var(--text); border-color: var(--line-strong); }

/* ---------- feature tour ---------- */
.tour-sec { scroll-margin-top: 80px; }
.h3like { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.025em; }
.show .copy p { margin-top: var(--s4); }
.fine-left { color: var(--text-3); font-size: var(--fs-small); }
.ticks { margin: var(--s5) 0 0; padding: 0; list-style: none; font-size: var(--fs-small); }
.ticks li { padding: var(--s2) 0; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks b { color: var(--text); font-weight: 600; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s8); }
@media (max-width: 860px) { .mini { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mini { grid-template-columns: 1fr; } }
.mini .card { padding: var(--s5); }
.mini .card h3 { font-size: 17px; margin-bottom: var(--s2); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); border-top: 1px solid var(--line); padding-top: var(--s6); }
.stat-row b { display: block; font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.03em; color: var(--text); line-height: 1.05; }
.stat-row span { display: block; color: var(--text-3); font-size: var(--fs-small); margin-top: var(--s2); }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } }

/* ---------- document layout (help, shortcuts, changelog, requirements) ---------- */
.doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s8); align-items: start; margin-top: var(--s9); }
.doc.solo { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); gap: var(--s6); margin-top: var(--s8); } }
.toc { position: sticky; top: 96px; font-size: 14px; }
.toc p { color: var(--text-3); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 var(--s3); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px var(--s4); margin-left: -1px; border-left: 1px solid transparent; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); border-left-color: var(--text-2); }
@media (max-width: 900px) {
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: var(--s2); border: 0; }
  .toc a { padding: 6px var(--s3); margin: 0; border: 1px solid var(--line); border-radius: var(--r-pill); }
}
.prose [id] { scroll-margin-top: 88px; }
.prose > section { padding: 0; }
.prose > section + section { margin-top: var(--s9); padding-top: var(--s9); border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 var(--s4); }
.prose h3 { font-size: 18px; letter-spacing: -.01em; margin: var(--s6) 0 var(--s2); }
.prose p { margin: 0 0 var(--s4); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 var(--s4); }
.prose li { margin-top: var(--s2); }
.prose li::marker { color: var(--text-3); }
.prose code { font: 500 .88em/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--text); }
.prose .faq { max-width: none; margin: 0; }
.callout { border-left: 2px solid var(--gold-fill); padding: var(--s1) 0 var(--s1) var(--s4); margin: 0 0 var(--s5); color: var(--text-2); font-size: var(--fs-small); max-width: 68ch; }
.callout strong { color: var(--text); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; margin-top: var(--s4); }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--text); border: 1px solid var(--line-strong);
}

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 var(--s5); border-top: 1px solid var(--line-strong); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
caption { text-align: left; padding: var(--s4) 0 var(--s2); font-weight: 600; color: var(--text); }
th, td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--line); }
thead th { color: var(--text-3); font-size: var(--fs-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
tbody th { font-weight: 600; color: var(--text); }
td { color: var(--text-2); }
table.kt { table-layout: fixed; }
table.kt thead th:first-child { width: 40%; }
@media (max-width: 620px) { table.kt thead th:first-child { width: 50%; } .keys { white-space: normal; } }

/* ---------- keys ---------- */
kbd {
  display: inline-block; min-width: 26px; padding: 2px 7px; border-radius: 6px; text-align: center;
  font: 500 13px/1.45 var(--font); color: var(--text); background: var(--raised); border: 1px solid var(--line-strong); border-bottom-width: 2px;
}
.keys { white-space: nowrap; }
.keys .or { color: var(--text-3); font-size: var(--fs-caption); padding: 0 4px; }
.kgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
@media (max-width: 900px) { .kgrid { grid-template-columns: 1fr; } }
.kgrid .table-wrap { margin: 0; }
.kgrid td:first-child { width: 44%; }

/* ---------- changelog ---------- */
.release + .release { margin-top: var(--s8); padding-top: var(--s8); border-top: 1px solid var(--line); }
.release h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: var(--s1); }
.release .when { color: var(--text-3); font-size: var(--fs-small); margin: 0 0 var(--s4); }
.release h3 { font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: var(--s5) 0 var(--s2); }
.tag { display: inline-block; vertical-align: middle; margin-left: var(--s3); padding: 2px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); border: 1px solid var(--line-strong); }

/* ---------- 404 / placeholder pages ---------- */
.lost { min-height: calc(100vh - 64px - 200px); display: grid; place-items: center; text-align: center; padding: var(--s10) 0 0; }
.lost .moon { width: auto; height: 56px; margin: 0 auto var(--s6); }
.lost .code { font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 var(--s4); }
.lost h1 { font-size: var(--fs-h1); }
.lost p { max-width: 34em; margin: var(--s4) auto 0; }
.lost .cta { justify-content: center; margin-top: var(--s7); }

/* ---------- footer additions ---------- */
footer .site-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
footer .attrib { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s5); }
footer .attrib p { margin: 0; font-size: var(--fs-caption); color: var(--text-3); }
footer .attrib img.tmdb { height: 12px; width: auto; }
