/* Reference visual/composition pass — 2026-09-07
   Layered after reference-theme.css.
   This pass intentionally changes composition and visual hierarchy only.
   No copy, links, navigation labels, or interactions are changed. */

:root {
  --ref-page-max: 1320px;
  --ref-soft-shadow: 0 12px 34px rgba(3, 24, 44, .075);
  --ref-hairline: #dce7f0;
}

/* ---- Global rhythm ----------------------------------------------------- */
.shell,
.pim-shell {
  width: min(var(--ref-page-max), calc(100% - 48px));
}

.pim-section { padding-block: 58px; }
.section-intro { max-width: 760px; }
.section-intro.pim-heading--center { margin-inline: auto; }

.pim-h1 {
  max-inline-size: 15.5ch;
  font-size: clamp(42px, 4.3vw, 62px);
  line-height: .96;
}

.pim-h2 {
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1;
}

.pim-h3 { line-height: 1.18; }

.pim-lede,
.pim-hero-support { line-height: 1.58; }

/* Deliberately flatter than the previous card system: the reference feels
   like an industrial product sheet, not a SaaS card catalogue. */
.pim-card,
.feature-panel,
.case-panel,
.pricing-grid .pim-plan,
.case-grid .pim-study,
.pim-contact {
  box-shadow: none;
}

/* ---- Header ------------------------------------------------------------ */
.site-header,
.pim-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav,
.pim-nav { margin-inline: auto; }
.header-actions { margin-left: 0; }

/* ---- Home: compact dark hero, reference-like data map ----------------- */
.home-hero.pim-flow {
  min-height: 540px;
  grid-template-columns: minmax(360px, .82fr) minmax(600px, 1.18fr);
  gap: clamp(28px, 4vw, 72px);
  padding-top: 44px;
  padding-bottom: 44px;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141,210,255,.36), transparent);
  pointer-events: none;
}

.home-hero .pim-flow-payoff {
  align-self: center;
  max-width: 520px;
}

.home-hero .pim-flow-payoff .pim-h1 {
  margin-bottom: 18px;
  max-width: 9.2ch;
  font-size: clamp(49px, 5vw, 72px);
}

.home-hero .pim-flow-payoff .pim-lede {
  max-width: 47ch;
  font-size: 15px;
  line-height: 1.65;
}

.home-hero .pim-actions { gap: 10px; }

.home-hero .pim-flow-stage {
  max-width: 770px;
  padding: 22px;
  border: 1px solid rgba(118, 196, 247, .24);
  border-radius: 6px;
  background:
    linear-gradient(rgba(51,151,222,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51,151,222,.07) 1px, transparent 1px),
    rgba(3, 22, 40, .38);
  background-size: 28px 28px;
  box-shadow: inset 0 0 44px rgba(20,125,205,.08);
}

.home-hero .pim-flow-node {
  min-width: 88px;
  border-color: rgba(108, 190, 245, .42);
  background: rgba(4, 31, 55, .93);
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}
.home-hero .pim-flow-node-icon { color: var(--ref-blue-300); }
.home-hero .pim-flow-node-label { color: #d9e9f6; }
.home-hero .pim-flow-line { stroke: rgba(56, 168, 242, .5); }
.home-hero .pim-flow-hub {
  border-color: rgba(93, 190, 251, .55);
  background: #062b49;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 0 28px rgba(21,148,232,.24);
}

/* ---- Home: the three steps become a clean editorial strip ------------ */
.workflow-section { background: #fff; }
.workflow-section .section-intro { margin-bottom: 22px; }
.workflow-section .section-intro .pim-h2 {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ref-blue-700);
}

.home-workflow-cards {
  gap: 0;
  border-top: 1px solid var(--ref-line);
  border-bottom: 1px solid var(--ref-line);
}

.home-workflow-card,
.home-workflow-card--ingest,
.home-workflow-card--enrich,
.home-workflow-card--publish {
  position: relative;
  min-height: 285px;
  padding: 30px 32px 24px;
  border: 0;
  border-right: 1px solid var(--ref-line);
  background: #fff;
}
.home-workflow-card:last-child { border-right: 0; }
.home-workflow-card .home-workflow-step {
  font-size: 54px;
  line-height: .9;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #9dcdf0;
}
.home-workflow-card .home-workflow-rule { width: 18px; margin: 13px 0 10px; }
.home-workflow-card .pim-h2 { font-size: 24px; }
.home-workflow-card > p {
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.6;
}
.home-workflow-card .home-workflow-visual {
  min-height: 62px;
  margin: 14px 0 0;
  place-items: center start;
}
.home-workflow-card .home-workflow-visual svg { width: 122px; height: 58px; }
.home-workflow-card .home-workflow-link { width: 36px; height: 30px; }

/* ---- Home: turn the software/people section into the dark product band -- */
.product-proof.product-section {
  overflow: hidden;
  color: #fff;
  border: 0;
  background:
    linear-gradient(90deg, #04192c 0%, #04192c 47%, #06243d 100%);
}

.product-proof .pim-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(0, 1.08fr);
  grid-template-rows: auto 1fr;
  gap: 24px 42px;
  min-height: 440px;
  padding-block: 42px;
}

.product-proof .pim-shell::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 356px;
  border: 1px solid rgba(133,203,249,.22);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(2,18,33,.08), rgba(2,18,33,.55)),
    url("../img/editorial/orvex-studio.webp") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.product-proof .section-intro {
  grid-column: 2;
  margin: 0;
  align-self: end;
}
.product-proof .section-intro .pim-eyebrow { color: #55baff; }
.product-proof .section-intro .pim-h2 { color: #fff; max-width: 12ch; }
.product-proof .section-intro > p { color: #aec5d8; max-width: 52ch; }

.product-proof .product-audiences {
  grid-column: 2;
  align-self: start;
  gap: 12px;
}
.product-proof .product-audiences .pim-card {
  min-height: 0;
  padding: 18px 20px;
  color: #fff;
  border-color: rgba(124, 194, 240, .22);
  background: rgba(5, 36, 61, .62);
}
.product-proof .product-audiences .pim-card::before { display: none; }
.product-proof .product-audiences .pim-card .pim-h3 { color: #fff; }
.product-proof .product-audiences .pim-card p { color: #abc2d5; }
.product-proof .product-audiences .pim-card-glyph {
  width: 36px;
  height: 36px;
  color: #80ceff;
  border-color: rgba(128,206,255,.26);
  background: rgba(11,80,126,.28);
}
.product-proof .product-audiences .pim-link { color: #75caff; }

/* ---- Features: left product-navigation rail + right application panels -- */
.site-page--features .feature-explorer { background: #f7fafc; }
.site-page--features .feature-explorer > .pim-shell.pim-withnav {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.site-page--features .feature-process-ribbon {
  position: sticky;
  top: 72px;
  z-index: 3;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--ref-line);
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--ref-soft-shadow);
}
.site-page--features .feature-process-ribbon ul {
  display: grid;
  gap: 2px;
}
.site-page--features .feature-process-ribbon li { min-width: 0; }
.site-page--features .feature-process-ribbon a {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #536b80;
  font-size: 12px;
}
.site-page--features .feature-process-ribbon a:hover {
  border: 0;
  color: var(--ref-blue-700);
  background: var(--ref-blue-100);
}
.site-page--features .feature-process-ribbon a .pim-icon { color: var(--ref-blue-700); }

.site-page--features .feature-sections { gap: 22px; }
.site-page--features .feature-panel {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--ref-line);
  border-top: 2px solid #9fcbea;
  border-radius: 5px;
  background: #fff;
}
.site-page--features .feature-panel .pim-feature-head {
  margin: 0;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--ref-line);
  background: linear-gradient(90deg, #fff, #f7fbfe);
}
.site-page--features .feature-panel .pim-feature-head .pim-card-glyph {
  width: 36px;
  height: 36px;
}
.site-page--features .feature-panel .pim-h2 { align-self: center; }
.site-page--features .feature-panel .pim-feature-body { padding: 18px 20px 20px; }
.site-page--features .pim-points-short--row {
  gap: 8px 22px;
  padding: 0 0 2px;
}
.site-page--features .pim-points-short--row li {
  font-size: 12px;
  line-height: 1.5;
}

/* Product screenshots read like the application, not marketing artwork. */
.site-page--features .pim-shot-frame,
.site-page--features .product-shot-frame {
  position: relative;
  padding: 22px 7px 7px;
  border: 1px solid #cbdce8;
  border-radius: 4px;
  background: #edf3f8;
  box-shadow: 0 12px 28px rgba(5,33,58,.08);
}
.site-page--features .pim-shot-frame::before,
.site-page--features .product-shot-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 10px;
  width: 26px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9cb5c8 0 20%, transparent 20% 40%, #9cb5c8 40% 60%, transparent 60% 80%, #9cb5c8 80%);
  opacity: .7;
}
.site-page--features .pim-shot-frame img,
.site-page--features .product-shot-frame img {
  border: 1px solid #d6e0e8;
  border-radius: 2px;
}
.site-page--features .pim-tech { margin: 0 20px 20px; }

/* ---- Agent: hero and live-looking operator panel ----------------------- */
.site-page--agent .agent-page-hero {
  padding-top: 48px;
  padding-bottom: 38px;
}
.site-page--agent .agent-page-hero .page-hero-copy {
  max-width: 880px;
}
.site-page--agent .agent-page-hero .pim-h1 { max-width: 11ch; }
.site-page--agent .agent-page-hero .pim-lede { max-width: 64ch; }

.site-page--agent .agent-console-area {
  padding-top: 28px;
  background: linear-gradient(180deg, #f3f8fc 0, #fff 220px);
}
.site-page--agent .agent-console-area > .pim-shell > .section-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  max-width: none;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ref-line);
}
.site-page--agent .agent-console-area > .pim-shell > .section-intro .pim-h2 {
  max-width: 14ch;
  font-size: clamp(28px, 3vw, 42px);
}

.site-page--agent .pim-console {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.site-page--agent .pim-console-rail { gap: 6px; top: 76px; }
.site-page--agent .pim-console-tab {
  min-height: 48px;
  padding: 7px 9px;
  border-radius: 4px;
  background: #fff;
}
.site-page--agent .pim-console-tab:has(.pim-console-radio:checked) {
  border-color: #9bcbea;
  background: #edf8ff;
}
.site-page--agent .pim-console-glyph {
  width: 30px;
  height: 30px;
  border-radius: 3px;
}
.site-page--agent .pim-console-name { font-size: 12px; }
.site-page--agent .pim-console-beta { color: #315f7e; background: #e9f5fd; border-radius: 3px; }

.site-page--agent .agent-run-panels .pim-console-panel,
.site-page--agent .pim-console-panels .pim-console-panel {
  padding: 5px;
  border-color: #bdd3e3;
  border-radius: 5px;
  background: #dfeaf2;
  box-shadow: 0 16px 34px rgba(5,33,58,.09);
}
.site-page--agent .pim-console-app { border-radius: 2px; }
.site-page--agent .pim-console-bar { background: #06233b; }
.site-page--agent .pim-agentline--tool {
  padding: 5px 7px;
  border-radius: 3px;
  color: #b9d6e9;
  background: #06243c;
}
.site-page--agent .pim-agentmsg--agent {
  background: #f8fafc;
  border-color: #dce5eb;
}
.site-page--agent .pim-console-thread { background: #fff; }

/* ---- Case index: compact resource-card rhythm from the reference ------- */
.site-page--cases .case-index .case-grid.pim-studies {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.site-page--cases .case-index .case-grid .pim-study {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 16px 18px;
  border-radius: 4px;
  overflow: hidden;
}
.site-page--cases .case-index .case-grid .pim-study .editorial-media {
  height: 150px;
  margin: 0 -16px 16px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ref-line);
  border-radius: 0;
  background: #edf3f7;
}
.site-page--cases .case-index .case-grid .pim-study .editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-page--cases .case-index .pim-study-head { gap: 9px; }
.site-page--cases .case-index .pim-study-head .pim-card-glyph { display: none; }
.site-page--cases .case-index .pim-study .pim-eyebrow { font-size: 9px; }
.site-page--cases .case-index .pim-study .pim-h3 { font-size: 16px; }
.site-page--cases .case-index .pim-study-headline {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ref-copy);
}
.site-page--cases .case-index .pim-study-link { margin-top: auto; padding-top: 14px; font-size: 12px; }

/* ---- Case detail: image becomes a deliberate hero plate --------------- */
.case-detail > .case-editorial {
  margin-top: 26px;
  margin-bottom: 18px;
}
.case-detail > .case-editorial .editorial-media {
  position: relative;
  max-width: 1120px;
  margin-inline: auto;
  padding: 12px;
  border-color: #d5e1ea;
  background:
    linear-gradient(rgba(71,139,195,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71,139,195,.04) 1px, transparent 1px),
    #f3f7fa;
  background-size: 30px 30px;
}
.case-detail > .case-editorial .editorial-media > img {
  width: 100%;
  height: clamp(320px, 43vw, 520px);
  max-height: none;
  object-fit: contain;
  background: #fff;
}
.case-detail > .case-editorial figcaption { margin: 7px 2px 0; }

.case-detail .case-explorer { background: #fff; }
.case-detail .case-panel {
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
}
.case-detail .case-panel .pim-feature-head {
  margin: 0;
  padding: 18px 20px 14px;
  background: #f8fbfd;
}
.case-detail .case-panel .pim-feature-body { padding: 20px; }

/* ---- Trust: combine the opening copy and security visual --------------- */
.security-page {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  align-items: stretch;
}
.security-page > .page-hero {
  grid-column: 1;
  min-height: 410px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ref-line);
  background: #fff;
}
.security-page > .page-hero .page-hero-copy {
  width: auto;
  max-width: 630px;
  margin: 0 0 0 max(24px, calc((100vw - var(--ref-page-max)) / 2));
  padding-right: 38px;
}
.security-page > .page-hero .pim-h1 { color: var(--ref-ink); max-width: 11ch; }
.security-page > .page-hero .pim-lede,
.security-page > .page-hero .pim-hero-support { color: var(--ref-copy); }
.security-page > .trust-editorial {
  grid-column: 2;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 42px max(24px, calc((100vw - var(--ref-page-max)) / 2)) 42px 0;
  border-bottom: 1px solid var(--ref-line);
  background: #fff;
}
.security-page > .trust-editorial .editorial-media {
  height: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  background: #edf4fa;
}
.security-page > .trust-editorial .editorial-media img {
  width: 100%;
  height: 100%;
  max-height: 326px;
  object-fit: cover;
}
.security-page > .security-controls,
.security-page > .security-audit,
.security-page > .closing-cta { grid-column: 1 / -1; }

/* ---- Pricing: cleaner, almost tabular plans ---------------------------- */
.site-page--pricing .pricing-plans { padding-top: 42px; }
.site-page--pricing .pricing-grid { gap: 0; border: 1px solid var(--ref-line); border-radius: 5px; overflow: hidden; }
.site-page--pricing .pricing-grid .pricing-card.pim-plan {
  border: 0;
  border-right: 1px solid var(--ref-line);
  border-radius: 0;
  padding: 28px 24px 24px;
}
.site-page--pricing .pricing-grid .pricing-card.pim-plan:last-child { border-right: 0; }
.site-page--pricing .pricing-grid .pricing-card.pim-plan--featured {
  position: relative;
  border: 0;
  border-right: 1px solid #a6d2ef;
  background: linear-gradient(180deg, #edf8ff 0, #fff 46%);
}
.site-page--pricing .pricing-grid .pricing-card.pim-plan--featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--ref-blue-600);
}
.site-page--pricing .pricing-grid .pim-plan-price {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -.055em;
}

/* ---- Bring-file / contact areas: more like clean form panels ---------- */
.bring-file .pim-grid,
.pim-bring .pim-grid { gap: 12px; }
.bring-file .pim-card,
.pim-bring .pim-card { padding: 20px; }
.bring-file .pim-card::before,
.pim-bring .pim-card::before { height: 2px; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
  .home-hero.pim-flow {
    grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
    gap: 28px;
  }
  .product-proof .pim-shell {
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  }
  .site-page--cases .case-index .case-grid.pim-studies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .security-page { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .shell,
  .pim-shell { width: min(100% - 32px, var(--ref-page-max)); }

  .home-hero.pim-flow { display: flex; padding-top: 46px; }
  .home-hero .pim-flow-stage { padding: 14px; }

  .home-workflow-cards { grid-template-columns: 1fr; }
  .home-workflow-card,
  .home-workflow-card:last-child {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--ref-line);
  }
  .home-workflow-card:last-child { border-bottom: 0; }

  .product-proof .pim-shell {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .product-proof .pim-shell::before,
  .product-proof .section-intro,
  .product-proof .product-audiences { grid-column: 1; grid-row: auto; }
  .product-proof .pim-shell::before { min-height: 320px; }

  .site-page--features .feature-explorer > .pim-shell.pim-withnav {
    display: block;
  }
  .site-page--features .feature-process-ribbon {
    position: static;
    margin-bottom: 18px;
    overflow: hidden;
  }
  .site-page--features .feature-process-ribbon ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  /* The li is the flex item, not the a, and it carries min-width: 0 from the
     grid layout above -- so without this it shrinks below its own nowrap
     anchor and the chips overlap each other instead of scrolling. English
     labels happened to fit the rail and hid it; the Bulgarian ones ("Приемане
     на данни" for "Data in") are ~70% longer and do not. */
  .site-page--features .feature-process-ribbon ul > li { flex: 0 0 auto; }
  .site-page--features .feature-process-ribbon a { width: auto; white-space: nowrap; }

  .site-page--agent .pim-console { grid-template-columns: 1fr; }
  .site-page--agent .pim-console-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-page { display: block; }
  .security-page > .page-hero { min-height: 0; }
  .security-page > .page-hero .page-hero-copy {
    width: min(100% - 32px, var(--ref-page-max));
    max-width: none;
    margin-inline: auto;
    padding-right: 0;
  }
  .security-page > .trust-editorial {
    width: min(100% - 32px, var(--ref-page-max));
    padding: 24px 0 34px;
    margin-inline: auto;
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .pim-section { padding-block: 44px; }
  .home-hero .pim-flow-payoff .pim-h1 { font-size: 46px; }
  .home-hero .pim-flow-stage { display: none; }

  .product-proof .pim-shell::before { min-height: 250px; }
  .product-proof .product-audiences { grid-template-columns: 1fr; }

  .site-page--features .feature-panel .pim-feature-head,
  .site-page--features .feature-panel .pim-feature-body,
  .case-detail .case-panel .pim-feature-head,
  .case-detail .case-panel .pim-feature-body { padding-left: 14px; padding-right: 14px; }

  .site-page--agent .pim-console-rail { grid-template-columns: 1fr; }
  .site-page--agent .agent-console-area > .pim-shell > .section-intro { display: block; }

  .site-page--cases .case-index .case-grid.pim-studies { grid-template-columns: 1fr; }
  .case-detail > .case-editorial .editorial-media > img { height: 280px; }

  .site-page--pricing .pricing-grid { display: grid; border: 0; gap: 12px; overflow: visible; }
  .site-page--pricing .pricing-grid .pricing-card.pim-plan,
  .site-page--pricing .pricing-grid .pricing-card.pim-plan--featured {
    border: 1px solid var(--ref-line);
    border-radius: 4px;
  }
}
