/* DLM Auto — product pages (AutoPrep, AutoMov, AutoDesign, AutoTake, AutoPremix, AutoScript,
   the DLM plug-ins) and the parts the Products page shares with them.
   Loaded after site.css + pages.css; built only from their tokens. */

/* ---------- status: "Coming soon" ----------
   One status for every product. Told apart from the shared pills by shape:
   solid frame, soft fill, and a ring with a centre dot (a "pending" mark) — never by hue. */
.pill.pill-soon {
  border-style: solid; border-color: rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
}
.pill.pill-soon::before {
  width: 9px; height: 9px; background: radial-gradient(circle, var(--ink) 0 1.6px, transparent 2.2px);
  box-shadow: 0 0 0 1.5px var(--ink) inset;
}

/* ---------- hero extras ---------- */
.product-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.page-lead strong { color: var(--ink); font-weight: 500; }
.page-hero .callout { margin-top: 24px; max-width: 36em; }
.glance dd .pill + .pill { margin-left: 6px; }
.glance dd small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }
.glance dd .tbc { font-size: 12.5px; }

/* ---------- product figure: the home page's glass frame, larger ---------- */
.product-figure { margin: 0 auto; max-width: 920px; }
.product-figure.is-small { max-width: 460px; }
.product-figure.is-diagram { max-width: 640px; }
.product-figure.is-diagram .shot { aspect-ratio: 16 / 8; }
.product-figure.is-flow { max-width: 720px; }
.product-figure .shot img { object-position: center; }
.product-figure figcaption {
  margin-top: 18px; text-align: center;
  font: 400 12.5px/1.5 var(--mono); letter-spacing: .03em; color: var(--ink-3);
}
.product-figure figcaption strong { color: var(--ink-2); font-weight: 500; }

/* AutoPrep: the diagram treatment, scaled up for a full figure */
.product-figure .shot-diagram .prep-flow { gap: 10px; font-size: clamp(11.5px, 1.6vw, 15px); }
.product-figure .shot-diagram .prep-in { padding: 9px 14px; }
.product-figure .shot-diagram .prep-arrow { height: clamp(28px, 5vw, 48px); }
.product-figure .shot-diagram .prep-out { padding: 12px 22px; }
.prep-phase {
  grid-column: 1 / -1; justify-self: center; margin-top: 4px;
  font: 400 .9em/1.3 var(--mono); color: var(--ink-3);
}

/* AutoTake: the film link sits under the screenshot */
.film-link {
  display: flex; align-items: center; gap: 16px;
  max-width: 920px; margin: 28px auto 0;
  padding: 16px 20px 16px 16px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  transition: border-color .3s, transform .4s var(--ease);
}
.film-link:hover { border-color: rgba(255,255,255,.24); transform: translateY(-2px); }
.film-play {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: #f3f4f7;
}
.film-play::before { content: ""; margin-left: 4px; border-left: 13px solid #0f0f10; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.film-text { display: grid; gap: 3px; min-width: 0; }
.film-title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.film-meta { font: 400 12.5px/1.4 var(--mono); color: var(--ink-3); letter-spacing: .03em; }
.film-arrow { margin-left: auto; color: var(--ink-2); transition: transform .25s var(--ease); }
.film-link:hover .film-arrow { transform: translateX(4px); }

/* ---------- where it fits: the five stages, this product's stage lit ----------
   Lit by brightness and weight only (white node, full ink, brighter frame) — never by hue. */
.stage-strip { display: grid; gap: 8px; counter-reset: none; }
.stage-strip li {
  position: relative;
  display: grid; grid-template-columns: 20px 1fr; column-gap: 14px; align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.012);
  color: var(--ink-3);
}
.stage-node {
  grid-row: 1 / span 4; align-self: start; margin-top: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  justify-self: center;
  border: 1.5px solid rgba(255,255,255,.28);
}
.stage-strip li > span:not(.stage-node) { grid-column: 2; }
.stage-num { font: 500 11.5px/1.3 var(--mono); letter-spacing: .04em; }
.stage-name { font-size: 16px; font-weight: 500; line-height: 1.25; color: var(--ink-2); }
.stage-tool { font: 400 12.5px/1.35 var(--mono); }
.stage-here {
  display: none;
  font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.stage-strip li.is-here {
  border-color: rgba(255,255,255,.5);
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 20px 50px -24px rgba(255,255,255,.35);
  color: var(--ink);
}
.stage-strip li.is-here .stage-node { background: #fff; border-color: #fff; box-shadow: 0 0 14px rgba(255,255,255,.8); }
.stage-strip li.is-here .stage-name { color: var(--ink); font-weight: 600; }
.stage-strip li.is-here .stage-here { display: block; }
.stage-strip li.is-here .stage-tool { color: var(--ink); }

@media (min-width: 760px) {
  .stage-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .stage-strip li { grid-template-columns: 1fr; align-content: start; row-gap: 6px; padding: 18px 18px 20px; min-height: 150px; }
  .stage-strip li > span:not(.stage-node) { grid-column: 1; }
  .stage-node { grid-row: auto; justify-self: start; margin: 0 0 10px; }
  /* hairline joining the stages, behind the nodes */
  .stage-strip li:not(:last-child)::after {
    content: ""; position: absolute; top: 25px; left: calc(18px + 14px + 6px); right: -11px; height: 1px;
    background: rgba(255,255,255,.14);
  }
}
.fits-note { margin-top: 24px; max-width: 42em; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.fits-note a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.fits-note a:hover { border-color: #fff; }

/* the "At a glance" pill in a heading line should not shift the heading */
.page-section .section-head .pill { transform: none; }

/* ---------- flow diagrams (AutoPrep, AutoDesign, AutoPremix) ----------
   Rows of nodes joined by a hairline arrow. Inputs are dashed, the result is a bright solid frame:
   the difference is shape and brightness, not hue. */
.shot.flow-shot { aspect-ratio: auto; padding: clamp(28px, 5vw, 52px) clamp(14px, 3vw, 40px); }
.flow { display: grid; justify-items: center; gap: 0; font: 400 clamp(11.5px, 1.5vw, 14px)/1.3 var(--mono); color: var(--ink-2); }
.flow-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fn {
  display: grid; gap: 3px; justify-items: center; text-align: center;
  padding: 8px 13px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .02);
}
.fn small { font-size: .82em; color: var(--ink-3); letter-spacing: .02em; }
.fn-in { border-style: dashed; border-color: rgba(255, 255, 255, .28); }
.fn-out { color: var(--ink); border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .07); padding: 11px 20px; }
.fn-out small { color: var(--ink-2); }
.fn-quiet { border-color: transparent; background: none; color: var(--ink-3); padding-top: 4px; padding-bottom: 4px; }
/* a vertical hairline with a head; its label hangs to the right so the line stays centred */
.flow-arrow {
  position: relative; width: 1px; height: clamp(38px, 5vw, 50px); margin: 6px 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.1), rgba(255,255,255,.6));
}
.flow-arrow::after {
  content: ""; position: absolute; bottom: -1px; left: -3px;
  border: 3.5px solid transparent; border-top: 5px solid rgba(255,255,255,.75); border-bottom: 0;
}
.flow-arrow span {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: .86em; color: var(--ink-3); white-space: nowrap;
}
@media (max-width: 599px) {
  .flow-arrow span { white-space: normal; width: max-content; max-width: 38vw; line-height: 1.25; }
}
/* compact flows inside the Products ledger: no arrow labels, shorter arrows */
.flow-sm .flow-arrow { height: 22px; margin: 5px 0; }
.flow-sm .flow-arrow span { display: none; }
.flow-sm { font-size: 11.5px; }
.flow-sm .fn { padding: 6px 10px; }
.flow-sm .fn-out { padding: 8px 14px; }

/* ---------- the DLM plug-ins: a quiet grid of names ---------- */
.plugin-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.plugin-grid li {
  display: grid; gap: 6px; padding: 18px 18px 20px;
  border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}
.plugin-grid .pg-by { font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.plugin-grid .pg-name { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.plugin-grid .pg-fmt { font: 400 12px/1.3 var(--mono); color: var(--ink-3); }
.plugin-foot { margin-top: 18px; color: var(--ink-3); font: 400 12.5px/1.5 var(--mono); }
