/* Homepage rules, loaded after workbench-site.css; adds rules, changes no shared rule. Shipped as
   assets/css/rpl-home.css (a copy written by tools/build_upcoming_preview.py --promote); this file serves the private
   preview upcoming/index.html, which build_deploy_package.py never ships. */

.offer-banner {
  padding: 8px 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
}

.offer-banner p {
  margin: 0;
}

/* The banner advertises the 14-day trial and links to its terms. */
.offer-banner a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.offer-banner a:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

.offer-banner a:focus-visible {
  outline-color: #fff;
}

/* ---------- Hero ----------
   One screen: text in the left 40 %, the computed flow picture in the right 60 %. From 1000 px wide the whole
   picture and both buttons sit inside a 1280 x 720 viewport under the banner and the header. */

.up-hero {
  padding: clamp(28px, 3vw, 40px) 0 clamp(44px, 5vw, 64px);
}

.up-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.up-hero-grid > * {
  min-width: 0;
}

.up-hero h1 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 2.7vw, 2.4rem);
  line-height: 1.07;
}

.up-hero .lead {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.5;
}

.up-hero .actions {
  margin-top: 20px;
  gap: 10px 12px;
}

.up-hero .btn {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 0.92rem;
}

.up-hero .hero-terms {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
}

/* The reference-check line sits directly under the terms line and shares its lower rule. */
.up-hero .hero-terms.hero-proof {
  margin-top: 0;
  border-top: 0;
}

.up-hero .hero-figure {
  margin: 0;
}

@media (min-width: 1000px) {
  .up-hero-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: clamp(28px, 3.4vw, 48px);
    align-items: center;
  }
}

/* Rendered CFD pictures: the frame's background is the render's own page colour, so no box edge shows. */
.up-hero .media-frame,
.media-frame.light-render {
  background: #efefef;
}

.media-frame.light-render img {
  background: #efefef;
}

/* ---------- Figure labels ---------- */

/* One short label line; the full provenance sits in a closed <details> under it. No figure numbers. */
.media-frame figcaption.fig-label::before {
  content: none;
  counter-increment: none;
}

.fig-details {
  margin-top: 3px;
}

.fig-details summary {
  display: inline;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}

.fig-details summary::-webkit-details-marker {
  display: none;
}

.fig-details summary::after {
  content: " +";
}

.fig-details[open] summary::after {
  content: " \2212";
}

.fig-details summary:hover {
  color: var(--signal);
}

.fig-details p {
  margin: 6px 0 2px;
  color: var(--text);
}

.fig-details code {
  font-size: 1em;
}

/* Label in front of a caption: what the picture is (app screenshot or render). */
.fig-kind {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Entry routes ---------- */

.route .media-frame {
  margin-bottom: 18px;
}

.route h3 {
  font-size: 1.3rem;
}

.route .route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  font-weight: 600;
}

.release-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 7px;
  border: 1px solid var(--rule-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* ---------- Iteration loop ---------- */

.loop-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 var(--head-space);
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 2px solid var(--rule);
}

.loop-steps li {
  padding: 14px 18px 0 0;
  counter-increment: step;
  font-size: 0.97rem;
}

.loop-steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.loop-steps strong {
  display: block;
  color: var(--ink);
}

/* Four figures in one grid, 2 x 2 from 760 px: every frame the same size (a 16:10 picture box and a caption
   block of fixed height), with the gaps of the route grid above. */
.loop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 34px;
  align-items: start;
}

@media (min-width: 760px) {
  .loop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.loop-figure {
  margin: 0;
  background: #f5f5f7;
}

.loop-figure picture {
  display: block;
  aspect-ratio: 16 / 10;
  background: #f5f5f7;
}

/* Screenshots: the whole window, letterboxed on the app's own window colour (#f5f5f7) so no band shows. */
.media-frame.loop-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f7;
}

/* The render fills its frame. */
.media-frame.loop-render img {
  object-fit: cover;
  background: #efefef;
}

/* Room for a two-line label and the "About this ..." line, so the four captions align while closed. */
.loop-figure figcaption {
  min-height: 80px;
}

.loop-note {
  max-width: 75ch;
  margin-top: var(--head-space);
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.55;
}

/* A picture that has not been captured yet: a neutral box, never a mock screen. */
.image-pending {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 24px;
  background: var(--paper-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

.image-pending strong {
  display: block;
  color: var(--ink);
}

/* ---------- Evidence ---------- */

.evidence-grid .card h3 a {
  text-decoration: none;
}

.tutorial-list {
  margin-top: 12px;
  padding-left: 1.1em;
  font-size: 0.97rem;
}

.tutorial-list li + li {
  margin-top: 6px;
}

/* ---------- Team row ---------- */

/* A logo file with wide empty margins is drawn larger (teams-preview.json display_scale); the file is unchanged. */
.team-wall img {
  transform: scale(var(--logo-scale, 1));
}

/* ---------- Start evaluating ---------- */

.eval-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 40px;
}

.eval-card {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--rule);
  padding-top: 16px;
}

.eval-card h3 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.eval-card .eval-sub {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.eval-card p,
.eval-card li {
  font-size: 0.97rem;
}

.eval-card > p {
  margin-top: 12px;
}

.eval-card dl {
  margin: 14px 0 0;
}

.eval-card dt {
  margin-top: 10px;
  color: var(--ink);
  font-weight: 600;
}

.eval-card dd {
  margin: 2px 0 0;
}

.eval-card .actions {
  margin-top: auto;
  padding-top: 24px;
}

/* ---------- Platform facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
}

.facts div {
  padding: 14px 0;
  border-top: 1px solid var(--rule-2);
}

.facts dt {
  color: var(--ink);
  font-weight: 600;
}

.facts dd {
  margin: 4px 0 0;
  font-size: 0.97rem;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .eval-grid,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .loop-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }
}

@media (max-width: 680px) {
  .loop-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}


.loop-steps li,
.loop-steps li + li {
  margin: 0;
}


