/* ============================================================================
 * replica.css — the product replica system (V4).
 *
 * Rebuilds the embedded "screens" as real, responsive HTML/CSS DOM so the
 * marketing site shows the ACTUAL look and feel of the TechnoCenter product
 * (Poppins UI + JetBrains Mono data, product blue, blue->teal banners, stat
 * tiles, blue-header tables, kanban, coverage + severity bars, the Lumina
 * neon pill). Every rule is scoped under `.rep` so the product palette and
 * Poppins never leak into the marketing chrome (Space Grotesk / Figtree).
 *
 * Loaded after sections.css, before pages.css (see the page skeleton).
 * Tokens mirror products/technocenter/prototype/src/index.css; the shared
 * --rep-* tokens in tokens.css are extended here.
 *
 * Data shown inside replicas is neutral and representative — generic epics,
 * initials-only avatars, no client/competitor names, no dev chrome. Numbers
 * live only inside these surfaces, never as marketing claims in prose/alt.
 * ==========================================================================*/

.rep {
  /* type: product UI is Poppins; data/IDs/metrics are JetBrains Mono */
  font-family: 'Poppins', var(--font-body);
  --rep-font-mono: var(--font-mono);
  color: var(--rep-n700);
  background: var(--rep-n50);
  padding: clamp(14px, 3vw, 20px);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;

  /* ---- product palette (scoped) ---------------------------------------- */
  --rep-brand: #2563eb;   --rep-brand-600: #1d4ed8;   --rep-brand-700: #1b43be;
  --rep-brand-50: #eff4ff;
  --rep-accent: #14b8a6;  --rep-accent-700: #0f766e;  --rep-accent-100: #ccfbf1;
  --rep-lumina-a: #9333ea; --rep-lumina-b: #c026d3;   --rep-lumina-50: #fdf2ff;
  --rep-lumina-700: #86198f;

  /* cool-slate neutral scale. n500 carries most of the replica's secondary
     text and was 3.19:1 on n200; darkened to 4.54:1 there and 5.43:1 on white.
     n400 stays as-is — it is used for dots, arrows and borders, not text. */
  --rep-n0: #ffffff; --rep-n50: #f7f9fc; --rep-n100: #f1f4f9; --rep-n200: #e7ebf2;
  --rep-n300: #d4dae5; --rep-n400: #a6afc1; --rep-n500: #606a80; --rep-n600: #545e72;
  --rep-n700: #3a4356; --rep-n800: #232a3a; --rep-n900: #141a27;

  /* semantic (fg / soft bg). Each fg darkened just enough to clear 4.5:1 on
     its own soft bg — was success 3.00, warning 2.86, danger 3.95, info 4.24. */
  --rep-success: #11813a; --rep-success-bg: #dcfce7;
  --rep-warning: #a75c05;  --rep-warning-bg: #fef3c7;
  --rep-danger: #cc2121;   --rep-danger-bg: #fee2e2;
  --rep-info: #1d5dea;     --rep-info-bg: #dbeafe;

  /* item-type taxonomy (bg / fg). Every pair now clears 4.5:1. Was: epic 2.25,
     feature 3.82, subfeature 3.48, task 3.32, critical 2.86 (white on bg, so
     the bg moved instead). story and defect already passed and are unchanged. */
  --rep-epic-bg: #cff0e5;      --rep-epic-fg: #097753;
  --rep-feature-bg: #bea6ea;   --rep-feature-fg: #511cb4;
  --rep-story-bg: #e7d1e7;     --rep-story-fg: #922791;
  --rep-subfeature-bg: #bad6ff; --rep-subfeature-fg: #1450d5;
  --rep-task-bg: #ffc5dd;      --rep-task-fg: #ae215b;
  --rep-defect-bg: #fee2e2;    --rep-defect-fg: #b91c1c;
  --rep-critical-bg: #d53c63;  --rep-critical-fg: #ffffff;

  /* gradients / radius / shadow */
  /* Teal end darkened from #14b8a6. Every label on the banner and on the
     gradient stat tile is white — at 100% that was 2.49:1, and the 80/85%
     alpha sub-labels were 2.07-2.17:1. #0c6e64 clears 4.5:1 at all three
     alphas (6.09 / 4.89 / 4.53). Blue end unchanged. */
  --rep-grad-banner: linear-gradient(96deg, #1d4ed8 0%, #1e63c8 42%, #0c6e64 100%);
  --rep-rsm: 4px; --rep-rmd: 6px; --rep-rlg: 10px; --rep-rxl: 14px;
  --rep-sh-sm: 0 1px 2px rgba(20,26,39,.06);
  --rep-sh-md: 0 2px 10px rgba(20,26,39,.08);
}

/* When a replica sits inside a padded widget body, drop its own frame. */
.widget .wbody .rep { padding: 0; background: transparent; }

/* base helpers */
.rep .mono { font-family: var(--rep-font-mono); }
.rep .tnum { font-variant-numeric: tabular-nums; }
.rep h4, .rep h5 { color: var(--rep-n800); font-weight: 600; }
.rep .rep-stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------------------------------------------------------------------------
 * GRADIENT BANNER (prototype GradientBanner)
 * ------------------------------------------------------------------------- */
.rep-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--rep-grad-banner); color: #fff;
  border-radius: var(--rep-rxl); padding: 16px 20px;
}
.rep-banner__ic {
  width: 40px; height: 40px; border-radius: var(--rep-rlg); flex: none;
  background: rgba(255,255,255,.16); display: grid; place-items: center;
  font-size: 18px;
}
.rep-banner__main { flex: 1 1 200px; min-width: 0; }
.rep-banner__title { font-size: 16px; font-weight: 600; line-height: 1.2; }
.rep-banner__desc { font-size: 12px; color: rgba(255,255,255,.85); margin-top: 2px; }
.rep-banner__stat { text-align: right; }
.rep-banner__stat b { display: block; font-size: 22px; font-weight: 600; line-height: 1; }
/* .85 to match __desc: at .8 this label was 4.27:1 on the gradient's middle
   stop. .85 is the lowest alpha that clears 4.5:1 across all three stops. */
.rep-banner__stat small { font-size: 11px; color: rgba(255,255,255,.85); }
@media (max-width: 560px) {
  .rep-banner__stat { flex-basis: 100%; text-align: left; }
}

/* ---------------------------------------------------------------------------
 * STAT TILES (prototype StatTile)
 * ------------------------------------------------------------------------- */
.rep-tilegrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr)); }
.rep-tile {
  background: var(--rep-n0); border: 1px solid var(--rep-n200);
  border-radius: var(--rep-rxl); padding: 14px 16px;
}
.rep-tile__value { font-size: 24px; font-weight: 600; line-height: 1; color: var(--rep-n800); }
.rep-tile__label { font-size: 12px; color: var(--rep-n500); margin-top: 6px; }
.rep-tile__sub { font-size: 11px; color: var(--rep-n500); margin-top: 2px; }
.rep-tile--gradient { background: var(--rep-grad-banner); border-color: transparent; }
.rep-tile--gradient .rep-tile__value,
.rep-tile--gradient .rep-tile__label { color: #fff; }
.rep-tile--success .rep-tile__value { color: var(--rep-success); }
.rep-tile--warning .rep-tile__value { color: var(--rep-warning); }
.rep-tile--danger  .rep-tile__value { color: var(--rep-danger); }
.rep-tile--info    .rep-tile__value { color: var(--rep-info); }

/* ---------------------------------------------------------------------------
 * TAGS / BADGES (taxonomy + semantic; always label + colour, never colour only)
 * ------------------------------------------------------------------------- */
.rep-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; line-height: 1;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.rep-tag--epic      { background: var(--rep-epic-bg); color: var(--rep-epic-fg); }
.rep-tag--feature   { background: var(--rep-feature-bg); color: var(--rep-feature-fg); }
.rep-tag--story     { background: var(--rep-story-bg); color: var(--rep-story-fg); }
.rep-tag--subfeature{ background: var(--rep-subfeature-bg); color: var(--rep-subfeature-fg); }
.rep-tag--task      { background: var(--rep-task-bg); color: var(--rep-task-fg); }
.rep-tag--defect    { background: var(--rep-defect-bg); color: var(--rep-defect-fg); }
.rep-tag--critical  { background: var(--rep-critical-bg); color: var(--rep-critical-fg); }
.rep-tag--success   { background: var(--rep-success-bg); color: var(--rep-success); }
.rep-tag--warning   { background: var(--rep-warning-bg); color: var(--rep-warning); }
.rep-tag--danger    { background: var(--rep-danger-bg); color: var(--rep-danger); }
.rep-tag--info      { background: var(--rep-info-bg); color: var(--rep-info); }
.rep-tag--brand     { background: var(--rep-brand-50); color: var(--rep-brand-700); }

/* priority = dot + label */
.rep-prio { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--rep-n600); }
.rep-prio::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rep-n400); flex: none; }
.rep-prio--high::before { background: var(--rep-danger); }
.rep-prio--med::before  { background: var(--rep-warning); }
.rep-prio--low::before  { background: var(--rep-success); }

/* initials avatar (no names, no photos) */
.rep-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  font-size: 10px; font-weight: 600; color: var(--rep-brand-700);
  background: var(--rep-brand-50); border: 1px solid var(--rep-n200);
}

/* ---------------------------------------------------------------------------
 * DATA TABLE (prototype DataTable — solid blue header)
 * ------------------------------------------------------------------------- */
/* overflow-x:auto, not hidden: the 6 columns are all nowrap, so at 320-390px
   two to three of them (Priority / Status / Owner) were cut off with no
   scrollbar and no affordance. overflow-y stays clipped for the radius. */
.rep-tablewrap { border: 1px solid var(--rep-n200); border-radius: var(--rep-rlg); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; background: var(--rep-n0); }
.rep-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rep-table thead th {
  background: var(--rep-brand); color: #fff; text-align: left;
  font-weight: 600; font-size: 11px; padding: 9px 10px; white-space: nowrap;
}
.rep-table tbody td { padding: 11px 10px; border-top: 1px solid var(--rep-n200); color: var(--rep-n700); vertical-align: middle; }
.rep-table tbody tr:first-child td { border-top: none; }
.rep-table .rep-id { font-family: var(--rep-font-mono); color: var(--rep-brand-600); font-size: 11px; white-space: nowrap; }
.rep-table .rep-owner { display: inline-flex; align-items: center; gap: 6px; }
.rep-table__cap { padding: 8px 10px; font-size: 11px; color: var(--rep-n500); background: var(--rep-n50); border-top: 1px solid var(--rep-n200); }

/* ---------------------------------------------------------------------------
 * COVERAGE BAR (prototype CoverageBar)
 * ------------------------------------------------------------------------- */
.rep-cov { display: flex; flex-direction: column; gap: 6px; }
.rep-cov__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--rep-n600); }
.rep-cov__pct { font-weight: 600; }
.rep-cov--full  .rep-cov__pct { color: var(--rep-success); }
.rep-cov--part  .rep-cov__pct { color: var(--rep-warning); }
.rep-cov--none  .rep-cov__pct { color: var(--rep-danger); }
.rep-cov__track { height: 8px; border-radius: 999px; background: var(--rep-n200); overflow: hidden; }
.rep-cov__fill { height: 100%; border-radius: 999px; background: var(--rep-success); }
.rep-cov--part .rep-cov__fill { background: var(--rep-warning); }
.rep-cov--none .rep-cov__fill { background: var(--rep-danger); }

/* stacked coverage summary (covered / partial / none in one bar) */
.rep-covstack { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--rep-n200); }
.rep-covstack > span { display: block; height: 100%; }
.rep-covstack .cs-full { background: var(--rep-success); }
.rep-covstack .cs-part { background: var(--rep-warning); }
.rep-covstack .cs-none { background: var(--rep-danger); }
.rep-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--rep-n600); margin-top: 8px; }
.rep-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rep-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------------------------------------------------------------------------
 * DEFECT SEVERITY (prototype Defects severity rows)
 * ------------------------------------------------------------------------- */
.rep-sev { display: flex; flex-direction: column; gap: 8px; }
.rep-sev-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--rep-n200); border-radius: var(--rep-rxl);
  padding: 10px 14px; background: var(--rep-n0);
}
.rep-sev__lead { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.rep-sev__ic { width: 30px; height: 30px; border-radius: var(--rep-rlg); flex: none; display: grid; place-items: center; background: var(--rep-danger-bg); color: var(--rep-danger); font-size: 14px; }
.rep-sev__count { font-size: 18px; font-weight: 600; color: var(--rep-n800); }
.rep-sev__bars { display: flex; align-items: center; gap: 4px; flex: 1 1 160px; min-width: 140px; }
.rep-sev__seg { height: 8px; border-radius: 999px; flex-basis: 0; }
.rep-sev__seg--crit { background: var(--rep-critical-bg); }
.rep-sev__seg--high { background: var(--rep-danger); }
.rep-sev__seg--med  { background: var(--rep-warning); }
.rep-sev__seg--low  { background: var(--rep-success); }

/* ---------------------------------------------------------------------------
 * KANBAN BOARD (prototype SprintBoard) — the one intentional horizontal scroll
 * ------------------------------------------------------------------------- */
.rep-kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.rep-kanban::-webkit-scrollbar { height: 6px; }
.rep-kanban::-webkit-scrollbar-thumb { background: var(--rep-n300); border-radius: 999px; }
.rep-col { flex: 0 0 240px; background: var(--rep-n100); border-radius: var(--rep-rxl); padding: 10px; }
.rep-col__head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--rep-n700); margin-bottom: 10px; }
.rep-col__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rep-n400); flex: none; }
.rep-col__count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--rep-n500); background: var(--rep-n200); border-radius: 999px; padding: 1px 8px; }
.rep-col--todo  .rep-col__dot { background: var(--rep-n400); }
.rep-col--prog  .rep-col__dot { background: var(--rep-info); }
.rep-col--test  .rep-col__dot { background: var(--rep-warning); }
.rep-col--block .rep-col__dot { background: var(--rep-danger); }
.rep-col--done  .rep-col__dot { background: var(--rep-success); }

.rep-card {
  position: relative; background: var(--rep-n0); border: 1px solid var(--rep-n200);
  border-radius: var(--rep-rlg); padding: 10px 12px 10px 14px; box-shadow: var(--rep-sh-sm);
  margin-bottom: 8px;
}
.rep-card:last-child { margin-bottom: 0; }
.rep-card__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: var(--rep-rlg) 0 0 var(--rep-rlg); background: var(--rep-subfeature-bg); }
.rep-card--story  .rep-card__bar { background: #bfdbfe; }
.rep-card--task   .rep-card__bar { background: var(--rep-task-bg); }
.rep-card--defect .rep-card__bar { background: #f1b19c; }
.rep-card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rep-card__title { font-size: 12.5px; font-weight: 500; color: var(--rep-n800); line-height: 1.35; }
.rep-card__foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rep-card__pts { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--rep-brand-700); background: var(--rep-brand-50); border-radius: 999px; padding: 1px 8px; }

/* ---------------------------------------------------------------------------
 * ROADMAP (prototype ProductRoadmap — simple lanes / gantt)
 * ------------------------------------------------------------------------- */
.rep-roadmap { display: flex; flex-direction: column; gap: 8px; }
.rep-roadmap__cols { display: grid; grid-template-columns: 120px repeat(4, 1fr); font-size: 11px; color: var(--rep-n500); }
.rep-roadmap__cols span { padding: 0 6px; }
.rep-rm-row { display: grid; grid-template-columns: 120px repeat(4, 1fr); align-items: center; gap: 0; }
.rep-rm-row__label { font-size: 12px; color: var(--rep-n700); padding-right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-rm-row__track { grid-column: 2 / -1; position: relative; height: 26px; background: var(--rep-n100); border-radius: var(--rep-rmd); }
.rep-rm-bar { position: absolute; top: 4px; bottom: 4px; border-radius: var(--rep-rmd); display: flex; align-items: center; padding: 0 8px; font-size: 10px; font-weight: 500; color: #fff; overflow: hidden; }
.rep-rm-bar--blue  { background: var(--rep-brand); }
.rep-rm-bar--teal  { background: var(--rep-accent-700); }
.rep-rm-bar--epic  { background: var(--rep-epic-fg); }
.rep-rm-bar--story { background: var(--rep-story-fg); }

/* ---------------------------------------------------------------------------
 * LUMINA PANEL (prototype Lumina Review & Accept) — uses the global
 * .lumina-badge neon pill (components.css) for the mark.
 * ------------------------------------------------------------------------- */
.rep-panel { background: var(--rep-n0); border: 1px solid var(--rep-n200); border-radius: var(--rep-rxl); box-shadow: var(--rep-sh-md); overflow: hidden; padding: 0; }
.rep-panel__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--rep-n200); background: var(--rep-lumina-50); }
.rep-panel__by { font-size: 11px; color: var(--rep-lumina-700); font-weight: 500; }
.rep-panel__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.rep-panel__section { border-left: 3px solid var(--rep-lumina-a); background: var(--rep-lumina-50); border-radius: 0 var(--rep-rmd) var(--rep-rmd) 0; padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--rep-n800); }
.rep-panel__prompt { font-family: var(--rep-font-mono); font-size: 11.5px; color: var(--rep-n600); background: var(--rep-n50); border: 1px solid var(--rep-n200); border-radius: var(--rep-rmd); padding: 8px 10px; min-height: 1.4em; }
.rep-panel[data-lumina-demo] .rep-panel__prompt::after { content: "▍"; color: var(--rep-lumina-a); }
.rep-panel[data-lumina-demo].is-done .rep-panel__prompt::after { content: ""; }

/* Cross-module tabs inside a Lumina panel (In TechnoProduct / In TechnoTest). */
.rep-tabs { display: inline-flex; gap: 4px; background: var(--rep-n100); border-radius: 999px; padding: 3px; }
.rep-tab { border: none; background: none; font-family: inherit; font-size: 12px; font-weight: 500; color: var(--rep-n600); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.rep-tab[aria-selected="true"] { background: #fff; color: var(--rep-lumina-700); box-shadow: var(--rep-sh-sm); }
/* These are real buttons, so they need a real target on touch (was 29px). */
@media (pointer: coarse) {
  .rep-tab { min-height: 44px; }  /* was 29px */
  /* .rep-cta is a marketing link inside the replica, not product chrome. */
  .rep-cta { min-height: 44px; display: inline-flex; align-items: center; }
}
/* Stack the panes so switching tabs keeps the panel a stable height. */
/* Same stacked-pane trap as .widget .wpanes (sections.css). */
.rep-tabdeck { display: grid; grid-template-columns: minmax(0, 1fr); }
.rep-tabpane { grid-area: 1 / 1; visibility: hidden; min-width: 0; }
.rep-tabpane.is-active { visibility: visible; }

/* generated-content list */
.rep-artefacts { display: flex; flex-wrap: wrap; gap: 6px; }
.rep-artefacts .rep-tag { background: var(--rep-n100); color: var(--rep-n600); }

/* draft rows revealed by the lumina demo (lumina.js toggles .is-drafting/.is-done) */
.rep-draft {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--rep-n200); border-radius: var(--rep-rlg); background: var(--rep-n0);
  transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
/* Hidden only when JS can reveal it (lumina.js adds .is-drafting/.is-done). */
html.js .rep-draft { opacity: 0; }
.rep-panel.is-drafting .rep-draft,
.rep-panel.is-done .rep-draft { opacity: 1; transform: none; }
.rep-panel.is-drafting .rep-draft:nth-child(2) { transition-delay: .12s; }
.rep-panel.is-drafting .rep-draft:nth-child(3) { transition-delay: .24s; }
/* Static panels (no typing demo) show their drafts immediately. */
.rep-panel:not([data-lumina-demo]) .rep-draft { opacity: 1; transform: none; }
.rep-draft__main { flex: 1; min-width: 0; }
.rep-draft__title { font-size: 12.5px; font-weight: 500; color: var(--rep-n800); }
.rep-draft__meta { font-size: 11px; color: var(--rep-n500); margin-top: 3px; }
.rep-draft__acts { display: flex; gap: 6px; flex: none; }
.rep-act { width: 26px; height: 26px; border-radius: var(--rep-rmd); display: grid; place-items: center; border: 1px solid var(--rep-n200); background: var(--rep-n0); font-size: 12px; color: var(--rep-n500); }
.rep-act--accept { color: var(--rep-success); border-color: var(--rep-success-bg); background: var(--rep-success-bg); }
.rep-act--edit { color: var(--rep-info); }
.rep-act--reject { color: var(--rep-danger); }
@media (max-width: 480px) {
  .rep-draft { flex-wrap: wrap; }
  .rep-draft__acts { margin-left: 34px; }
}

/* ---------------------------------------------------------------------------
 * HERO composite (audience-neutral): module rail + the work journey.
 * Previews all three themes — modular platform, AI journey, Jira adaptability.
 * ------------------------------------------------------------------------- */
.rep-hero { display: flex; flex-direction: column; gap: 14px; }
.rep-modrail { display: flex; gap: 8px; flex-wrap: wrap; }
.rep-mod { display: inline-flex; align-items: center; gap: 8px; background: var(--rep-n0); border: 1px solid var(--rep-n200); border-radius: 999px; padding: 6px 12px 6px 8px; font-size: 12px; font-weight: 500; color: var(--rep-n700); }
.rep-mod__sq { width: 20px; height: 20px; border-radius: var(--rep-rmd); flex: none; }
.rep-mod--product .rep-mod__sq { background: linear-gradient(135deg, #f97316, #ef4444); }
.rep-mod--board   .rep-mod__sq { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.rep-mod--test    .rep-mod__sq { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.rep-mod--lumina  .rep-mod__sq { background: linear-gradient(135deg, var(--rep-lumina-a), var(--rep-lumina-b)); }

.rep-flow { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rep-flow__node { position: relative; background: var(--rep-n0); border: 1px solid var(--rep-n200); border-radius: var(--rep-rxl); padding: 12px 14px; box-shadow: var(--rep-sh-sm); }
.rep-flow__step { font-family: var(--rep-font-mono); font-size: 10px; font-weight: 600; color: var(--rep-brand-600); letter-spacing: .04em; }
.rep-flow__title { font-size: 13px; font-weight: 600; color: var(--rep-n800); margin-top: 2px; }
.rep-flow__desc { font-size: 11.5px; color: var(--rep-n500); margin-top: 2px; }
.rep-flow__node--ai { border-color: color-mix(in srgb, var(--rep-lumina-a) 40%, var(--rep-n200)); background: var(--rep-lumina-50); }
.rep-flow__arrow { display: grid; place-items: center; color: var(--rep-n400); font-size: 14px; }
@media (min-width: 620px) {
  .rep-flow { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
  .rep-flow__node--wide { grid-column: 1 / -1; }
}

/* Hero persona panes (swapped by the hero pills — product / QA / Jira). */
.rep-hero-pane { display: flex; flex-direction: column; gap: 12px; }
.rep-banner__ic svg { width: 20px; height: 20px; stroke: #fff; fill: none; }
.rep-line { display: flex; align-items: center; gap: 8px; }
.rep-line__t { flex: 1; min-width: 0; font-size: 12.5px; color: var(--rep-n700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-line__id { flex: none; font-family: var(--rep-font-mono); font-size: 11px; color: var(--rep-brand-600); }
.rep-cta { align-self: flex-start; margin-top: 2px; font-family: 'Poppins', var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--rep-brand-600); text-decoration: none; }
.rep-cta:hover { color: var(--rep-brand-700); text-decoration: underline; }

/* ---------------------------------------------------------------------------
 * JIRA two-way sync (adaptability): a work item moving board <-> TechnoCenter
 * ------------------------------------------------------------------------- */
.rep-sync { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.rep-sync__side { background: var(--rep-n0); border: 1px solid var(--rep-n200); border-radius: var(--rep-rxl); padding: 12px 14px; min-width: 0; }
.rep-sync__label { font-size: 11px; font-weight: 600; color: var(--rep-n500); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.rep-sync__label i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.rep-sync__side--jira .rep-sync__label i { background: var(--rep-brand); }
.rep-sync__side--tc .rep-sync__label i { background: var(--rep-accent); }
.rep-sync__arrows { display: grid; gap: 6px; color: var(--rep-brand); font-size: 16px; text-align: center; }
.rep-sync__note { grid-column: 1 / -1; font-size: 11px; color: var(--rep-n500); text-align: center; }
@media (max-width: 520px) {
  .rep-sync { grid-template-columns: 1fr; }
  .rep-sync__arrows { transform: rotate(90deg); }
}

/* The roadmap's 120px label column is 54% of the available row at 320px, so
   every lane label ellipsised away. Give the tracks room instead. */
@media (max-width: 560px) {
  .rep-roadmap__cols,
  .rep-rm-row { grid-template-columns: 76px repeat(4, 1fr); }
  .rep-rm-row__label { font-size: 11px; }
  .rep-roadmap__cols { font-size: 10px; }
}

/* ---------------------------------------------------------------------------
 * Reduced motion — freeze the demo reveal to its final state.
 * (The Lumina neon pill's own keyframes are already guarded in components.css.)
 * ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .rep-draft { transition: none; opacity: 1; transform: none; }
  .rep-panel__prompt::after { content: ""; }
}

/* Keep the Lumina wordmark in its standard gradient on the light replica cards,
   even when the card sits inside a dark section. */
.rep .lumina-word {
  background: linear-gradient(120deg, #9333ea, #c026d3);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  color: #a21caf;
}
