/* ============================== SHOWCASES ===============================
   Each product section is a list of capabilities beside a live window that
   acts each one out. The words stay in the HTML, where people and search
   engines both read them; the window is a demonstration of what the words say,
   played by scenes.js only while it is on screen.
   ========================================================================== */

.show {
  display: grid; gap: clamp(18px, 3vw, 36px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
.show-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.show-item {
  position: relative; overflow: hidden; cursor: pointer;
  padding: 14px 16px 15px; border-radius: var(--r);
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease;
}
.show-item:hover { background: var(--surface); }
.show-item.is-on { background: var(--surface); border-color: var(--line-2); }
.show-item button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; align-items: center; gap: 10px;
}
.show-item button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.show-item h3 { margin: 0; font-size: 1.02rem; letter-spacing: -.005em; color: var(--fg-mute); }
.show-item.is-on h3 { color: var(--fg); }
.show-ico {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  display: inline-grid; place-items: center; font-size: .95rem;
  background: var(--surface-2); border: 1px solid var(--line);
}
.show-item.is-on .show-ico { border-color: rgba(220,141,31,.45); background: rgba(220,141,31,.1); }
.show-item p {
  margin: 8px 0 0 38px; font-size: .92rem; line-height: 1.62; color: var(--fg-mute);
}
.show-item code { font-size: .84em; }
/* Progress along the bottom of the capability being acted out. */
.show-bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
}
.show-item:not(.is-on) .show-bar { width: 0 !important; }

.show-win { position: sticky; top: 86px; }
.show-win .win-bar { min-height: 22px; }
.show-screen {
  position: relative; height: 440px; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 16px 18px 20px; background: var(--code-bg);
  font-family: var(--mono); font-size: .82rem; line-height: 1.62; color: var(--fg);
}
[data-theme="light"] .show-screen { background: #FFFDF8; }
/* The running part of a scene. It grows from the bottom and sheds its oldest
   lines off the top, the way a terminal does, so the newest is always in view. */
.show-screen .out {
  flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.show-note { margin: 14px 0 0; font-size: .8rem; color: var(--fg-dim); }

/* ---- lines ---------------------------------------------------------------- */
.ln { white-space: pre-wrap; word-break: break-word; animation: ln-in .28s ease both; }
@keyframes ln-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ln.gap { height: 8px; }
.ln.user { color: var(--fg); font-weight: 600; }
.ln.user::before { content: "› "; color: var(--accent); }
.ln.user.chat::before { content: "chat › "; }
.ln.accent { color: var(--accent-hi); font-family: var(--font); font-weight: 600; }
.ln.say { font-family: var(--font); font-size: .92rem; line-height: 1.6; color: var(--fg); margin: 4px 0; }
.ln.say b { color: var(--accent-hi); font-weight: 650; }
.ln.chip { color: var(--fg-dim); }
.ln.cmd { color: var(--fg-dim); }
.ln.cmd::before { content: "▶ Running: "; }
.ln.ok { color: var(--green); }
.ln.err { color: var(--red); }
.ln.warn { color: var(--amber); }
.ln.dim { color: var(--fg-dim); }
.ln.hint { color: var(--fg-dim); font-family: var(--font); font-size: .82rem; }
.ln.add, .ln.del { padding: 0 8px; border-radius: 4px; }
.ln.add { background: rgba(90,190,110,.12); color: var(--green); }
.ln.del { background: rgba(220,100,100,.12); color: var(--red); }
.ln.foot {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2);
  color: var(--green); font-weight: 600;
}
.ln.foot span { color: var(--fg-dim); font-weight: 400; }
.sc-caret::after {
  content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 2px;
  vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- cards: a draft, a result, a file ------------------------------------ */
.card {
  margin: 10px 0 4px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); font-family: var(--font); font-size: .88rem;
  animation: ln-in .32s ease both; overflow: hidden;
}
.card-row { display: flex; gap: 10px; padding: 5px 12px; border-bottom: 1px solid var(--line); }
.card-row:last-child { border-bottom: 0; }
.card-k { color: var(--fg-dim); min-width: 22px; font-size: .8rem; padding-top: 1px; }
.card-v { color: var(--fg); font-weight: 600; }
.card-body { padding: 8px 12px; color: var(--fg-mute); line-height: 1.55; }
.card-actions {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 7px 12px;
  background: var(--surface-2); border-top: 1px solid var(--line);
}
.key {
  font-family: var(--mono); font-size: .76rem; padding: .22em .6em; border-radius: 6px;
  border: 1px solid var(--line-2); color: var(--fg-mute); background: var(--bg-2);
  transition: all .2s ease;
}
.key.hot { border-color: var(--accent); color: var(--bg); background: var(--accent); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font);
  font-size: .78rem; font-weight: 600; padding: .25em .7em; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--fg-mute); background: var(--surface);
}
.pill.ok { color: var(--green); border-color: rgba(90,190,110,.4); }
.pill.gold { color: var(--accent-hi); border-color: rgba(220,141,31,.45); background: rgba(220,141,31,.08); }
.row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; align-items: center; }

/* ---- a checkpoint list ---------------------------------------------------- */
.cps { font-family: var(--font); font-size: .86rem; }
.cp {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 6px;
  background: var(--surface); animation: ln-in .3s ease both; transition: all .25s ease;
}
.cp time { color: var(--fg-dim); font-family: var(--mono); font-size: .78rem; }
.cp .n { color: var(--fg); }
.cp .d { font-family: var(--mono); font-size: .78rem; }
.cp .d i { font-style: normal; color: var(--green); } .cp .d s { text-decoration: none; color: var(--red); }
.cp .restore { font-size: .74rem; padding: .2em .6em; border-radius: 6px; border: 1px solid var(--line-2); color: var(--fg-mute); }
.cp.pick { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(220,141,31,.14); }
.cp.pick .restore { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.cp.gone { opacity: .35; }

/* ---- two repositories ----------------------------------------------------- */
.repos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-family: var(--font); }
.repo { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.repo h4 { margin: 0 0 6px; font-size: .8rem; color: var(--fg-dim); letter-spacing: .06em; text-transform: uppercase; }
.repo div { font-family: var(--mono); font-size: .78rem; color: var(--fg-mute); padding: 2px 4px; border-radius: 4px; transition: all .25s; }
.repo div.hit { background: rgba(220,141,31,.14); color: var(--accent-hi); }

/* ---- a motion timeline ---------------------------------------------------- */
.tl { font-family: var(--font); }
.tl-frame {
  height: 168px; border-radius: 10px; margin-bottom: 12px; position: relative; overflow: hidden;
  background: var(--paper); color: var(--paper-ink); display: grid; place-items: center; text-align: center;
  border: 1px solid var(--line-2);
}
.tl-frame .t { font-size: clamp(1rem, 2.2vw, 1.35rem); font-weight: 750; letter-spacing: -.01em; transition: all .4s ease; padding: 0 16px; }
.tl-frame .s { font-size: .82rem; opacity: .7; margin-top: 4px; }
.tl-frame .cap {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  background: rgba(0,0,0,.78); color: #fff; font-size: .78rem; font-weight: 600;
  padding: .25em .7em; border-radius: 6px; white-space: nowrap; opacity: 0; transition: opacity .25s;
}
.tl-frame .cap.on { opacity: 1; }
.tl-frame.warm { background: #FBE7C9; }
.tl-track { display: grid; grid-template-columns: 58px 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.tl-track > span { font-size: .72rem; color: var(--fg-dim); text-transform: uppercase; letter-spacing: .07em; }
.tl-lane { display: flex; gap: 4px; height: 26px; position: relative; }
.tl-scene {
  flex: var(--w, 1); border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: .7rem; color: var(--fg-mute); display: grid; place-items: center; transition: all .45s ease;
  overflow: hidden; white-space: nowrap;
}
.tl-scene.edit { background: rgba(220,141,31,.18); border-color: var(--accent); color: var(--accent-hi); }
.tl-scene.kept { border-color: rgba(90,190,110,.45); }
.tl-bars { display: flex; gap: 2px; align-items: center; height: 26px; }
.tl-bars i { flex: 1; background: var(--line-2); border-radius: 2px; height: 20%; transition: height .3s ease, background .3s; }
.tl-bars.live i { background: var(--accent); }
.tl-bars.music i { background: #6E8CD8; }
.tl-head {
  position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--accent-hi);
  left: 0; box-shadow: 0 0 8px var(--accent); transition: left .1s linear;
}
.checks { font-family: var(--font); font-size: .86rem; margin-top: 8px; }
.checks div { padding: 4px 0; color: var(--fg-mute); animation: ln-in .25s ease both; }
.checks div::before { content: "✔  "; color: var(--green); }
.sc-meter { height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.sc-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); border-radius: 99px; }

/* ---- a spreadsheet -------------------------------------------------------- */
.sc-sheet { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .76rem; }
.sc-sheet th, .sc-sheet td { border: 1px solid var(--line); padding: 5px 8px; text-align: right; }
.sc-sheet th { background: var(--surface-2); color: var(--fg-dim); font-weight: 600; }
.sc-sheet td:first-child, .sc-sheet th:first-child { text-align: left; }
.sc-sheet td { color: var(--fg-mute); transition: background .3s ease, color .3s ease; }
.sc-sheet td.hl { background: rgba(220,141,31,.16); color: var(--accent-hi); }
.sc-sheet td.fix { background: rgba(90,190,110,.14); color: var(--green); }
.sc-sheet td.bad { background: rgba(220,100,100,.14); color: var(--red); }
/* Each column is the full height of the chart, so a bar's percentage height
   has something to be a percentage of. */
.sc-bars { display: flex; gap: 10px; height: 104px; margin-top: 12px; padding: 0 4px; }
.sc-bars div {
  flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  gap: 4px; font-family: var(--font); font-size: .7rem; color: var(--fg-dim);
}
.sc-bars b { display: block; width: 100%; height: 0; max-height: calc(100% - 18px); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--accent-hi), var(--accent)); transition: height .7s cubic-bezier(.2,.8,.2,1); }

/* ---- a document and a deck ------------------------------------------------ */
.sc-docpage {
  background: var(--paper); color: var(--paper-ink); border-radius: 8px; padding: 16px 18px;
  font-family: Georgia, "Times New Roman", serif; font-size: .86rem; line-height: 1.6;
}
.sc-docpage h5 { font-family: var(--font); font-size: 1rem; margin: 0 0 8px; }
.sc-docpage p { margin: 0 0 8px; animation: ln-in .3s ease both; }
.sc-docpage sup { color: #A5650A; font-weight: 700; font-family: var(--font); font-size: .7em; }
.sc-docpage .refs { font-size: .76rem; border-top: 1px solid rgba(0,0,0,.12); padding-top: 8px; margin-top: 10px; }
.slides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slide {
  aspect-ratio: 16 / 9; border-radius: 6px; background: var(--paper); color: var(--paper-ink);
  padding: 7px 8px; font-family: var(--font); font-size: .56rem; line-height: 1.35; overflow: hidden;
  border: 1px solid var(--line-2); animation: ln-in .35s ease both;
}
.slide b { display: block; font-size: .68rem; margin-bottom: 3px; }
.slide i { display: block; height: 3px; background: rgba(0,0,0,.14); border-radius: 2px; margin: 3px 0; font-style: normal; }
.slide.title { background: #23201C; color: #F7F4EC; display: grid; place-items: center; text-align: center; }
.slide.title b { font-size: .78rem; }

/* ---- models --------------------------------------------------------------- */
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: clamp(26px, 3.4vw, 40px); }
.model {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 22px 22px 20px; background: var(--surface); overflow: hidden;
}
.model::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 200px at 100% 0%, rgba(220,141,31,.14), transparent 70%);
}
.model.core::before { background: radial-gradient(420px 200px at 100% 0%, rgba(110,140,216,.14), transparent 70%); }
.model-tag { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-hi); }
.model.core .model-tag { color: #8FA8E8; }
[data-theme="light"] .model.core .model-tag { color: #3F5FAF; }
.model h3 { margin: 6px 0 6px; font-size: 1.5rem; letter-spacing: -.02em; }
.model > p { margin: 0 0 14px; color: var(--fg-mute); line-height: 1.6; }
.model ul { margin: 0 0 16px; padding-left: 18px; color: var(--fg-mute); line-height: 1.7; }
.model-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-gauge { margin: 6px 0 2px; }
.sc-gauge-top { display: flex; justify-content: space-between; font-family: var(--font); font-size: .78rem; color: var(--fg-dim); margin-bottom: 5px; }
.sc-gauge-top b { color: var(--fg); font-weight: 650; }

/* ---- FAQ ------------------------------------------------------------------ */
.faq { display: grid; gap: 10px; max-width: 58rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 18px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 640; color: var(--fg);
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--fg-mute); line-height: 1.7; }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .show { grid-template-columns: 1fr; }
  /* The demonstration first, then the list that drives it. */
  .show-win { position: relative; top: 0; order: -1; }
  .show-item p { display: none; }
  .show-item.is-on p { display: block; }
  .models { grid-template-columns: 1fr; }
}
@media (max-width: 660px) {
  .show-screen { height: 400px; font-size: .76rem; padding: 13px 13px 16px; }
  .tl-frame { height: 120px; }
  .show-item { padding: 12px 12px 13px; }
  .show-item p { margin-left: 0; }
  .repos { grid-template-columns: 1fr; }
  .slides { grid-template-columns: repeat(2, 1fr); }
  .sc-sheet { font-size: .7rem; }
  .sc-sheet th, .sc-sheet td { padding: 4px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ln, .card, .cp, .slide, .sc-docpage p, .checks div { animation: none; }
  .sc-caret::after { animation: none; }
}
