/* Conjoyn — overrides on top of site.css
   Only what differs from the shared Luces Umbrarum design system.

   PER-SITE COLOR LIVES HERE. The whole page re-tints by remapping two
   tokens below; everything else inherits from site.css. To recolor the
   site, change --accent / --accent-soft (and their dark-mode twins). */

/* ── Accent: Conjoyn molten-weld orange ──────────────────────── */
:root {
  color-scheme: light dark;        /* lets UA controls/scrollbars follow OS */
  --accent:      #F0622A;          /* the app's control accent (orange-red) */
  --accent-soft: rgba(240, 98, 42, 0.16);
}

/* Keep the app accent local to Conjoyn, independent of shared CSS order. */
.sheet { --accent: #F0622A; }

/* ── Nav typography: join the datasheet's monospace instrument face ──
   site.css leaves the shared nav/brand in --font-body (Inter) while the
   datasheet content is all --mono (JetBrains Mono) — that seam read as
   "different fonts on top". Pull the wordmark + nav links into --mono so
   the whole page is one instrument. The .brand-mark "C" glyph keeps its
   own font-family (set in site.css), so the logo square is untouched. */
.brand,
.nav a {
  font-family: var(--mono);
}

/* Nav CTA button: REMOVED 2026-07-19. STYLE-BIBLE §2.2 makes the rule strip the
   sole download/purchase path, and no page here has carried a `.nav-cta` since.
   The dead rules were deleted so a reinstated nav CTA can't arrive pre-styled
   and look deliberate — the way Aloft's pre-rule leftover shipped a second BUY
   button unnoticed. Style the rule strip's `.dl` / `.buy` instead. */

/* ── Inline code / filename chips ─────────────────────────────── */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--ghost);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--ink);
}

/* ── Problem callout (generic two-column band) ───────────────── */
.callout {
  max-width: 1080px;
  margin: 72px auto 0;
  padding: 0 32px;
}
.callout .inner {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}
.callout h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
}
.callout-body p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.callout-body p + p { margin-top: 12px; }

/* ── How-it-works steps ──────────────────────────────────────── */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / span 2;          /* counter owns the narrow column, both rows */
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.05;
}
.steps li strong {
  grid-column: 2;
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}
.steps li span {
  grid-column: 2;                /* keep body beside the number, not under it */
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Keyboard-shortcut chip inside step copy */
.kbd {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 1px 7px;
  margin-left: 2px;
  white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 700px) {
  .callout .inner {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .callout { padding: 0 24px; }
}

/* System appearance — scoped exception requested 2026-10-10.
   Set both chrome and datasheet tokens on body so later shared :root rules
   cannot restore light ink/surfaces. Shared files remain unchanged. */
.appearance-dark { display: none; }
@media (prefers-color-scheme: dark) {
  body {
    --paper: #171C1F;
    --card: #222B30;
    --line: #53666F;
    --line-soft: #35434B;
    --rule: #71868F;
    --ink: #EDF3F5;
    --muted: #B0BFC6;
    --surface: #171C1F;
    --header-surface: #171C1F;
    --surface-card: #222B30;
    --surface-card-hover: #2B373E;
    --border: #35434B;
    --border-strong: #53666F;
    --ink-muted: #B0BFC6;
    --ink-soft: #A2B2BA;
    --ghost: rgba(237, 243, 245, 0.08);
    --free: #9BC7A4;
    --pro: #E4B878;
  }
  .appearance-light { display: none; }
  .appearance-dark { display: inline; }
}

/* ── Datasheet rule strip: fold the download-stats chip into the row ──
   `.download-stats` is a shared marketing component (site.css): body font,
   its own size/colour (--ink-soft), and a `margin-top:14px` meant for the
   hero. Dropped into the mono datasheet rule strip it read as a different
   font on a different baseline. Force it to match its <span> spec-chip
   siblings — same font, size, colour, and baseline. Higher specificity
   (.rule .download-stats) so it wins regardless of stylesheet order. */
.rule .download-stats {
  margin: 0;
  min-height: 0;
  font: inherit;        /* JetBrains Mono, 12px — matches the sibling chips */
  color: inherit;       /* var(--muted), not the lighter --ink-soft */
}

/* ── Utility pages (support / imprint) — datasheet anatomy on FLAGSHIP paper ──
   The shared datasheet.css carries the anatomy (.sheet/.dochead/.sec/.featgrid/
   .foot); the portal's utility pages get their link + action-arrow styling from
   subpage.css's `body.util` block, which this dedicated site doesn't load. Mirror
   the variant-independent parts here — all token-driven, so they auto-theme to
   Conjoyn's FLAGSHIP paper. Scoped to `body.util` so the app pages keep bare links. */
body.util .sheet a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
body.util .sheet a:hover { text-decoration-color: var(--accent); }
body.util .sheet .featgrid p .go {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  font-weight: 600;
}
body.util .sheet .featgrid p .go:hover { text-decoration-color: var(--accent); }

/* Conjoyn's screenshot-first home, requested 2026-10-10. Shared files stay canonical. */
.conjoyn-home .sheet { padding-top: 8px; }
.conjoyn-intro { padding: 20px 0 24px; text-align: center; }
.conjoyn-intro h1 { margin: 0; font: 700 clamp(28px, 4vw, 44px)/1.12 var(--mono); letter-spacing: -0.055em; }
.conjoyn-intro .subline { max-width: none; margin: 12px auto 4px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.conjoyn-home .main-window.shot { max-width: 900px; margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.conjoyn-home .main-window.shot:hover { transform: none; box-shadow: none; }
.conjoyn-home .main-window img { width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.conjoyn-home .shot-caption { color: var(--ink); font: 13px/1.65 var(--mono); text-align: left; }
.conjoyn-home .main-window .shot-caption { max-width: 720px; margin: 0 auto; padding: 12px 0 0; border: 0; text-align: center; }
.conjoyn-home .shot-caption strong { display: block; font-size: 15px; margin-bottom: 4px; }
.conjoyn-home .gallery-hint { margin: 12px 0 0; font-size: 11px; color: var(--muted); }
.conjoyn-home .release-details .meta { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 11px; }
.conjoyn-home .release-details .meta span { color: var(--muted); margin-right: 8px; }
.conjoyn-home .shots2 .shot { padding: 0; border: 0; background: none; }
.conjoyn-home .shots2 .shot img { height: auto; border: 0; }
.conjoyn-home .shots2 .shot-caption { padding: 12px 0; border-top: 1px solid var(--line); }
.conjoyn-home .rule .dl { color: #1A1A1E; }

/* Captioned viewer: image and text have separate space, even on a short screen. */
.conjoyn-home .lightbox { height: 100dvh; --paper: #EDF3F5; --ink: #171C1F; --line: #71868F; color: var(--paper); }
.conjoyn-home .lightbox[open] { display: flex; flex-direction: column; padding: 48px 16px 16px; gap: 12px; }
.conjoyn-home .lb-figure { flex: 1; min-height: 0; width: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.conjoyn-home .lb-image-area { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.conjoyn-home .lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 0; box-shadow: none; }
.conjoyn-home .lb-caption { flex: none; max-width: 760px; width: 100%; padding: 12px 16px; color: var(--paper); background: var(--ink); font: 14px/1.55 var(--mono); text-align: center; }
.conjoyn-home .lb-controls { flex: none; display: flex; gap: 24px; align-items: center; }
.conjoyn-home .lightbox .lb-nav { position: static; transform: none; width: 44px; height: 44px; }
.conjoyn-home .lb-counter { min-width: 5ch; text-align: center; font: 13px var(--mono); }
.conjoyn-home .lb-close { position: absolute; top: 8px; right: 16px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); background: var(--ink); color: var(--paper); font: 13px var(--mono); cursor: pointer; }
.conjoyn-home .lb-close:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
@media (max-width: 640px) {
  .conjoyn-intro { padding-top: 16px; }
  .conjoyn-home .lb-caption { font-size: 12px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .conjoyn-home .lightbox[open], .conjoyn-home .lightbox[open]::backdrop { animation: none; }
}

/* Single download action sits between the promise and the product image. */
.conjoyn-home .hero-download { width: fit-content; max-width: 100%; margin: 16px auto 0; padding: 8px 12px; gap: 8px 16px; border: 1px solid var(--line); justify-content: center; text-align: left; }
.conjoyn-home .hero-download .dl { margin-left: 0; }
.conjoyn-home #compatibility + .release-details { margin-bottom: 8px; }
.conjoyn-home .release-details + .download-stats { margin: 0 0 16px; color: var(--muted); font: 12px var(--mono); }
@media (max-width: 400px) {
  .conjoyn-home .hero-download { width: 100%; }
  .conjoyn-home .hero-download .dl { flex-basis: 100%; text-align: center; }
}
