/*
   Projet : Spectra
   Auteur : Benoît Saint-Moulin
   Version : Spectra Scope 1.3.0 · Spectra Paint 1.5.8 · Spectra Review 1.1.4 · Spectra Workbench 1.0.4 (Spectra-GFX)
*/

/* ============================================================
   Spectra-GFX site
   White ground, dark text (2026-11-21: white text on black is hard to
   read), titles in the former Spectra orange, square corners,
   the system font.
   No web font, no gradient, no shadow, no entrance animation.
   ============================================================ */

/* --- Tokens ------------------------------------------------- */
:root {
  --bg:          #ffffff;
  --bg-raised:   #f6f6f6;
  --bg-bar:      #ffffff;
  --bg-sunken:   #f3f3f3;
  --line:        #dddddd;
  --line-strong: #b8b8b8;
  --text:        #1a1a1a;
  --text-soft:   #333333;
  --muted:       #555555;
  --muted-light: #6e6e6e;
  --accent:      #1a1a1a;
  --accent-2:    #000000;
  --title:       #EF6A00;   /* the Spectra orange, for the page and section titles */
  --title-ink:   #B84A00;   /* the same orange, darker, for small text and fills under white text (5:1 on white) */
  --ok:          #2e7d32;
  --warn:        #6b4e00;
  --err:         #b3261e;
  --ui:   "Segoe UI", system-ui, -apple-system, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", ui-monospace, "DejaVu Sans Mono", Menlo, monospace;
  --page: min(1160px, 94vw);
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: light; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }

a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--title-ink); }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

strong { color: inherit; font-weight: 600; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  overflow-wrap: break-word;
}
kbd { font-weight: 700; }

::selection { background: var(--title-ink); color: #fff; }

/* --- Topbar: a menu bar, like the applications' ------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(0.8rem, 3vw, 2rem);
  background: var(--bg-bar);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0.5rem 0;
}

.brand-icon { width: 24px; height: 24px; display: block; flex-shrink: 0; }
.brand-icon img { width: 24px; height: 24px; }

.brand-title {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.tab {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-soft);
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tab:hover { background: var(--bg-raised); color: #000; }

.tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* --- Layout ------------------------------------------------- */
main {
  width: var(--page);
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* --- Hero --------------------------------------------------- */
.hero { padding: clamp(2rem, 5vw, 3.2rem) 0 1.6rem; }

/* The product name above the title repeats the menu bar and the title itself. */
.kicker { display: none; }

.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
  color: var(--text);
  max-width: 22ch;
  margin-bottom: 1.1rem;
}

.hero h1 em { font-style: normal; color: var(--text); }

.lead {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1.02rem;
  max-width: 72ch;
  margin-bottom: 0.9rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

/* Buttons: the applications' own, flat and square */
.cta, .cta-ghost, .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  white-space: nowrap;
  cursor: pointer;
}

.cta, .btn-primary {
  background: var(--accent);
  color: var(--text);
  border: 1px solid var(--accent);
}

.cta:hover, .btn-primary:hover { background: var(--title-ink); border-color: var(--title-ink); color: #fff; }

/* A download button while builds are private: shown, never clickable */
.cta.is-disabled {
  background: transparent;
  color: var(--muted-light);
  border: 1px dashed var(--line-strong);
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
}

.cta-ghost {
  background: none;
  color: var(--text);
  border: 0;
  padding: 0.5rem 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.cta-ghost:hover { background: none; color: var(--title-ink); }

.hero-actions { column-gap: 1.6rem; row-gap: 0.2rem; }

.btn-primary:disabled { opacity: 0.5; cursor: default; }

/* --- Headings ----------------------------------------------- */
/* The small line above a section title repeats the title: not shown. */
.section-label { display: none; }

.label {
  color: var(--muted-light);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}

h4 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }

/* --- Section: a ruled block, not a floating card ------------- */
.panel-wrap {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 0.6rem;
  margin-top: 1.8rem;
}

.panel-wrap > * + * { margin-top: 1.4rem; }
.panel-wrap > .section-label + h2,
.panel-wrap > .section-label + h3 { margin-top: 0; }
.panel-wrap > h2 + .panel-intro,
.panel-wrap > h3 + .panel-intro { margin-top: 0.3rem; }
.panel-wrap > h2:first-child { margin-top: 0; }

.panel-intro {
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 76ch;
}

/* --- Feature items ------------------------------------------ */
.cards, .cards-3, .cards-4, .scope-grid, .industry-grid {
  display: grid;
  gap: 0 2rem;
}

.cards, .industry-grid { grid-template-columns: repeat(2, 1fr); }
.cards-3, .scope-grid  { grid-template-columns: repeat(3, 1fr); }
.cards-4               { grid-template-columns: repeat(4, 1fr); }

.cards > *, .cards-3 > *, .cards-4 > *, .scope-grid > *, .industry-grid > * { min-width: 0; }

.card, .scope-card, .industry-card {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0 1.15rem;
}

.card h3, .scope-card h4, .industry-card h4 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.card p, .scope-card p, .industry-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
  margin: 0;
}

/* Decorative pictograms: the text says it already. */
.card-icon, .scope-card-icon, .trust-icon, .trust-pillar-icon { display: none; }

.industry-tag {
  font-size: 0.78rem;
  color: var(--muted-light);
  margin-bottom: 0.2rem;
}

/* --- FAQ (native <details>) --------------------------------- */
.faq { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }

.faq-item { border-top: 1px solid var(--line); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.8rem 0.2rem;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text);
}

.faq-item summary:hover { color: #000; background: var(--bg-raised); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "+";
  flex: none;
  width: 1ch;
  font-family: var(--mono);
  color: var(--muted);
}

.faq-item[open] summary::before { content: "-"; }
.faq-item[open] summary { color: var(--title-ink); }

.faq-item p {
  margin: 0;
  padding: 0 0.2rem 1rem calc(1ch + 0.9rem);
  color: var(--text-soft);
  line-height: 1.68;
  font-size: 0.93rem;
  max-width: 86ch;
}

.faq-item p + p { margin-top: -0.4rem; }

/* --- Lists -------------------------------------------------- */
.feature-list, .trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.feature-list li, .trust-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.feature-list li::before, .trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background: var(--line-strong);
}

.step-list {
  padding-left: 1.5rem;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.93rem;
}

.step-list li { margin: 0.4rem 0; }

/* --- Format tags -------------------------------------------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.6rem; }

.tag {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  border: 1px solid var(--line);
  background: var(--bg-sunken);
  color: var(--text-soft);
}

/* --- Numbered steps ----------------------------------------- */
.pipeline-flow { display: flex; flex-direction: column; margin-top: 0.5rem; }

.pipeline-step {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.6rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 0.85rem 0 0.95rem;
}

/* !important: the About timeline sets pill geometry inline on these. */
.pipeline-step-num {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--muted);
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.pipeline-step-body h4 { margin-bottom: 0.2rem; }

.pipeline-step-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.62;
  margin: 0;
  max-width: 86ch;
}

/* --- The four applications ---------------------------------- */
.compare-grid {
  display: grid;
  gap: 2.4rem 3.2rem;
  grid-template-columns: repeat(2, 1fr);
}

.compare-card {
  padding: 0;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
}

.compare-card-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.compare-card h3 { font-size: 1.15rem; margin: 0; }

.compare-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.66;
  margin: 0;
}

.compare-card-footer { margin-top: auto; padding-top: 0.6rem; }

/* --- Local-only statement ----------------------------------- */
.trust-box {
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}

.trust-box-header { margin-bottom: 0.9rem; }
.trust-box-header h3 { margin: 0; }

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 1.6rem;
}

.trust-pillar { border-top: 1px solid var(--line-strong); padding-top: 0.6rem; }
.trust-pillar h4 { font-size: 0.92rem; }

.trust-pillar p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* --- Tables ------------------------------------------------- */
.matrix-wrap {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  /* x only: a format table is wider than a phone, and clipping both axes made
     the cut-off columns unreachable. */
  overflow-x: auto;
  overflow-y: hidden;
}

.feature-matrix {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-raised);
  font-size: 0.9rem;
}

.feature-matrix th {
  text-align: left;
  padding: 0.55rem 0.9rem;
  background: var(--bg-bar);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
}

.feature-matrix td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  line-height: 1.5;
  vertical-align: top;
}

.feature-matrix tr:last-child td { border-bottom: none; }
.feature-matrix tr:hover td { background: var(--bg-sunken); }

.check-yes { color: var(--text); font-weight: 600; }
.check-no  { color: var(--muted-light); }

/* --- Code block --------------------------------------------- */
.code-block {
  border: 1px solid var(--line);
  background: var(--bg-sunken);
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  margin-top: 0.8rem;
}

.code-block pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.65;
  white-space: pre;
}

.code-block code { background: none; border: 0; padding: 0; font-size: inherit; }

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.code-block-title { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.code-block-badge { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }

/* --- Inline "more" link ------------------------------------- */
.split-cta { margin-top: 0.7rem; }
.split-cta a { font-weight: 600; font-size: 0.92rem; }

/* --- Download cards ----------------------------------------- */
.download-card {
  border: 0;
  padding: 0;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.download-card h3 { font-size: 1.1rem; }

.download-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* --- Notes -------------------------------------------------- */
.repo-note {
  padding: 0.7rem 0.95rem;
  border-left: 2px solid var(--line-strong);
  background: var(--bg-raised);
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

.section-divider { height: 1px; background: var(--line); margin: 1.8rem 0; }

/* --- Screenshots -------------------------------------------- */
.screenshot-wrap { margin: 2.2rem 0; }

.screenshot-wrap img.screenshot {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #111;
  outline: 1px solid var(--line);
}

.screenshot-caption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted-light);
}

.hero-shot { margin: 0 0 1.6rem; }
.hero-notes .lead { max-width: 86ch; }

/* --- Bio ---------------------------------------------------- */
.bio-body {
  max-width: 72ch;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.bio-body p { color: var(--text-soft); line-height: 1.72; }

/* --- Contact form ------------------------------------------- */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.form-row label { font-size: 0.84rem; color: var(--muted); }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--bg-sunken);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: none; border-color: var(--accent); }

.form-row textarea { resize: vertical; min-height: 120px; }

/* Sending / sent / failed, under the form. Empty until there is something to say. */
.form-status {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.form-status:empty { display: none; }
.form-status.is-error { color: var(--err); }

.form-status.is-ok {
  color: var(--ok);
  border: 1px solid var(--ok);
  padding: 0.7rem 0.9rem;
}

/* Honeypot: off-canvas and not display:none, because some bots skip hidden fields. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Development status ------------------------------------- */
.dev-banner {
  padding: 0.45rem 1rem;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line);
  color: var(--warn);
  font-size: 0.85rem;
  text-align: center;
}

.dev-banner strong { color: inherit; }

.wip-badge {
  display: inline-block;
  margin: 0.6rem 0 0.2rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--warn);
  color: var(--warn);
  font-size: 0.8rem;
}

/* --- Footer ------------------------------------------------- */
.footer {
  width: var(--page);
  margin: 0 auto 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-left p { margin: 0.15rem 0; }

.footer-right { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.footer-right a { color: var(--muted); }
.footer-right a:hover { color: var(--title-ink); }

.tiny { font-size: 0.8rem; color: var(--muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .cards-4, .cards-3, .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-pillars { grid-template-columns: repeat(2, 1fr); gap: 1rem 1.6rem; }
}

@media (max-width: 860px) {
  .cards, .cards-3, .cards-4, .scope-grid, .industry-grid, .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { flex-direction: column; gap: 0; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * clamp(0.8rem, 3vw, 2rem)); padding: 0 clamp(0.8rem, 3vw, 2rem); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { font-size: 0.82rem; padding: 0.45rem 0.6rem; }
  .hero h1 { max-width: none; }
  .trust-pillars { grid-template-columns: 1fr; }
  .pipeline-step { grid-template-columns: 3.4rem 1fr; }
  .footer { flex-direction: column; gap: 0.8rem; }
}

/* --- Titles ------------------------------------------------ */
/* the page and section titles take the Spectra orange, which helps reading; the screenshots keep their own colours */
.hero h1, h2 { color: var(--title); }
.tab.is-active { border-bottom-color: var(--title); }

/* --- Body text is justified (2026-11-21) ---------------------- */
main p, main li { text-align: justify; hyphens: auto; }                /* at every width, like the other sites */
main td p, main th p, .footer p, .form-status, figcaption { text-align: left; hyphens: manual; }

/* hero: the four applications as boxed buttons, aligned on a grid */
.hero-actions .cta-ghost { background: var(--bg-bar); border: 1px solid var(--line-strong); padding: 0.5rem 1rem; text-decoration: none; justify-content: center; }
.hero-actions .cta-ghost:hover { background: var(--bg-raised); border-color: #777; color: #000; }
.hero-actions { gap: 0.6rem; }
@media (max-width: 560px) {
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .hero-actions .cta { grid-column: 1 / -1; justify-content: center; margin: 0; }
}

/* ============================================================
   Same corrections as the other sites (2026-11-24)
   ============================================================ */
/* text runs the full width, like the titles and the grids */
.lead, .panel-intro, .faq-item p, .pipeline-step-body p, .hero-notes .lead, .bio-body { max-width: none; }

/* buttons: orange fill, white text, 36 px high, square */
.cta, .btn-primary { background: var(--title-ink); border: 1px solid var(--title-ink); color: #fff; min-height: 36px; padding: 0.35rem 1.1rem; font-weight: 500; border-radius: 0; }
.cta:hover, .btn-primary:hover { background: #8f3a00; border-color: #8f3a00; color: #fff; }
.cta.is-disabled { background: transparent; color: var(--muted-light); border: 1px dashed var(--line-strong); }

/* shorter vertical rhythm */
main { padding-bottom: 2rem; }
.hero { padding: clamp(1.4rem, 4vw, 2.2rem) 0 1rem; }
.panel-wrap { padding-top: 1.5rem; margin-top: 1.2rem; }

/* grids that follow the item count: an odd count is three in a row, then one per row, never two and a lone one */
.cards:has(> :nth-child(odd):last-child), .industry-grid:has(> :nth-child(odd):last-child) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .cards-3, .scope-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .cards:has(> :nth-child(odd):last-child), .industry-grid:has(> :nth-child(odd):last-child), .cards-3, .scope-grid { grid-template-columns: 1fr; }
}

/* cards are boxes again: a thin frame, square corners, two by two or three by three like on the main bsm3d site */
.card, .scope-card, .industry-card, .compare-card, .download-card { border: 1px solid var(--line); padding: 1.25rem 1.5rem; background: var(--bg); }
.cards, .cards-3, .cards-4, .scope-grid, .industry-grid { gap: 1.5rem; }
.compare-grid { gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
.compare-grid:has(> :nth-child(odd):last-child) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .compare-grid, .compare-grid:has(> :nth-child(odd):last-child) { grid-template-columns: 1fr; } }

/* ============================================================
   Ergonomics pass (2026-11-25)
   ============================================================ */
/* reading text at 16px, captions and table heads at 14px */
.card p, .scope-card p, .industry-card p, .compare-card p, .faq-item p, .faq-item summary, .feature-list li, .trust-list li,
.step-list, .pipeline-step-body p, .feature-matrix, .download-card p, .repo-note, .trust-pillar p { font-size: 1rem; }
.screenshot-caption, .feature-matrix th { font-size: .875rem; }
/* a field under 16px makes Safari on iPhone zoom into the page */
.form-row input, .form-row select, .form-row textarea { font-size: 16px; }
/* touch screens: menu entries, buttons, fields and footer links tall enough for a finger */
@media (max-width: 1024px) {
    .tab, .cta, .cta-ghost, .btn-primary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .footer-right a { display: inline-flex; align-items: center; min-height: 44px; }
    .form-row input, .form-row select { min-height: 44px; }
}
/* the table of marks behind one line, closed until asked for */
.faq-item.marks { border-bottom: 1px solid var(--line); margin-top: .6rem; }
.faq-item.marks .matrix-wrap { margin-bottom: 1rem; }

/* --- 404 page: the text on the left, the Spectra illustration on the right --- */
.notfound { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding: clamp(1.4rem, 4vw, 2.2rem) 0 1rem; }
.notfound .hero { padding: 0; }
.notfound > img { width: 100%; height: auto; border: 1px solid var(--line); }
@media (max-width: 820px) { .notfound { grid-template-columns: 1fr; gap: 1.4rem; } }

/* --- phone: the menu on two full lines of four, nothing cut --- */
/* the applications on the first line, the rest on the second; the logo leads home */
@media (max-width: 640px) {
  .tabs { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; overflow: visible; margin: 0; padding: 0; }
  .tabs .tab[href$="index.html"] { display: none; }
  .tab { justify-content: flex-start; padding-left: 0; padding-right: 0; }
}

/* --- phone: the menu folds behind a button (2026-11-25) --- */
/* without JavaScript the button stays hidden and the menu keeps its two lines of four */
.menu-toggle { display: none; }
@media (max-width: 640px) {
  html.js .topbar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  html.js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; color: var(--text); cursor: pointer; }
  .menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-bars { display: none; }
  .menu-toggle[aria-expanded="true"] .i-close { display: block; }
  html.js .tabs { display: none; width: 100%; }
  html.js .tabs.is-open { display: grid; grid-template-columns: 1fr; justify-content: stretch; padding-bottom: .4rem; }
  html.js .tabs .tab[href$="index.html"] { display: inline-flex; }
  html.js .tabs .tab { font-size: 1rem; border-bottom: 1px solid var(--line); }
  html.js .tabs .tab.is-active { font-weight: 600; border-bottom-color: var(--line); }
  html.js .tabs .tab:last-child { border-bottom: 0; }
}

/* --- phone: less vertical space between the blocks (2026-11-26) --- */
@media (max-width: 640px) {
  main { padding-bottom: 0; }
  .hero { padding: .8rem 0 0; }
  .hero > :last-child { margin-bottom: 0; }
  .panel-wrap { padding: .7rem 0 0; margin-top: .7rem !important; }
  .panel-wrap > * + * { margin-top: .7rem; }
  .screenshot-wrap { margin: .7rem 0; }
  .section-divider { margin: .8rem 0; }
  .cards, .cards-3, .cards-4, .scope-grid, .industry-grid, .compare-grid { gap: .6rem; }
  .card, .scope-card, .industry-card, .compare-card, .download-card { padding: .7rem .85rem; }
  .split-cta, .panel-wrap > .split-cta { margin-top: .2rem !important; }
  .pipeline-step { padding-top: .5rem; padding-bottom: .5rem; }
  .code-block { margin-top: .6rem !important; margin-bottom: 0; }
  .footer { margin: .6rem auto 1rem; padding-top: .6rem; gap: .2rem; }
}

/* --- computer: less vertical space between the blocks (2026-11-26) --- */
@media (min-width: 641px) {
  main { padding-bottom: .6rem; }
  .hero { padding: 1.2rem 0 0; }
  .hero > :last-child { margin-bottom: 0; }
  .panel-wrap { padding: .9rem 0 0; margin-top: 1rem !important; }
  .panel-wrap > * + * { margin-top: .9rem; }
  .screenshot-wrap { margin: 1rem 0; }
  .section-divider { margin: 1rem 0; }
  .footer { margin-top: 1rem; }
}

/* six cards make two full lines of three (2026-11-26) */
@media (min-width: 861px) { .compare-grid:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); } }

/* contact (2026-11-26): the text on the left, the form on the right on a computer */
@media (min-width: 901px) {
  #contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); grid-template-rows: auto auto 1fr; column-gap: 3.5rem; }
  #contact > .section-label, #contact > h2, #contact > p { grid-column: 1; max-width: none !important; }
  #contact > #contact-form { grid-column: 2; grid-row: 1 / span 3; max-width: none !important; margin-top: 0; }
}

/* --- Home: one presentation picture, then one capture in each card (2026-11-27) --- */
.suite-hero { margin: .6rem 0 0; }
.suite-hero img { width: 100%; height: auto; }
.compare-card .card-shot { display: block; margin-bottom: .4rem; }
.compare-card .card-shot img { width: 100%; height: auto; }

/* Workbench: six short cards, two by two (2026-11-27) */
@media (min-width: 861px) { .compare-grid.pairs:has(> :nth-child(6):last-child) { grid-template-columns: repeat(2, 1fr); } }

/* the bridge script pages: the sections of the page in one row (2026-11-27) */
.page-index { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin-top: .6rem; }
.page-index a { min-height: 32px; display: inline-flex; align-items: center; }

/* demo videos: a text link in its section or a tile on the videos page, both open the YouTube player over the page */
.watch { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.6rem; }
.watch-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 36px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.watch-link svg { width: 24px; height: 24px; }
.watch-link:enabled > span { text-decoration: underline; text-underline-offset: 2px; }
.watch-link:disabled { color: var(--muted-light); cursor: default; }
.tiles { display: grid; gap: 1.1rem .6rem; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-tile { display: block; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.video-tile:disabled { cursor: default; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #1e1e1e; overflow: hidden; }
.tiles.three .thumb { aspect-ratio: 4 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { position: absolute; left: .7rem; bottom: .7rem; width: 40px; height: 40px; }
.video-tile:enabled:hover .thumb svg, .video-tile:enabled:focus-visible .thumb svg { transform: scale(1.12); }
.video-tile:disabled svg { display: none; }
.tile-title { display: block; margin-top: .35rem; font-size: .95rem; }
button[data-youtube]:enabled .video-soon { display: none; }
.video-popup { width: min(1160px, 94vw); max-width: 94vw; margin: auto; padding: 0; border: 1px solid #111; background: var(--bg); color: var(--text); }
.video-popup::backdrop { background: rgba(0, 0, 0, .72); }
.video-popup iframe { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 5rem); border: 0; background: #000; }
.video-popup-bar { display: flex; align-items: center; gap: 1.2rem; padding: .5rem .8rem; }
.video-popup-bar strong { margin-right: auto; }
.video-popup-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
@media (max-width: 640px) {
  .thumb svg { width: 36px; height: 36px; }
  .video-popup-bar { flex-wrap: wrap; gap: .4rem .8rem; }
}

/* --- product pages: title beside its text, one picture per section, a summary under the opening picture (2026-11-29) --- */
html { scroll-behavior: smooth; }
.panel-wrap, .trio > div { scroll-margin-top: 6rem; }
.hero h1 { max-width: none; }
.page-bar { display: flex; flex-wrap: wrap; gap: 0 1.4rem; margin-top: .6rem; padding: .2rem 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.page-bar a { display: inline-flex; align-items: center; min-height: 36px; font-size: .86rem; text-decoration: none; }
.page-bar .to-videos { margin-left: auto; font-weight: 600; }
.page-bar + .panel-wrap { border-top: 0; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .6rem 3rem; align-items: start; }
.head h2 { margin: 0; }
.head p + p { margin-top: .7rem; }
.head.alone { display: block; }
/* without JavaScript every picture of a section shows, one under the other */
.switch { display: none; flex-wrap: wrap; gap: 0 1.4rem; margin-bottom: .5rem; }
html.js .switch { display: flex; }
.switch button { min-height: 36px; padding: 0; background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-size: .9rem; color: var(--muted); cursor: pointer; }
.switch button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--title); }
.view[hidden] { display: none; }
.view + .view:not([hidden]) { margin-top: 1rem; }
.strip { display: block; width: 100%; padding: 0; border: 1px solid #111; background: #1e1e1e; overflow: hidden; cursor: zoom-in; }
.strip img { width: 100%; height: auto; }
.strip.cut { aspect-ratio: 1160 / 440; }
.strip.cut img { height: 100%; object-fit: cover; }
.view figcaption { margin-top: .4rem; font-size: .875rem; color: var(--muted-light); }
.whole { white-space: nowrap; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2.4rem; }
.trio h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.zoom { width: min(1600px, 96vw); max-width: 96vw; margin: auto; padding: 0; border: 1px solid #111; background: #1e1e1e; }
.zoom::backdrop { background: rgba(0, 0, 0, .78); }
.zoom img { width: 100%; height: auto; max-height: 94vh; object-fit: contain; cursor: zoom-out; }
/* clip instead of hidden lets the menu and the summary stay at the top while the page scrolls */
@media (min-width: 861px) {
  html, body { overflow-x: clip; }
  .page-bar { position: sticky; top: var(--bar, 45px); z-index: 90; }
}
@media (max-width: 860px) {
  .head, .trio, .tiles.two, .tiles.three { grid-template-columns: 1fr; }
  .page-bar .to-videos { margin-left: 0; }
  .strip.cut { aspect-ratio: 16 / 10; }
}
/* on a phone the in-page links are a long row that pushes the content down, so they go (2026-12-02) */
@media (max-width: 640px) {
  .page-bar { display: none; }
}
