/* Typography */ .main-nav a,
.login {
  font-size: 15px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 216, 74, .2);
  border-radius: 999px;
  background: rgba(255, 216, 74, .08);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1.35px;
}

.section-light .eyebrow {
  color: #725600;
  border-color: rgba(114, 86, 0, .18);
  background: rgba(255, 216, 74, .18);
}

.section-warm .eyebrow {
  color: #ffdc55;
  border-color: rgba(255, 216, 74, .28);
  background: rgba(255, 216, 74, .12);
}

.cap-card p,
.steps p,
.benefits p,
.accordion p,
.footer-brand p,
.footer-grid nav a {
  font-size: 15px;
}

/* Seamless result gallery */ .result-track,
.track-viewport {
  max-width: 100%;
  overflow: hidden;
}

.track-lane {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  width: max-content;
  min-width: max-content;
  animation: none;
  will-change: transform;
}

.track-lane:hover {
  --track-paused: 1;
}

.track-lane a {
  position: relative;
  display: block;
  flex: 0 0 320px;
  width: 320px;
  padding: 0;
  border: 0;
  background: transparent;
}

.track-lane img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.track-lane a span {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: calc(100% - 24px);
  padding: 8px 14px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(8, 9, 6, 0.78);
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

/* Cards and media */ .cap-card,
.cap-highlight,
.showcase-mosaic a,
.before-after,
.object-demo,
.motion-demo,
.panel-visual,
.use-feature,
.tool-hero-image picture,
.process-grid figure,
.quality-grid figure {
  border: 0;
}

.cap-card {
  overflow: visible;
  transition: transform 0.22s ease;
}

.cap-card:hover {
  transform: translateY(-5px);
}

/* Keep the action label visually separate from the preview image. */ .cap-card .card-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 13px;
  line-height: 1.35;
}

.cap-card img,
.showcase-mosaic img,
.before-after img,
.object-demo img,
.panel-visual img,
.use-feature img,
.tool-hero-image img,
.process-grid figure img,
.quality-grid figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.cap-card img,
.showcase-mosaic img,
.use-feature img {
  aspect-ratio: 3 / 2;
}

.showcase-mosaic {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
}

.showcase-mosaic a:first-child {
  grid-row: span 2;
  align-self: center;
}

.before-after figcaption,
.object-demo > span,
.object-demo > i {
  display: none;
}

.merge-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  color: var(--muted);
  font-weight: 750;
}

.merge-labels span {
  text-align: center;
}

.merge-labels b {
  color: var(--yellow);
  font-size: 22px;
}

/* Interactive editor */ .editor-canvas {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.editor-canvas > picture:first-child {
  display: block;
  width: 100%;
}

.editor-canvas img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

/* The merge workflow uses three independent,
uncropped shots. */ .tool-page .tool-process .process-grid {
  align-items: center;
}

/* The heading belongs to the copy column; the image is centered against the steps. */ @media (min-width: 901px) {
  .tool-page .tool-process .process-grid > figure:not(.process-sequence) {
    transform: translateY(89px);
  }

}

.tool-page .tool-process .process-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-self: center;
  margin: 0;
  transform: translateY(89px);
}

.tool-page .tool-process .process-shot {
  min-width: 0;
}

.tool-page .tool-process .process-shot picture,
.tool-page .tool-process .process-shot img {
  display: block;
  width: 100%;
}

.tool-page .tool-process .process-shot img {
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tool-page .tool-process .process-shot figcaption {
  margin-top: 12px;
  color: #f4f2e9;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 600px) {
  .tool-page .tool-process .process-sequence {
    grid-template-columns: 1fr;
    gap: 26px;
    width: min(100%, 480px);
    margin-inline: auto;
    transform: none;
  }

}

/* v32: compact studio rhythm for large demonstration sections */
@media (min-width: 901px) {
  :root {
    --compact-section-space: clamp(24px, 2.1vw, 32px);
    --compact-section-gap: clamp(14px, 1.5vw, 22px);
  }

  .editor-section .section-intro {
    margin-bottom: 14px !important;
  }

  .editor-shell {
    gap: 12px !important;
    padding: 12px !important;
  }

  .editor-canvas,
  .editor-canvas img {
    height: clamp(285px, 24vw, 320px) !important;
    max-height: 320px !important;
  }

  .editor-tools,
  .editor-settings {
    padding: 12px !important;
  }

  .home-page .showcase-mosaic img {
    max-height: 225px !important;
  }

  .home-page .showcase-grid {
    gap: clamp(18px, 2vw, 28px) !important;
  }

  .home-page .before-after img,
  .home-page .object-demo img {
    height: clamp(230px, 21vw, 285px) !important;
  }

  .home-page .motion-demo img {
    height: clamp(255px, 23vw, 310px) !important;
  }

  .merge .panel-visual {
    margin-top: 14px !important;
    margin-bottom: 12px !important;
  }

  .merge .panel-visual img {
    max-height: 330px !important;
  }

  .merge-labels {
    margin-bottom: 12px !important;
  }
}

@media (max-width: 900px) {
  .editor-canvas,
  .editor-canvas img,
  .home-page .showcase-mosaic img,
  .home-page .before-after img,
  .home-page .object-demo img,
  .home-page .motion-demo img,
  .merge .panel-visual img {
    max-height: 300px !important;
  }
}

/* Structured information,
FAQ and final CTA alignment. */ .information .info-grid {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 72px;
}

.information .info-grid > div:first-child {
  max-width: 470px;
  justify-self: end;
}

.information .info-grid > div:last-child {
  max-width: 560px;
  padding: 28px 0 28px 40px;
  border-left: 1px solid var(--border);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.accordion summary::after {
  float: none;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  line-height: 1;
}

.accordion details[open] summary::after {
  content: '−';
}

.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
}

.final-inner .eyebrow,
.final-inner h2,
.final-inner p {
  margin-inline: auto;
  text-align: center;
}

.job-grid span {
  font-size: 14px;
  line-height: 1.25;
}

.compact-steps span {
  font-size: 13px;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .information .info-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .information .info-grid > div:first-child {
    justify-self: start;
  }

  .information .info-grid > div:last-child {
    max-width: none;
    padding: 24px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .tool-page .tool-process .process-grid > figure {
    transform: none;
  }

}

.background-after-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: inset(0 45% 0 0);
}

.background-after-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.background-after-layer:has(#compare-image[src*="remove-bg-bag-transparent-v2"]) {
  background-color: #ecebe7;
  background-image:
    linear-gradient(45deg, #d8d7d2 25%, transparent 25%),
    linear-gradient(-45deg, #d8d7d2 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d8d7d2 75%),
    linear-gradient(-45deg, transparent 75%, #d8d7d2 75%);
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
  background-size: 28px 28px;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 55%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.background-compare {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.settings-row button {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.settings-row button.active {
  border-color: var(--yellow);
  color: var(--yellow);
}

.editor-status {
  min-height: 40px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.editor-canvas img.is-processing {
  opacity: 0.55;
  filter: blur(3px);
}

[hidden] {
  display: none !important;
}

/* Frame-by-frame animation */ .motion-demo {
  position: relative;
  display: block;
  max-width: 760px;
  margin-inline: auto;
  background: transparent;
}

.motion-demo picture,
.motion-demo img {
  display: block;
  width: 100%;
}

.motion-demo img {
  height: auto;
  object-fit: contain;
}

.motion-demo.is-playing .timeline > span i {
  animation: timeline-progress 2.48s linear infinite;
}

@keyframes timeline-progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }

}

/* Use cases */ .use-feature {
  display: block;
  max-width: 1060px;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
}

.use-feature picture {
  display: block;
  height: auto;
}

.use-feature > span {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-align: right;
}

.steps article > span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steps article i {
  display: none;
}

@media (max-width: 820px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .track-lane a {
    flex-basis: 260px;
    width: 260px;
  }

  .showcase-mosaic {
    grid-template-columns: 1fr;
  }

  .showcase-mosaic a:first-child {
    grid-row: auto;
  }

}

@media (max-width: 520px) {
  .track-lane a {
    flex-basis: 220px;
    width: 220px;
  }

  .merge-labels {
    gap: 6px;
    font-size: 11px;
  }

  .use-feature > span {
    text-align: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  .track-viewport {
    overflow-x: auto;
  }

  .motion-demo.is-playing .timeline > span i {
    animation: none;
  }

}

/* Calm desktop feedback: motion never changes document flow. */
.site-header {
  transition: background-color .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.site-header.is-scrolled {
  background: rgba(12, 13, 10, .965);
  border-color: rgba(255, 216, 74, .16);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
}

.menu-toggle span:not(.sr-only) {
  transform-origin: center;
  transition: transform .22s ease, opacity .18s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.button-primary {
  position: relative;
  overflow: hidden;
}

.button-primary::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, .3) 46%, transparent 64%);
  transform: translateX(-125%);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .button-primary:hover::after {
    transform: translateX(125%);
  }

  .cap-card,
  .job-grid article,
  .quality-grid article,
  .related-card,
  .steps article,
  .use-feature,
  .accordion details,
  .track-lane a,
  .showcase-mosaic a {
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background-color .24s ease;
  }

  .cap-card:hover,
  .job-grid article:hover,
  .quality-grid article:hover,
  .related-card:hover,
  .steps article:hover,
  .use-feature:hover,
  .accordion details:hover,
  .track-lane a:hover,
  .showcase-mosaic a:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 216, 74, .38);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
  }

  .cap-card picture img,
  .related-card img,
  .track-lane img,
  .showcase-mosaic img {
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), filter .3s ease;
  }

  .cap-card:hover picture img,
  .related-card:hover img,
  .track-lane a:hover img,
  .showcase-mosaic a:hover img {
    transform: scale(1.018);
    filter: saturate(1.04) contrast(1.02);
  }

}

@media (hover: hover) and (pointer: fine) {
  .pointer-glow {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }

  .pointer-glow::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: '';
    pointer-events: none;
    background: radial-gradient( 280px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255, 216, 74, .105), transparent 68% );
    opacity: 0;
    transition: opacity .24s ease;
  }

  .pointer-glow:hover::before {
    opacity: 1;
  }

}

@media (prefers-reduced-motion: reduce) {
  .cap-card,
  .job-grid article,
  .quality-grid article,
  .related-card,
  .steps article,
  .use-feature,
  .accordion details,
  .track-lane a,
  .showcase-mosaic a,
  .cap-card picture img,
  .related-card img,
  .track-lane img,
  .showcase-mosaic img {
    transition: none !important;
    transform: none !important;
  }

  .pointer-glow::before {
    display: none !important;
  }

  .button-primary::after {
    display: none !important;
  }

}

/* Responsive rhythm and safe sizing for phones, tablets and compact laptops. */
@media (max-width: 1180px) {
  .tool-hero-grid {
    gap: 40px;
  }

  .process-grid,
  .quality-grid {
    gap: 44px;
  }

  .editor-shell,
  .hero-grid,
  .tool-hero-grid,
  .process-grid,
  .quality-grid,
  .split-grid,
  .showcase-grid,
  .use-grid {
    min-width: 0;
  }

  .editor-shell > *,
  .hero-grid > *,
  .tool-hero-grid > *,
  .process-grid > *,
  .quality-grid > *,
  .split-grid > *,
  .showcase-grid > *,
  .use-grid > * {
    min-width: 0;
  }
}

/* v26: compact first screen, visible frame motion and closed FAQ defaults. */
.home-page .hero {
  padding-top: clamp(24px, 3vw, 44px) !important;
  padding-bottom: clamp(24px, 3vw, 42px) !important;
}

.home-page .hero-focus {
  min-height: clamp(430px, 46vw, 570px) !important;
}

.home-page .studio-hero .hero-copy {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.motion-demo #motion-frame {
  opacity: 1 !important;
  transition: none !important;
}

@media (max-width: 900px) {
  .home-page .hero-focus {
    min-height: clamp(380px, 68vw, 540px) !important;
  }
}

@media (max-width: 600px) {
  .home-page .hero {
    padding: 22px 0 28px !important;
  }

  .home-page .hero-focus {
    min-height: 350px !important;
  }
}

@media (max-width: 820px) {
  :root {
    --mobile-section-space: 56px;
  }

  .main-nav {
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Phones with a wide CSS viewport (large Android screens, landscape and
     accessibility display scaling) must never keep the desktop card grid. */
  .capabilities-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .capabilities-grid > .section-intro,
  .capabilities-grid > .cap-card {
    grid-column: 1 / -1 !important;
    width: 100%;
    min-width: 0;
  }

  .cap-card {
    min-height: auto;
  }

  .capabilities,
  .editor-section,
  .showcase,
  .how,
  .feature-split,
  .animate,
  .merge,
  .use-cases,
  .why,
  .information,
  .faq,
  .final-cta,
  .tool-jobs,
  .tool-process,
  .tool-benefits,
  .tool-quality,
  .related {
    padding-block: var(--mobile-section-space);
  }

  .hero,
  .tool-hero {
    padding-block: 36px var(--mobile-section-space);
  }

  .hero-grid,
  .tool-hero-grid,
  .process-grid,
  .quality-grid,
  .showcase-grid,
  .split-grid,
  .split-grid.reverse,
  .why-grid,
  .faq-grid,
  .info-grid {
    gap: 30px;
  }

  .job-grid,
  .related-grid,
  .steps,
  .benefits,
  .quality-cards {
    gap: 16px;
    margin-top: 30px;
  }

  .hero-window picture img,
  .editor-shell > picture img,
  .showcase-grid picture img,
  .before-after img,
  .object-demo img,
  .motion-demo img,
  .panel-visual img,
  .use-grid img,
  .tool-hero-image picture img,
  .tool-process figure img,
  .tool-quality figure img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .job-grid article,
  .related-card,
  .steps article {
    min-height: auto;
  }

  .section-intro,
  .tool-hero-copy,
  .quality-grid > div {
    max-width: none;
  }

  .button,
  button,
  input,
  textarea {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --mobile-section-space: 48px;
  }

  .container {
    width: calc(100% - 24px);
  }

  .hero,
  .tool-hero {
    padding-block: 28px var(--mobile-section-space);
  }

  .hero h1,
  .tool-hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 10.4vw, 42px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .section-intro h2,
  .info-grid h2,
  .quality-grid h2,
  .final-inner h2 {
    font-size: clamp(31px, 9vw, 38px);
    overflow-wrap: anywhere;
  }

  .hero-grid,
  .tool-hero-grid,
  .process-grid,
  .quality-grid,
  .showcase-grid,
  .split-grid,
  .split-grid.reverse,
  .why-grid,
  .faq-grid,
  .info-grid {
    gap: 24px;
  }

  .job-grid,
  .related-grid,
  .steps,
  .benefits,
  .quality-cards {
    gap: 14px;
    margin-top: 24px;
  }

  .job-grid article,
  .related-card,
  .steps article,
  .quality-grid article,
  .benefits article {
    min-height: auto;
    padding: 20px;
  }

  .job-grid h3 {
    margin-top: 24px;
  }

  .compact-steps {
    gap: 10px;
    margin-top: 24px;
  }

  .compact-steps article {
    padding: 15px 16px;
  }

  .breadcrumbs {
    flex-wrap: wrap;
    gap: 6px 9px;
    margin-bottom: 22px;
  }

  .hero-actions,
  .tool-hero .hero-actions {
    gap: 10px;
  }

  .hero-actions .button,
  .tool-hero .hero-actions .button,
  .final-inner > .button {
    width: 100%;
    min-height: 48px;
    white-space: normal;
    text-align: center;
  }

  .editor-settings {
    gap: 14px;
    padding: 16px;
  }

  .footer-grid,
  .footer-all {
    gap: 22px;
  }

  .footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 20px);
  }

  .brand span:last-child {
    font-size: 14px;
  }

  .menu-toggle {
    width: 42px;
    min-width: 42px;
  }

  .chip,
  .tabs button {
    font-size: 11px;
  }
}

/* ================================================================
   Precision layout pass — consistent rhythm, controls and wrapping
   ================================================================ */
.hero {
  padding-bottom: 44px !important;
}

.result-track {
  padding-block: 28px 34px !important;
}

.track-heading {
  padding-bottom: 16px !important;
}

.track-lane {
  gap: 10px;
}

.track-lane a {
  overflow: hidden;
  background: #151713;
  border-radius: 16px;
}

.track-lane img {
  display: block;
}

.section-intro,
.tool-hero .hero-copy,
.quality-grid > div,
.final-inner {
  min-width: 0;
}

.section-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-intro h1,
.section-intro h2,
.tool-hero h1,
.quality-grid h2,
.info-grid h2,
.faq-grid h2,
.why-grid h2,
.final-inner h2 {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-wrap: break-word !important;
  text-wrap: balance;
}

.section-intro p,
.tool-hero .hero-lead,
.quality-grid p,
.info-grid p,
.final-inner p {
  max-width: 62ch;
  margin: 16px 0 0;
  line-height: 1.65;
}

.section-intro > .eyebrow,
.quality-grid .eyebrow,
.final-inner > .eyebrow {
  margin: 0 0 18px !important;
}

.capabilities-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
}

.capabilities-grid > * {
  min-width: 0;
}

.capabilities-grid > .section-intro {
  padding-right: 20px;
}

.cap-card {
  min-height: 350px !important;
  height: 100%;
  padding: 24px !important;
}

.cap-card h3 {
  min-height: 2.4em;
  margin: 0 0 8px;
}

.cap-card p {
  min-height: 3.4em;
  margin-bottom: 18px;
}

.cap-card img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover !important;
  margin-top: auto;
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 14px;
  color: #171810;
  background: #ffd84a;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.prompt-box button {
  display: inline-grid;
  place-items: center;
  width: auto;
  min-width: 84px;
  height: 40px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.editor-shell {
  align-items: stretch;
}

.editor-canvas,
.editor-canvas picture,
.editor-canvas img {
  min-width: 0;
  max-width: 100%;
}

.editor-canvas img {
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 420px;
  object-fit: contain !important;
}

.editor-tools,
.editor-settings {
  min-width: 0;
}

.editor-tools button,
.settings-row button,
.editor-settings .button {
  min-height: 42px;
}

.settings-row[hidden],
#strength-control[hidden],
#background-compare[hidden] {
  display: none !important;
}

.settings-row button {
  min-width: 48px;
  display: inline-grid;
  place-items: center;
}

.showcase-grid,
.split-grid,
.split-grid.reverse,
.process-grid,
.quality-grid,
.why-grid,
.faq-grid,
.info-grid {
  align-items: center !important;
}

.split-grid > *,
.process-grid > *,
.quality-grid > *,
.why-grid > *,
.faq-grid > *,
.info-grid > * {
  min-width: 0;
}

.tool-process,
.tool-quality {
  overflow: clip;
}

.tool-process figure,
.tool-quality figure {
  width: min(100%, 720px);
  max-width: 720px;
  justify-self: center;
  align-self: center;
  overflow: hidden;
  border-radius: 24px;
}

.tool-process figure picture,
.tool-quality figure picture {
  display: block;
}

.tool-process figure img,
.tool-quality figure img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: 460px !important;
  aspect-ratio: 16 / 9;
  object-fit: contain !important;
}

.job-grid article > span,
.compact-steps article > span {
  display: inline-flex;
  width: max-content;
  padding: 6px 9px;
  color: #171810 !important;
  background: #ffd84a;
  border-radius: 999px;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.job-grid h3 {
  margin: 24px 0 10px !important;
}

.why-grid,
.faq-grid {
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr) !important;
}

.info-grid {
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr) !important;
  align-items: start !important;
}

.information {
  padding-block: 58px !important;
}

.accordion details {
  overflow: hidden;
}

.accordion summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.accordion summary::after {
  content: '+' !important;
  float: none !important;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #171810 !important;
  background: #ffd84a;
  font: 800 18px/1 Arial, sans-serif;
}

.accordion details[open] summary::after {
  content: '\2212' !important;
}

.related-card {
  padding-right: 62px !important;
}

.related-card i {
  right: 18px !important;
  bottom: 18px !important;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #171810 !important;
  background: #ffd84a;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
}

.use-feature > span {
  display: none !important;
}

.use-feature picture,
.use-feature img {
  display: block;
}

.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.final-inner p {
  text-align: center;
}

.final-inner > .button {
  margin-top: 24px !important;
}

@media (max-width: 820px) {
  .hero {
    padding-bottom: 36px !important;
  }

  .result-track {
    padding-block: 24px 30px !important;
  }

  .capabilities-grid,
  .why-grid,
  .faq-grid,
  .info-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .capabilities-grid > .section-intro {
    padding-right: 0;
  }

  .cap-card {
    min-height: 0 !important;
  }

  .cap-card h3,
  .cap-card p {
    min-height: 0;
  }

  .editor-tools {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 16px;
  }

  .editor-tools strong {
    grid-column: 1 / -1;
  }

  .editor-tools button {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .08);
  }

  .editor-canvas img {
    min-height: 0;
    max-height: 420px !important;
    aspect-ratio: auto !important;
  }

  .process-grid,
  .quality-grid,
  .showcase-grid,
  .split-grid,
  .split-grid.reverse {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .tool-process figure,
  .tool-quality figure {
    width: min(100%, 640px);
  }
}

@media (max-width: 430px) {
  .editor-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .editor-tools button {
    min-height: 46px;
  }

  .editor-settings {
    padding: 16px !important;
  }

  .editor-settings textarea {
    min-height: 108px;
  }

  .editor-settings .button {
    width: 100%;
    align-self: stretch;
  }

  .track-lane {
    gap: 8px;
  }

  .card-link {
    width: 100%;
  }

  .prompt-box {
    gap: 10px;
  }

  .prompt-box button {
    min-width: 76px;
    padding-inline: 10px;
  }

  .job-grid article > span,
  .compact-steps article > span {
    font-size: 9px !important;
  }
}

/* ==========================================================================
   12-point visual review
   One CTA language, compact vertical rhythm and contained process media.
   ========================================================================== */

:root {
  --section-space: 58px;
  --section-space-mobile: 40px;
  --cta-gradient: linear-gradient(135deg, #ffe361 0%, #ffc84a 48%, #ff9f32 100%);
  --heading-on-dark: #fbfaf5;
  --copy-on-dark: #c7c9c1;
}

/* Primary actions use the same high-contrast language as the header CTA. */
.button-primary,
.card-link,
.merge .align-right,
.editor-settings .button,
.prompt-box button,
.related-card i {
  color: #14150f !important;
  background: var(--cta-gradient) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 22px rgba(255, 169, 45, .18);
}

.button-primary,
.card-link,
.merge .align-right,
.editor-settings .button {
  font-weight: 800;
}

@media (hover: hover) and (pointer: fine) {
  .button-primary:hover,
  .card-link:hover,
  .merge .align-right:hover,
  .editor-settings .button:hover,
  .prompt-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 169, 45, .26);
  }
}

/* Reduce inter-section gaps while keeping enough air inside content groups. */
.tool-hero {
  padding-block: 44px 52px !important;
}

.tool-hero-grid {
  align-items: center !important;
}

.tool-hero .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tool-hero .hero-copy h1 {
  margin: 0 !important;
}

.tool-hero .hero-lead {
  margin: 22px 0 0 !important;
}

.tool-hero .hero-actions {
  margin: 24px 0 0 !important;
  gap: 12px !important;
}

.tool-hero-image {
  align-self: center;
  margin-block: 0 !important;
}

/* Crisp dark-section typography: no low-contrast or blurred headings. */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-deep h1,
.section-deep h2,
.section-deep h3,
.tool-hero h1,
.compact-steps h3 {
  color: var(--heading-on-dark) !important;
  font-weight: 800;
  text-shadow: none !important;
}

.section-dark p,
.section-deep p,
.tool-hero .hero-lead {
  color: var(--copy-on-dark) !important;
}

/* Images are vertically centered and cannot overlap the following section. */
.tool-process,
.tool-quality {
  position: relative;
  isolation: isolate;
  overflow: hidden !important;
}

.tool-process .process-grid,
.tool-quality .quality-grid {
  align-items: center !important;
}

.tool-process figure,
.tool-quality figure {
  min-height: 0 !important;
  max-height: 380px;
  align-self: center;
  overflow: hidden;
}

.tool-process figure picture,
.tool-quality figure picture {
  max-height: 380px;
}

.tool-process figure img,
.tool-quality figure img {
  max-height: 380px !important;
}

.tool-benefits,
.related {
  position: relative;
  z-index: 1;
}

/* The merge triptych sits optically centered against its three instructions. */
.tool-process figure.process-sequence[data-asset-group="obedinit-foto-process"] {
  transform: translateY(-12px);
}

/* Compact, consistently aligned FAQ module. */
.faq {
  padding-block: 52px !important;
}

.faq .faq-grid {
  grid-template-columns: minmax(240px, .66fr) minmax(0, 1.34fr) !important;
  gap: 32px !important;
}

.accordion {
  gap: 8px !important;
}

.accordion details {
  border-radius: 14px !important;
}

.accordion summary {
  min-height: 54px;
  padding: 12px 14px !important;
  gap: 12px !important;
}

.accordion p {
  margin: 0 !important;
  padding: 0 14px 14px !important;
  line-height: 1.55;
}

.site-footer {
  padding-block: 48px 28px !important;
}

.footer-bottom {
  margin-top: 28px !important;
}

@media (max-width: 820px) {
  .tool-hero {
    padding-block: 32px 40px !important;
  }

  .tool-hero .hero-lead {
    margin-top: 18px !important;
  }

  .tool-hero .hero-actions {
    margin-top: 20px !important;
  }

  .tool-process figure,
  .tool-quality figure,
  .tool-process figure picture,
  .tool-quality figure picture {
    max-height: 340px;
  }

  .tool-process figure img,
  .tool-quality figure img {
    max-height: 340px !important;
  }

  .tool-process figure.process-sequence[data-asset-group="obedinit-foto-process"] {
    transform: translateY(-8px);
  }

  .faq {
    padding-block: 40px !important;
  }

  .faq .faq-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 430px) {
  .tool-hero {
    padding-block: 28px 36px !important;
  }

  .tool-hero .hero-actions {
    width: 100%;
  }

  .tool-process figure.process-sequence[data-asset-group="obedinit-foto-process"] {
    transform: none;
  }

  .accordion summary {
    min-height: 50px;
    padding: 11px 12px !important;
  }

  .accordion p {
    padding: 0 12px 12px !important;
  }
}

/* ================================================================
   Shared layout system — header, typography, spacing and media
   ================================================================ */
:root {
  --header-height: 72px;
  --section-space: 72px;
  --section-space-mobile: 48px;
  --control-height: 44px;
}

html {
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  padding-top: var(--header-height) !important;
}

.site-header {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 1000 !important;
  height: var(--header-height) !important;
  background: rgba(9, 10, 7, .92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
  backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.main-nav,
.menu-toggle {
  display: none !important;
}

.brand,
.header-actions,
.header-actions .button,
.header-actions .login {
  display: inline-flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: var(--control-height) !important;
  height: var(--control-height) !important;
  flex: 0 0 var(--control-height);
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

.header-actions {
  flex: 0 0 auto;
  gap: 16px;
}

.header-actions .login {
  min-height: var(--control-height);
  padding-inline: 8px;
  white-space: nowrap;
}

.header-actions .button {
  min-height: var(--control-height);
  padding: 0 20px;
  white-space: nowrap;
}

h1,
.hero h1,
.tool-hero h1 {
  max-width: 760px;
  font-size: 44px !important;
  line-height: 1.06 !important;
  letter-spacing: -.035em !important;
  overflow-wrap: normal;
}

h2,
.section-intro h2,
.info-grid h2,
.quality-grid h2,
.final-inner h2 {
  font-size: 36px !important;
  line-height: 1.1 !important;
  letter-spacing: -.025em !important;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  padding: 7px 12px !important;
  color: #171810 !important;
  background: #ffd84a !important;
  border: 1px solid #ffd84a !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase;
}

.hero,
.result-track,
.capabilities,
.editor,
.editor-section,
.showcase,
.how,
.feature-split,
.merge,
.animate,
.use-cases,
.why,
.information,
.faq,
.final-cta,
.tool-hero,
.tool-jobs,
.tool-process,
.tool-benefits,
.tool-quality,
.related {
  padding-block: var(--section-space) !important;
}

.home-page .hero,
.home-page .result-track {
  padding-block: var(--section-space) !important;
}

.section-intro > .eyebrow,
.quality-grid .eyebrow,
.final-inner > .eyebrow {
  margin-bottom: 18px;
}

.job-grid,
.steps,
.benefits,
.quality-cards,
.related-grid {
  gap: 16px !important;
  margin-top: 30px !important;
}

.job-grid article,
.steps article,
.benefits article,
.quality-cards article,
.related-card {
  min-height: 0 !important;
  padding: 22px !important;
}

.job-grid h3 {
  margin-top: 28px !important;
}

.compact-steps {
  gap: 10px !important;
  margin-top: 24px !important;
}

.compact-steps article {
  padding: 15px 18px !important;
}

.tool-hero-grid,
.process-grid,
.quality-grid,
.split-grid,
.showcase-grid,
.why-grid,
.faq-grid,
.info-grid {
  gap: clamp(28px, 4vw, 56px) !important;
}

.tool-hero-image,
.tool-process figure,
.tool-quality figure,
.panel-visual,
.motion-demo,
.use-feature,
.object-demo,
.before-after {
  max-width: 960px;
  margin-inline: auto;
}

.tool-hero-image picture img,
.tool-process figure img,
.tool-quality figure img,
.panel-visual img,
.motion-demo img,
.use-feature img,
.object-demo img,
.before-after img {
  width: 100%;
  height: auto !important;
  max-height: 520px !important;
  object-fit: contain !important;
}

.motion-demo {
  max-width: 680px;
}

.motion-demo img {
  max-height: 500px !important;
}

.use-feature {
  max-width: 900px;
}

.use-feature img {
  max-height: 500px !important;
}

.merge .container {
  display: grid;
}

.merge .panel-visual {
  width: min(100%, 960px);
}

.merge .align-right {
  width: max-content !important;
  justify-self: center !important;
  margin: 22px auto 0 !important;
}

.merge-labels {
  width: min(100%, 960px);
  margin: 24px auto 12px !important;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-card {
  min-height: 128px !important;
}

.final-cta {
  min-height: 0 !important;
  background: radial-gradient(circle at 50% 50%, rgba(135, 98, 13, .27), transparent 48%), var(--bg) !important;
}

.final-inner {
  max-width: 760px !important;
}

.final-inner h2 {
  margin-bottom: 16px !important;
}

.final-prompt {
  max-width: 560px !important;
  min-height: 54px;
  margin: 28px auto 18px !important;
  padding: 6px 7px 6px 10px !important;
  border-radius: 16px !important;
}

.final-prompt button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
}

.final-inner > .button {
  width: max-content !important;
  margin: 0 auto;
}

.site-footer {
  padding: 52px 0 24px !important;
}

.footer-grid {
  gap: 36px !important;
}

.footer-bottom {
  margin-top: 32px !important;
  padding-top: 20px !important;
}

@media (max-width: 820px) {
  :root {
    --header-height: 64px;
    --control-height: 40px;
  }

  h1,
  .hero h1,
  .tool-hero h1 {
    font-size: 30px !important;
    line-height: 1.08 !important;
    overflow-wrap: normal !important;
  }

  h2,
  .section-intro h2,
  .info-grid h2,
  .quality-grid h2,
  .final-inner h2 {
    font-size: 26px !important;
    line-height: 1.12 !important;
    overflow-wrap: normal !important;
  }

  .hero,
  .result-track,
  .capabilities,
  .editor,
  .editor-section,
  .showcase,
  .how,
  .feature-split,
  .merge,
  .animate,
  .use-cases,
  .why,
  .information,
  .faq,
  .final-cta,
  .tool-hero,
  .tool-jobs,
  .tool-process,
  .tool-benefits,
  .tool-quality,
  .related {
    padding-block: var(--section-space-mobile) !important;
  }

  .home-page .hero,
  .home-page .result-track {
    padding-block: var(--section-space-mobile) !important;
  }

  .header-inner {
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .login {
    display: inline-flex !important;
    min-height: 40px;
    padding: 0 4px;
    font-size: 12px;
  }

  .header-actions .button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .job-grid,
  .steps,
  .benefits,
  .quality-cards,
  .related-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 24px !important;
  }

  .tool-hero-image picture img,
  .tool-process figure img,
  .tool-quality figure img,
  .panel-visual img,
  .motion-demo img,
  .use-feature img,
  .object-demo img,
  .before-after img {
    max-height: 420px !important;
  }

  .merge-labels {
    margin-top: 20px !important;
  }

  .site-footer {
    padding-top: 44px !important;
  }
}

@media (max-width: 430px) {
  .container {
    width: calc(100% - 24px) !important;
  }

  .brand {
    gap: 7px;
  }

  .brand span:last-child {
    font-size: 13px;
  }

  .header-actions .login {
    font-size: 11px;
  }

  .header-actions .button {
    padding-inline: 10px;
    font-size: 11px;
  }

  .hero-grid,
  .tool-hero-grid,
  .process-grid,
  .quality-grid,
  .showcase-grid,
  .split-grid,
  .split-grid.reverse,
  .why-grid,
  .faq-grid,
  .info-grid {
    gap: 24px !important;
  }

  .job-grid article,
  .steps article,
  .benefits article,
  .quality-cards article,
  .related-card {
    padding: 19px !important;
  }

  .final-prompt {
    margin-top: 22px !important;
  }

  .footer-all {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 360px) {
  .brand span:last-child {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions .login {
    padding-inline: 0;
  }

  .header-actions .button {
    padding-inline: 8px;
    font-size: 10px;
  }
}

/* ==========================================================================
   28-point annotation review
   Final rules for spacing, card geometry, controls and responsive media.
   ========================================================================== */

/* 1-2. Compact handoff from the hero to an immediately visible, eager gallery. */
.home-page .hero {
  padding-bottom: 38px !important;
}

.home-page .result-track {
  padding-top: 22px !important;
  padding-bottom: 34px !important;
}

.result-track .track-heading {
  padding-bottom: 14px !important;
}

.track-lane {
  gap: 12px !important;
  align-items: stretch;
  scroll-snap-type: x proximity;
}

.track-lane > a {
  flex: 0 0 clamp(220px, 23vw, 340px);
  min-width: 0;
  aspect-ratio: 16 / 9;
  scroll-snap-align: start;
}

.track-lane picture,
.track-lane img {
  width: 100%;
  height: 100% !important;
}

.track-lane img {
  object-fit: cover !important;
}

/* 3-5. Equal capability cards and unmistakable actions. */
.capabilities-grid {
  grid-auto-rows: 1fr;
}

.cap-card {
  display: flex !important;
  flex-direction: column;
  min-height: 360px !important;
}

.cap-card picture {
  display: block;
  width: 100%;
  margin-top: auto;
}

.cap-card .card-link {
  min-height: 42px;
  margin-top: 14px;
  padding-inline: 16px;
  line-height: 1.2;
  text-decoration: none;
}

.prompt-box button {
  min-width: 88px;
  border-radius: 12px;
}

/* 6. Ratio choices exist only while image generation is active. */
#ratio-control[hidden] {
  display: none !important;
}

#ratio-control:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 7-9, 11-16, 19-25. Stable text blocks instead of floating labels/headings. */
.section-intro,
.hero-copy,
.quality-grid > div,
.why-grid > div,
.info-grid > div,
.faq-grid > div,
.final-inner {
  position: relative;
  min-width: 0;
}

.section-intro .eyebrow,
.hero-copy .eyebrow,
.quality-grid .eyebrow,
.why-grid .eyebrow,
.info-grid .eyebrow,
.faq-grid .eyebrow {
  align-self: flex-start;
  margin: 0 0 18px !important;
}

.section-intro h2,
.quality-grid h2,
.why-grid h2,
.info-grid h2,
.faq-grid h2,
.final-inner h2 {
  margin: 0 !important;
  max-width: 22ch;
}

.section-intro p,
.quality-grid p,
.why-grid p,
.info-grid p,
.faq-grid p,
.final-inner p {
  margin-top: 16px !important;
}

.information .info-grid,
.faq .faq-grid {
  align-items: start !important;
}

.information .info-grid > *,
.faq .faq-grid > * {
  align-self: start;
}

.job-grid article {
  display: flex;
  flex-direction: column;
  min-height: 220px !important;
}

.job-grid article > span,
.compact-steps article > span {
  flex: 0 0 auto;
  min-height: 24px;
  align-items: center;
}

.job-grid h3 {
  min-height: 3.2em;
}

/* 17-18, 25, 28. Clean related cards and encoding-safe FAQ controls. */
.related-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  align-items: center;
  min-height: 132px !important;
  padding: 22px !important;
}

.related-card span,
.related-card strong {
  grid-column: 1;
}

.related-card i {
  position: static !important;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  font-style: normal;
}

.accordion summary::after {
  content: "+" !important;
}

.accordion details[open] summary::after {
  content: "\2212" !important;
}

/* 10. The obsolete scenario-overlay action remains removed. */
.use-feature > span {
  display: none !important;
}

/* 22-27. Process and quality images always stay inside and center in their block. */
.process-grid,
.quality-grid {
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  align-items: center !important;
}

.tool-process figure,
.tool-quality figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 720px) !important;
  min-width: 0;
  min-height: 360px;
  margin: 0 auto !important;
  padding: 0;
}

.tool-process figure picture,
.tool-quality figure picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.tool-process figure img,
.tool-quality figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 440px !important;
  margin: auto;
  object-fit: contain !important;
  object-position: 50% 50% !important;
}

/* The final CTA is centered and does not reserve space for the removed prompt. */
.final-cta {
  padding-block: 60px !important;
}

.final-inner {
  text-align: center;
}

.final-inner .eyebrow {
  align-self: center;
  margin-bottom: 18px !important;
}

.final-inner h2,
.final-inner p {
  margin-inline: auto !important;
}

.final-inner > .button {
  margin: 24px auto 0 !important;
}

@media (max-width: 820px) {
  .home-page .hero {
    padding-bottom: 30px !important;
  }

  .home-page .result-track {
    padding-top: 20px !important;
  }

  .track-lane > a {
    flex-basis: min(72vw, 300px);
  }

  .cap-card {
    min-height: 0 !important;
  }

  .cap-card .card-link {
    width: max-content;
    max-width: 100%;
  }

  .job-grid article {
    min-height: 0 !important;
  }

  .job-grid h3 {
    min-height: 0;
  }

  .process-grid,
  .quality-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }

  .tool-process figure,
  .tool-quality figure {
    min-height: 0;
    width: min(100%, 640px) !important;
    margin: 2px auto 0 !important;
  }

  .tool-process figure img,
  .tool-quality figure img {
    max-height: 420px !important;
  }

  .section-intro h2,
  .quality-grid h2,
  .why-grid h2,
  .info-grid h2,
  .faq-grid h2,
  .final-inner h2 {
    max-width: 100%;
  }

  .final-cta {
    padding-block: 48px !important;
  }
}

@media (max-width: 430px) {
  .track-lane {
    gap: 10px !important;
  }

  .track-lane > a {
    flex-basis: min(78vw, 286px);
  }

  /* All six tools remain present without turning the editor into a very tall list. */
  .editor-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .editor-tools button {
    min-height: 48px;
    padding: 10px !important;
    font-size: 12px;
    line-height: 1.25;
  }

  .editor-canvas,
  .editor-settings {
    width: 100%;
    min-width: 0;
  }

  .editor-canvas img {
    width: 100%;
    max-height: 360px !important;
    object-fit: contain !important;
  }

  .related-card {
    min-height: 112px !important;
    padding: 18px !important;
  }

  .tool-process figure img,
  .tool-quality figure img {
    max-height: 340px !important;
  }

  .eyebrow {
    white-space: normal;
    text-align: left;
  }
}

/* Final cascade alignment for the 12-point visual review. */
:root {
  --section-space: 58px;
  --section-space-mobile: 40px;
}

.button-primary,
.card-link,
.merge .align-right,
.editor-settings .button,
.prompt-box button,
.related-card i {
  color: #14150f !important;
  background: var(--cta-gradient) !important;
  border-color: transparent !important;
}

.tool-hero {
  padding-block: 44px 52px !important;
}

.tool-hero .hero-lead {
  margin: 22px 0 0 !important;
}

.tool-hero .hero-actions {
  margin: 24px 0 0 !important;
}

.tool-process,
.tool-quality {
  overflow: hidden !important;
}

.tool-page .tool-process .process-grid > figure:not(.process-sequence) {
  transform: none !important;
}

.tool-process figure,
.tool-quality figure,
.tool-process figure picture,
.tool-quality figure picture {
  min-height: 0 !important;
  max-height: 380px !important;
}

.tool-process figure img,
.tool-quality figure img {
  max-height: 380px !important;
}

.tool-process figure.process-sequence[data-asset-group="obedinit-foto-process"] {
  transform: translateY(-12px);
}

.faq {
  padding-block: 52px !important;
}

.faq .faq-grid {
  grid-template-columns: minmax(240px, .66fr) minmax(0, 1.34fr) !important;
  gap: 32px !important;
}

.accordion {
  gap: 8px !important;
}

.accordion summary {
  min-height: 54px;
  padding: 12px 14px !important;
}

.accordion p {
  margin: 0 !important;
  padding: 0 14px 14px !important;
}

@media (max-width: 820px) {
  .tool-hero {
    padding-block: 32px 40px !important;
  }

  .tool-hero .hero-lead {
    margin-top: 18px !important;
  }

  .tool-hero .hero-actions {
    margin-top: 20px !important;
  }

  .tool-process figure,
  .tool-quality figure,
  .tool-process figure picture,
  .tool-quality figure picture,
  .tool-process figure img,
  .tool-quality figure img {
    max-height: 340px !important;
  }

  .tool-process figure.process-sequence[data-asset-group="obedinit-foto-process"] {
    transform: translateY(-8px);
  }

  .faq {
    padding-block: 40px !important;
  }

  .faq .faq-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 430px) {
  .tool-hero {
    padding-block: 28px 36px !important;
  }

  .tool-process figure.process-sequence[data-asset-group="obedinit-foto-process"] {
    transform: none;
  }
}

/* ==========================================================================
   Global rhythm and responsive typography
   One spacing system for every public section and every viewport.
   ========================================================================== */
:root {
  --section-space: 54px;
  --section-space-mobile: 44px;
  --section-inner-gap: clamp(22px, 2.4vw, 32px);
  --text-muted-readable: #b9b8ad;
}

/* Desktop refinements: compact rhythm without changing the approved mobile layout. */
@media (min-width: 821px) {
  .feature-split .section-intro > p {
    margin: 16px 0 0 !important;
  }

  .feature-split .section-intro > .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px !important;
  }

  .feature-split .section-intro > .button {
    margin-top: 22px !important;
  }

  .related-grid {
    margin-top: 26px !important;
  }

  .related-card {
    min-height: 126px !important;
    padding: 20px 22px !important;
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .related-card i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    justify-self: end;
    border-radius: 14px;
    color: #171810 !important;
    background: linear-gradient(135deg, #ffe15d, #ff9d2e);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(255, 178, 46, .18);
  }
}

body {
  font-size: 16px;
  line-height: 1.6;
}

.hero,
.result-track,
.capabilities,
.editor,
.editor-section,
.showcase,
.how,
.feature-split,
.merge,
.animate,
.use-cases,
.why,
.information,
.faq,
.final-cta,
.tool-hero,
.tool-jobs,
.tool-process,
.tool-benefits,
.tool-quality,
.related {
  padding-block: var(--section-space) !important;
}

.home-page .hero,
.home-page .result-track {
  padding-block: var(--section-space) !important;
}

.hero-lead,
.section-intro > p,
.quality-grid > div > p,
.why-grid > div > p,
.info-grid > div > p,
.faq-grid > div > p,
.final-inner > p {
  color: var(--text-muted-readable);
}

.hero-actions {
  gap: 12px;
  margin-top: var(--section-inner-gap) !important;
}

.tool-hero .hero-lead {
  margin-top: 20px !important;
}

.tool-hero .hero-actions {
  margin-top: 24px !important;
}

.faq {
  padding-block: var(--section-space) !important;
}

.final-cta {
  padding-block: var(--section-space) !important;
}

@media (max-width: 820px) {
  body {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero,
  .result-track,
  .capabilities,
  .editor,
  .editor-section,
  .showcase,
  .how,
  .feature-split,
  .merge,
  .animate,
  .use-cases,
  .why,
  .information,
  .faq,
  .final-cta,
  .tool-hero,
  .tool-jobs,
  .tool-process,
  .tool-benefits,
  .tool-quality,
  .related {
    padding-block: var(--section-space-mobile) !important;
  }

  .home-page .hero,
  .home-page .result-track {
    padding-block: var(--section-space-mobile) !important;
  }

  .tool-hero .hero-lead {
    margin-top: 16px !important;
  }

  .tool-hero .hero-actions {
    margin-top: 20px !important;
  }
}

@media (max-width: 430px) {
  :root {
    --section-space-mobile: 40px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    justify-content: center;
  }
}

/* ==========================================================================
   Layout polish for wide and embedded desktop viewports
   Keeps captions, actions and paired columns on one deliberate rhythm.
   ========================================================================== */
@media (min-width: 821px) {
  .merge-labels {
    margin-top: 34px !important;
  }

  .animate .section-intro > p {
    margin-bottom: 0 !important;
  }

  .animate .section-intro > .button {
    display: inline-flex;
    margin-top: 26px !important;
  }

  .tool-benefits .why-grid {
    align-items: start !important;
  }

  .tool-benefits .section-intro {
    align-self: start;
  }

  .related-grid {
    margin-top: 30px !important;
  }

  .related-card {
    grid-template-rows: auto auto;
    row-gap: 20px;
  }

  .related-card span {
    grid-row: 1;
  }

  .related-card strong {
    grid-row: 2;
    align-self: center;
    margin-top: 0 !important;
  }

  .related-card i {
    grid-row: 2;
    align-self: center;
  }
}

@media (min-width: 821px) and (max-width: 1320px) {
  .process-grid,
  .quality-grid {
    grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr);
    gap: 38px !important;
  }

  .tool-benefits .why-grid {
    grid-template-columns: minmax(300px, .68fr) minmax(0, 1.32fr) !important;
    gap: 38px !important;
  }
}

/* ==========================================================================
   Continuous gallery and final alignment pass
   ========================================================================== */
.track-lane > [data-track-clone] {
  pointer-events: none;
}

.track-viewport {
  scrollbar-width: none;
}

.track-viewport::-webkit-scrollbar {
  display: none;
}

.related-card i {
  display: grid !important;
  place-items: center !important;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 0 !important;
  line-height: 0 !important;
}

.related-card i::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 3px solid #171810;
  border-right: 3px solid #171810;
  transform: translateX(-2px) rotate(45deg);
}

.merge-labels {
  margin-top: 42px !important;
  margin-bottom: 18px !important;
}

@media (max-width: 820px) {
  .capabilities-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: none !important;
    grid-auto-rows: auto !important;
    gap: 16px !important;
  }

  .capabilities-grid > * {
    grid-column: 1 !important;
    grid-row: auto !important;
    min-height: 0 !important;
  }

  .capabilities-grid > .section-intro {
    padding-right: 0 !important;
    margin-bottom: 8px !important;
  }

  .cap-card {
    padding: 22px !important;
  }

  .cap-card img {
    margin-top: 20px !important;
  }

  .merge-labels {
    margin-top: 34px !important;
    margin-bottom: 18px !important;
  }
}

/* v15: final cascade overrides shared by the home page and all tool pages. */
.home-page .hero {
  min-height: 0 !important;
  padding-block: 44px 28px !important;
}

.home-page .result-track {
  padding-block: 18px 30px !important;
}

.result-track .track-heading {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding-bottom: 18px !important;
  text-align: center;
}

.result-track .track-heading h2 {
  width: 100%;
  margin: 0 auto !important;
  text-align: center;
}

.section-dark .section-intro > p,
.section-deep .section-intro > p,
.section-warm .section-intro > p,
.section-dark .cap-card p,
.section-deep .cap-card p,
.section-warm .cap-card p,
.section-dark .quality-grid p,
.section-deep .quality-grid p,
.section-warm .quality-grid p,
.section-dark .why-grid p,
.section-deep .why-grid p,
.section-warm .why-grid p,
.section-dark .info-grid p,
.section-deep .info-grid p,
.section-warm .info-grid p,
.editor-status,
.related-card span {
  color: #c5c8bc !important;
}

.section-light .section-intro > p,
.section-light .quality-grid p,
.section-light .why-grid p,
.section-light .info-grid p,
.section-light .job-grid p {
  color: #5d6158 !important;
}

.section-intro > p,
.cap-card p,
.quality-grid p,
.why-grid p,
.info-grid p,
.job-grid p,
.related-card span {
  font-size: 16px !important;
  line-height: 1.58 !important;
}

.hero-lead,
.section-intro > p {
  margin-bottom: 0 !important;
}

.hero-actions,
.section-intro > p + .chips,
.section-intro > p + .button,
.section-intro > .chips + .button {
  margin-top: 26px !important;
}

.feature-split .section-intro > .chips {
  margin-top: 28px !important;
}

.feature-split .section-intro > .chips + .button {
  margin-top: 24px !important;
}

.button,
.card-link,
.merge .align-right,
.editor-settings .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  line-height: 1.15;
}

.header-actions {
  gap: 12px !important;
}

.header-actions .login {
  display: inline-flex !important;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px !important;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  color: #f7f7f0 !important;
  background: rgba(255, 255, 255, .06);
  font-weight: 750;
  line-height: 1;
}

.merge-labels {
  margin-top: 80px !important;
  margin-bottom: 22px !important;
}

.related {
  padding-block: 48px !important;
}

.related-grid {
  margin-top: 24px !important;
}

.related-card {
  min-height: 112px !important;
  padding: 20px 22px !important;
  grid-template-columns: minmax(0, 1fr) 48px !important;
  grid-template-rows: auto auto !important;
  column-gap: 18px !important;
  row-gap: 12px !important;
}

.related-card span {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.related-card strong {
  grid-column: 1;
  grid-row: 2;
  align-self: start !important;
  margin: 0 !important;
}

.related-card i {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center !important;
  justify-self: end;
  width: 48px !important;
  height: 48px !important;
  border-radius: 15px !important;
}

@media (max-width: 820px) {
  .home-page .hero {
    padding-block: 34px 26px !important;
  }

  .home-page .result-track {
    padding-block: 16px 28px !important;
  }

  .section-intro > p,
  .cap-card p,
  .quality-grid p,
  .why-grid p,
  .info-grid p,
  .job-grid p,
  .related-card span {
    font-size: 15px !important;
  }

  .hero-actions,
  .section-intro > p + .chips,
  .section-intro > p + .button,
  .section-intro > .chips + .button {
    margin-top: 24px !important;
  }

  .feature-split .section-intro > .chips {
    margin-top: 26px !important;
  }

  .feature-split .section-intro > .chips + .button {
    margin-top: 22px !important;
  }

  .header-actions .login {
    min-height: 40px;
    padding-inline: 11px !important;
    font-size: 12px;
  }

  .merge-labels {
    margin-top: 64px !important;
    margin-bottom: 20px !important;
  }

  .related {
    padding-block: 40px !important;
  }

  .related-card {
    min-height: 104px !important;
    padding: 18px !important;
  }
}

@media (max-width: 430px) {
  .home-page .hero {
    padding-block: 28px 24px !important;
  }

  .home-page .result-track {
    padding-block: 14px 26px !important;
  }

  .header-actions .login {
    padding-inline: 9px !important;
    font-size: 11px;
  }

  .merge-labels {
    margin-top: 58px !important;
  }

  .related-card {
    grid-template-columns: minmax(0, 1fr) 44px !important;
    padding: 17px !important;
  }

  .related-card i {
    width: 44px !important;
    height: 44px !important;
  }
}

/* v16: legible actions, balanced related tools and explicit centering. */
.button,
.card-link,
.merge .align-right,
.editor-settings .button,
.prompt-box button,
.hero-editor-submit,
.tabs button,
.use-case-tabs button {
  min-height: 46px !important;
  padding-inline: 20px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
  line-height: 1.15 !important;
}

.cap-card .card-link {
  margin-top: 14px !important;
  padding-block: 12px !important;
}

.header-actions .login,
.header-actions .button {
  font-size: 14px !important;
}

.merge-labels {
  margin-top: 138px !important;
  margin-bottom: 24px !important;
}

.related-grid {
  gap: 16px !important;
}

.related-card {
  min-height: 116px !important;
  padding: 22px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  column-gap: 20px !important;
  row-gap: 10px !important;
  align-items: center !important;
}

.related-card span {
  align-self: end !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.related-card strong {
  align-self: start !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.related-card i {
  position: static !important;
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  justify-self: end !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 92px !important;
  height: 44px !important;
  padding: 0 17px !important;
  border-radius: 14px !important;
  font-size: 0 !important;
  line-height: 1 !important;
  font-style: normal;
  box-shadow: 0 10px 26px rgba(255, 183, 49, .18);
}

.related-card i::before {
  content: "Открыть" !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  color: #14150f !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  transform: none !important;
}

.final-cta .final-inner {
  width: min(100%, 780px) !important;
  margin-inline: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.final-cta .final-inner > * {
  margin-left: auto !important;
  margin-right: auto !important;
}

.final-cta .final-inner h2 {
  max-width: 20ch !important;
  text-wrap: balance;
}

.final-cta .final-inner p {
  max-width: 64ch !important;
}

@media (max-width: 820px) {
  .button,
  .card-link,
  .merge .align-right,
  .editor-settings .button,
  .prompt-box button,
  .hero-editor-submit,
  .tabs button,
  .use-case-tabs button {
    min-height: 44px !important;
    padding-inline: 17px !important;
    font-size: 14px !important;
  }

  .header-actions .login,
  .header-actions .button {
    font-size: 13px !important;
  }

  .merge-labels {
    margin-top: 112px !important;
    margin-bottom: 22px !important;
  }

  .related-card {
    min-height: 108px !important;
    padding: 19px !important;
  }

  .related-card i {
    min-width: 84px !important;
    height: 42px !important;
    padding-inline: 14px !important;
  }

  .related-card i::before {
    font-size: 13px !important;
  }
}

@media (max-width: 430px) {
  .button,
  .card-link,
  .merge .align-right,
  .editor-settings .button,
  .prompt-box button,
  .hero-editor-submit,
  .tabs button,
  .use-case-tabs button {
    font-size: 13px !important;
  }

  .header-actions .login,
  .header-actions .button {
    font-size: 12px !important;
  }

  .merge-labels {
    margin-top: 98px !important;
  }

  .related-card {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 17px !important;
    column-gap: 14px !important;
  }

  .related-card strong {
    font-size: 16px !important;
  }

  .related-card i {
    min-width: 76px !important;
    height: 40px !important;
    padding-inline: 12px !important;
  }

  .related-card i::before {
    font-size: 12px !important;
  }
}

/* v17: move the merge equation itself closer to the image. */
.merge-labels {
  position: relative;
  z-index: 2;
  transform: translateY(52px);
}

@media (max-width: 820px) {
  .merge-labels {
    transform: translateY(44px);
  }
}

@media (max-width: 430px) {
  .merge-labels {
    transform: translateY(36px);
  }
}

/* v18: tighter merge rhythm, centered process media and calmer labels. */
.merge-labels {
  margin-top: 38px !important;
}

.related-card {
  grid-template-rows: 18px minmax(44px, 1fr) !important;
}

.related-card span {
  align-self: start !important;
  min-height: 18px;
  line-height: 18px !important;
}

.related-card strong {
  align-self: center !important;
}

.eyebrow,
.job-grid article > span,
.compact-steps article > span {
  color: #2b2200 !important;
  background: linear-gradient(135deg, #ffe87b 0%, #ffd653 55%, #f3b83c 100%) !important;
  border-color: rgba(92, 68, 0, .16) !important;
  font-weight: 850 !important;
  letter-spacing: .055em !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

.eyebrow {
  min-height: 32px;
  padding: 8px 14px !important;
  font-size: 12px !important;
}

.job-grid article > span,
.compact-steps article > span {
  min-height: 27px;
  padding: 7px 10px;
  font-size: 11px !important;
}

@media (min-width: 901px) {
  .tool-page .tool-process figure.process-sequence[data-asset-group="obedinit-foto-process"] {
    transform: translateY(57px) !important;
  }
}

@media (max-width: 820px) {
  .merge-labels {
    margin-top: 34px !important;
  }

  .related-card {
    grid-template-rows: 18px minmax(42px, 1fr) !important;
  }
}

@media (max-width: 430px) {
  .merge-labels {
    margin-top: 30px !important;
  }

  .eyebrow {
    min-height: 30px;
    padding: 7px 12px !important;
    font-size: 11px !important;
  }
}

/* v19: compact inner heroes and keep every process sequence visible. */
.tool-page .tool-hero {
  padding-top: 28px !important;
  padding-bottom: 40px !important;
}

.merge-labels {
  margin-top: 4px !important;
}

@media (min-width: 901px) {
  .tool-page .tool-process .process-grid > figure:not(.process-sequence) {
    transform: translateY(57px) !important;
  }
}

@media (max-width: 820px) {
  .tool-page .tool-hero {
    padding-top: 20px !important;
    padding-bottom: 32px !important;
  }

  .merge-labels {
    margin-top: 4px !important;
  }
}

@media (max-width: 600px) {
  .tool-page .tool-process .process-sequence {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
  }

  .tool-page .tool-process .process-shot picture,
  .tool-page .tool-process .process-shot img {
    width: 100% !important;
    aspect-ratio: 1 / 1;
  }

  .tool-page .tool-process .process-shot img {
    object-fit: cover !important;
  }

  .tool-page .tool-process .process-shot figcaption {
    margin-top: 8px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 430px) {
  .merge-labels {
    margin-top: 2px !important;
  }

  .site-header .header-actions .button {
    flex: 0 0 96px !important;
    width: 96px !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-inline: 12px !important;
    font-size: 0 !important;
    white-space: nowrap;
  }

  .site-header .header-actions .button::after {
    content: "Создать";
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
  }
}

/* v20: crisp controls, legible labels and a reliable compact header. */
.eyebrow,
.job-grid article > span,
.compact-steps article > span {
  color: #17170f !important;
  border-color: rgba(64, 48, 0, .24) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: .075em !important;
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased;
}

.eyebrow {
  font-size: 12.5px !important;
}

.job-grid article > span,
.compact-steps article > span {
  font-size: 12px !important;
}

.hero-actions .button-secondary {
  color: #f4eedf !important;
  background: #1a1d19 !important;
  border-color: #41473e !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045) !important;
  font-weight: 750 !important;
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased;
}

.hero-actions .button-secondary:hover {
  color: #fffaf0 !important;
  background: #222620 !important;
  border-color: #626a5d !important;
}

.showcase .chips.vertical {
  margin-bottom: 16px !important;
}

.showcase .button-primary {
  width: min(100%, 244px);
  height: 54px !important;
  min-height: 54px !important;
  margin-top: 0 !important;
  padding: 7px 8px 7px 20px !important;
  justify-content: space-between;
  border-radius: 18px !important;
  font-size: 15.5px !important;
  font-weight: 850 !important;
  box-shadow: 0 14px 34px rgba(255, 193, 58, .2) !important;
}

.showcase .button-primary::after {
  content: "\2192";
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #ffe166;
  background: #171811;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 430px) {
  .site-header .container {
    gap: 8px !important;
  }

  .site-header .brand {
    gap: 8px !important;
    font-size: 14px !important;
  }

  .site-header .brand-mark {
    width: 38px !important;
    height: 38px !important;
  }

  .site-header .header-actions {
    gap: 8px !important;
  }

  .site-header .header-actions .login {
    min-width: 50px !important;
    padding-inline: 10px !important;
  }

  .site-header .header-actions .button {
    flex: 0 0 128px !important;
    width: 128px !important;
    min-width: 128px !important;
    padding-inline: 8px !important;
    font-size: 12px !important;
  }

  .site-header .header-actions .button::after {
    content: none !important;
  }

  .eyebrow {
    font-size: 12px !important;
  }

  .showcase .button-primary {
    width: min(100%, 250px);
    height: 56px !important;
    min-height: 56px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 370px) {
  .site-header .brand {
    font-size: 13px !important;
  }

  .site-header .brand-mark {
    width: 36px !important;
    height: 36px !important;
  }

  .site-header .header-actions .login {
    min-width: 46px !important;
    padding-inline: 8px !important;
  }

  .site-header .header-actions .button {
    flex-basis: 116px !important;
    width: 116px !important;
    min-width: 116px !important;
    font-size: 11px !important;
  }
}

/* v21: equal header controls and a tighter gallery CTA. */
.site-header .header-actions .login,
.site-header .header-actions .button {
  height: 46px !important;
  min-height: 46px !important;
  align-items: center;
  justify-content: center;
}

.showcase .button-primary {
  width: min(100%, 220px);
  padding-left: 16px !important;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .site-header .header-actions .login,
  .site-header .header-actions .button {
    height: 46px !important;
    min-height: 46px !important;
  }

  .showcase .button-primary {
    width: min(100%, 226px);
  }
}

/* v22: compact gallery CTA with balanced padding and no reserved icon slot. */
.showcase .button-primary {
  width: fit-content !important;
  max-width: 100%;
  padding-inline: 18px !important;
  justify-content: center !important;
  column-gap: 0 !important;
}

.showcase .button-primary::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 430px) {
  .showcase .button-primary {
    width: fit-content !important;
    max-width: 100%;
    padding-inline: 18px !important;
  }
}

/* ==========================================================================
   v23 — studio reference lock
   Editorial 70/30 composition, one control system and resilient motion.
   ========================================================================== */
:root {
  --studio-gap: clamp(24px, 3vw, 52px);
  --studio-radius: 24px;
  --button-height: 48px;
}

/* Shared header/footer brand geometry. */
.site-header .brand,
.site-footer .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  line-height: 1 !important;
}

.site-header .brand-mark,
.site-footer .brand-mark {
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 13px !important;
  transform: translateY(-1px);
}

.site-header .brand > span,
.site-footer .brand > span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1 !important;
}

/* One button system with complete interaction states. */
.button,
.site-header .login,
.prompt-box button,
.card-link {
  min-height: var(--button-height) !important;
  border-radius: 14px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}

.button:hover,
.site-header .login:hover,
.prompt-box button:hover,
.card-link:hover {
  transform: translateY(-2px);
}

.button:active,
.site-header .login:active,
.prompt-box button:active,
.card-link:active {
  transform: translateY(0) scale(.98);
}

.button:focus-visible,
.site-header .login:focus-visible,
.prompt-box button:focus-visible,
.card-link:focus-visible,
.chip:focus-visible,
.tabs button:focus-visible {
  outline: 3px solid #fff4b4 !important;
  outline-offset: 3px !important;
}

.button[disabled],
button[disabled] {
  opacity: .52;
  cursor: not-allowed;
  transform: none !important;
}

/* The hero is an editorial 70/30 spread, not a dashboard card. */
.home-page .hero {
  padding: clamp(34px, 4.5vw, 70px) 0 clamp(30px, 4vw, 60px) !important;
  overflow: clip;
}

.home-page .studio-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr) !important;
  gap: var(--studio-gap) !important;
  align-items: stretch !important;
}

.home-page .hero-focus {
  position: relative;
  min-width: 0;
  min-height: clamp(520px, 60vw, 720px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--studio-radius);
  background: #151712;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
  isolation: isolate;
}

.home-page .hero-focus::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(7, 8, 5, .82));
}

.home-page .hero-focus picture,
.home-page .hero-focus img {
  width: 100%;
  height: 100% !important;
  display: block;
}

.home-page .hero-focus img {
  object-fit: cover !important;
  object-position: center 34%;
  transition: transform .8s cubic-bezier(.2, .75, .25, 1);
}

.home-page .hero-focus:hover img {
  transform: scale(1.025);
}

.home-page .hero-focus figcaption {
  position: absolute;
  inset: auto 28px 26px;
  z-index: 2;
  display: grid;
  gap: 8px;
  max-width: 520px;
}

.home-page .hero-focus figcaption span {
  color: #ffd84a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-page .hero-focus figcaption strong {
  color: #fffdf5;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.home-page .studio-hero .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(20px, 2.5vw, 38px) 0 clamp(20px, 2.5vw, 38px) clamp(20px, 2.4vw, 34px);
  border-left: 1px solid rgba(255, 216, 74, .26);
}

.home-page .studio-hero h1 {
  max-width: 100% !important;
  margin-bottom: 24px !important;
  text-wrap: balance;
}

.home-page .studio-hero .hero-lead {
  margin-bottom: 26px !important;
  font-size: clamp(16px, 1.3vw, 19px) !important;
  line-height: 1.55 !important;
}

.home-page .studio-hero .hero-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  width: 100%;
}

.home-page .studio-hero .hero-actions .button {
  width: 100%;
  justify-content: center;
}

.home-page .studio-hero .chips {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin-top: 20px !important;
}

.home-page .studio-hero .chip {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Continuous track: clones remain visible and the sequence never opens a gap. */
.result-track .track-heading {
  display: flex;
  justify-content: center;
  text-align: center;
}

.track-lane > [data-track-clone] {
  display: block !important;
  visibility: visible !important;
}

.track-lane > a {
  overflow: hidden;
  border-radius: 18px;
}

/* Consistent category switches. */
.showcase .chips.vertical {
  display: grid !important;
  grid-template-columns: 190px !important;
  justify-items: stretch;
  gap: 10px !important;
}

.showcase .chips.vertical .chip {
  width: 190px !important;
  min-height: 44px !important;
  justify-content: center !important;
  text-align: center;
}

/* Motion is real frame switching; the image never receives transform-based fake motion. */
.motion-demo #motion-frame {
  transform: none !important;
  filter: none !important;
  will-change: opacity;
}

.motion-demo.is-playing #motion-frame {
  animation: none !important;
}

/* Shared section rhythm and compact tool heroes. */
.tool-page .tool-hero {
  padding-top: clamp(24px, 3vw, 42px) !important;
  padding-bottom: clamp(34px, 4vw, 56px) !important;
}

.tool-page .tool-hero-grid {
  gap: clamp(28px, 4vw, 64px) !important;
  align-items: center !important;
}

@media (max-width: 1180px) {
  .home-page .studio-hero {
    grid-template-columns: minmax(0, 5fr) minmax(320px, 3fr) !important;
  }

  .home-page .studio-hero h1 {
    font-size: 40px !important;
  }
}

@media (max-width: 900px) {
  .home-page .studio-hero {
    grid-template-columns: 1fr !important;
  }

  .home-page .studio-hero .hero-copy {
    order: 1;
    padding: 4px 0 0 !important;
    border-left: 0;
  }

  .home-page .hero-focus {
    order: 2;
    min-height: clamp(420px, 75vw, 620px);
  }

  .home-page .studio-hero h1 {
    max-width: 16ch !important;
    font-size: clamp(36px, 6vw, 44px) !important;
  }

  .home-page .studio-hero .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-page .studio-hero .chips {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  :root {
    --studio-radius: 20px;
    --button-height: 46px;
  }

  .home-page .hero {
    padding: 28px 0 36px !important;
  }

  .home-page .studio-hero {
    gap: 26px !important;
  }

  .home-page .studio-hero h1 {
    max-width: 100% !important;
    margin-bottom: 18px !important;
    font-size: 30px !important;
    line-height: 1.08 !important;
  }

  .home-page .studio-hero .hero-lead {
    margin-bottom: 20px !important;
    font-size: 16px !important;
  }

  .home-page .studio-hero .hero-actions {
    grid-template-columns: 1fr !important;
  }

  .home-page .studio-hero .chips {
    grid-template-columns: 1fr !important;
  }

  .home-page .hero-focus {
    min-height: 390px;
  }

  .home-page .hero-focus figcaption {
    inset: auto 18px 18px;
  }

  .site-header .brand-mark,
  .site-footer .brand-mark {
    width: 38px !important;
    height: 38px !important;
  }

  .site-header .brand > span,
  .site-footer .brand > span {
    min-height: 38px;
  }

  .showcase .chips.vertical {
    grid-template-columns: 178px !important;
  }

  .showcase .chips.vertical .chip {
    width: 178px !important;
  }
}

/* ==========================================================================
   v27 — unique brand mark and compact editorial showcases.
   The same geometry applies to the home page, tool pages and every breakpoint.
   ========================================================================== */
.site-header .brand-mark,
.site-footer .brand-mark {
  border-radius: 14px !important;
  transform: none !important;
  filter: drop-shadow(0 7px 15px rgba(255, 181, 41, .18));
}

.home-page .showcase,
.home-page .feature-split,
.home-page .animate {
  padding-block: clamp(46px, 5vw, 72px) !important;
}

.home-page .showcase-grid {
  grid-template-columns: minmax(220px, 250px) minmax(0, 720px) !important;
  justify-content: center;
  gap: clamp(30px, 4vw, 54px) !important;
}

.home-page .showcase-mosaic {
  max-width: 720px;
  justify-self: center;
}

.home-page .showcase-mosaic img {
  max-height: 330px !important;
  object-position: center;
}

.home-page .split-grid,
.home-page .split-grid.reverse {
  grid-template-columns: minmax(220px, 300px) minmax(0, 700px) !important;
  justify-content: center;
  gap: clamp(32px, 4vw, 58px) !important;
}

.home-page .split-grid.reverse {
  grid-template-columns: minmax(0, 700px) minmax(220px, 300px) !important;
}

.home-page .before-after,
.home-page .object-demo,
.home-page .motion-demo {
  width: min(100%, 700px);
  justify-self: center;
}

.home-page .before-after picture,
.home-page .object-demo,
.home-page .motion-demo picture {
  display: block;
  overflow: hidden;
  border-radius: 22px;
}

.home-page .before-after img,
.home-page .object-demo img {
  height: clamp(330px, 33vw, 430px) !important;
}

.home-page .motion-demo img {
  height: clamp(360px, 37vw, 470px) !important;
}

/* Reusable feature/process spreads on every internal tool page. */
.tool-page .tool-jobs,
.tool-page .tool-process,
.tool-page .tool-benefits,
.tool-page .tool-quality,
.tool-page .related,
.tool-page .faq,
.tool-page .final-cta {
  padding-block: clamp(46px, 5vw, 72px) !important;
}

.tool-page .process-grid,
.tool-page .quality-grid,
.tool-page .why-grid {
  gap: clamp(28px, 4vw, 56px) !important;
  align-items: center !important;
}

.tool-page .tool-process figure,
.tool-page .tool-quality figure {
  width: min(100%, 760px) !important;
  max-width: 760px;
  justify-self: center;
}

.tool-page .tool-process figure img,
.tool-page .tool-quality figure img {
  max-height: 430px !important;
  object-fit: cover !important;
}

@media (max-width: 900px) {
  .home-page .showcase-grid,
  .home-page .split-grid,
  .home-page .split-grid.reverse {
    grid-template-columns: 1fr !important;
  }

  .home-page .showcase-grid > .section-intro,
  .home-page .split-grid > .section-intro {
    width: min(100%, 620px);
  }

  .home-page .showcase-mosaic,
  .home-page .before-after,
  .home-page .object-demo,
  .home-page .motion-demo {
    width: min(100%, 720px);
  }
}

@media (max-width: 600px) {
  .home-page .showcase,
  .home-page .feature-split,
  .home-page .animate,
  .tool-page .tool-jobs,
  .tool-page .tool-process,
  .tool-page .tool-benefits,
  .tool-page .tool-quality,
  .tool-page .related,
  .tool-page .faq,
  .tool-page .final-cta {
    padding-block: 38px !important;
  }

  .home-page .showcase-grid,
  .home-page .split-grid,
  .home-page .split-grid.reverse {
    gap: 26px !important;
  }

  .home-page .showcase-mosaic {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .home-page .showcase-mosaic a:first-child {
    grid-column: 1 / -1;
    grid-row: auto !important;
  }

  .home-page .showcase-mosaic img {
    width: 100%;
    aspect-ratio: 3 / 2 !important;
    object-fit: cover !important;
  }

  .home-page .showcase-mosaic img,
  .home-page .before-after img,
  .home-page .object-demo img {
    height: auto !important;
    max-height: 360px !important;
  }

  .home-page .motion-demo img {
    height: auto !important;
    max-height: 420px !important;
  }
}

/* v29: related-tool titles share one optical baseline on every page. */
.related-card {
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto 1fr !important;
  align-items: center !important;
}

.related-card span {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: start !important;
  min-height: 20px !important;
}

.related-card strong {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: flex !important;
  align-items: center !important;
  min-height: 52px !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

.related-card i {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  justify-self: end !important;
}

@media (max-width: 600px) {
  .related-card strong {
    min-height: 44px !important;
  }
}

/* ==========================================================================
   v30 — compact system-wide rhythm and a smaller product presentation.
   These rules intentionally replace the earlier accumulated section sizing.
   ========================================================================== */
:root {
  --compact-section-space: clamp(34px, 3.6vw, 52px);
  --compact-section-gap: clamp(22px, 2.8vw, 36px);
}

/* Large editorial sections share one compact vertical rhythm on every route. */
.editor-section,
.showcase,
.how,
.feature-split,
.animate,
.merge,
.use-cases,
.tool-jobs,
.tool-process,
.tool-benefits,
.tool-quality,
.related,
.faq,
.final-cta {
  min-height: 0 !important;
  padding-block: var(--compact-section-space) !important;
}

.editor-section .section-intro {
  margin-bottom: 26px !important;
}

.editor-shell {
  gap: 14px !important;
}

.editor-canvas,
.editor-canvas picture,
.editor-canvas img {
  min-height: 0 !important;
}

.editor-canvas img {
  height: clamp(330px, 31vw, 400px) !important;
}

.editor-tools,
.editor-settings {
  padding: 16px !important;
}

.editor-tools {
  gap: 4px !important;
}

.editor-tools button {
  padding-block: 9px !important;
}

.editor-settings {
  gap: 13px !important;
}

.editor-settings textarea {
  min-height: 92px !important;
}

.showcase-grid,
.split-grid,
.split-grid.reverse,
.process-grid,
.quality-grid,
.why-grid {
  gap: var(--compact-section-gap) !important;
}

.home-page .showcase,
.home-page .feature-split,
.home-page .animate,
.tool-page .tool-jobs,
.tool-page .tool-process,
.tool-page .tool-benefits,
.tool-page .tool-quality,
.tool-page .related,
.tool-page .faq,
.tool-page .final-cta {
  padding-block: var(--compact-section-space) !important;
}

.home-page .showcase-grid {
  grid-template-columns: minmax(210px, 235px) minmax(0, 650px) !important;
}

.home-page .showcase-mosaic {
  max-width: 650px !important;
}

.home-page .showcase-mosaic img {
  max-height: 292px !important;
}

.home-page .split-grid,
.home-page .split-grid.reverse {
  grid-template-columns: minmax(210px, 280px) minmax(0, 620px) !important;
}

.home-page .split-grid.reverse {
  grid-template-columns: minmax(0, 620px) minmax(210px, 280px) !important;
}

.home-page .before-after,
.home-page .object-demo,
.home-page .motion-demo {
  width: min(100%, 620px) !important;
}

.home-page .before-after img,
.home-page .object-demo img {
  height: clamp(285px, 28vw, 360px) !important;
}

.home-page .motion-demo img {
  height: clamp(320px, 32vw, 400px) !important;
}

.merge .container {
  max-width: 1040px !important;
}

.merge .panel-visual {
  width: min(100%, 900px) !important;
  margin-inline: auto !important;
}

.merge .panel-visual img {
  height: auto !important;
  max-height: 450px !important;
  object-fit: contain !important;
}

.merge-labels {
  width: min(100%, 900px) !important;
  margin-inline: auto !important;
}

@media (max-width: 900px) {
  :root {
    --compact-section-space: 36px;
    --compact-section-gap: 24px;
  }

  .home-page .showcase-grid,
  .home-page .split-grid,
  .home-page .split-grid.reverse {
    grid-template-columns: 1fr !important;
  }

  .editor-canvas img {
    height: auto !important;
    max-height: 380px !important;
  }
}

@media (max-width: 600px) {
  :root {
    --compact-section-space: 30px;
    --compact-section-gap: 20px;
  }

  .editor-section .section-intro {
    margin-bottom: 20px !important;
  }

  .editor-tools,
  .editor-settings {
    padding: 14px !important;
  }

  .home-page .showcase-mosaic {
    gap: 8px !important;
  }

  .home-page .showcase-mosaic img,
  .home-page .before-after img,
  .home-page .object-demo img,
  .home-page .motion-demo img {
    max-height: 330px !important;
  }

  .merge .container {
    padding-inline: 16px !important;
  }
}

/* ========================================================================== 
   v31 — denser studio rhythm. Large demonstrations remain legible without
   turning every section into a full-screen slide.
   ========================================================================== */

:root {
  --compact-section-space: clamp(28px, 2.6vw, 38px);
  --compact-section-gap: clamp(18px, 2vw, 28px);
}

.editor-section .section-intro {
  margin-bottom: 18px !important;
}

.editor-shell {
  gap: 14px !important;
  padding: 14px !important;
}

.editor-canvas,
.editor-canvas img {
  height: clamp(310px, 27vw, 350px) !important;
  max-height: 350px !important;
}

.editor-tools,
.editor-settings {
  padding: 14px !important;
}

.home-page .showcase-grid {
  align-items: center !important;
}

.home-page .showcase-mosaic img {
  max-height: 260px !important;
}

.home-page .before-after img,
.home-page .object-demo img {
  height: clamp(260px, 24vw, 320px) !important;
}

.home-page .motion-demo img {
  height: clamp(290px, 27vw, 350px) !important;
}

.merge .panel-visual {
  margin-top: 20px !important;
  margin-bottom: 16px !important;
}

.merge .panel-visual img {
  max-height: 380px !important;
}

.merge-labels {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

@media (max-width: 900px) {
  :root {
    --compact-section-space: 30px;
    --compact-section-gap: 20px;
  }

  .editor-canvas,
  .editor-canvas img {
    height: auto !important;
    max-height: 340px !important;
  }

  .merge .panel-visual {
    margin-top: 16px !important;
  }
}

@media (max-width: 600px) {
  :root {
    --compact-section-space: 26px;
    --compact-section-gap: 18px;
  }

  .editor-shell {
    gap: 12px !important;
    padding: 12px !important;
  }

  .home-page .showcase-mosaic img,
  .home-page .before-after img,
  .home-page .object-demo img,
  .home-page .motion-demo img,
  .merge .panel-visual img {
    max-height: 310px !important;
  }
}

/* v34: authoritative compact sizes; keep this final. */
:root {
  --compact-section-space: clamp(30px, 3vw, 44px);
  --compact-section-gap: clamp(18px, 2.2vw, 30px);
}
.editor-section,
.showcase,
.how,
.feature-split,
.animate,
.merge,
.use-cases,
.tool-jobs,
.tool-process,
.tool-benefits,
.tool-quality,
.related,
.faq,
.final-cta {
  min-height: 0 !important;
  padding-block: var(--compact-section-space) !important;
}
.editor-section .section-intro { margin-bottom: 16px !important; }
.editor-shell { gap: 12px !important; padding: 12px !important; }
.editor-canvas,
.editor-canvas picture,
.editor-canvas img {
  min-height: 0 !important;
  height: clamp(270px, 23vw, 310px) !important;
  max-height: 310px !important;
}
.editor-tools,
.editor-settings { padding: 12px !important; }
.editor-settings textarea { min-height: 86px !important; }
.showcase-grid,
.split-grid,
.split-grid.reverse,
.process-grid,
.quality-grid,
.why-grid { gap: var(--compact-section-gap) !important; }
.home-page .showcase-grid {
  grid-template-columns: minmax(205px, 230px) minmax(0, 610px) !important;
  align-items: center !important;
}
.home-page .showcase-mosaic {
  width: min(100%, 610px) !important;
  max-width: 610px !important;
}
.home-page .showcase-mosaic img {
  height: clamp(205px, 18vw, 240px) !important;
  max-height: 240px !important;
}
.home-page .split-grid,
.home-page .split-grid.reverse {
  grid-template-columns: minmax(205px, 265px) minmax(0, 580px) !important;
}
.home-page .split-grid.reverse {
  grid-template-columns: minmax(0, 580px) minmax(205px, 265px) !important;
}
.home-page .before-after,
.home-page .object-demo,
.home-page .motion-demo { width: min(100%, 580px) !important; }
.home-page .before-after img,
.home-page .object-demo img {
  height: clamp(230px, 21vw, 285px) !important;
  max-height: 285px !important;
}
.home-page .motion-demo img {
  height: clamp(250px, 23vw, 310px) !important;
  max-height: 310px !important;
}
.merge .container { max-width: 980px !important; }
.merge .panel-visual,
.merge-labels {
  width: min(100%, 820px) !important;
  margin-inline: auto !important;
}
.merge .panel-visual { margin-block: 12px !important; }
.merge .panel-visual img {
  height: auto !important;
  max-height: 320px !important;
  object-fit: contain !important;
}
.merge-labels { margin-block: 8px 12px !important; }
.tool-page .tool-process figure,
.tool-page .tool-quality figure {
  width: min(100%, 680px) !important;
  max-width: 680px !important;
}
.tool-page .tool-process figure img,
.tool-page .tool-quality figure img {
  max-height: 350px !important;
  object-fit: cover !important;
}
@media (max-width: 900px) {
  :root { --compact-section-space: 32px; --compact-section-gap: 22px; }
  .home-page .showcase-grid,
  .home-page .split-grid,
  .home-page .split-grid.reverse { grid-template-columns: 1fr !important; }
  .editor-canvas,
  .editor-canvas picture,
  .editor-canvas img { height: auto !important; max-height: 300px !important; }
}
@media (max-width: 600px) {
  :root { --compact-section-space: 28px; --compact-section-gap: 18px; }
  .editor-section .section-intro { margin-bottom: 14px !important; }
  .editor-shell { gap: 10px !important; padding: 10px !important; }
  .editor-canvas,
  .editor-canvas picture,
  .editor-canvas img,
  .home-page .showcase-mosaic img,
  .home-page .before-after img,
  .home-page .object-demo img,
  .home-page .motion-demo img,
  .merge .panel-visual img { max-height: 270px !important; }
  .merge .container { padding-inline: 16px !important; }
}

/* v41 — optically centered motion control. */
.home-page .motion-demo .timeline button {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.home-page .motion-demo .timeline button::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--ink);
  transform: translateX(1px);
}

.home-page .motion-demo .timeline button[aria-pressed="true"]::before {
  width: 8px;
  height: 12px;
  border: 0;
  background: linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 8px);
  transform: none;
}

/* v42 — place the play glyph on the exact optical axis of the progress rail. */
.home-page .motion-demo .timeline button::before {
  display: block;
  transform: translate(1px, 6px);
}

.home-page .motion-demo .timeline button[aria-pressed="true"]::before {
  transform: translateY(6px);
}

/* v43 — editor prompts are readable static copy, never nested scroll areas. */
.editor-settings .editor-prompt-static {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 14px 15px;
  overflow: visible;
  color: var(--text);
  background: #252920;
  border-radius: 14px;
  font: inherit;
  line-height: 1.5;
  white-space: normal;
}

@media (max-width: 900px) {
  .editor-settings > .editor-prompt-static {
    grid-column: 1 / -1;
  }
}

/* v44 — floating motion preview without the heavy outer slab. */
.home-page .motion-demo {
  width: min(100%, 360px) !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.home-page .motion-demo::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 12% 14% 5%;
  background: radial-gradient(circle, rgba(255, 199, 47, .14), rgba(255, 199, 47, 0) 70%);
  filter: blur(18px);
  pointer-events: none;
}

.home-page .motion-demo picture {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 74, .28);
  border-radius: 20px !important;
  box-shadow: 0 22px 56px rgba(0, 0, 0, .34);
}

.home-page .motion-demo img {
  width: auto !important;
  max-width: 100% !important;
  height: 370px !important;
  max-height: 370px !important;
  border-radius: 19px !important;
}

.home-page .motion-demo .timeline {
  z-index: 2;
  bottom: 16px !important;
  width: min(calc(100% - 16px), 320px) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .34);
}

@media (max-width: 600px) {
  .home-page .motion-demo {
    width: min(100%, 340px) !important;
  }

  .home-page .motion-demo img {
    height: 330px !important;
    max-height: 330px !important;
  }

  .home-page .motion-demo .timeline {
    width: min(calc(100% - 8px), 310px) !important;
    bottom: 14px !important;
  }
}

@media (max-width: 380px) {
  .home-page .motion-demo img {
    height: 300px !important;
    max-height: 300px !important;
  }
}

/* ========================================================================== 
   v35 — final review refinements: stronger brand mark, larger product imagery,
   aligned merge captions and a compact animation control.
   ========================================================================== */

.site-header .brand-mark,
.site-footer .brand-mark {
  border-radius: 0 !important;
  filter: drop-shadow(0 5px 10px rgba(255, 190, 28, .22)) !important;
}

.editor-canvas,
.editor-canvas picture,
.editor-canvas img {
  height: clamp(370px, 33vw, 430px) !important;
  max-height: 430px !important;
}

.editor-canvas img {
  object-fit: contain !important;
}

.merge .container {
  max-width: 1080px !important;
}

.merge .panel-visual {
  width: min(100%, 940px) !important;
  margin-block: 22px 16px !important;
}

.merge .panel-visual img {
  width: 100% !important;
  max-height: 470px !important;
  border-radius: 24px !important;
  object-fit: contain !important;
}

.merge .panel-visual .merge-labels {
  position: absolute !important;
  z-index: 2;
  inset: 14px 16px auto !important;
  width: auto !important;
  display: grid !important;
  grid-template-columns: 1fr 0 1fr 0 1fr !important;
  align-items: center;
  gap: 0 !important;
  margin: 0 !important;
  pointer-events: none;
}

.merge .merge-labels span {
  justify-self: center;
  min-width: 116px;
  padding: 8px 14px;
  color: #fff7dd !important;
  background: rgba(16, 17, 13, .78);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: blur(8px);
}

.merge .merge-labels b {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #171910 !important;
  background: var(--yellow);
  border: 3px solid rgba(16, 17, 13, .88);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

.home-page .animate .split-grid {
  grid-template-columns: minmax(230px, 300px) minmax(320px, 430px) !important;
  justify-content: center;
  gap: clamp(34px, 5vw, 72px) !important;
}

.home-page .motion-demo {
  width: min(100%, 430px) !important;
  justify-self: center;
  padding: 12px;
  overflow: hidden;
  background: #101410;
  border: 1px solid rgba(255, 216, 74, .16);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
}

.home-page .motion-demo picture {
  display: flex !important;
  justify-content: center;
  border-radius: 17px !important;
}

.home-page .motion-demo img {
  width: auto !important;
  height: clamp(320px, 30vw, 370px) !important;
  max-height: 370px !important;
  border-radius: 17px !important;
  object-fit: contain !important;
}

.home-page .motion-demo .timeline {
  left: 50% !important;
  right: auto !important;
  bottom: 24px !important;
  width: min(calc(100% - 44px), 320px);
  padding: 8px 10px !important;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px !important;
  transform: translateX(-50%);
}

.home-page .motion-demo .timeline button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

@media (max-width: 900px) {
  .editor-canvas,
  .editor-canvas picture,
  .editor-canvas img {
    height: auto !important;
    max-height: 390px !important;
  }

  .home-page .animate .split-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .editor-canvas,
  .editor-canvas picture,
  .editor-canvas img {
    max-height: 330px !important;
  }

  .merge .panel-visual {
    margin-top: 16px !important;
  }

  .merge .panel-visual img {
    max-height: 330px !important;
  }

  .merge .panel-visual .merge-labels {
    inset: 8px 7px auto !important;
  }

  .merge .merge-labels span {
    min-width: 0;
    padding: 6px 8px;
    font-size: 11px;
  }

  .merge .merge-labels b {
    width: 26px;
    height: 26px;
    font-size: 16px;
    border-width: 2px;
  }

  .home-page .motion-demo {
    width: min(100%, 390px) !important;
  }

  .home-page .motion-demo img {
    height: clamp(285px, 88vw, 340px) !important;
    max-height: 340px !important;
  }
}

/* ========================================================================== 
   v36 — donor-inspired identity and final composition tuning.
   ========================================================================== */

.site-header .brand-mark,
.site-footer .brand-mark {
  border-radius: 14px !important;
  filter: drop-shadow(0 7px 16px rgba(255, 187, 35, .2)) !important;
}

.merge .panel-visual {
  margin-top: 40px !important;
}

.merge .panel-visual .merge-labels {
  top: -18px !important;
  bottom: auto !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  overflow: visible;
}

.merge .merge-labels span {
  position: relative;
  z-index: 2;
  justify-self: center;
  min-width: 126px;
  padding: 9px 16px;
  letter-spacing: .035em;
  color: #fff9e7 !important;
  background: linear-gradient(180deg, rgba(35, 36, 29, .94), rgba(17, 18, 14, .88));
  border-color: rgba(255, 224, 110, .32);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .08);
}

.merge .merge-labels b {
  position: absolute;
  top: 50%;
  justify-self: auto;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, #ffe165, #ffb52f);
  border-color: #171811;
}

.merge .merge-labels b:first-of-type {
  left: 33.333%;
}

.merge .merge-labels b:last-of-type {
  left: 66.667%;
}

.objects .split-grid.reverse {
  grid-template-columns: minmax(0, 680px) minmax(280px, 340px) !important;
  justify-content: center;
  gap: clamp(40px, 5vw, 68px) !important;
}

.objects .object-demo {
  width: 100% !important;
  max-width: 680px;
  justify-self: center;
}

.objects .object-demo img {
  width: 100% !important;
  height: clamp(350px, 32vw, 420px) !important;
  max-height: 420px !important;
  object-fit: cover !important;
  border-radius: 24px !important;
}

.objects .section-intro {
  max-width: 340px;
}

.objects .section-intro h2 {
  max-width: 10ch;
  font-size: clamp(34px, 3.5vw, 50px) !important;
  line-height: .98 !important;
}

.objects .section-intro p {
  max-width: 31ch;
}

@media (max-width: 900px) {
  .objects .split-grid.reverse {
    grid-template-columns: 1fr !important;
  }

  .objects .section-intro {
    max-width: 620px;
  }

  .objects .section-intro h2 {
    max-width: 14ch;
  }
}

@media (max-width: 600px) {
  .merge .panel-visual {
    margin-top: 32px !important;
  }

  .merge .panel-visual .merge-labels {
    top: -14px !important;
  }

  .merge .merge-labels span {
    min-width: 0;
    padding: 7px 8px;
    letter-spacing: 0;
  }

  .objects .object-demo img {
    height: auto !important;
    max-height: 360px !important;
  }

  .objects .section-intro h2 {
    font-size: clamp(32px, 10vw, 44px) !important;
  }
}

/* v37 — optically centered merge operators. */
.merge .merge-labels b {
  color: transparent !important;
  font-size: 0 !important;
}

.merge .merge-labels b::before,
.merge .merge-labels b::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 13px;
  height: 2.5px;
  background: #171811;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.merge .merge-labels b:first-of-type::after {
  width: 2.5px;
  height: 13px;
}

.merge .merge-labels b:last-of-type::before {
  transform: translate(-50%, calc(-50% - 3.5px));
}

.merge .merge-labels b:last-of-type::after {
  transform: translate(-50%, calc(-50% + 3.5px));
}

/* v38 — tighter section scale and seam-perfect merge controls. */
.merge .panel-visual .merge-labels {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

.objects .split-grid.reverse {
  grid-template-columns: minmax(0, 600px) minmax(270px, 320px) !important;
  gap: clamp(36px, 4.5vw, 56px) !important;
}

.objects .object-demo {
  max-width: 600px;
}

.objects .object-demo img {
  height: clamp(320px, 28vw, 370px) !important;
  max-height: 370px !important;
}

.objects .section-intro {
  max-width: 320px;
}

.objects .section-intro h2 {
  font-size: clamp(33px, 3.25vw, 46px) !important;
}

.use-cases .tabs {
  margin-block: 24px 26px !important;
}

.use-cases .use-feature {
  width: min(100%, 660px) !important;
  max-width: 660px !important;
  margin-inline: auto !important;
}

.use-cases .use-feature img {
  width: 100% !important;
  height: auto !important;
  max-height: 440px !important;
  object-fit: contain !important;
}

@media (max-width: 900px) {
  .objects .split-grid.reverse {
    grid-template-columns: 1fr !important;
  }

  .objects .section-intro {
    max-width: 620px;
  }
}

@media (max-width: 600px) {
  .objects .object-demo img {
    height: auto !important;
    max-height: 330px !important;
  }

  .use-cases .tabs {
    margin-block: 20px 22px !important;
  }
}

/* ========================================================================== 
   v39 — responsive release lock.
   One final layer for desktop, notebook, tablet, phone and narrow phones.
   ========================================================================== */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

picture,
figure,
.container,
.header-inner,
.footer-grid,
.tool-hero-grid,
.process-grid,
.quality-grid,
.job-grid,
.related-grid,
.editor-shell,
.split-grid,
.showcase-grid,
.capabilities-grid,
.why-grid,
.info-grid,
.faq-grid {
  min-width: 0;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.button,
.chip,
.tabs button,
.card-link {
  overflow-wrap: anywhere;
}

/* Large monitors: keep the composition readable instead of stretching it. */
@media (min-width: 1440px) {
  :root {
    --container: 1320px;
  }

  .home-page .hero-focus {
    min-height: 680px;
    max-height: 760px;
  }

  .tool-page .tool-hero-grid {
    grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  }
}

/* Notebook and compact desktop. */
@media (min-width: 901px) and (max-width: 1280px) {
  :root {
    --container: 1160px;
  }

  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .site-header .header-inner {
    gap: 24px;
  }

  .home-page .studio-hero {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr) !important;
    gap: clamp(28px, 3vw, 42px) !important;
  }

  .home-page .hero-focus {
    min-height: clamp(500px, 54vw, 650px);
  }

  .home-page .studio-hero h1 {
    font-size: clamp(36px, 3.45vw, 44px) !important;
  }

  .editor-shell {
    grid-template-columns: 180px minmax(0, 1fr) 260px !important;
  }

  .tool-page .tool-hero-grid {
    grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
    gap: clamp(36px, 4vw, 54px) !important;
  }
}

/* Tablet and small notebook: every two-column story becomes a calm stack. */
@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 40px), 760px);
  }

  .home-page .hero-focus {
    width: 100%;
    min-height: clamp(390px, 70vw, 560px);
  }

  .home-page .hero-focus img {
    object-position: center 30%;
  }

  .home-page .studio-hero .hero-copy,
  .tool-page .tool-hero-grid > div,
  .tool-page .process-grid > div,
  .tool-page .quality-grid > div {
    width: 100%;
    max-width: 660px;
  }

  .editor-shell {
    grid-template-columns: 1fr !important;
  }

  .editor-tools {
    display: flex !important;
    flex-flow: row wrap;
  }

  .editor-tools > strong {
    flex-basis: 100%;
  }

  .editor-tools button {
    flex: 1 1 150px;
  }

  .editor-settings {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(210px, .7fr);
    align-items: end;
  }

  .editor-settings > strong,
  .editor-settings textarea,
  .editor-settings .editor-status {
    grid-column: 1 / -1;
  }

  .editor-settings .button {
    width: 100%;
  }

  .capabilities-grid,
  .job-grid,
  .related-grid,
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .capabilities-grid > .section-intro,
  .capabilities-grid > .cap-wide {
    grid-column: 1 / -1;
  }

  .home-page .showcase-grid > .section-intro,
  .home-page .split-grid > .section-intro,
  .objects .section-intro {
    width: min(100%, 620px);
    max-width: 620px;
  }

  .merge .panel-visual,
  .merge .panel-visual img {
    width: 100% !important;
  }

  .tool-page .tool-hero-image,
  .tool-page .tool-process figure,
  .tool-page .tool-quality figure {
    width: 100% !important;
    max-width: 720px !important;
  }

  .footer-grid,
  .tool-page .footer-grid,
  #site-footer .footer-grid:has(.footer-all) {
    gap: 34px !important;
  }
}

/* Phones. */
@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), 560px);
  }

  .site-header,
  .site-header .header-inner {
    height: 64px !important;
  }

  body {
    padding-top: 64px;
  }

  .site-header .brand,
  .site-footer .brand {
    gap: 8px !important;
    font-size: 16px;
  }

  .site-header .brand-mark,
  .site-footer .brand-mark {
    width: 36px !important;
    height: 36px !important;
    border-radius: 11px !important;
  }

  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-content: center;
  }

  .main-nav {
    top: 64px;
  }

  .home-page .hero {
    padding-block: 24px 30px !important;
  }

  .home-page .studio-hero {
    gap: 22px !important;
  }

  .home-page .studio-hero h1,
  .tool-page .tool-hero h1 {
    font-size: clamp(30px, 9.4vw, 40px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.035em !important;
    text-wrap: pretty;
  }

  .section-intro h2,
  .info-grid h2,
  .quality-grid h2,
  .final-inner h2 {
    font-size: clamp(29px, 8.7vw, 38px) !important;
    line-height: 1.05 !important;
    text-wrap: pretty;
  }

  .home-page .hero-focus {
    min-height: 0;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
  }

  .home-page .hero-focus figcaption {
    inset: auto 16px 16px;
  }

  .home-page .hero-focus figcaption strong {
    font-size: clamp(20px, 6.5vw, 28px);
  }

  .home-page .studio-hero .hero-actions,
  .home-page .studio-hero .chips,
  .editor-settings,
  .capabilities-grid,
  .job-grid,
  .related-grid,
  .benefits {
    grid-template-columns: 1fr !important;
  }

  .button,
  .site-header .login,
  .prompt-box button,
  .card-link {
    min-height: 46px !important;
    padding-inline: 18px !important;
  }

  .editor-tools {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .editor-tools > strong {
    display: none;
  }

  .editor-tools button {
    flex: 0 0 auto;
    min-width: 138px;
    scroll-snap-align: start;
  }

  .editor-canvas,
  .editor-canvas picture,
  .editor-canvas img {
    width: 100% !important;
    height: auto !important;
    max-height: 320px !important;
  }

  .editor-settings > * {
    grid-column: 1 !important;
  }

  .showcase .chips.vertical,
  .showcase .chips.vertical .chip {
    width: 100% !important;
    grid-template-columns: 1fr !important;
  }

  .showcase .chips.vertical {
    max-width: 280px;
  }

  .home-page .showcase-mosaic {
    grid-template-columns: 1fr !important;
  }

  .home-page .showcase-mosaic a:first-child {
    grid-column: auto;
  }

  .home-page .showcase-mosaic img {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 3 / 2 !important;
  }

  .merge .container {
    padding-inline: 0 !important;
  }

  .merge .panel-visual {
    margin-top: 30px !important;
  }

  .merge .panel-visual img {
    height: auto !important;
    max-height: none !important;
    border-radius: 18px !important;
  }

  .merge .panel-visual .merge-labels {
    top: -13px !important;
    inset-inline: 0 !important;
  }

  .merge .merge-labels span {
    width: calc(100% - 34px);
    min-width: 0 !important;
    padding: 6px 4px;
    font-size: 10px;
    white-space: nowrap;
  }

  .merge .merge-labels b {
    width: 25px;
    height: 25px;
  }

  .tabs {
    display: flex !important;
    gap: 8px !important;
    width: 100%;
    margin-inline: 0 !important;
    padding: 2px 0 10px !important;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .tabs button {
    flex: 0 0 auto;
    min-height: 44px;
    scroll-snap-align: start;
  }

  .home-page .motion-demo {
    width: min(100%, 360px) !important;
    padding: 10px;
  }

  .home-page .motion-demo img {
    height: clamp(260px, 92vw, 330px) !important;
  }

  .home-page .motion-demo .timeline {
    width: calc(100% - 32px);
    bottom: 20px !important;
  }

  .tool-page .tool-hero {
    padding-top: 22px !important;
  }

  .tool-page .breadcrumbs {
    gap: 7px;
    margin-bottom: 24px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  .tool-page .tool-hero-grid,
  .tool-page .process-grid,
  .tool-page .quality-grid {
    gap: 26px !important;
  }

  .tool-page .tool-hero-image picture img,
  .tool-page .tool-process figure img,
  .tool-page .tool-quality figure img {
    border-radius: 20px;
  }

  .tool-page .job-grid article,
  .tool-page .related-card {
    min-height: 0 !important;
    padding: 20px;
  }

  .tool-page .job-grid h3 {
    margin-top: 24px;
  }

  .footer-grid,
  .footer-all,
  #site-footer .footer-grid:has(.footer-all) .footer-all {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }
}

/* Very narrow phones and embedded mobile previews. */
@media (max-width: 380px) {
  .container {
    width: min(calc(100% - 20px), 360px);
  }

  .site-header .brand > span {
    font-size: 15px;
  }

  .site-header .header-actions .login {
    display: none !important;
  }

  .home-page .studio-hero h1,
  .tool-page .tool-hero h1 {
    font-size: 29px !important;
  }

  .section-intro h2,
  .info-grid h2,
  .quality-grid h2,
  .final-inner h2 {
    font-size: 28px !important;
  }

  .merge .merge-labels span {
    width: calc(100% - 28px);
    font-size: 9px;
  }

  .merge .merge-labels b {
    width: 23px;
    height: 23px;
  }

  .home-page .motion-demo img {
    height: 270px !important;
  }
}

/* v40 — hard typography ceiling from the approved type scale. */
#main h1 {
  font-size: clamp(36px, 3.4vw, 44px) !important;
  line-height: 1.06 !important;
}

#main h2 {
  font-size: clamp(30px, 2.8vw, 36px) !important;
  line-height: 1.08 !important;
}

@media (max-width: 900px) {
  #main h1 {
    font-size: clamp(34px, 5.3vw, 40px) !important;
  }

  #main h2 {
    font-size: clamp(28px, 4.4vw, 34px) !important;
  }
}

@media (max-width: 600px) {
  #main h1 {
    font-size: clamp(30px, 8.4vw, 36px) !important;
  }

  #main h2 {
    font-size: clamp(27px, 7.3vw, 32px) !important;
  }
}

@media (max-width: 380px) {
  #main h1 { font-size: 29px !important; }
  #main h2 { font-size: 28px !important; }
}
