.tools-document { scroll-padding-top: 0; }

body.tools-page {
  --tools-ink: #ecebe5;
  --tools-muted: #b8b0a4;
  --tools-gold: #c4aa85;
  --tools-edge: 32px;
  --tools-header: 64px;
  display: block;
  background: #111110;
  color: var(--tools-ink);
}

.tools-page .block_4 { background-color: rgba(12, 11, 10, .9); }
.tools-main {
  position: relative;
  isolation: isolate;
  padding-top: var(--tools-header);
  overflow: clip;
  background:
    radial-gradient(ellipse 67% 28% at 15% 13%, #29221a 0%, transparent 90%),
    radial-gradient(ellipse 75% 30% at 91% 49%, #142b37 0%, transparent 86%),
    radial-gradient(ellipse 74% 31% at 15% 88%, #242138 0%, transparent 90%),
    linear-gradient(164deg, #121211 0%, #101417 43%, #11111a 83%, #111110 100%);
}

.tools-shell { width: min(calc(100% - var(--tools-edge) * 2), 1440px); margin-inline: auto; }

.tools-page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}

.tools-page #lang_toggle:focus-visible { outline: 1px solid var(--tools-gold); outline-offset: -3px; border-radius: 4px; }

.tools-product {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - var(--tools-header) - clamp(36px, 7vh, 76px));
  min-height: calc(100svh - var(--tools-header) - clamp(36px, 7svh, 76px));
  padding-block: clamp(36px, 4.4vw, 64px);
  scroll-margin-top: var(--tools-header);
}

.tools-pillow { --tools-light: 154 126 57; }
.tools-canvas { --tools-light: 49 132 151; }
.tools-bibi { --tools-light: 104 72 153; }

.tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(28px, 5.6vw, 96px);
}

/* The original product art and the translated copy are independent. */
.tools-canvas {
  grid-template-rows: auto auto;
  align-content: center;
  row-gap: clamp(12px, 1.4vw, 20px);
}

.tools-highlights {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.tools-highlight {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(166, 189, 195, .14);
  border-radius: 10px;
  background: rgba(12, 17, 20, .76);
}

.tools-highlight img {
  display: block;
  width: 100%;
  height: auto;
}

.tools-highlight h3 {
  margin: 0;
  color: var(--tools-ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.tools-highlight p {
  margin: 4px 0 0;
  color: var(--tools-muted);
  font-size: 12px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.tools-copy { max-width: 540px; }
.tools-product-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--tools-ink);
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}

.tools-product-name img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.tools-headline {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 56px);
  line-height: 1.16;
  letter-spacing: -.025em;
  font-weight: 500;
  text-wrap: balance;
}

.tools-intro {
  text-wrap: balance;
  margin: 20px 0 0;
  color: var(--tools-muted);
  font-size: 16px;
  line-height: 26px;
}

html[lang="en"] .tools-headline { font-size: clamp(32px, 3.4vw, 52px); }

.tools-visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
  margin: 0;
}

.tools-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18% -16% -14%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 14% at 50% 76%, rgb(var(--tools-light) / .16), transparent 100%),
    radial-gradient(ellipse 48% 48% at 48% 47%, rgb(var(--tools-light) / .18), transparent 100%);
}

.tools-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.tools-layout--visual-first { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.tools-layout--visual-first .tools-visual { grid-column: 1; grid-row: 1; }
.tools-layout--visual-first .tools-copy { grid-column: 2; grid-row: 1; }

@media (min-width: 900px) and (max-width: 1140px) {
  .tools-page .site-nav { gap: 4px; }
  .tools-page .site-nav .site-nav-link { padding-inline: 8px; }
}

@media (min-width: 900px) and (max-width: 975px) {
  .tools-page .site-nav { gap: 0; }
  .tools-page .site-nav .site-nav-link { padding-inline: 4px; }
}

@media (max-width: 760px) {
  body.tools-page { --tools-edge: 20px; }
  .tools-product { min-height: 0; padding-block: 36px; }
  .tools-layout,
  .tools-layout--visual-first { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tools-layout--visual-first .tools-copy,
  .tools-layout--visual-first .tools-visual { grid-column: auto; grid-row: auto; }
  .tools-intro { margin-top: 14px; }
  .tools-product-name { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .tools-layout.is-entering .tools-visual {
    animation: tools-arrive .78s cubic-bezier(.21, .67, .34, 1) both;
  }

  .tools-layout.is-entering .tools-copy {
    animation: tools-arrive .64s .09s cubic-bezier(.21, .67, .34, 1) both;
  }
}

@keyframes tools-arrive {
  from { opacity: .78; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}


@media (max-width: 1050px) {
  .tools-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 740px) {
  .tools-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tools-highlight { grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 10px; }
}

@media (max-width: 355px) {
  .tools-highlights { grid-template-columns: minmax(0, 1fr); }
  .tools-highlight { grid-template-columns: 52px minmax(0, 1fr); }
}

.tools-bibi {
  grid-template-rows: auto auto;
  align-content: center;
  row-gap: clamp(24px, 3.3vw, 48px);
}

.bibi-workflow > header { text-align: center; }

.bibi-workflow h3 {
  margin: 0;
  color: var(--tools-ink);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  font-weight: 500;
}

.bibi-workflow > header p {
  margin: 8px 0 0;
  color: var(--tools-muted);
  font-size: 14px;
  line-height: 22px;
}

.bibi-workflow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.bibi-workflow-card {
  position: relative;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(196, 180, 218, .16);
  border-radius: 10px;
  background: rgba(22, 19, 30, .68);
}

.bibi-workflow-card::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 16px;
  border-left: 1px dotted rgba(205, 190, 232, .35);
}

.bibi-workflow-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.bibi-workflow-card h4 img { display: block; object-fit: contain; opacity: .9; }

.workflow-graphic {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 54px;
  max-width: 158px;
}

.workflow-brief-lines {
  display: grid;
  gap: 4px;
}

.workflow-brief-lines i {
  width: 72%;
  height: 2px;
  border-radius: 4px;
  background: rgba(229, 219, 245, .27);
}

.workflow-brief-lines i:nth-child(2) { width: 58%; }
.workflow-brief-lines i:nth-child(3) { width: 65%; }

.workflow-crew,
.workflow-shot-cells { display: flex; gap: 5px; }

.workflow-crew img {
  border-radius: 50%;
  object-fit: cover;
  width: 19px;
  height: 19px;
}

.workflow-script {
  display: flex;
  align-items: center;
  gap: 0;
}

.workflow-script-start {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(184, 167, 237, .35);
}

.workflow-script-start::after {
  content: "";
  border: 3px solid transparent;
  border-left: 5px solid rgba(236, 235, 229, .86);
  border-right: 0;
  margin-left: 2px;
}

.workflow-script-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 8px;
  width: min(77%, 115px);
  padding: 4px 6px;
  border-block: 1px solid rgba(211, 197, 245, .28);
}

.workflow-script-branches i {
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(222, 211, 249, .22);
  background: rgba(201, 185, 246, .13);
}

.workflow-visuals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.workflow-visuals img,
.workflow-delivery img {
  display: block;
  width: 100%;
  min-width: 0;
  border-radius: 3px;
  object-fit: cover;
}

.workflow-visuals img { height: 48px; }

.workflow-shot-cells img {
  width: min(21%, 26px);
  height: 24px;
  object-fit: contain;
  padding: 3px;
  border: 1px solid rgba(208, 195, 241, .14);
  border-radius: 3px;
  background: rgba(227, 219, 241, .05);
}

.workflow-progress {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, #b9a6f6 61%, rgba(205, 191, 236, .22) 61%);
}

.workflow-delivery > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

.workflow-delivery img { height: 26px; }
.workflow-delivery .workflow-progress { background: rgba(205, 191, 236, .4); }

@media (max-width: 1050px) {
  .bibi-workflow-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bibi-workflow-card::before { display: none; }
}

@media (max-width: 740px) {
  .bibi-workflow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
  .bibi-workflow-card { padding: 10px; }
}
