/* Homepage showcase (11-22): products side by side with their footage, then a grid of other work.
   Uses only the shared tokens from styles.css, so both themes and their contrast checks carry over. */

.sc-hero .wrap { display: block; width: min(1120px, 92vw); }
.sc-hero h1 { max-width: 900px; font-size: clamp(40px, 6vw, 68px); }
.sc-hero .subhead { max-width: 680px; }

.sc-product { padding-block: clamp(28px, 5vw, 56px); }
.sc-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.sc-flip .sc-copy { order: 2; }
.sc-copy h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 4vw, 46px); margin: 8px 0 14px; }
.sc-flagship .sc-copy h2 { font-size: clamp(36px, 4.6vw, 54px); }
.sc-lead { font-size: clamp(17px, 2vw, 19px); color: var(--ink-soft); margin: 0 0 16px; }
.sc-points { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.sc-points li { position: relative; padding-left: 22px; color: var(--muted); }
.sc-points li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-bright); box-shadow: 0 0 0 4px var(--btn-ring); }
.sc-acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.sc-media { display: block; width: 100%; height: auto; background: #000; }

.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 24px; }
.sc-card { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 18px;
  box-shadow: var(--shadow-card); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.sc-card:hover { transform: translateY(-3px); box-shadow: var(--hover-shadow-sm); }
.sc-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.sc-card p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; }
.sc-card-acts { margin-top: auto !important; margin-bottom: 0 !important; display: flex; align-items: center; gap: 12px; }
.sc-card-acts a { font-family: var(--font-head); font-weight: 700; }
.sc-tag { font-family: var(--font-mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px; }

/* ChatterCAT page: chapter list that seeks the demo video */
.cc-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cc-chapters button { all: unset; box-sizing: border-box; display: flex; gap: 12px; width: 100%; padding: 8px 12px;
  border-radius: 12px; cursor: pointer; color: var(--ink-soft); font-size: 15px; line-height: 1.4; }
.cc-chapters button:hover { background: var(--neutral-tint); color: var(--ink); }
.cc-chapters button:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.cc-ts { font-family: var(--font-mono); font-size: 13px; color: var(--blue-bright); min-width: 34px; padding-top: 2px; }

/* Bilingua page and homepage engine strip */
.bl-diagram { margin-top: 22px; padding: 18px; overflow-x: auto; }
.bl-diagram svg { display: block; width: 100%; min-width: 620px; height: auto; }
.bl-box rect { fill: var(--dg-fill); stroke: var(--dg-stroke); stroke-width: 1.5; }
.bl-core rect { fill: var(--dg-feed-fill); stroke: var(--amber); stroke-width: 2; }
.bl-t { font-family: var(--font-head); font-weight: 800; font-size: 20px; fill: var(--ink); text-anchor: middle; }
.bl-s { font-family: var(--font-mono); font-size: 12.5px; fill: var(--muted); text-anchor: middle; }
.bl-flow { fill: none; stroke: var(--dg-flow); stroke-width: 2.2; }
.bl-ah { fill: var(--dg-flow); }
.bl-code pre { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--pre-bg); color: var(--pre-ink);
  font-family: var(--font-mono); font-size: 14px; overflow-x: auto; }
.bl-filter { display: flex; flex-direction: column; gap: 6px; max-width: 420px; margin: 18px 0 16px; font-size: 14px; color: var(--muted); }
.bl-filter input { font: inherit; font-size: 16px; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--field-border);
  border-radius: 12px; padding: 10px 14px; }
.bl-formats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bl-formats li { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); }
.bl-formats li.bi { border-color: var(--amber-border); background: var(--amber-tint); color: var(--amber-ink); }
.bl-none { margin-top: 14px; color: var(--muted); }
.sc-engine { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.sc-engine .bl-diagram { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { .sc-card, .sc-card:hover { transition: none; transform: none; } }
@media (max-width: 860px) { .sc-engine { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .sc-split { grid-template-columns: 1fr; }
  .sc-flip .sc-copy { order: 0; }
}
