/* BenchBase landing page. Centered hero, soft panels, whitespace between sections. */

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(3.2rem, 8vw, 6rem) var(--gutter) clamp(4.5rem, 10vw, 7.5rem);
}
/* the background picture; --hero-blur softens its pixel mosaic (set 0 to keep it sharp) */
.hero { --hero-blur: 10px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -3rem; z-index: -2; pointer-events: none;
  background: url("assets/hero.jpg") center bottom / cover no-repeat;
  filter: blur(var(--hero-blur));
}
.hero::after {  /* fade the picture into the page below */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6rem; z-index: -1; pointer-events: none;
  background: linear-gradient(rgb(255 255 255 / 0), #fff);
}
.hero .code { background: rgb(255 255 255 / 0.72); backdrop-filter: blur(12px); }
.hero-copy { position: relative; z-index: 1; }
.hero-specimen { padding: 0 var(--gutter); }
.hero-copy { max-width: 44rem; margin: 0 auto; }
.hero h1 { font-size: var(--step-4); margin: 0 0 1.4rem; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 33rem; margin: 0 auto 2rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0 0 2rem; }
.install { max-width: 33rem; margin: 0 auto 0.9rem; text-align: left; }
.hero-foot { margin: 0; }

/* the report specimen: a real result, set in a soft panel */
.specimen { margin: 0 auto; max-width: 40rem; text-align: left; background: var(--paper-2); border-radius: 18px; }
.specimen-tag {
  display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; align-items: baseline; justify-content: space-between;
  padding: 1.1rem 1.4rem 0; font: 500 0.82rem/1.3 var(--sans); color: var(--ink-2); margin: 0;
}
.specimen-body { padding: 0.9rem 1.4rem 1.3rem; }
.stat-lead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; }
.stat-label { font: 500 0.82rem/1 var(--sans); color: var(--ink-2); }
.stat-value { font: 500 3rem/1 var(--sans); letter-spacing: -0.04em; }
.stat-unit { font-size: 1.4rem; color: var(--ink-3); margin-left: 0.06em; }
.stat-sub { font-size: 0.8rem; color: var(--ink-2); }
.specimen-model { margin: 0.5rem 0 1.1rem; }
.specimen-foot { margin: 0; }
table.mini { border-collapse: collapse; width: 100%; font-size: 0.86rem; font-variant-numeric: tabular-nums; margin: 0 0 0.9rem; }
table.mini th { font: 500 0.75rem/1.3 var(--sans); color: var(--ink-3); text-align: right; padding: 0 0 0.4rem; border-bottom: 1px solid var(--rule-2); }
table.mini th:first-child { text-align: left; }
table.mini td { padding: 0.42rem 0; text-align: right; border-bottom: 1px solid var(--rule-2); }
table.mini td:first-child { text-align: left; }
table.mini tbody tr:last-child td { border-bottom: 0; }

/* ---------- bands ---------- */
.band { max-width: 62rem; margin: 0 auto; padding: clamp(3.2rem, 7vw, 5.5rem) var(--gutter) 0; }
.section-head { max-width: 38rem; margin: 0 auto 2.6rem; text-align: center; }
.band h2 { font-size: var(--step-3); margin: 0 0 0.9rem; }
.section-lede { font-size: var(--step-0); line-height: 1.58; color: var(--ink-2); margin: 0; }
.band h3 { font-size: 1.05rem; margin: 0 0 0.45rem; letter-spacing: -0.01em; }
.band .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.band .cols p { margin: 0; font-size: 0.95rem; line-height: 1.6; }
figure.half { max-width: 34rem; margin-left: auto; margin-right: auto; }

/* ---------- diagram: typographic ---------- */
.diagram { background: var(--paper-2); border-radius: 18px; padding: clamp(1.3rem, 3vw, 2.2rem); margin-bottom: 2.6rem; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: clamp(0.6rem, 1.6vw, 1.2rem); align-items: start; }
.flow-col { min-width: 0; }
.flow-label { font: 500 0.78rem/1 var(--sans); color: var(--ink-3); margin: 0 0 0.8rem; }
.flow-list { list-style: none; margin: 0; padding: 0; font-size: 0.82rem; line-height: 1.85; color: var(--ink-2); }
.flow-list li { border-bottom: 1px solid var(--rule-2); padding: 0.06rem 0; }
.flow-list li:last-child { border-bottom: 0; }
.flow-node { font-size: 0.82rem; font-weight: 500; white-space: nowrap; color: var(--c-fg, var(--ink)); background: var(--c-bg, #fff); border-radius: 999px; display: inline-block; padding: 0.34rem 0.8rem; margin: 0 0 0.6rem; }
.flow-note { margin: 0; color: var(--ink-2); line-height: 1.5; }
.flow-line { width: clamp(1.1rem, 2.4vw, 2.1rem); height: 1px; background: var(--rule-2); margin-top: 2.4rem; position: relative; }
.flow-line::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-right: 1px solid var(--rule-2); border-top: 1px solid var(--rule-2); transform: rotate(45deg); }

/* ---------- receipts ---------- */
.receipt { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2rem; align-items: start; }
.receipt-code { margin: 0; }
.receipt-code pre { padding: 0.7rem 1.1rem 1.1rem; font-size: 0.8rem; line-height: 1.75; }
.annotations { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.annotations li { padding-top: 0.9rem; border-top: 1px solid var(--rule); font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); display: grid; gap: 0.3rem; margin: 0; }
.annotations li:first-child { border-top: 0; padding-top: 0; }
.annotations .mono { justify-self: start; font-size: 0.76rem; padding: 0.16rem 0.6rem; border-radius: 999px; background: var(--c-bg, var(--gray-bg)); color: var(--c-fg, var(--gray-fg)); }
.annotations li:nth-child(1) .mono { --c-bg: var(--blue-bg);   --c-fg: var(--blue-fg); }
.annotations li:nth-child(2) .mono { --c-bg: var(--purple-bg); --c-fg: var(--purple-fg); }
.annotations li:nth-child(3) .mono { --c-bg: var(--orange-bg); --c-fg: var(--orange-fg); }
.annotations li:nth-child(4) .mono { --c-bg: var(--green-bg);  --c-fg: var(--green-fg); }
.annotations li:nth-child(5) .mono { --c-bg: var(--pink-bg);   --c-fg: var(--pink-fg); }

/* the six sources each get a Notion colour dot */
.flow-col:first-child .flow-list li { display: flex; align-items: center; gap: 0.6rem; }
.flow-col:first-child .flow-list li::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--dot, var(--gray)); }
.flow-col:first-child .flow-list li:nth-child(1) { --dot: var(--blue); }
.flow-col:first-child .flow-list li:nth-child(2) { --dot: var(--green); }
.flow-col:first-child .flow-list li:nth-child(3) { --dot: var(--orange); }
.flow-col:first-child .flow-list li:nth-child(4) { --dot: var(--purple); }
.flow-col:first-child .flow-list li:nth-child(5) { --dot: var(--pink); }
.flow-col:first-child .flow-list li:nth-child(6) { --dot: var(--red); }

/* ---------- run ---------- */
.run-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { margin: 0 0 1rem; }
.step-label { display: block; font: 500 0.82rem/1 var(--sans); color: var(--ink-3); margin-bottom: 0.5rem; }
.step-label.tag { display: inline-block; }
.steps .code { margin: 0; }
.run-side p { font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); }
.run-side p:last-child { margin-bottom: 0; }


/* ---------- responsive ---------- */
@media (max-width: 62rem) {
  .flow { grid-template-columns: 1fr; gap: 1.1rem; }
  .flow-line { display: none; }
  .flow-list li { border-bottom: 0; }
  .band .cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .receipt, .run-grid { grid-template-columns: 1fr; }
}
